26.11.2012, 19:10
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
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