25.12.2014, 03:55
I made this random spawn system but when i choose terrorist class it spawns me all the way in las ventras and none of the spawn points are not in lv. And this isnt the only random spawn i made but the others work other than this.
pawn Код:
new Float:Randomter[][] =
{
// terrorist spawns
(649.1878,-1513.9203,14.8651,85.4113),
{660.1678,-1423.0903,14.8715,355.1891},
{865.6883,-1364.9763,13.5764,164.7453},
(952.1868,-909.1931,45.7656,186.2330),
(1115.5122,-1011.1461,29.8594,23.4913)
};
//onplayerspawn
if( gTeam[playerid] == TEAM_TER)
{
new TRandom = random(sizeof(Randomter));
SetPlayerPos(playerid, Randomter[TRandom][0], Randomter[TRandom][1], Randomter[TRandom][2]);
ServerWeapon(playerid, 30, 90);
ServerWeapon(playerid, 24, 90);
}