06.11.2010, 16:40
Alright so on my RP server we for sure have a /prison CMD which sets a said person into a prison cell for breaking rules.
The problem is, whenever we do that the said person falls through the ground because the prison interior takes 1 second to be displayed. Same if you /enter the prison. You have a 80% chance of falling through the ground because the whole prison appears 1 sec later.
This is just a part of the enter command. I have no idea why the whole prison itself takes a seocnd to load though.
Any ideas?
The problem is, whenever we do that the said person falls through the ground because the prison interior takes 1 second to be displayed. Same if you /enter the prison. You have a 80% chance of falling through the ground because the whole prison appears 1 sec later.
Код:
else if(IsPlayerInRangeOfPoint(playerid,3.0,201.3625,1869.4546,13.1406)) //Prison { SetPlayerInterior(playerid, 1); SetPlayerPos(playerid, 1804.14,-1576.62,1637.71); GameTextForPlayer(playerid, "~w~Detention Facility", 5000, 1); SetPlayerFacingAngle(playerid, 90.0000); SetCameraBehindPlayer(playerid); }
Any ideas?