World Bounds Problem
#1

Hey, I got this "Stay in the World bounds" message when I spawn, I don't set the player to any wrong position or anything.
Not sure where the problem is or how to solve it :/

If anyone know how to fix this
Reply
#2

Maybe you're using this function in your script?
Reply
#3

Quote:
Originally Posted by Don Correlli
Maybe you're using this function in your script?
That is exactly which I don't. That is why it's so wierd :/
Reply
#4

Well if it says stay within the world boundrys you mus have something like that.
Or else the message wont show up and i dont think your script will add things itself.

[Doppeyy
Reply
#5

Quote:

Hey, I got this "Stay in the World bounds" message when I spawn, I don't set the player to any wrong position or anything.
Not sure where the problem is or how to solve it :/

If anyone know how to fix this

Search PlayerWorldBounds and erase it, or just put
Quote:

20000.0000, -20000.0000, 20000.0000, -20000.0000.

Reply
#6

Quote:
Originally Posted by Fedee!
Quote:

Hey, I got this "Stay in the World bounds" message when I spawn, I don't set the player to any wrong position or anything.
Not sure where the problem is or how to solve it :/

If anyone know how to fix this

Search PlayerWorldBounds and erase it, or just put
Quote:

20000.0000, -20000.0000, 20000.0000, -20000.0000.

I did erase it, and it still shows up :O Im 110% sure its no commands at server making it show up
Reply
#7

Well the only thing you could do now is if you thrust us enough is show us your entire code.
But thats a choice you have to make.

[Doppeyy
Reply
#8

6152 lines? xD

Maybe you want some pieces? Say which, maybe I can then
Reply
#9

Are you sure you're not setting anything special which could bug the player?

Could you also post your OnPlayerSpawn callback code?
Reply
#10

pawn Код:
public OnPlayerSpawn(playerid)
{
  gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
  SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
  ResetPlayerMoney(playerid);
  GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
  TogglePlayerControllable(playerid, 1);
  if(gPlayerLogged[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_GRAD1, " You need to login before spawning");
    return 1;
    }
    SetPlayerWorldBounds(playerid, 20000.0000, -20000.0000, 20000.0000, -20000.0000);
    SetPlayerPos(playerid,164.4342,1188.2478,14.7578);
    SetPlayerSpawn(playerid);
   
    return 1;
}
And SetPlayerSpawn, in case you would need it:
pawn Код:
public SetPlayerSpawn(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][pTut] == 0)
      {
            TogglePlayerControllable(playerid, 0);
            RegistrationStep[playerid] = 1;
            gOoc[playerid] = 1;
            SendClientMessage(playerid, COLOR_CYAN, "Welcome to Wild West Serious Roleplay server, please fill in some information to proceed.");
            SendClientMessage(playerid, COLOR_LIGHTRED, "Are you a Male or Female? (Type in what you are).");
      }
      if(PlayerInfo[playerid][pJailed] == 1)
        {
          new string[128];
        SetPlayerInterior(playerid, 6);
            SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
            format(string, sizeof(string), "Incomplete jail sentence, returning back with %d minute(s) left", PlayerInfo[playerid][pJailTime]/60);
            GameTextForPlayer(playerid, string, 8000, 1);
            //SendClientMessage(playerid, COLOR_GRAD1, string);
            return 1;
        }
      SetPlayerPos(playerid,164.4342,1188.2478,14.7578);
        SetPlayerFacingAngle(playerid, 180.1604);
        SetPlayerInterior(playerid,0);
        PlayerInfo[playerid][pInt] = 0;
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)