Posts: 161
Threads: 34
Joined: May 2010
Alright, I know this is simple but i don't really know how to do it never had to scripting roleplay servers
but i'v moved on to Death Matching servers. Okay lets get down to it,
When a player kills another how can i give him money.
Thanks in Advance
Posts: 161
Threads: 34
Joined: May 2010
Quote:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) { new string[32]; //Award $1000 to the killer GivePlayerMoney(killerid, 1000); format(string, sizeof(string), "You now have %d.", GetPlayerMoney(killerid)); SendClientMessage(killerid, 0xFFFFFFAA, string); }
https://sampwiki.blast.hk/wiki/GivePlayerMoney
|
Thank you very much.. works fine,
If you can, can i ask you a few more things, as i'v just started writting scripts from scratch
and not editing them
-How to get the list on the right hand side, which shows which player killed who,
-How to Limit the cash $0, so you can't go in to minus money.
Would really appreciate if ya'll can help