open.mp forum
[Suggestion] Allow RemoveBuildingForPlayer to be virtual word dependant - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: open.mp (https://forum.open.mp/forumdisplay.php?fid=40)
--- Forum: Questions and Suggestions (https://forum.open.mp/forumdisplay.php?fid=42)
--- Thread: [Suggestion] Allow RemoveBuildingForPlayer to be virtual word dependant (/showthread.php?tid=1082)



Allow RemoveBuildingForPlayer to be virtual word dependant - Mave - 2020-05-11

With SA-MP once you "remove a building" it's gone in every single VW.



Thanks in advance for considering this suggestion!


RE: Allow RemoveBuildingForPlayer to be virtual word dependant - savvin - 2020-05-11

It disappears because you remove the object completely from the game. Logically, no?


RE: Allow RemoveBuildingForPlayer to be virtual word dependant - EvilShadeZ - 2020-05-11

I would rather suggest RestoreObjectForPlayer(playerid,object) or RestoreAllObjects(playerid) when open.mp client is launched. With these you can remove/restore when necessary (even in worlds)


RE: Allow RemoveBuildingForPlayer to be virtual word dependant - Pinch - 2020-05-12

(2020-05-11, 12:34 PM)EvilShadeZ Wrote: I would rather suggest RestoreObjectForPlayer(playerid,object) or RestoreAllObjects(playerid) when open.mp client is launched. With these you can remove/restore when necessary (even in worlds)



It'd be same as if you created MAX_OBJECTS size array and stored such data so go ahead, it' already possible in pure PAWN if y guys really need this?:"D


RE: Allow RemoveBuildingForPlayer to be virtual word dependant - EvilShadeZ - 2020-05-12

(2020-05-12, 07:42 AM)Pinch Wrote:
(2020-05-11, 12:34 PM)EvilShadeZ Wrote: I would rather suggest RestoreObjectForPlayer(playerid,object) or RestoreAllObjects(playerid) when open.mp client is launched. With these you can remove/restore when necessary (even in worlds)



It'd be same as if you created MAX_OBJECTS size array and stored such data so go ahead, it' already possible in pure PAWN if y guys really need this?:"D



Not necessarily possible. Yes, you can replace it with CreateObject or maybe a streamed object, but both are non-perfect solutions. One is eating in your global object limit, while the other one can have streaming issues, especially when combined with SetPlayerPos.