givemoney to all team
#1

is there a way to make if a player from a team die the opposite team (all players) get certain amount of money?
Reply
#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


Forum Jump:


Users browsing this thread: 2 Guest(s)