10.08.2010, 08:11
level for score..
Didnt compile, Not sure if will work but it looks like it to mez.
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);
}
}