This is a on marker telePORT i need help
#1

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)