Small question(s)
#2

Change your code to this

pawn Код:
if(strcmp(cmdtext, "/h2", true) == 0)
{
    if(IsPlayerAdmin(playerid))
    {
        MoveObject(GateH,-1770.56152344,984.83020020,25.154365545, 3);
        return 1;
    }
    else
    {
        SendClientMessage(playerid, 0xDEEE20FF, "You must be an admin to use this command");
    }
    return 1;
}
That will make the command work just for an RCON administrator that is Logged in
Reply


Messages In This Thread
Small question(s) - by FrostDoggy - 01.09.2011, 17:33
Re: Small question(s) - by PhoenixB - 01.09.2011, 17:37
Re: Small question(s) - by RyDeR` - 01.09.2011, 17:37
Re: Small question(s) - by [MWR]Blood - 01.09.2011, 17:37
Re: Small question(s) - by Kwarde - 01.09.2011, 17:39
Re: Small question(s) - by [MWR]Blood - 01.09.2011, 17:41

Forum Jump:


Users browsing this thread: 6 Guest(s)