[SOLVED]Problem with command
#1

Hello!
Again I'm stuck with this.

I have a command:

pawn Код:
if (strcmp("/orgkick", cmdtext, true) == 0)
    {
        if(orgleader[playerid] == 0) return SendClientMessage(playerid, COLOR_ORED, "You are NOT an organization leader.");
    }
        else if(orgleader[playerid] == 1)
       
        new text[256];
        format(text,sizeof text,"%s",rest);
        SendClientMessageToAll(COLOR_YELLOW,text);
        print(text);
        return 1;
    }
How could I make if player is orgleader[playerid] == 1, command only works for him. I tested and no effect, but that message You are not a leader works if I am not the leader



EDIT: Already tried this:

pawn Код:
if (strcmp("/orgkick", cmdtext, true) == 0)
    {
        if(orgleader[playerid] == 0) return SendClientMessage(playerid, COLOR_ORED, "You are NOT an organization leader.");
        new text[256];
        format(text,sizeof text,"%s",rest);
        SendClientMessageToAll(COLOR_YELLOW,text);
        print(text);
        return 1;
    }
Reply


Messages In This Thread
[SOLVED]Problem with command - by Jakku - 19.07.2009, 18:34
Re: Problem with command - by James_Alex - 19.07.2009, 18:36
Re: Problem with command - by Jakku - 19.07.2009, 18:37
Re: Problem with command - by James_Alex - 19.07.2009, 18:38
Re: Problem with command - by Jakku - 19.07.2009, 18:43
Re: Problem with command - by yezizhu - 20.07.2009, 01:41
Re: Problem with command - by Jakku - 20.07.2009, 07:15
Re: Problem with command - by yezizhu - 20.07.2009, 07:48
Re: Problem with command - by Jakku - 20.07.2009, 08:04
Re: Problem with command - by Gamer_Z - 20.07.2009, 08:18

Forum Jump:


Users browsing this thread: 1 Guest(s)