24.11.2011, 04:06
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if ((SDZDM [playerid] == 1) && (SDZDM1 [playerid] == 1) && (SDZDM2 [playerid] == 1))
{
GivePlayerMoney(killerid, 1000);
SetPlayerScore(killerid,GetPlayerScore(killerid)+2);
}
if ((SDZDM [playerid] == 0) && (SDZDM1 [playerid] == 0) && (SDZDM2 [playerid] == 0))
{
SetPlayerScore(killerid,GetPlayerScore(killerid)-1000);
SendClientMessage(killerid, -1,""Yellow"Defender[SDZ]: "White"Dont Kill People Out Of DeathMatching Areas! You Are Fined "Green"$5000 "White"and "Green"1000 Drift Points"White"!");
GivePlayerMoney(killerid, -5000);
}
return 1;
}