01.09.2011, 17:37
Change your code to this
That will make the command work just for an RCON administrator that is Logged in
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;
}