Is this possible??! - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Is this possible??! (
/showthread.php?tid=275639)
Is this possible??! -
ServerRestart - 10.08.2011
How can i make a red marker, and when a player walks into it a teleport menu comes up, with teleports?
Can anyone help?
Re: Is this possible??! -
Riddick94 - 10.08.2011
Red marker is Checkpoint.
Example:
pawn Код:
#include "a_samp"
public OnPlayerSpawn(playerid)
{
SetPlayerCheckPoint(playerid, X, Y, Z, Size);
// X, Y, Z - Coordinations of your Checkpoint.
// Size - Size of checkpoint.
return true;
}
public OnPlayerEnterCheckpoint(playerid)
{
SetPlayerPos(playerid, X, Y, Z);
// X, Y, Z - Position to teleport player where you wan't.
// Later you can create again next checkpoint. To make it more dynamic use Streamer Plugin.
return true;
}
Re: Is this possible??! -
MadeMan - 10.08.2011
It is possible.
https://sampwiki.blast.hk/wiki/OnPlayerEnterCheckpoint
Re: Is this possible??! -
ServerRestart - 10.08.2011
Great, thanks
Re: Is this possible??! -
ServerRestart - 10.08.2011
But how would i make it so when the player enters the checkpoint a teleport menu comes up like this *****
*****
*****
***
**
*
*
*
Re: Is this possible??! -
Riddick94 - 10.08.2011
I have already told you!
pawn Код:
#include "a_samp"
public OnPlayerSpawn(playerid)
{
SetPlayerCheckPoint(playerid, X, Y, Z, Size);
// X, Y, Z - Coordinations of your Checkpoint.
// Size - Size of checkpoint.
return true;
}
public OnPlayerEnterCheckpoint(playerid)
{
DisablePlayerCheckpoint(playerid);
// ShowPlayerDialog(playerid, [...]);
// Later you can create again next checkpoint. To make it more dynamic use Streamer Plugin.
return true;
}
Re: Is this possible??! -
ServerRestart - 10.08.2011
Did that, when i run into the marker, it just disappears.
Re: Is this possible??! -
Riddick94 - 10.08.2011
OnPlayerEnterCheckpoint you made DisablePlayerCheckpoint and set player to ShowPlayerDialog? it must work. And make Marker size to 15.0. Then it should work for you. But make for the first Dialog what you wan't with teleports.
Re: Is this possible??! -
ServerRestart - 10.08.2011
EDIT: I fix that bug upabove... now i just need to know were to put the information like the cords, were the player teleports. And like the menu names.
Re: Is this possible??! -
[MG]Dimi - 10.08.2011
public OnDialogResponse