Mulipal Spawns!
#4

Yes, would you like an example?

pawn Код:
new Float:MultipleSpawns[][4]
{
    {x, y, z, angle},
    {x, y, z, angle},
    {x, y, z, angle}
};

public OnPlayerSpawn(playerid)
{
    new rand = random(sizeof(MultipleSpawns));
    SetPlayerPos(playerid, MultipleSpawns[rand][0], MultipleSpawns[rand][1], MultipleSpawns[rand][2]);
    SetPlayerFacingAngle(playerid, MultipleSpawns[rand][3]);
    return 1;
}
Be sure to fill those x, y, z, angle things with your positions, if you don't have any, it's a good idea to /save then look over savedpositions.txt.
Reply


Messages In This Thread
Mulipal Spawns! - by JamesJ899 - 28.02.2011, 22:21
Re: Mulipal Spawns! - by pawn_ - 28.02.2011, 22:24
[No subject] - by JamesJ899 - 28.02.2011, 22:30
Re: Mulipal Spawns! - by pawn_ - 01.03.2011, 21:41

Forum Jump:


Users browsing this thread: 1 Guest(s)