SA-MP Forums Archive
player kills - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: player kills (/showthread.php?tid=308002)



player kills - TGameR - 01.01.2012

Hello,
how to create a fs in which there is a script that every time a player kills a player he won 25score thank you to answer me as soon as possible
PS : please make me 1 FS si possible


Re: player kills - Bogdan1992 - 01.01.2012

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    if( 
killerid != INVALID_PLAYER_ID SetPlayerScorekilleridGetPlayerScorekillerid ) + 25);
    return 
1;