16.01.2010, 06:39
Most likely in OnPlayerStateChange. Not too sure, I've never used IsPlayerInRangeOfPoint.
Try this:
Let me know if it works for ya
Try this:
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_ONFOOT) { if(IsPlayerInRangeOfPoint(playerid, 5.0, WALL COORD X, WALL COORD Y, WALL COORD Z)) { SetPlayerPos(playerid,TELEPORT X,TELEPORT Y,TELEPORT Z); }