How to get money from KILL look for more info - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to get money from KILL look for more info (
/showthread.php?tid=569864)
How to get money from KILL look for more info -
Bulgaria - 03.04.2015
Hello i want to ask how to make sytem when i kill a player they show me a coloured text bottom right (You kill a player, price 2500$ ) something like this and the player who die show text you killed or you die no matter
![Smiley](images/smilies/smile.png)
Thanks in advance
Re: How to get money from KILL look for more info -
CalvinC - 03.04.2015
Use OnPlayerDeath and a text label.
Re: How to get money from KILL look for more info - justice96 - 03.04.2015
Quote:
Originally Posted by Bulgaria
Hello i want to ask how to make sytem when i kill a player they show me a coloured text bottom right (You kill a player, price 2500$ ) something like this and the player who die show text you killed or you die no matter ![Smiley](images/smilies/smile.png) Thanks in advance ![Smiley](images/smilies/smile.png)
|
This is for the price.
Код:
GivePlayerMoney(playerid,yourprice); player being killed
GivePlayerMoney(killerid,2500);
put it below OnPlayerDeath
Textlabel.
Код:
GameTextForPlayer(killerid,"~r~texthere~n~bonushere(money or exp)",2000,6);
SetPlayerWantedLevel(killerid,1);