Help me please! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me please! (
/showthread.php?tid=576946)
Help me please! -
ironmen - 07.06.2015
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!!!!!
Re: Help me please! -
Sithis - 07.06.2015
https://sampwiki.blast.hk/wiki/GetPlayerPos
https://sampwiki.blast.hk/wiki/SetPlayerPos
Re: Help me please! -
ironmen - 08.06.2015
I know this but i need how to make disable/enable command that enables/disables players from TP to you
Re: Help me please! -
GTLS - 08.06.2015
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**
Re: Help me please! -
ironmen - 08.06.2015
Thanks found the problem i defined Goto and put if(goto
Re: Help me please! -
GTLS - 08.06.2015
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!