View Single Post
Re: [Suggestion] Amxmodx API for YaPB.
Old
  (#2)
wbyokomo
Zombie Slayer
 
Status: Offline
Posts: 17
Join Date: Apr 2012
Location: Cyberjaya MY
Default Re: [Suggestion] Amxmodx API for YaPB. - 04-11-2015

I see in bool Bot::LookupEnemy (void) you are using a var to retrieve player team.

PHP Code:
      // search the world for players...
      
for (int i 0GetMaxClients (); i++)
      {
         if (!(
g_clients[i].flags CF_USED) || !(g_clients[i].flags CF_ALIVE) || (g_clients[i].team == m_team) || (g_clients[i].ent == GetEntity ()))
            continue; 
It would be good if you add an API to get/set internal player team too.
Example:
yb_get_player_team(index)
yb_set_player_team(index, m_team)
  
Reply With Quote