13.04.2013, 08:17
Hello!
Is here anything wrong?
Code:
Thanks for your help
Is here anything wrong?
Code:
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
if(killerid != INVALID_PLAYER_ID)
{
SetPlayerScore(killerid, +1);
PLAYER_CASH[killerid] += 100;
GivePlayerMoney(killerid, 100);
}
PLAYER_DEATHS[playerid]++;
PLAYER_CASH[playerid] -= 100;
PLAYER_KILLS[killerid]++;
PLAYER_SCORE[killerid]++;
return 1;
}