Why OnPlayerDeath doesnt work ?
#1

My code:
PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    
PlayerInfo[killerid][pKills]++;
    
PlayerInfo[playerid][pDeaths]++;
    
GivePlayerMoney(killerid1000);
    
GameTextForPlayer(playerid"Wasted."50002);
    
GivePlayerMoney(playerid, -500);
    return 
1;

And all doesnt work, player doesnt lose 500 cash when die and doesnt see message....Why ?
Reply


Messages In This Thread
Why OnPlayerDeath doesnt work ? - by bustern - 01.09.2013, 09:07
Re: Why OnPlayerDeath doesnt work ? - by park4bmx - 01.09.2013, 10:15

Forum Jump:


Users browsing this thread: 2 Guest(s)