20.06.2011, 12:29
#include <a_samp>
#include <streamer>
new OneSecTimer;
public OnFilterScriptInit()
{
OneSecTimer = 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;
}
#include <streamer>
new OneSecTimer;
public OnFilterScriptInit()
{
OneSecTimer = 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;
}