Is this possible??!
#1

How can i make a red marker, and when a player walks into it a teleport menu comes up, with teleports?



Can anyone help?
Reply
#2

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;
}
Reply
#3

It is possible.

https://sampwiki.blast.hk/wiki/OnPlayerEnterCheckpoint
Reply
#4

Great, thanks
Reply
#5

But how would i make it so when the player enters the checkpoint a teleport menu comes up like this *****
*****
*****
***
**
*
*
*
Reply
#6

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;
}
Reply
#7

Did that, when i run into the marker, it just disappears.
Reply
#8

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

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

public OnDialogResponse
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)