player kills
#1

how to do if a player kill 50 players he will get rewarded with an amout of cash?
Reply
#2

How are you saving the kills data?
Reply
#3

i dont have any1 now i started...the gm
Reply
#4

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;
}
Reply
#5

thanks for help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)