19.06.2011, 12:11
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
afk[playerid] = 0;
FadePlayerScreen(playerid, 0xFFFFFFCC, 6, 192);
GameTextForPlayer(playerid,"~w~LOL, YOU DIED",1000,1);
GameTextForPlayer(killerid,"~r~You Murderer!",4000,3);
if( DMZone[killerid] >= 1 )
{
GivePlayerMoney(killerid, 1000);
}
if( DMZone[killerid] == 0 )
{
GivePlayerMoney(killerid, -2000);
SendClientMessage(killerid, COLOR_RED, "Please don't kill others outside deathmatch zones. (-2000$)");
}
if(IsInDM[playerid] ==1)
{
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
GivePlayerMoney(killerid, 1800);
GivePlayerMoney(playerid, -1000);
}
if(IsInDM[playerid] ==0)
{
SetPlayerScore(killerid,GetPlayerScore(killerid)-1);
GivePlayerMoney(killerid, -2000);
}
IsInDM[playerid] = 0;
nojump2[playerid] = 0;
return 1;
}
What's wrong here?