DM Little question - 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: DM Little question (
/showthread.php?tid=237515)
DM Little question -
tanush - 09.03.2011
When someone dies, how i make killer get +1 score and playerid gets -1 score??
Re: DM Little question -
Marricio - 09.03.2011
pawn Код:
public OnPlayerDeath(...)
{
SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
SetPlayerScore(killerid,GetPlayerScore(killerid)-1);
}
Re: DM Little question -
tanush - 09.03.2011
oh thanks