10.08.2011, 14:42
How can i make a red marker, and when a player walks into it a teleport menu comes up, with teleports?
Can anyone help?
Can anyone help?
#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;
}
#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;
}