24.05.2016, 05:45
Hello. How to create clearworld cmd?
hide objects(mappings), hide cars, hide players. How? im using zcmd.
Thanks!
hide objects(mappings), hide cars, hide players. How? im using zcmd.
Thanks!
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;
}
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid, interiorid);
use CreateDynamicObject and change the Object World too
PHP код:
|