Clearworld(?) - 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: Clearworld(?) (
/showthread.php?tid=607801)
Clearworld(?) -
blankse - 24.05.2016
Hello. How to create clearworld cmd?
hide objects(mappings), hide cars, hide players. How? im using zcmd.
Thanks!
Re: Clearworld(?) -
Dayrion - 24.05.2016
Set a virtual diffйrant than the original. I don't know if objects will be hice like vehicle. Just be careful, you won't see any players who isn't in your virtual world.
Use SetPlayerVirtualWorld
Re: Clearworld(?) -
Slawiii - 24.05.2016
https://sampwiki.blast.hk/wiki/SetPlayerVirtualWorld
Re: Clearworld(?) -
MBilal - 24.05.2016
Quote:
Originally Posted by Dayrion
Set a virtual diffйrant than the original. I don't know if objects will be hice like vehicle. Just be careful, you won't see any players who isn't in your virtual world.
Use SetPlayerVirtualWorld
|
Agree with Dayrion . I think you can't hide objects.
Re: Clearworld(?) -
AbyssMorgan - 24.05.2016
PHP код:
CMD:hideall(playerid){
Streamer_SetVisibleItems(STREAMER_TYPE_OBJECT, 0, playerid);
Streamer_SetVisibleItems(STREAMER_TYPE_PICKUP, 0, playerid);
Streamer_SetVisibleItems(STREAMER_TYPE_MAP_ICON, 0, playerid);
Streamer_SetVisibleItems(STREAMER_TYPE_3D_TEXT_LABEL, 0, playerid);
SetPlayerVirtualWorld(playerid,playerid+20000);
return 1;
}
CMD:showall(playerid){
Streamer_SetVisibleItems(STREAMER_TYPE_OBJECT, 500, playerid);
Streamer_SetVisibleItems(STREAMER_TYPE_PICKUP, 4096, playerid);
Streamer_SetVisibleItems(STREAMER_TYPE_MAP_ICON, 100, playerid);
Streamer_SetVisibleItems(STREAMER_TYPE_3D_TEXT_LABEL, 1024, playerid);
SetPlayerVirtualWorld(playerid,0);
return 1;
}
Re: Clearworld(?) -
blankse - 24.05.2016
oh, thanks bro(AbyssMorgan)!
Re: Clearworld(?) -
blankse - 24.05.2016
Works, but objects didn't hide. idk why..
Re: Clearworld(?) -
Slawiii - 24.05.2016
use CreateDynamicObject and change the Object World too
PHP код:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid, interiorid);
STREAMER
Re: Clearworld(?) -
Amunra - 24.05.2016
Quote:
Originally Posted by Slawiii
use CreateDynamicObject and change the Object World too
PHP код:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid, interiorid);
STREAMER
|
I Agree...
Make the Diferent world !!
Re: Clearworld(?) -
blankse - 24.05.2016
work! thanks all!