Help me please!
#1

Hello!
Need help!
How to make /goto(playerid) command with /gos command that disables/enables players from teleporting to you !
BUT PLEASE EXPLAIN NOT CODE!!!!!
Reply
#2

https://sampwiki.blast.hk/wiki/GetPlayerPos
https://sampwiki.blast.hk/wiki/SetPlayerPos
Reply
#3

I know this but i need how to make disable/enable command that enables/disables players from TP to you
Reply
#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
#5

Thanks found the problem i defined Goto and put if(goto
Reply
#6

Quote:
Originally Posted by ironmen
Посмотреть сообщение
Thanks found the problem i defined Goto and put if(goto
Good to know you solved it by your self!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)