31.12.2017, 14:17
Quote:
When I Put RemoveBuildingForPlayer Under On Player Connect Game Crashes While Reconnecting After Server Restart.So i Thought Of Putting It Under On Gamemodinit
|
From wiki: When removing the same object for a player, they will crash. Commonly, players crash when reconnecting to the server because the server removes buildings on OnPlayerConnect.
https://sampwiki.blast.hk/wiki/RemoveBuildingForPlayer
As far as I know there is no clean way of remedying this, have a read of this thread, it may help you:
https://sampforum.blast.hk/showthread.php?tid=485132&page=2
The first parameter of RemoveBuildingForPlayer is the playerid, so you're probably best not to place it under OnGameModeInit.