How to give to all cops 100$ when a player with wanted dead?:D
#1

How to give to all cops 100$ when a player with wanted dead?

Please say
Reply
#2

Код:
public OnPlayerDeath(playerid,killerid,reason)
{
     if(GetPlayerWantedLevel(playerid) > 0)
     {
          for(new i=0;i< MAX_PLAYERS;i++)
          {
                if(team[i] == TEAM_COPS)
                {
                      GivePlayerMoney(i,100);
                }
           }
     }
     return 1;
}
Reply
#3

tell us your enum or callback for cops.
Reply
#4

OnPlayerDeath... then loop trough all players and if they are cops give them 100$

pretty much simple :P
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)