24.07.2010, 15:55
erm to make the commands only for admins add this above the command like so ;
this function
so a command will look like this
P.S the best way to find it is to create a teleport to an object there then just like try jump out of the object lol
this function
Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000AA, "This command can only be used by an admin!!");
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/9maino", true)==0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000AA, "This command can only be used by an admin!!"); MoveObject (gate1,1527.228515625, 663.748046875, 3.1211261749268,2); SendClientMessage(playerid, COLOR_RED, "Main Gate Opened"); return 1; }