18.08.2012, 04:19
(
Последний раз редактировалось waim; 18.08.2012 в 04:53.
)
Hello Guys .. I have a problem with a cmd , when the admins allowed this cmd, only these admins who can use it, Unlike players still disable to them ..
I'll give a rep+ for everyone try to help me and thanks ..
Код:
if(strcmp("/dm", cmdtext, true) == 0) { if(GDM_Var[playerid] == 1)return SCM(playerid,red, "ERROR: You are already in this zone."); if(GDM_Options[playerid] == false) return SCM(playerid,red, "ERROR: This zone is locked."); if(GDM_Options[playerid] == true) return GDM_Var[playerid] = 1; if(GDM_Options[playerid] == true) return SCM(playerid,aqua,"Welcome to the \"DeathMatchGhost\" Zone !"); if(GDM_Options[playerid] == true) return SCM(playerid,aqua,"You Want To Exit? Type [/exdm] !"); GDM_TeleportPlayer(playerid); return true; }
Код:
if(strcmp("/Enabledm", cmdtext, true) == 0) { if(!IsPlayerAdmin(playerid)) return SCM(playerid,red,"ERROR: You are not an admin !"); if(GDM_Options[playerid] == true) return SCM(playerid,red, "ERROR: This zone is already opened."); GDM_Options[playerid] = true; SendClientMessageToAll(blue,"# DeathMatch Zone is opened by the admin, type [/dm] to teleport !"); return true; }