01.09.2013, 09:07
My code:
And all doesnt work, player doesnt lose 500 cash when die and doesnt see message....Why ?
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
PlayerInfo[killerid][pKills]++;
PlayerInfo[playerid][pDeaths]++;
GivePlayerMoney(killerid, 1000);
GameTextForPlayer(playerid, "Wasted.", 5000, 2);
GivePlayerMoney(playerid, -500);
return 1;
}