SA-MP Forums Archive
interior bug - 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 bug (/showthread.php?tid=609300)



interior bug - YoussefHammad - 10.06.2016

i've made this cmd in-game to make it easier for me to know and decide on interiors
CMD (/setinterior [x] [y] [z] [interiorid])
FUNCTION (teleports you to those co-ordinates and sets your interior to what you want)

now the problem is that whatever the interior id is, i dont see an interior, im just wondering in an empty space and even if im in the sky im standing and not falling, any idea how to solve this ?
Код:
CMD:setinterior(playerid,params[])
{
	if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,RED,"<!>You're not authorized to use this command!");
	new Float:x, Float:y, Float:z, intid;
	if(sscanf(params,"fffi",x,y,z,intid))return SendClientMessage(playerid, RED,"/setinterior [x] [y] [z] [interior id]");
	SetPlayerPos(playerid,x,y,z);
	SetPlayerInterior(playerid,intid);
	return 1;
}
Thanks


Re: interior bug - Alpay0098 - 10.06.2016

Each default maps got their own interior ID.
Check this out :
http://weedarr.wikidot.com/interior
Make sure you're in intended place and intended interior ID.

Take care


Re: interior bug - YoussefHammad - 11.06.2016

thanks , repped