PDA

View Full Version : [HELP] Killer money


V4at
01/01/2012, 04:04 PM
How do you shoot a player to get the money? Please script.

Ash.
01/01/2012, 04:07 PM
Use the OnPlayerDeath (http://wiki.sa-mp.com/wiki/OnPlayerDeath) callback, and the GivePlayerMoney (http://wiki.sa-mp.com/wiki/GivePlayerMoney) function. If you wish people to script for you, post in the Script Request Thread rather than here.

Bogdan1992
01/01/2012, 04:43 PM
public OnPlayerDeath(playerid, killerid, reason)
{
if( killerid != INVALID_PLAYER_ID ) SetPlayerMoney( killerid, GetPlayerMoney( killerid ) + 100 );
return 1;
}