PDA

View Full Version : player kills


Er@x3r
16/07/2013, 08:33 PM
how to do if a player kill 50 players he will get rewarded with an amout of cash?

ThePhenix
16/07/2013, 08:40 PM
How are you saving the kills data?

Er@x3r
16/07/2013, 08:46 PM
i dont have any1 now i started...the gm

Kitten
16/07/2013, 08:49 PM
Create a variable count it up once it hits the amount you want give the reward for example

new kills[MAX_PLAYERS];

public OnPlayerDeath(playerid, killerid, reason)
{
kills[killerid]++;
if(kills[killerid] == 50)
{
// Add the reward code here
}
return 1;
}

Er@x3r
16/07/2013, 08:56 PM
thanks for help :)