06.01.2011, 07:09
pawn Код:
new Float:DuelSpawn[][4] =
{
{-1988.9508, 396.3534, 38.6947, 93.1988}, //cage 1 - if the player randomly gets spawned in here, it will put the other player to spawn in this cage also.
{-1962.7333, 394.0844, 38.6947, 92.2355}, //cage 2 - same as above
{-1962.9875, 378.6306, 38.6947, 88.5222}, //cage 3 -same as above
{-1988.8269, 370.3514, 38.6947, 96.6222} //cage 4 - same as above
};
new rand=random(sizeof(DuelSpawn));
SetPlayerPos(playerid,DuelSpawn[rand][0],DuelSpawn[rand][1],DuelSpawn[rand][2]);
SetPlayerPos(giveplayerid,DuelSpawn[rand][0],DuelSpawn[rand][1],DuelSpawn[rand][2]);
SetPlayerFacingAngle(playerid,DuelSpawn[rand][3]);
SetPlayerFacingAngle(giveplayerid,DuelSpawn[rand][3]);