Money System
#7

Quote:
Originally Posted by brandypol
Посмотреть сообщение
OMG man you're like saving my life now thank you very much and i have a last question. How does this script works ?
I explained it to you, read the green text.

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
That's the easiest part!
pawn Код:
public OnPlayerDeath( playerid, killerid, reason ) // this is the public for OnPlayerDeath which will be called when someone dies
{
    if( killerid != INVALID_PLAYER_ID ) GivePlayerMoney( killerid, 250 ); // the GivePlayerMoney will give the money to the killerid, and the 250 is how much money is given to him (the killerid in this case will get $250), the INVALID_PLAYER_ID means that if someone killed himself, this will not be called, it will only be called if someone kills someone else
    return 1;
}
Reply


Messages In This Thread
Money System - by brandypol - 08.08.2013, 20:07
Re: Money System - by thimo - 08.08.2013, 20:10
Re: Money System - by brandypol - 08.08.2013, 20:13
Re: Money System - by Konstantinos - 08.08.2013, 20:15
Re: Money System - by brandypol - 08.08.2013, 20:17
Re : Money System - by Matnix - 08.08.2013, 20:19
Re: Money System - by DanishHaq - 08.08.2013, 20:24

Forum Jump:


Users browsing this thread: 1 Guest(s)