Some interior || virtual world bug problem
#3

Okay,Those are the codes for Requestclass :
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    //-----some scripter HHH
    for (new a = 0; a <= 312; a++) if(classid == SkinClass[a])
    {
            switch(SkinClass[a])
            {
                    case 0..279, 289..299:
                    {
                            GameTextForPlayer( playerid, "~r~Al-nas", 300, 3 );
                            SetPlayerPos(playerid, 349.22, 30306, 1000.13);
                            SetPlayerFacingAngle(playerid, 187.3405);
                            SetPlayerInterior(playerid, 6);
                            SetPlayerCameraPos(playerid, 347.58, 303.12, 999.15);
                            SetPlayerCameraLookAt(playerid, 349.22, 30306, 1000.13);
                            SetPlayerVirtualWorld(playerid, 0);
                    }
                    case 280..288, 300..311:
                    {
                            GameTextForPlayer( playerid, "~b~POLES", 300, 3 );
                            SetPlayerPos(playerid, 231.6830, 165.2193, 1003.9044);
                            SetPlayerFacingAngle(playerid, 263.6608);
                            SetPlayerInterior(playerid, 3);
                            SetPlayerCameraPos(playerid, 234.17, 165.77, 1004.02);
                            SetPlayerCameraLookAt(playerid, 231.6830, 165.2193, 1003.9044);
                            SetPlayerVirtualWorld(playerid, 0);
                    }
            }
            break;
    }
    return 1;
}
And that is the code for spawn (both cops and citizens are bugged here):
pawn Код:
public OnPlayerSpawn(playerid)
switch (GetPlayerTeam(playerid))
{
    case TEAM_POLES:
    {
        new Random = random(sizeof(RandomSpawns));
        SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1],RandomSpawns[Random][2]);
        SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
    }
    case TEAM_ALNAS:
    {
        new Rand = random(sizeof(RandSpawns));
        SetPlayerPos(playerid, RandSpawns[Rand][0], RandSpawns[Rand][1],RandSpawns[Rand][2]);
        SetPlayerFacingAngle(playerid, RandSpawns[Rand][3]);
        SetPlayerInterior(playerid, 1);
    }
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)