[SOLVED] command with else etc.
#5

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/acp", cmdtext, true, 4) == 0) // Don't use 10 when the command text is 4 in total with "/".
    {
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You need to be admin for this command");
    else
    ShowMenuForPlayer(AdminMenu,playerid);
    return 1;
    }
/*=======================================================================================================================================*/
    }
    return 0;
}
Reply


Messages In This Thread
[SOLVED] command with else etc. - by security - 06.01.2010, 17:54
Re: command with else etc. - by GTAguillaume - 06.01.2010, 17:55
Re: command with else etc. - by ClanDBZVegeta - 06.01.2010, 18:00
Re: command with else etc. - by security - 06.01.2010, 18:01
Re: command with else etc. - by [03]Garsino - 06.01.2010, 18:04
Re: command with else etc. - by security - 06.01.2010, 18:07
Re: command with else etc. - by security - 06.01.2010, 18:08
Re: command with else etc. - by [03]Garsino - 06.01.2010, 18:09
Re: command with else etc. - by adsy - 06.01.2010, 18:09
Re: command with else etc. - by security - 06.01.2010, 18:15

Forum Jump:


Users browsing this thread: 1 Guest(s)