howto deaktivate right click teleport - 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: howto deaktivate right click teleport (
/showthread.php?tid=395542)
howto deaktivate right click teleport -
janpplayer - 26.11.2012
hello how can I disable the right click teleport
until now I have below:
OnGameModeInit ();
{
AllowAdminTeleport (false);
}
OnPlayerConnect (playerid);
{
AllowPlayerTeleport (playerid, false);
}
that is displayed in the server log:
21:03:03] Blank Gamemode by your name here
[21:03:03] ----------------------------------
[21:03:03] Number of vehicle models: 0
[21:03:03] AllowPlayerTeleport (): function is deprecated. Please see OnPlayerClickMap ()
[21:03:11] AllowPlayerTeleport (): function is deprecated. Please see OnPlayerClickMap ()
But when I go to the map and put a marker I will immediately be teleported there
what can I do?
My Server Version is 0.3e
Re: howto deaktivate right click teleport -
Vince - 26.11.2012
Disable fsdebug.
AW: howto deaktivate right click teleport -
janpplayer - 26.11.2012
I disabled Fsdebug but you can still teleport..
Re: howto deaktivate right click teleport -
kaisersouse - 26.11.2012
Do nothing in OnPlayerClickMap
https://sampwiki.blast.hk/wiki/OnPlayerClickMap
Код:
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
return 1;
}
Also go through ALL of your filterscripts and make sure OnPlayerClickMap isn't being used for something.
Re: howto deaktivate right click teleport -
TheArcher - 26.11.2012
You sure you have re-compiled your gamemode?