[FS/MAP] Adminhouse9, San Fiero
#9

erm to make the commands only for admins add this above the command like so ;

this function
Код:
 if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000AA, "This command can only be used by an admin!!");
so a command will look like this

Код:
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;
       }
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
Reply


Messages In This Thread
[FS/MAP] Adminhouse9, San Fiero - by reallifescript - 07.08.2008, 07:29
Re: [FS/MAP] Adminhouse9, San Fiero - by s1k - 11.08.2008, 21:19
Re: [FS/MAP] Adminhouse9, San Fiero - by Maikel - 12.08.2008, 14:25
Re: [FS/MAP] Adminhouse9, San Fiero - by andy reid - 20.01.2009, 00:12
Re: [FS/MAP] Adminhouse9, San Fiero - by SLaY3R - 18.03.2009, 20:50
Re: [FS/MAP] Adminhouse9, San Fiero - by *ToM* - 18.03.2009, 21:12
Re: [FS/MAP] Adminhouse9, San Fiero - by OGganza - 21.03.2009, 01:16
Re: [FS/MAP] Adminhouse9, San Fiero - by Holden - 21.03.2009, 09:21
Re: [FS/MAP] Adminhouse9, San Fiero - by a!DaN)_)-) - 24.07.2010, 15:55

Forum Jump:


Users browsing this thread: 1 Guest(s)