Using one interior multiple times[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: Using one interior multiple times[HELP] (
/showthread.php?tid=153867)
Using one interior multiple times[HELP] -
FabianoC - 11.06.2010
I have a house made, on an interior, virtualworld 0 and interior 3 if i'm right.
Now i wanted to make some more houses around, with the same interior, but it makes me spawn at only one exit each time..(/exit)
I've try'd alot, but I really don't know how to fix this.
Is it something i should edit in the GM or something with the worlds or interiors...
Thanks in Advance.
Re: Using one interior multiple times[HELP] -
LTomi - 11.06.2010
Check the player's virtual world in the /exit command if the exit positions are the same.
pawn Code:
if(IsPlayerInRangeOfPoint( ... ) //The exit position
{
if(GetPlayerVirtualWorld(playerid) == 0)
{
//Do something if player's VW is 0
}
else if(GetPlayerVirtualWorld(playerid) == 1)
{
//Do something if player's VW is 1
}
}
Re: Using one interior multiple times[HELP] -
FabianoC - 11.06.2010
Alright, and where do i have to place this in the GM?
And is that to be placed for every single house with same interior ID's?
ty.