SA-MP Forums Archive
virtual world problems - 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: virtual world problems (/showthread.php?tid=400458)



virtual world problems - GoldZoroGrab - 18.12.2012

hey.....

i have 3 banks

.Los Santos
.San Fierro
.Las Venturas


For Example robber in Los Santos Bank

And Cops In San Fierro Bank
if cop did /arrest it will arrest the player that is in Los Santos Bank cops can arrest near players and thats happening so vritual worlds arent making people far

so how could i make if player is in virtual 1 he can't arrest 2 etc...

sorry for bad english


Re: virtual world problems - Nordic - 18.12.2012

you check if the cop and the robber are in the same virtual world.


Re: virtual world problems - GoldZoroGrab - 18.12.2012

i knew problem

give me code


if(player is in same virtual of ID)
{
}

then it will work


Re: virtual world problems - thefatshizms - 18.12.2012

pawn Код:
if(GetPlayerVirtualWorld(copid) == GetPlayerVirtualWorld(playerid))
{
    //code
}



Re: virtual world problems - GoldZoroGrab - 19.12.2012

aw thxx broo