24.10.2009, 10:10
Look. I'm creating entrances and exits with PlayerToPoint.
Here is my code:
Top of script:
After OnGameModeInit
And anywhere in GM:
Everythings works, but just for me. I can enter in DMV, but other peoples can't. Where is the problem?
Thanks for help.
Here is my code:
Top of script:
Код:
forward Doors(playerid);
Код:
SetTimer("Doors",1000,true);
Код:
public Doors(playerid) { if(PlayerToPoint(1,playerid,-2026.5660,-102.0659,35.1641)) // DMV { SetPlayerInterior(playerid,3); SetPlayerPos(playerid,1494.4567,1305.2220,1093.2891); SetPlayerFacingAngle(playerid,359.6967); return 1; } else if(PlayerToPoint(1,playerid,1494.4486,1303.5806,1093.2891)) { SetPlayerInterior(playerid,0); SetPlayerPos(playerid,-2026.5931,-100.3700,35.1641); SetPlayerFacingAngle(playerid,360); return 1; } return 1; }
Thanks for help.