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
#2

check if ur gamemode or FS is returning 0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)