30.07.2010, 11:15
pawn Код:
forward DoorCheck(playerid);
public DoorCheck(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, doorx, doory, doorz, 1)
{
SetPlayerPos(playerid, yourx, youry, yourz);
SetPlayerFacingAngle(playerid, facingangle); // Remove if not needed :)
}
}
pawn Код:
SetTimerEx("DoorCheck(playerid)", 3000, true, "i", playerid);