OnPlayerDeath
#2

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid, playerid, reason);
    if(killerid != INVALID_PLAYER_ID) // Valid killer, give cash+score
    {
        pScore[killerid]++;
        SetPlayerScore(killerid, pScore[killerid]);
 
        pCash[killerid] += 1000;
        GivePlayerMoney(killerid, 1000);
     }
}
You should look on the wiki an learn to do these yourself...getting them like this wont help you that much mate.
Reply


Messages In This Thread
OnPlayerDeath - by fonetic - 02.11.2013, 21:04
Re: OnPlayerDeath - by rappy93 - 02.11.2013, 21:07
Re: OnPlayerDeath - by Hamam - 02.11.2013, 21:08
Re: OnPlayerDeath - by Hamam - 02.11.2013, 21:12
Re: OnPlayerDeath - by fonetic - 02.11.2013, 21:21
Re: OnPlayerDeath - by rappy93 - 02.11.2013, 21:23

Forum Jump:


Users browsing this thread: 1 Guest(s)