[HELP] Killer money
#1

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

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.
Reply
#3

PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if( 
killerid != INVALID_PLAYER_ID ) SetPlayerMoney( killerid, GetPlayerMoney( killerid ) + 100 );
    return 
1;
} 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)