How to Force spawn a player.
#10

Well try using this code:

pawn Code:
// create a new global varibale at top of script
// new FirstSpawn[MAX_PLAYERS char];
public OnPlayerConnect(playerid)
{
    TogglePlayerSpecating(playerid, 1);
    FirstSpawn{playerid} = 1;
    return 1;
}

public OnPlayerSpawn(playerid)
{
    if(FistSpwan{playerid} == 1)
    {
        FirstSpawn{playerid} = 0;
        SetPlayerPos(playerid, pos1, pos2, pos3); // put your postions in here too and see if that works.
        TogglePlayerSpectating(playerid, 0);
    }
    return 1;
}
Reply


Messages In This Thread
How to Force spawn a player. - by jueix - 14.01.2012, 17:40
Re: How to Force spawn a player. - by iGetty - 14.01.2012, 17:43
Re: How to Force spawn a player. - by jueix - 14.01.2012, 17:48
Re: How to Force spawn a player. - by jueix - 14.01.2012, 17:50
Re: How to Force spawn a player. - by iGetty - 14.01.2012, 17:51
Re: How to Force spawn a player. - by Steven82 - 14.01.2012, 17:54
Re: How to Force spawn a player. - by jueix - 14.01.2012, 18:02
Re: How to Force spawn a player. - by iGetty - 14.01.2012, 18:03
Re: How to Force spawn a player. - by jueix - 14.01.2012, 18:14
Re: How to Force spawn a player. - by Steven82 - 14.01.2012, 18:44

Forum Jump:


Users browsing this thread: 2 Guest(s)