Different spawns for players and death list
#5

For random spawns:
pawn Код:
new
    Float:gSpawnPoints[][4] =
    {
        {0.0, 0.0, 0.0, 180.0},
        {11.0, 12.0, 13.0, 17.0}
    };

public OnPlayerSpawn(playerid)
{
    new
        randSpawn = random(sizeof(gSpawnPoints));
    SetPlayerPos(playerid, gSpawnPoints[randSpawn][0], gSpawnPoints[randSpawn][1], gSpawnPoints[randSpawn][2]);
    SetPlayerFacingAngle(playerid, gSpawnPoints[randSpawn][3]);
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)