player kills - 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: player kills (
/showthread.php?tid=451353)
player kills -
Er@x3r - 16.07.2013
how to do if a player kill 50 players he will get rewarded with an amout of cash?
Re: player kills -
ThePhenix - 16.07.2013
How are you saving the kills data?
Re: player kills -
Er@x3r - 16.07.2013
i dont have any1 now i started...the gm
Re: player kills -
Kitten - 16.07.2013
Create a variable count it up once it hits the amount you want give the reward for example
pawn Код:
new kills[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason)
{
kills[killerid]++;
if(kills[killerid] == 50)
{
// Add the reward code here
}
return 1;
}
Re: player kills -
Er@x3r - 16.07.2013
thanks for help