Posts: 308
Threads: 109
Joined: Oct 2010
Reputation:
0
how can i create a checkpoint that will teleport you somewhere or open a dialog or something?
Posts: 18
Threads: 3
Joined: Feb 2011
Reputation:
0
// In this example the player's checkpoint will be set when they spawn.
// On entering the checkpoint they will receive $1000 and the checkpoint will be disabled.
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid,x,y,z,size of the checkpoint [example 3.0]);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
GivePlayerMoney(playerid, 1000);
DisablePlayerCheckpoint(playerid);
return 1;
}
If you need that.
Posts: 18
Threads: 3
Joined: Feb 2011
Reputation:
0
Sry for the duble post
if you need the teleport you need to change this:
public OnPlayerEnterCheckpoint(playerid)
{
SetPlayerPos(x,z,y);
DisablePlayerCheckpoint(playerid);
return 1;
}