Team Spawning Issues
#4

Try this :

PHP код:
public OnPlayerSpawn(playerid)
{
    if(
gTeam[playerid] == TEAM_CIVILIAN)
    {
        switch(
random(4))
        {
            case 
0SetPlayerPos(playerid2079.7163 ,1340.230810.8203);
            case 
1SetPlayerPos(playerid2081.41601292.607210.8203);
            case 
2SetPlayerPos(playerid2035.41031293.570310.8203);
            case 
3SetPlayerPos(playerid2020.41031292.570310.8203);
        }
    }
    else if(
gTeam[playerid] == TEAM_POLICE)
        
SetPlayerPos(playerid,2084.2632,1236.8361,10.8203);
    
StopAudioStreamForPlayer(playerid);
    return 
1;

EDIT: Indentation fixed, my bad.
Reply


Messages In This Thread
Team Spawning Issues - by spawnzlive - 17.10.2012, 18:21
Re: Team Spawning Issues - by Danyal - 17.10.2012, 18:25
Re: Team Spawning Issues - by spawnzlive - 17.10.2012, 18:27
Re : Team Spawning Issues - by Ataraxia - 17.10.2012, 18:29
Re: Team Spawning Issues - by SumX - 17.10.2012, 18:29
Re : Team Spawning Issues - by Ataraxia - 17.10.2012, 18:31
Re: Team Spawning Issues - by Danyal - 17.10.2012, 18:32
Re: Team Spawning Issues - by SumX - 17.10.2012, 18:32
Re: Team Spawning Issues - by spawnzlive - 17.10.2012, 18:33

Forum Jump:


Users browsing this thread: 1 Guest(s)