Spawning in under the map in Blueberry!!!
#3

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(JustLogged[playerid] == 1 && PlayerInfo[playerid][New] == 0)
    {
        SetPlayerPos(playerid, PlayerInfo[playerid][Pos][0], PlayerInfo[playerid][Pos][1], PlayerInfo[playerid][Pos][2]);
        SetPlayerFacingAngle(playerid, PlayerInfo[playerid][Pos][3]);
        JustLogged[playerid] = 0;
        {
            SetPlayerSkin(playerid, PlayerInfo[playerid][Skin]);
        }
    }
    else
    {
        if(PlayerInfo[playerid][New] && gTeam[playerid] == TEAM_TRUCKER)
        {
            new RandPos = random(sizeof(TruckerSpawnPositions));
            SetPlayerPos(playerid, TruckerSpawnPositions[RandPos][0], TruckerSpawnPositions[RandPos][1], TruckerSpawnPositions[RandPos][2]);
            SetPlayerFacingAngle(playerid, TruckerSpawnPositions[RandPos][3]);
            PlayerInfo[playerid][New] = 0;
        }
    }
    return 1;
}
Reply


Messages In This Thread
Spawning in under the map in Blueberry!!! - by cloudysky - 18.03.2012, 15:08
Re: Spawning in under the map in Blueberry!!! - by Shabi RoxX - 18.03.2012, 15:12
Re: Spawning in under the map in Blueberry!!! - by cloudysky - 18.03.2012, 15:13
Re: Spawning in under the map in Blueberry!!! - by Shabi RoxX - 18.03.2012, 15:22
Re: Spawning in under the map in Blueberry!!! - by cloudysky - 18.03.2012, 15:27
Re: Spawning in under the map in Blueberry!!! - by cloudysky - 18.03.2012, 15:56
Re: Spawning in under the map in Blueberry!!! - by cloudysky - 18.03.2012, 15:59

Forum Jump:


Users browsing this thread: 2 Guest(s)