givemoney to all team
#2

Use something like this under OnPlayerDeath
pawn Код:
if (GetPlayerTeam(killerid) != GetPlayerTeam(playerid)) // stops a teamkill for money
{
   for (new i = 0; i < MAX_PLAYERS; i++)
   {
     if (GetPlayerTeam(i) == GetPlayerTeam(killerid))
     {
        GivePlayerMoney(i, amount);
     }
   }
}
Reply


Messages In This Thread
givemoney to all team - by aircombat - 10.03.2010, 14:38
Re: givemoney to all team - by Anwix - 10.03.2010, 14:49

Forum Jump:


Users browsing this thread: 1 Guest(s)