SA-MP Forums Archive
[HELP] Killer money - 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: [HELP] Killer money (/showthread.php?tid=307899)



[HELP] Killer money - V4at - 01.01.2012

How do you shoot a player to get the money? Please script.


Re: [HELP] Killer money - Ash. - 01.01.2012

Use the OnPlayerDeath callback, and the GivePlayerMoney function. If you wish people to script for you, post in the Script Request Thread rather than here.


Re: [HELP] Killer money - Bogdan1992 - 01.01.2012

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