How would i to do this?
#3

Quote:
Originally Posted by Famalamalam
Посмотреть сообщение
Use a variable to count the kills:

pawn Код:
new Kills[MAX_PLAYERS]; // This is global, btw.
Count the kills on OnPlayerDeath

pawn Код:
Kills[killerid]++;
Also in OnPlayerDeath, run a check:

pawn Код:
if(Kills[killerid] >= 50)
{
    //run your rank code here
}
else if(Kills[killerid] >= 100)
{
    //higher rank code
}
For the ranks, I'd use a global variable, ie/ rank = 1; would be rank 1, rank = 2; for rank 2, etc.
Kk, so i have it like you said, but now, the Ranks, what would those be like?
Reply


Messages In This Thread
How would i to do this? - by Shockey HD - 29.07.2011, 01:08
Re: How would i to do this? - by Famalamalam - 29.07.2011, 01:24
Re: How would i to do this? - by Shockey HD - 29.07.2011, 01:31
Re: How would i to do this? - by Famalamalam - 29.07.2011, 01:38
Re: How would i to do this? - by Shockey HD - 29.07.2011, 01:55
Re: How would i to do this? - by slymatt - 29.07.2011, 02:01
Re: How would i to do this? - by slymatt - 29.07.2011, 02:04
Re: How would i to do this? - by Famalamalam - 29.07.2011, 02:07
Re: How would i to do this? - by slymatt - 29.07.2011, 02:07
Re: How would i to do this? - by Famalamalam - 29.07.2011, 02:09
Re: How would i to do this? - by slymatt - 29.07.2011, 02:11
Re: How would i to do this? - by Famalamalam - 29.07.2011, 02:14
Re: How would i to do this? - by slymatt - 29.07.2011, 02:16
Re: How would i to do this? - by Famalamalam - 29.07.2011, 02:22
Re: How would i to do this? - by Shockey HD - 29.07.2011, 02:26
Re: How would i to do this? - by slymatt - 29.07.2011, 02:31
Re: How would i to do this? - by Famalamalam - 29.07.2011, 02:33
Re: How would i to do this? - by Shockey HD - 29.07.2011, 02:58
Re: How would i to do this? - by Famalamalam - 29.07.2011, 03:06
Re: How would i to do this? - by Shockey HD - 29.07.2011, 03:21
Re: How would i to do this? - by Famalamalam - 29.07.2011, 03:28
Re: How would i to do this? - by Shockey HD - 29.07.2011, 03:29
Re: How would i to do this? - by Famalamalam - 29.07.2011, 03:32
Re: How would i to do this? - by Shockey HD - 29.07.2011, 03:33

Forum Jump:


Users browsing this thread: 6 Guest(s)