SA-MP Forums Archive
Interior Issue new scripter need 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Interior Issue new scripter need help (/showthread.php?tid=98790)



Interior Issue new scripter need help - mcydes - 23.09.2009

Here are the exact codes for it. (Might be a coord problem as I did the same with every other interior and it worked, I am new at scripting (not my script) )

#define CP_GANTGYMout 65
#define CP_GANTGYMin 66

new Float:checkCoords[MAX_POINTS][4] = { // (Xmin, Ymin, Xmax, Ymax)
{-2172.7427,679.9586, 55.1621,270.6972}, // CP_GANTGYM
{-2158.6750,643.1421, 1052.3750,1.5951}, // CP_GANTGYM

new Float:checkpoints[MAX_POINTS][3] = { // (X, Y, Z)
{-2172.3647460938,679.98748779297,54.137062072754}, // CP_GANTGYM
{-2158.67578125,642.98266601563,1051.3249511719}, // CP_GANTGYM

CP_GANTGYMout,
CP_GANTGYMin,

case CP_GANTGYMout:
{
SendClientMessage(playerid,COLOR_YELLOW,"(INFO) You have entered the Doherty Imports & Exports' Main HQ.");
SetPlayerPos(playerid,-2161.1467,642.6777,1052.3750);
SetPlayerFacingAngle(playerid,1.4011);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,6);
SetPlayerVirtualWorld(playerid,0);
}
case CP_GANTGYMin:
{
SendClientMessage(playerid,COLOR_YELLOW,"(INFO) You have exited the Doherty Imports & Exports' Main HQ.");
SetPlayerPos(playerid,-2173.3538,683.4761,55.163);
SetPlayerFacingAngle(playerid,1.4011);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);

}

The interior checkpoints doesn't show up. (the exterior one)