Originally Posted by SpiderPork
He means if you go too far from San Andreas towards the ocean, the server crashes.
I, personally, didn't encounter this bug before. But I also find it very wierd. |
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. |
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;
}
20000.0000, 20000.0000, 20000.0000, 20000.0000
stock GetPlayer2DZone(playerid, zone[], len) //Credits to Cueball, Betamaster, Mabako, and Simon (for finetuning).
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
for(new i = 0; i != sizeof(gSAZones); i++ ) {
if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4]) {
return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
}
}
return 0;
}
stock GetPlayer3DZone(playerid, zone[], len) //Credits to Cueball, Betamaster, Mabako, and Simon (for finetuning).
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
for(new i = 0; i != sizeof(gSAZones); i++ ) {
if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4] && z >= gSAZones[i][SAZONE_AREA][2] && z <= gSAZones[i][SAZONE_AREA][5]) {
return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
}
}
return 0;
}
stock GetPlayer2DZone(playerid, zone[], len) //Credits to Cueball, Betamaster, Mabako, and Simon (for finetuning).
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
for(new i = 0; i != sizeof(gSAZones); i++ ) {
if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4]) {
return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
}
}
return format(zone, len, "San Andreas", 0);
}
stock GetPlayer3DZone(playerid, zone[], len) //Credits to Cueball, Betamaster, Mabako, and Simon (for finetuning).
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
for(new i = 0; i != sizeof(gSAZones); i++ ) {
if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4] && z >= gSAZones[i][SAZONE_AREA][2] && z <= gSAZones[i][SAZONE_AREA][5]) {
return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
}
}
return format(zone, len, "San Andreas", 0);
}