givemoney to all team - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: givemoney to all team (
/showthread.php?tid=132979)
givemoney to all team -
aircombat - 10.03.2010
is there a way to make if a player from a team die the opposite team (all players) get certain amount of money?
Re: givemoney to all team -
Anwix - 10.03.2010
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);
}
}
}