Where should i place this code...?
#6

Never use OnPlayerUpdate for these kind of codes what i would do is create a simple stock like

pawn Код:
stock CheckRank(playerid)
{
    if(YourXPvar >= 50) // or == depends on how your system works.
    {
         RankedUp(playerid);
         PInfo[playerid][Rank] = 1;
    }
    return 1;
}
I'm not really sure about this but i'm sure you are using the EXP when he/she gets a kill if not do the same thing when that function gets called for that, if you are using it when he/she kills someone call CheckRank(killerid) on that person that kills another player.
Reply


Messages In This Thread
Where should i place this code...? - by Littlehelper - 26.07.2012, 02:04
Re: Where should i place this code...? - by CentyPoo - 26.07.2012, 02:18
Re: Where should i place this code...? - by Devilxz97 - 26.07.2012, 02:49
Respuesta: Re: Where should i place this code...? - by HarlemSAMP - 26.07.2012, 03:08
Re: Where should i place this code...? - by ReneG - 26.07.2012, 03:15
Re: Where should i place this code...? - by Kitten - 26.07.2012, 03:57
Respuesta: Where should i place this code...? - by Bu11Sh0t - 26.07.2012, 05:03
Re: Where should i place this code...? - by Littlehelper - 26.07.2012, 11:56

Forum Jump:


Users browsing this thread: 3 Guest(s)