21.08.2012, 16:51
pawn Код:
CMD:commands(playerid,params[])
{
#pragma unused params
if(PlayerInfo[playerid][LoggedIn] && PlayerInfo[playerid][Level] >= 2)
{
SendClientMessage(playerid,MANAGEMENT,"--== [ Help ] ==--");
SendClientMessage(playerid,blue, "For admin commands type: /ahelp");
SendClientMessage(playerid,blue, "Account commands are: /register, /login, /changepass, /stats, /resetstats. Also /time, /report");
SendClientMessage(playerid,blue, "There are 4 levels in crew, are immune from commands");
SendClientMessage(playerid,blue, "Level 1 is V.I.P. For full information on Levels, see the forums for the \"Levels explained\" guide.");
}
else if(PlayerInfo[playerid][LoggedIn] && PlayerInfo[playerid][Level] < 2)
{
SendClientMessage(playerid,green, "*** /register, /login, /report, /stats, /time, /changepass, /resetstats, /getid");
SendClientMessage(playerid,green, "*** /tp /ctp /dive /cardive /taxi /admins /brb /afk");
}
else if(PlayerInfo[playerid][LoggedIn] == 0)
{
SendClientMessage(playerid,green, "*** Your commands are: /time, /getid (You are not logged in, log in for more commands)");
} return 1;
}
pawn Код:
SendClientMessage(playerid,green, "*** /register, /login, /report, /stats, /time, /changepass, /resetstats, /getid");
SendClientMessage(playerid,green, "*** /tp /ctp /dive /cardive /taxi /admins /brb /afk");
}
Next thing
pawn Код:
CMD:level5(playerid,params[]) {
#pragma unused params
if(PlayerInfo[playerid][Level] >= 5)
{
SendClientMessage(playerid,MANAGEMENT," ---= Level 5 Management Commands =---");
SendClientMessage(playerid,lightblue,"/unloadfs, /changemode, /gmx");
}
return 1;
I still cannot find a mistake here.
And almost every admin cmd doesnt work, command which are meant for players do work.