World bounds bug
#1

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?
Reply
#2

bump... its urgent, SORY
Reply
#3

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

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

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
Reply
#6

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)