25.07.2012, 18:06
no it dont work bro this is my gamemode OnPlayerDeath
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
SetPlayerScore(killerid, GetPlayerScore(killerid)+2);
GivePlayerMoney(killerid, 4000);
SendClientMessage(killerid, -1, "Congratulation!You have gained 4000$ and +2 score.");
SetPlayerScore(playerid, GetPlayerScore(playerid) -1);
GivePlayerMoney(playerid, -2000);
SendClientMessage(playerid, -1, "You lost 2000$ because you got killed.");
SendDeathMessage(killerid, playerid, reason);
}
return 1;
}