SA-MP Forums Archive
This is a on marker telePORT i need help - 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: This is a on marker telePORT i need help (/showthread.php?tid=263051)



This is a on marker telePORT i need help - windartist - 20.06.2011

#include <a_samp>
#include <streamer>

new OneSecTimer;

public OnFilterScriptInit()
{
On‌eSecTimer = SetTimer("OneSecUpdate",1000,true);
return 1;
}

public OnFilterScriptExit()
{
KillTimer(OneSecTimer);
return 1;
}

forward OneSecUpdate();
public OneSecUpdate()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;

if(IsPlayerInRangeOfPoint(i,2,-2469.9961,1547.0928,23.6484))
{
SetPlayerPos(playerid, 415.1259, -2147.6692, 430.3001);
}
}
return 1;
}


Re: This is a on marker telePORT i need help - sansko - 20.06.2011

what is the problem (and post in [pawn] tags)


Re: This is a on marker telePORT i need help - Mean - 20.06.2011

Use checkpoints?

pawn Код:
#include < a_samp >

public OnPlayerSpawn( playerid ) {
    SetPlayerCheckpoint( playerid, -2469.9961,1547.0928,23.6484, 2.0 );
}

public OnPlayerEnterCheckpoint( playerid ) {
    SetPlayerPos( playerid, 415.1259, -2147.6692, 430.3001 );
}