else if ( cmd == "setlevel")
{
local level = RFSLevel(player);
local lvl = GetTok(text, " ",2);
local plr = FindPlayer(GetTok(text, " ",1));
if ( level < 4 ) PrivMessage("You need at least level 4 to use this command",player);
else if ( !IsNum(lvl) ) PrivMessage("Level must be numbers",player);
else if (( lvl < 0 ) || ( lvl > 4 ) ) PrivMessage("Level must be from 1-4",player);
else if ( !plr ) PrivMessage("Invalid player",player);
else if ( !lvl ) PrivMessage("USE : /c setlevel [level]",player);
else
{
PrivMessage("You has setted "+plr+"'s level to "+lvl,player);
Message("**Admin "+player+" has seted "+plr+"'s level to "+lvl);
WriteIniInteger("Accounts.ini",plr.Name,"level",lvl.tointeger());
}
}