Rendom spawn for each team
#3

pawn Код:
public OnPlayerSpawn(playerid)
{
    new val = random(sizeof(RandomSpawn));
    SetPlayerPos(playerid, RandomSpawn[val][0], RandomSpawn[val][1],RandomSpawn[val][2]);
    SetPlayerFacingAngle(playerid, RandomSpawn[val][3]);
    return 1;
}
new val = random(sizeof(RandomSpawn));

so you have to set player position like this :
RandomSpawn[val][0] , RandomSpawn[val][1] and ..........


EDIT: guy above me was faster !
Reply


Messages In This Thread
Rendom spawn for each team - by _GHT_MarK445 - 10.02.2015, 15:48
Re: Rendom spawn for each team - by nezo2001 - 10.02.2015, 15:51
Re: Rendom spawn for each team - by M4D - 10.02.2015, 15:51
Re: Rendom spawn for each team - by _GHT_MarK445 - 10.02.2015, 16:06
Re: Rendom spawn for each team - by CalvinC - 10.02.2015, 16:14
Re: Rendom spawn for each team - by _GHT_MarK445 - 10.02.2015, 16:17

Forum Jump:


Users browsing this thread: 2 Guest(s)