SA-MP Forums Archive
Spawn problem. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Spawn problem. (/showthread.php?tid=404809)



Spawn problem. - JoelR - 04.01.2013

When I login to my server, with the correct info; it comes up with:

STAY WITHIN THE WORLD BOUNDARIES

and my screen goes weird.

Although, the spawn positions are set to be correct.

What's the issue here?

Thanks.


Re: Spawn problem. - Dusan01 - 04.01.2013

Check your gravity....


Re: Spawn problem. - JoelR - 04.01.2013

Gravity is fine.


Re: Spawn problem. - Dusan01 - 04.01.2013

Quote:
Originally Posted by JoelR
Посмотреть сообщение
Gravity is fine.
then u shell check spawn location and
pawn Код:
SetPlayerWorldBounds



Re: Spawn problem. - JoelR - 08.01.2013

Still no. What's the problem?


Re: Spawn problem. - Antonioh - 08.01.2013

Check for
Quote:

SetPlayerPos(playerid,

And Change where they Spawn?
Do you mean when they login or When they Register?

Or Try to Login with another Account


Re: Spawn problem. - JoelR - 08.01.2013

When they login. All the other login positions work but that one.

Although it is loading correctly.

EDIT:

pawn Код:
Float:fSpawnPosX[4],
    Float:fSpawnPosY[4],
    Float:fSpawnPosZ[4],
    Float:fSpawnPosA[4],
That's part of the enum,

pawn Код:
format(Factions[i][f1SpawnName], 24, "%s", name1);
            Factions[i][fSpawnSet][1] = SpawnSet[1];
            Factions[i][fSpawnPosX][1] = PosX[1];
            Factions[i][fSpawnPosY][1] = PosY[1];
            Factions[i][fSpawnPosZ][1] = PosZ[1];
            Factions[i][fSpawnPosA][1] = PosA[1];
            Factions[i][fSpawnInt][1] = Int[1];
            Factions[i][fSpawnWorld][1] = VW[1];
           
            format(Factions[i][f2SpawnName], 24, "%s", name2);
            Factions[i][fSpawnSet][2] = SpawnSet[2];
            Factions[i][fSpawnPosX][2] = PosX[2];
            Factions[i][fSpawnPosY][2] = PosY[2];
            Factions[i][fSpawnPosZ][2] = PosZ[2];
            Factions[i][fSpawnPosA][2] = PosA[2];
            Factions[i][fSpawnInt][2] = Int[2];
            Factions[i][fSpawnWorld][2] = VW[2];
           
            format(Factions[i][f3SpawnName], 24, "%s", name3);
            Factions[i][fSpawnSet][3] = SpawnSet[3];
            Factions[i][fSpawnPosX][3] = PosX[3];
            Factions[i][fSpawnPosY][3] = PosY[3];
            Factions[i][fSpawnPosZ][3] = PosZ[3];
            Factions[i][fSpawnPosA][3] = PosA[3];
            Factions[i][fSpawnInt][3] = Int[3];
            Factions[i][fSpawnWorld][3] = VW[3];
That's the loading point,

pawn Код:
if(Player[playerid][FacSpawn] == 1)
        {
            SetSpawnInfo(playerid, 0, Player[playerid][Clothes1], Factions[Player[playerid][Faction]][fSpawnPosX][1], Factions[Player[playerid][Faction]][fSpawnPosY][1], Factions[Player[playerid][Faction]][fSpawnPosZ][1], Factions[Player[playerid][Faction]][fSpawnPosA][1], 0, 0, 0, 0, 0, 0);
            SetPlayerInterior(playerid, Factions[Player[playerid][Faction]][fSpawnInt][1]);
            SetPlayerVirtualWorld(playerid, Factions[Player[playerid][Faction]][fSpawnWorld][1]);
        }
        else if(Player[playerid][FacSpawn] == 2)
        {
            SetSpawnInfo(playerid, 0, Player[playerid][Clothes1], Factions[Player[playerid][Faction]][fSpawnPosX][2], Factions[Player[playerid][Faction]][fSpawnPosY][2], Factions[Player[playerid][Faction]][fSpawnPosZ][2], Factions[Player[playerid][Faction]][fSpawnPosA][2], 0, 0, 0, 0, 0, 0);
            SetPlayerInterior(playerid, Factions[Player[playerid][Faction]][fSpawnInt][2]);
            SetPlayerVirtualWorld(playerid, Factions[Player[playerid][Faction]][fSpawnWorld][2]);
        }
        else if(Player[playerid][FacSpawn] == 3)
        {
            SetSpawnInfo(playerid, 0, Player[playerid][Clothes1], Factions[Player[playerid][Faction]][fSpawnPosX][3], Factions[Player[playerid][Faction]][fSpawnPosY][3], Factions[Player[playerid][Faction]][fSpawnPosZ][3], Factions[Player[playerid][Faction]][fSpawnPosA][3], 0, 0, 0, 0, 0, 0);
            SetPlayerInterior(playerid, Factions[Player[playerid][Faction]][fSpawnInt][3]);
            SetPlayerVirtualWorld(playerid, Factions[Player[playerid][Faction]][fSpawnWorld][3]);
        }
That's the spawning part..


Re: Spawn problem. - Antonioh - 08.01.2013

Joel Maybe you Went somewhere and it's bugged?
Turn off your hacks?
if not working
Make another account


Re: Spawn problem. - JoelR - 08.01.2013

Quote:
Originally Posted by Antonioh
Посмотреть сообщение
Joel Maybe you Went somewhere and it's bugged?
Turn off your hacks?
if not working
Make another account
It's not that..

I don't have any hacks, I can't just "Make another account", as I am trying to get it to work for all members who want to spawn at their faction HQ..

Don't just post because you want to get your post count higher, post if you know what I'm talking about.


Re: Spawn problem. - Roel - 08.01.2013

Create a SetSpawnInfo in your OnPlayerRequestClass

Like

SetSpawnInfo( playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );