25.02.2010, 02:09
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
... // other stuff in OnPlayerDeath
if(gTeam[playerid] == ATC)
{
SetPlayerScore(killerid, GetPlayerScore(killerid) - 1);
GivePlayerMoney(killerid, -100);
SendClientMessage(killerid, COLOR, "Do not kill ATC members!");
}
else if(gTeam[killerid] == ATC)
{
SetPlayerScore(killerid, GetPlayerScore(killerid) - 1);
GivePlayerMoney(killerid, -100);
SendClientMessage(killerid, COLOR, "Do not kill other players!");
}
return 1;
}