10.03.2010, 14:38
is there a way to make if a player from a team die the opposite team (all players) get certain amount of money?
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);
}
}
}