Problem with an allowed cmd by Admin
#1

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 ..

Код:
    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;
	}
I'll give a rep+ for everyone try to help me and thanks ..
Reply
#2

whats errors or warnings ?
Buddy explain good Please
Reply
#3

Quote:
Originally Posted by Avi57
Посмотреть сообщение
whats errors or warnings ?
Buddy explain good Please
No Errors, No Warnings .. When I Enabled the cmd to use, Only me who can use it, other players No, the cmd still disabled .. Sorry my bad English
Reply
#4

Because u did IsPlayerAdmin !
everyone is not admin dude !
Reply
#5

I think u didn't understand me .. This is a Deathmatch, There are 2 cmds : /enabledm and /disabledm .. When the rcons Enabled the deathmach, the players type /dm and they got " This zone is locked " even if the Admin Enabled it .. but the Admin can go, understand ?
Reply
#6

Please HELP !
Reply
#7

pawn Код:
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)
        {
            GDM_Var[playerid] = 1;
            SCM(playerid,aqua,"Welcome to the \"DeathMatchGhost\" Zone !");
            SCM(playerid,aqua,"You Want To Exit? Type [/exdm] !");
            GDM_TeleportPlayer(playerid);
        }
        return true;
    }
Reply
#8

I've already try with this code, and I'm still have the same problem
Reply
#9

If you do /dm, any message like 'Welcome to the \"DeathMatchGhost\" Zone' or something like that?
Reply
#10

I got : "This Zone is locked" for Players

Rcon Got Welcome and Teleport ..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)