21.06.2013, 07:48
So, I've just been adding
around my admin commands because I have implemented a developer system. There are 3 different types of levels. 1 = Developer, 2 = Senior Developer and 3 = Head Developer. For some reason for certain commands that with
and
do not let level 3 Head Developer do the commands that level 1 and 2 do. All it says to me is "** You are not authorized to use that command !" Here is an example of one of the commands.
Any ideas why?
Код:
|| PlayerInfo[playerid][pDeveloper] >= 1)
Код:
|| PlayerInfo[playerid][pDeveloper] >= 1)
Код:
|| PlayerInfo[playerid][pDeveloper] >= 2)
Код:
if(strcmp(cmd, "/gotols", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 3 || PlayerInfo[playerid][pDeveloper] >= 1) { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 1529.6,-1691.2,13.3); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; LinkVehicleToInterior(tmpcar, 0); SetPlayerVirtualWorld(playerid, 0); OnPlayerExitFood(playerid); new y, m, d; new h,mi,s; getdate(y,m,d); gettime(h,mi,s); format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Teleported Himself to Los Santos",d,m,y,h,mi,s,sendername); TelesLog(string); } else { SafeSetPlayerPos(playerid, 1529.6,-1691.2,13.3); SetPlayerVirtualWorld(playerid, 0); } format(string, sizeof(string), "[ADMIN]: %s Has Teleported Himself to Los Santos.", sendername); ABroadCast(COLOR_LIGHTRED,string, 5); SafeSetPlayerInterior(playerid,0); DisablePlayerCheckpoint(playerid); new y, m, d; new h,mi,s; getdate(y,m,d); gettime(h,mi,s); format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Teleported Himself to Los Santos",d,m,y,h,mi,s,sendername); TelesLog(string); } else { SendClientMessage(playerid, COLOR_GRAD1, "** You are not authorized to use that command !"); return 1; } } return 1; }