Help me please!
#4

Quote:
Originally Posted by ironmen
Посмотреть сообщение
I know this but i need how to make disable/enable command that enables/disables players from TP to you
You can use a variable to define it for eg:
Код:
new notp; //  top of your script
and then in you /goto cmd:
Код:
if(notp == 1)
{
   SendClientMessage(playerid, COL_RED, "/goto cmd has been Disabled by Admins");// choose your own color         variables and message its just as Example. 
}
else 
// your code here
notp cmd can be made like:
Код:
CMD:gos(playerid, params[]) // again just an example
{
 if(notp == 0)
 {
   notp =1;
  SendClientMessage(playerid, COL_EERROR, "You have Enabled /goto command"); // Just an example
  }
  else if(notp == 1)
   {
     notp = 0;
    SendClientMessage(playerid, COL_EERROR, "You have Disabled /goto command"); // Just an example
  }
 return 1;
}
Remember its just an example you can change it what ever you like. And dont forget to rep+ me if this works for you! **CHEERS**
Reply


Messages In This Thread
Help me please! - by ironmen - 07.06.2015, 21:10
Re: Help me please! - by Sithis - 07.06.2015, 21:48
Re: Help me please! - by ironmen - 08.06.2015, 05:24
Re: Help me please! - by GTLS - 08.06.2015, 06:26
Re: Help me please! - by ironmen - 08.06.2015, 07:03
Re: Help me please! - by GTLS - 08.06.2015, 08:29

Forum Jump:


Users browsing this thread: 2 Guest(s)