Stay within the world bounderies server help
#1

hey out if no were i got ""Stay within the world bounderies "" problem i dont know whats wrong but since i got my new gaming computer my server keep doing that even on other pc, lmk what ya need to help me plz
Reply
#2

Could it be that you've set the player spawn to some x/y/z which is bigger then 20000 or smaller then -20000?
Reply
#3

Are you using a downloaded gamemode or did you make your own?
If it was a downloaded gamemode, click CTRL+F and search for SetPlayerWorldBounds
Then delete it.
Reply
#4

Quote:
Originally Posted by mzazon
Посмотреть сообщение
Could it be that you've set the player spawn to some x/y/z which is bigger then 20000 or smaller then -20000?
Hmm got to check

Quote:
Originally Posted by Stinged
Посмотреть сообщение
Are you using a downloaded gamemode or did you make your own?
If it was a downloaded gamemode, click CTRL+F and search for SetPlayerWorldBounds
Then delete it.
i downoaded this server 3 years ago i am still scripting on it and no i dont have
PHP код:
SetPlayerWorldBounds 
onplayerspawn
PHP код:
public OnPlayerSpawn(playerid)
{
    if(
IsPlayerNPC(playerid))
    {
        new 
npcname[MAX_PLAYER_NAME];
        
GetPlayerName(playeridnpcnamesizeof(npcname));
        if(!
strcmp(npcname"PoliceOfficer"true))
        {
            if(
IsPlayerInRangeOfPoint(playerid2.01552.2175,-1673.1248,16.1783))
            {
                
SetPlayerMarkerForPlayer(playerid,playerid,00);
                
SetPlayerColor(playeridCOLOR_RED);
                
ResetPlayerWeapons(playerid);
                
SetPlayerPos(playerid1552.2175,-1673.1248,16.1783);
                
TogglePlayerControllable(playerid,0);
                    print(
"NCP PoliceOfficer Spawned!");
                
//
            
}
        }
          if(!
strcmp(npcname"Medic"true))
        {
             
SetPlayerMarkerForPlayer(playerid,playerid,00);
            
SetPlayerColor(playerid0xFFFFFF00);
            
ResetPlayerWeapons(playerid);
            
TogglePlayerControllable(playerid,0);
            print(
"NCP Medic Spawned!");
        }
        if(!
strcmp(npcname"Officer"true))
        {
             
SetPlayerMarkerForPlayer(playerid,playerid,00);
            
SetPlayerColor(playerid0xFFFFFF00);
            
ResetPlayerWeapons(playerid);
            
TogglePlayerControllable(playerid,0);
            print(
"NCP Officer Spawned!");
        }
        return 
1;
        }
    
// removed objects
    
RemoveBuildingForPlayer(playerid2252301.0703180.36721007.45310.25);
    
RemoveBuildingForPlayer(playerid14854296.6875184.50001008.59380.25);
    
RemoveBuildingForPlayer(playerid2252291.6563187.98441007.45310.25);
    
RemoveBuildingForPlayer(playerid2252231.5781158.78911003.35940.25);
    
RemoveBuildingForPlayer(playerid14855231.4688163.85161006.52340.25);
    
RemoveBuildingForPlayer(playerid2252233.9453168.50001003.35940.25);
    
//DrugAmountLoad(playerid);
    
SetTimerEx("WantedSpawnLoading"2000false"i"playerid);
    
SetTimerEx("WantedDown"85000true"i"playerid);
    
SetTimerEx("Donators"2000true"i"playerid);
    
SetTimerEx("CheckMoney"2000true"i"playerid);
    
SetTimerEx("CheckRobSkill",2000true"i"playerid);
    
// ed of saving inportan files
     
SetPlayerPos(playerid1481.2715,-1770.6609,18.7958);
      
SetPlayerInterior(playerid,0);
    
StopAudioStreamForPlayer(playerid);
       
TogglePlayerClock(playerid,1);
    new 
name[MAX_PLAYER_NAME], file[256];
    
GetPlayerName(playeridnamesizeof(name));
    
format(filesizeof(file), scriptfilesname);
      
SetPlayerSkin(playeriddini_Int(file"Skin"));
    
       
TextDrawShowForPlayer(playeridDollar[playerid]);
    
TextDrawShowForPlayer(playeridBank[playerid]);
     
TextDrawShowForPlayer(playeridMBank[playerid]);
    
TextDrawShowForPlayer(playeridRobSkillTD[playerid]);
     
     
     
TogglePlayerDynamicCP(playerid,Checkpoint[1],false);
    
CancelSelectTextDraw(playerid);
    
PlayerTextDrawHide(playeridCF[playerid]);
    
//police officer td job
     
TextDrawHideForPlayer(playeridPoliceO[playerid]);
    
TextDrawHideForPlayer(playeridMainBoxC[playerid]);
    
TextDrawHideForPlayer(playeridAsACop[playerid]);
    
TextDrawHideForPlayer(playeridCanDoC[playerid]);
    
TextDrawHideForPlayer(playeridPCStar[playerid]);
    
TextDrawHideForPlayer(playeridCCMD[playerid]);
    
TextDrawHideForPlayer(playeridCRules[playerid]);
    
TextDrawHideForPlayer(playeridCAccept[playerid]);
    
TextDrawHideForPlayer(playeridCDisagree[playerid]);
    
//hide death info
    
TextDrawHideForPlayer(playeridDeathMainBox);
    
TextDrawHideForPlayer(playeridDeathMainBox2);
    
TextDrawHideForPlayer(playeridDeathA[playerid]);
    
TextDrawHideForPlayer(playeridDeathInfo);
    
TextDrawHideForPlayer(playeridKillsA[playerid]);
    
TextDrawHideForPlayer(playeridMedsA[playerid]);
    
TextDrawHideForPlayer(playeridKilledby[playerid]);
    
TextDrawHideForPlayer(playeridIfDM);
    new 
string[200];
    
format(string200"[SPAWN] %s"PlayerInfo(playerid));
    print(string);
    
AccountInfo[playerid][pSpawned] = 1;
    
AccountInfo[playerid][pTazed] = ;
    if(
AccountInfo[playerid][pBanned] == 1)
    {
        
format(stringsizeof(string), "[AUTO BAN] %s banned player name: ban evade"PlayerInfo(playerid));
        
SendClientMessageToAll(COLOR_PURPLEstring);
        print(string);
        
format(stringsizeof(string), "Player %s has been banned for ban evasion (Banned player name)"PlayerInfo(playerid));
        print(string);
        
Ban(playerid);
        return 
1;
    }
    if(
gTeam[playerid] == Team_Cop//team_cop
    
{
         
/*GivePlayerWeapon(playerid, 3, 1);
        GivePlayerWeapon(playerid, 22, 100);
        GivePlayerWeapon(playerid, 29, 500);
        GivePlayerWeapon(playerid, 33, 10);*/
          
new rnd random(sizeof(CopSpawnPoints));
        
SetPlayerPos(playeridCopSpawnPoints[rnd][0], CopSpawnPoints[rnd][1], CopSpawnPoints[rnd][2]);
        
SetPlayerFacingAngle(playeridCopSpawnPoints[rnd][3]);
        
SetPlayerArmour(playerid100.0);
        
SetCameraBehindPlayer(playerid);
          
RadioInfo[playerid][pCopRadio] = 1;
    }
    if(
gTeam[playerid] == Team_FBI)
    {
        
SendClientMessage(playeridCOLOR_DODGERBLUE"**FBI Agent**");
        
SendClientMessage(playeridCOLOR_LIGHTBLUE"[INFO]: "COL_VIOLET" Type "COL_LRED2"/commands "COL_VIOLET "for your available commands.");
        
SendClientMessage(playeridCOLOR_LIGHTBLUE"[INFO]: "COL_VIOLET"Your job is to arrest and catch criminals in Los Santos and nearby areas.");
        
SendClientMessage(playeridCOLOR_LIGHTBLUE"[INFO]: "COL_VIOLET "Read "COL_LRED2"/pc "COL_VIOLET" to find out which people you can and cannot shoot.");
        
/*GivePlayerWeapon(playerid, 3, 1);
        GivePlayerWeapon(playerid, 22, 100);
        GivePlayerWeapon(playerid, 29, 500);
        GivePlayerWeapon(playerid, 31, 100);*/
        
SetPlayerArmour(playerid100.0);
        
SetPlayerToTeamColor(playerid);
        
SetCameraBehindPlayer(playerid);
        
RadioInfo[playerid][pCopRadio] = 1;
    }
    if(
gTeam[playerid] == Team_Army)
    {
        
SendClientMessage(playeridCOLOR_FORESTGREEN"**Los Santos Army**");
        
SendClientMessage(playeridCOLOR_LIGHTBLUE"[INFO]: "COL_LGREEN"Type "COL_LRED2"/commands "COL_LGREEN"for your commands");
        
SendClientMessage(playeridCOLOR_LIGHTBLUE"[INFO]: "COL_LGREEN"Your job is to take down "COL_RED"MOST WANTED "COL_LGREEN"criminals by any means necessary.");
        
SendClientMessage(playeridCOLOR_LIGHTBLUE"[INFO]: "COL_RED"YOU CANNOT SHOOT AT OTHER ARMY, POLICE, OR NON MOST WANTED PLAYERS.");
        
SendClientMessage(playeridCOLOR_LIGHTBLUE"[INFO]: "COL_LGREEN"Read "COL_LRED2"/pc "COL_LGREEN"to find out the player colors.");
        
/*GivePlayerWeapon(playerid, 24, 50);
        GivePlayerWeapon(playerid, 31, 500);
        GivePlayerWeapon(playerid, 34, 20);
        GivePlayerWeapon(playerid, 26, 25);*/
        
SetPlayerArmour(playerid100.0);
        
SetCameraBehindPlayer(playerid);
        
SetPlayerToTeamColor(playerid);
        
RadioInfo[playerid][pCopRadio] = 1;
    }
    if(
gTeam[playerid] == Team_Civi)// team_civi
    
{
         new 
rnd random(sizeof(SpawnPoints));
        
SetPlayerPos(playeridSpawnPoints[rnd][0], SpawnPoints[rnd][1], SpawnPoints[rnd][2]);
        
SetPlayerFacingAngle(playeridSpawnPoints[rnd][3]);
        
SetCameraBehindPlayer(playerid);
        
GivePlayerWeapon(playerid22400);
        
SetPlayerToTeamColor(playerid);
    }
    if(
gTeam[playerid] == Team_Guard//team_guard
    
{
         
SendClientMessage(playeridCOLOR_FORESTGREEN"**Los Santos Guard**");
        
SendClientMessage(playeridCOLOR_LIGHTBLUE"[INFO]: "COL_GUARDG "Type "COL_LRED2"/commands "COL_GUARDG "for your commands");
        
SendClientMessage(playeridCOLOR_LIGHTBLUE"[INFO]: "COL_GUARDG "Your job is to manage the jail cells, prisons, and etc.");
        
SendClientMessage(playeridCOLOR_LIGHTBLUE"[INFO]: "COL_RED"YOU CANNOT SHOOT AT OTHER GUARDS, POLICE, OR NON MOST WANTED PLAYERS.");
        
SendClientMessage(playeridCOLOR_LIGHTBLUE"[INFO]: "COL_GUARDG "Read "COL_LRED2"/pc "COL_GUARDG"to find out the player colors.");
        
GivePlayerWeapon(playerid31);
        
GivePlayerWeapon(playerid24500);
        
GivePlayerWeapon(playerid2510);//
        
SetPlayerArmour(playerid100.0);
        
SetPlayerPos(playerid1803.9167,-1537.9795,5700.4287);
        
SetPlayerFacingAngle(playerid272.5791);
        
SetCameraBehindPlayer(playerid);
        
SetPlayerToTeamColor(playerid);
          
RadioInfo[playerid][pCopRadio] = 1;
     }
      if(
gTeam[playerid] == Team_Medic//team_guard
    
{
         
SendClientMessage(playeridCOLOR_FORESTGREEN"**Medic**");
        
SetPlayerToTeamColor(playerid);
     }
    if(
AccountInfo[playerid][pJailed] == 1)
     {
        new 
rnd random(sizeof(PrisonSpawn)); SetPlayerPos(playeridPrisonSpawn[rnd][0], PrisonSpawn[rnd][1], PrisonSpawn[rnd][2]);
        
SetPlayerInterior(playerid3);
        
format(stringsizeof(string), "[AUTO JAIL] %s (LEFT SERVER WHILE IN JAIL)",PlayerInfo(playerid));
        print(string);
        
SetPlayerToTeamColor(playerid);
        
SetPlayerWantedLevel(playerid0);
        
WantedLevelColor(playerid);
        
AccountInfo[playerid][pJailed] = ;
    }
    return 
1;

Reply
#5

Do you have a set world boundaries variable on the script?
If you do please show us the part where it's used.
Reply
#6

Quote:
Originally Posted by mzazon
Посмотреть сообщение
Do you have a set world boundaries variable on the script?
If you do please show us the part where it's used.
i dont have thay
Reply
#7

Quote:
Originally Posted by ******
Посмотреть сообщение
If you are still scripting on it, then that means you changed something recently. Undo bits until this stops, then you will know the cause.
i was making a inventory system for it i try undo that but same this started as soon as i bought my new laptop AMD RADEON i had back ups and it do the same

idk is it this SetTimerEx("SkipSpawn",3,0,"i",playerid);//It's required to have atleast 1 millisecond?
?

nope is not that eather
Reply
#8

please help i try even rollback alot idk whats wrong
Reply
#9

Make sure you have at least 1 AddPlayerClass line under OnGameModeInit.

Source:
https://sampwiki.blast.hk/wiki/AddPlayerClass
Reply
#10

Quote:
Originally Posted by Threshold
Посмотреть сообщение
Make sure you have at least 1 AddPlayerClass line under OnGameModeInit.

Source:
https://sampwiki.blast.hk/wiki/AddPlayerClass
now the world boundery is gone but i spawn as cj and cant talk on chat
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)