SA-MP Forums Archive
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_OBJECT0playerid);
    
Streamer_SetVisibleItems(STREAMER_TYPE_PICKUP0playerid);
    
Streamer_SetVisibleItems(STREAMER_TYPE_MAP_ICON0playerid);
    
Streamer_SetVisibleItems(STREAMER_TYPE_3D_TEXT_LABEL0playerid);
    
SetPlayerVirtualWorld(playerid,playerid+20000);
    return 
1;
}

CMD:showall(playerid){
    
Streamer_SetVisibleItems(STREAMER_TYPE_OBJECT500playerid);
    
Streamer_SetVisibleItems(STREAMER_TYPE_PICKUP4096playerid);
    
Streamer_SetVisibleItems(STREAMER_TYPE_MAP_ICON100playerid);
    
Streamer_SetVisibleItems(STREAMER_TYPE_3D_TEXT_LABEL1024playerid);
    
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(modelidFloat:xFloat:yFloat:zFloat:rxFloat:ryFloat:rzworldidinteriorid); 
STREAMER


Re: Clearworld(?) - Amunra - 24.05.2016

Quote:
Originally Posted by Slawiii
Посмотреть сообщение
use CreateDynamicObject and change the Object World too
PHP код:
CreateDynamicObject(modelidFloat:xFloat:yFloat:zFloat:rxFloat:ryFloat:rzworldidinteriorid); 
STREAMER
I Agree...
Make the Diferent world !!


Re: Clearworld(?) - blankse - 24.05.2016

work! thanks all!