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=377664)



interior bug - HardBoy - 15.09.2012

hey guys....

i have a small problem with my interiors in my CnR server
i have created a bank in ls and sf and when i exit in sf because there is 2 checkpoints for exit stuck in each other because same interior
when someone enter ls bank, when he exits he exits in sf bank, but if he jumped in the middle of the checkpoint in ls bank he exits to ls

how could i make in ls and sf same interior looking but not stuck to each other
when someone enter ls bank he be in ls bank
when someone enter sf bank he in in sf bank

he exits from the same bank he enter
and players see each other in the same bank city that they entered
if someone entered ls bank they see only ppl in the ls bank
etc...


Re: interior bug - detter - 15.09.2012

When you enter LS bank you put this
Код:
SetPlayerVirtualWorld(playerid ,10);
and on Exit
Код:
SetPlayerVirtualWorld(playerid ,0);
When you enter SF bank you put this
Код:
SetPlayerVirtualWorld(playerid ,11);
and on Exit
Код:
SetPlayerVirtualWorld(playerid ,0);
and you could use this to remove pickups from interiros
Код:
DisableInteriorEnterExits();



Re: interior bug - Stanford - 15.09.2012

In general ======> Remake the exits and set a different virtual worlds.


Re: interior bug - HardBoy - 15.09.2012

stell bugged
see what i did right or no?

http://grabimagehost.hourb.com/?v=111.png


Re: interior bug - detter - 15.09.2012

you should check on exit checkpoint what is players virtual world
Код:
if(GetPlayerVirtualWorld(playerid) == 10 )
{
   // here you put your LS cordinate
}
else if ( GetPlayerVirtualWorld(playerid) == 11)
{
   // here SF
}
with this you can only have 1 exitcheck point...