RemoveBuildingForPlayer after gmx
#1

If i use RemoveBuildingForPlayer then restart(gmx), the buildings are still removed.

So in my gamemode, it still removes buildings Onplayerconnect but There is no buildings to remove anymore so it crashes ( my game freezes ) thats it

i have to exit and connect again happens usually 2/3 time ..
Reply
#2

I can confirm this one.
Reply
#3

Quote:
Originally Posted by DaRk_RaiN
Посмотреть сообщение
I can confirm this one.
Me too, can be fixed by using a timer.
Reply
#4

SA-MP remove its from (GTA:SA) memory, and there is no restore functions. (Would be very easy, check MTA source code) So this will be removed till you aren't relog.
Reply
#5

Confirm

My Solution: I need to save a var after gmx, and reset var with a 20 sec timer on OnGameModeInit, if var is true RemoveBuldingForPlayer is not called on OnPlayerConnect.




Sorry for my bad English
Reply
#6

Gmx isn't the best way of restarting a server it gives me some minor complications, so instead I use /rcon exit give that a shot and see
Reply
#7

Quote:
Originally Posted by enigma513
Посмотреть сообщение
Confirm

My Solution: I need to save a var after gmx, and reset var with a 20 sec timer on OnGameModeInit, if var is true RemoveBuldingForPlayer is not called on OnPlayerConnect.




Sorry for my bad English
Tried that, works sometimes, but fails badely on others.
After a while each player connected will freeze on random times in random areas.
Reply
#8

i dont encounter this.. but i got removebuilding and i place it under OnplayerConnect.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)