SA-MP Forums Archive
[HELP] Interior Exit/enter - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] Interior Exit/enter (/showthread.php?tid=645206)



[HELP] Interior Exit/enter - 3agle - 22.11.2017

Hello, I made Interior Exit/Enter for Gangs,And its defined as if player press "F" or "Enter"..
Now, I go on server, and it doesn't want to enter / exit in interior, none of above...
Код:
  if(IsPlayerInRangeOfPoint(playerid,3.0,-2172.4609,679.8906,55.1614)) // ENTER YG Int
		{
		SetPlayerPos(playerid,93.5735,643.0516,1392.0549); //Gotovo
		SetCameraBehindPlayer(playerid);
		SetPlayerFacingAngle(playerid,180);
		TogglePlayerControllable(playerid,0);
		GameTextForPlayer(playerid,"           ~w~YG",3000,6);
		SetTimerEx("Unfreeze",1200,false,"i",playerid);
		}
		if(IsPlayerInRangeOfPoint(playerid,3.0,93.5735,643.0516,1392.0549)) // EXIT iz YG Int
		{
		SetPlayerPos(playerid,-2172.4609,679.8906,55.1614); //Gotovo
		SetCameraBehindPlayer(playerid);
		SetPlayerFacingAngle(playerid,180);
		TogglePlayerControllable(playerid,0);
		GameTextForPlayer(playerid,"           ~w~Grad",3000,6);
		SetTimerEx("Unfreeze",1200,false,"i",playerid);
		}