Help with killing
#1

I want to add a system where when a player kill another player the player who is the killer will gain some money and score how to do this any ideas?
Reply
#2

Yes here it is

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    if(
killerid != INVALID_PLAYER_ID)
    {
    
SetPlayerScore (killeridGetPlayerScore (killerid) + 1); // change the number (1 ) to any score you want
    
SendClientMessage(killerid,COLOR_LIGHTBLUE,"You Got 5$ and 1 Score For This Kill ");
    
Player[killerid][pKills]++;
    
GivePlayerMoneyExkillerid,5);// change the number ( 5 ) to any money amount you want
    
}
    return 
1;
   } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)