SetPlayerScore - 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: SetPlayerScore (
/showthread.php?tid=200032)
SetPlayerScore -
Karl1195 - 17.12.2010
Hey guys i am still learning pawno and i decided to make a nice clean DM script so i can learn some basics. I wanna know how to do that when a a player die he get -1 score too because this type of script is that if you kill some one you get +1 but if you die you get noting the score stays the same:
Код:
SendDeathMessage(killerid,playerid,reason);
SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
GivePlayerMoney(killerid,1000);
GivePlayerMoney(playerid,-1000);