level through score?
#7

level for score..

pawn Код:
stock SetLevel(playerid)
{
switch(GetPlayerScore(playerid)
{
case 0 .. 50: SetPVarInt(playerid, "pLvl", 1); // 0 to 50 score
case 51 .. 100: SetPVarInt(playerid, "pLvl", 2); //51 to 100 score
case 101 .. 150: SetPVarInt(playerid, "pLvl", 3); //101 to 150 score
case 151 .. 200: SetPVarInt(playerid, "pLvl", 4); //151 to 200 score
case 201 .. 250: SetPVarInt(playerid, "pLvl", 5); //201 to 250 score.
default: SetPVarInt(playerid, "pLvl", 5);
}
}
Didnt compile, Not sure if will work but it looks like it to mez.
Reply


Messages In This Thread
level through score? - by xfelipex - 08.08.2010, 13:38
Re: level through score? - by Dudits - 08.08.2010, 14:17
Re: level through score? - by xfelipex - 08.08.2010, 14:27
Re: level through score? - by [XST]O_x - 08.08.2010, 14:28
Re: level through score? - by xfelipex - 08.08.2010, 14:30
Re: level through score? - by Dudits - 10.08.2010, 07:11
Re: level through score? - by DiddyBop - 10.08.2010, 08:11
Re: level through score? - by Retardedwolf - 10.08.2010, 08:13
Re: level through score? - by DiddyBop - 10.08.2010, 08:18

Forum Jump:


Users browsing this thread: 1 Guest(s)