27.04.2009, 11:03
Quote:
Originally Posted by maij
world boundries do not help on this bug, i have a certain code that programmaticly allows me airbreak, AND setting the speed.
now i "accidently" put the speed to 99999, so out of world boundries. i know exactly what u mean, and its crazy, i needed to reset my whole account because of that.. just 1 thing i am curious to, why does it crashes ur whole server? the bug only effects the person who is actualy over there. what u can do, is creating a teleport command to teleport someone to somewhere on the map, with a check of coordinates. for the rest, there is no way to fix it besides the samp server builders fix it, or san andreas itself fix it. and i cant imagine rockstarr doing that. |
Try this code:
pawn Код:
forward CheckPlayerWorldBounderys();
public OnGameModeInit()
{
SetTimer(CheckPlayerWorldBounderys, 1000, true);
return 1;
}
public CheckPlayerWorldBounderys()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(i, x, y, z);
if(x >= 20000 || y >= 20000)
{
Kick(playerid);
}
}
return 1;
}