SA-MP Forums Archive
cmd only for virtual world 2? - 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: cmd only for virtual world 2? (/showthread.php?tid=360114)



cmd only for virtual world 2? - Pro_Scriptor - 16.07.2012

can it be like if a player types /sultan and if he is in virtual world 2 only then he gets a sultan just tell me mode like
Код:
if(isPlayerInVirtualWorld=2
<<i know it is wrong just for exmple


Re: cmd only for virtual world 2? - ViniBorn - 16.07.2012

pawn Код:
if(GetPlayerVirtualWorld(playerid) == 2)



Re: cmd only for virtual world 2? - Ballu Miaa - 16.07.2012

pawn Код:
if(GetPlayerVirtualWorld(playerid) == 2)
and then spawn a sultan for him..


Re: cmd only for virtual world 2? - Pro_Scriptor - 16.07.2012

yea next i can do btw thnx all reped u all


Re: cmd only for virtual world 2? - LukeStephens - 16.07.2012

Quote:
Originally Posted by Pro_Scriptor
Посмотреть сообщение
yea next i can do btw thnx all reped u all
Stop saying 'ya thx reped u all'

you can't give rep


Re: cmd only for virtual world 2? - Pro_Scriptor - 16.07.2012

i do give rep bro


Re: cmd only for virtual world 2? - ikey07 - 16.07.2012

You will also need to use SetVehicleVirtualWorld(SpawnedVehicleID,GetPlayerV irtualWorld(playerid));


Re: cmd only for virtual world 2? - Pro_Scriptor - 18.07.2012

Quote:
Originally Posted by ikey07
Посмотреть сообщение
You will also need to use SetVehicleVirtualWorld(SpawnedVehicleID,GetPlayerV irtualWorld(playerid));
D:\Drivers\unused\XTREME~1\FILTER~1\cs.pwn(92) : error 017: undefined symbol "SpawnedVehicleID"