I Need Help. Death Match Related. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I Need Help. Death Match Related. (
/showthread.php?tid=151284)
I Need Help. Death Match Related. -
Hash [NL-RP] - 29.05.2010
Alright, i'v starting writting my own gamemodes and not editing.
And i'v moved on from Roleplay and started DM,
So i need some help with basic Death match things,
First of all, you all see the kill count on the right hand side
It shows who killed who ? how do i add that.
Also, when i use a command it removed 5000$ from my player
But my cash goes to minus cash, how to limit it so it dont go to
minus ?
Thanks in advance
Re: I Need Help. Death Match Related. -
(SF)Noobanatior - 29.05.2010
pawn Код:
SendDeathMessage(killerid,playerid,reason); //under onplayerdeath //will do the death msgs
and
if(GetPlayerMoney(playerid) < 5000) { //dead persons money
ResetPlayerMoney(playerid); // set to 0
}
else GivePlayerMoney(playerid,-5000); //else take 5k
Re: I Need Help. Death Match Related. -
Hash [NL-RP] - 29.05.2010
Thanks for the help