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; }
|