howto deaktivate right click teleport
#1

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
Reply
#2

Disable fsdebug.
Reply
#3

I disabled Fsdebug but you can still teleport..
Reply
#4

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.
Reply
#5

You sure you have re-compiled your gamemode?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)