31.12.2017, 14:22
Quote:
No lol you can't do that, it HAS to be under OnPlayerConnect, Also the reconnect crash is mentioned in the samp wiki when you remove a building twice for a player he crashes.
|
The only work-around that I can find is mentioned in the thread I linked above:
Quote:
I used a similar approach on a stunt server and it worked flawless:
1) teleport the player on this object, right above the sea level 2) wait 1-2 seconds (IIRC, I made use of player's ping and/or fps for more accurate results) 3) use GetPlayerAnimationIndex() to detect if player was swimming or not -> if player isn't swimming -> call remove building code, INCLUDING that object -> else -> skip I also had a library based on this, but I can't find it right now. |