RemoveBuilding for a VirtualWord
#1

Hi, players for RemoveBuilding 0 status in case, status should bring 1/2/3 etc. how can i do, it 's the way how ?
Reply
#2

I didn't know it's possible to change the virtual world in the RemoveBuildingForPlayer parameters..I'd say it's not possible maybe someone else has a different view or maybe I am just not thinking well since it's midnight :P
Reply
#3

I think a building is removed from all worlds, with no way to specify individual worlds.
Reply
#4

You can remove the building and then recreate it as a CreateDynamicObject in certain virtual worlds.
Код:
native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1);
Reply
#5

Quote:
Originally Posted by CalvinC
Посмотреть сообщение
You can remove the building and then recreate it as a CreateDynamicObject in certain virtual worlds.
Код:
native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_OBJECT_SD, Float:drawdistance = STREAMER_OBJECT_DD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1);
I could not find a way for a long time. :/

>> CalvinC
but first world (ID: 0) It does not appear RemoveBuilding ? on condition that the first world How do i add second world(ID: 1) ?
Код:
CreateDynamicObject(19552, 258.15630, 15000.80660, 15.00000,   0.00000, 0.00000, 0.00000, .worldid = 1);
Well; how to do it VirtualWorld (ID: 2) ?
Код:
RemoveBuildingForPlayer(playerid, 7983, 1070.3203, 1057.4453, 32.7422, 0.25);
Reply
#6

Redefine SetPlayerVirtualWorld and create a callback for it, OnPlayerVirtualWorldChange. On the callback, remove the building for the player if it's a certain vw and then recreate building if not.
Reply
#7

Quote:
Originally Posted by introzen
Посмотреть сообщение
Redefine SetPlayerVirtualWorld and create a callback for it, OnPlayerVirtualWorldChange. On the callback, remove the building for the player if it's a certain vw and then recreate building if not.
I will try, very thanks introzen.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)