Clearworld(?)
#1

Hello. How to create clearworld cmd?
hide objects(mappings), hide cars, hide players. How? im using zcmd.
Thanks!
Reply
#2

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
Reply
#3

https://sampwiki.blast.hk/wiki/SetPlayerVirtualWorld
Reply
#4

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.
Reply
#5

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;

Reply
#6

oh, thanks bro(AbyssMorgan)!
Reply
#7

Works, but objects didn't hide. idk why..
Reply
#8

use CreateDynamicObject and change the Object World too
PHP код:
CreateDynamicObject(modelidFloat:xFloat:yFloat:zFloat:rxFloat:ryFloat:rzworldidinteriorid); 
STREAMER
Reply
#9

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 !!
Reply
#10

work! thanks all!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)