SA-MP Forums Archive
World bounds bug - 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: World bounds bug (/showthread.php?tid=417491)



World bounds bug - MiGu3X - 21.02.2013

this is my ONPlayerSpawn

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(IsSpecing[playerid] == 1)
    {
        SetPlayerPos(playerid,SpecX[playerid],SpecY[playerid],SpecZ[playerid]);
        SetPlayerInterior(playerid,Inter[playerid]);
        SetPlayerVirtualWorld(playerid,vWorld[playerid]);
        IsSpecing[playerid] = 0;
        IsBeingSpeced[spectatorid[playerid]] = 0;
    }
   
    if(Spawned[playerid] == 1)
    SetPlayerWorldBounds(playerid, -625.4236, 494.9402, 2982.4575, 2986.2341);
    SetPlayerHealth(playerid, 1000);
    SetTimerEx("finproct", 3000, false, "i", playerid);
    SetPlayerToTeamColor(playerid);
    SetPlayerTeam(playerid, gTeam[playerid]);
    Spawned[playerid] = 1;
    return 1;
}
When i do F4 -> /kill and spawn as other team it appears Stay within world bounds .. . .

Can anyone help me please?


Respuesta: World bounds bug - MiGu3X - 21.02.2013

bump... its urgent, SORY


Re: World bounds bug - Jstylezzz - 21.02.2013

Do you have any AddPlayerClass under OnGameModeInit?
If I remember right, not having that there causes this to happen..


Re: World bounds bug - Scenario - 21.02.2013

Oh, so you're problem is "urgent" so that gives you rights to break the forum rules?


Respuesta: World bounds bug - MiGu3X - 21.02.2013

yes look my OnGameModeInit..

pawn Код:
public OnGameModeInit( )
{
    UsePlayerPedAnims(); // Usa los anims normales del GTA SA.
    DisableInteriorEnterExits(); // Desactiva los Pickups Amarillos para entrar a los interiors.
    SetGameModeText (GameMode); // Le pone nombre al GameMode.
    SetTimer("SendMSG", 180000, 1); // Timer de los RandMSG.
    LoadVehicles();
   
    AddPlayerClass( 230, 2195.4729, 1688.1770, 12.3672, 266.4879, 24, 10000, 25, 10000, 34, 10000 ); // Spawn Assasins 1
    AddPlayerClass( 78, 2195.8218, 1685.8918, 12.3672, 266.4879, 24, 10000, 25, 10000, 34, 10000 ); // Spawn Assasins 2
    AddPlayerClass( 134, 2195.4678, 1683.9762, 12.3672, 278.1858, 24, 10000, 25, 10000, 34, 10000 ); // Spawn Assasins 3
   
    AddPlayerClass( 282, 2283.9661, 2467.5994, 3.5313, 180.7303, 24, 10000, 25, 10000, 34, 10000 ); // Spawn Police 1
    AddPlayerClass( 285, 2281.4963, 2467.0193, 3.5313, 182.1925, 24, 10000, 25, 10000, 34, 10000 ); // Spawn Police 2
    AddPlayerClass( 286, 2279.1814, 2467.2458, 3.5313, 190.0886, 24, 10000, 25, 10000, 34, 10000 ); // Spawn Police 3
   
    AddPlayerClass( 127, 2283.9661, 2467.5994, 3.5313, 180.7303, 24, 10000, 25, 10000, 34, 10000 ); // Spawn Mafia 1
    AddPlayerClass( 125, 2281.4963, 2467.0193, 3.5313, 182.1925, 24, 10000, 25, 10000, 34, 10000 ); // Spawn Mafia 2
    AddPlayerClass( 124, 2279.1814, 2467.2458, 3.5313, 190.0886, 24, 10000, 25, 10000, 34, 10000 ); // Spawn Mafia 3
RealCop i didn't read forum rules, ls send me link since i dont really koЎnow them


Re: World bounds bug - DaRk_RaiN - 21.02.2013

Under OnPlayerRequestClass add
pawn Код:
SetPlayerWorldBounds(playerid,20000.0000, -20000.0000, 20000.0000, -20000.0000);



Respuesta: World bounds bug - MiGu3X - 21.02.2013

fixed, i just deleted the bounds, stuff got messed up i gues.s.