Interior not working help - 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: Interior not working help (
/showthread.php?tid=392689)
Interior not working help -
Riggster - 15.11.2012
Hi I have made a int that works to go in but then I cant leave I have went over the script time and time again and I dont know what to do
new pcompany;//Packing company interior
pcompany= CreatePickup(1272,1,2142.5378,-2294.0305,20.6760);
if (strcmp("/enter", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,5.0,2142.5195,-2294.0950,20.6760))
SetPlayerInterior(playerid, 17);
SetPlayerPos(playerid, 377.0370,-178.4577,1000.632

;
return 1;
}
if (strcmp("/exit", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10,377.0370,-178.4577,1000.632

)
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2142.5195,-2294.0950,20.6760);
return 1;
}