05.01.2012, 10:57
i was making my basic DM GM but accidentally unexpected problem has came
i try to make a Team Random spawn but it didn't work it spawn me in Las Venturas the main spawn
i try this code onplayerspawn but it didn't work:
i did something wrong? i will give you one rep+
i try to make a Team Random spawn but it didn't work it spawn me in Las Venturas the main spawn
i try this code onplayerspawn but it didn't work:
pawn Код:
new Float:RandomSpawnGrove[][] =
{
{2522.9924,-1669.3948,14.9668,109.5784},
{2513.0620,-1679.6508,13.4860,17.4809},
{2498.1260,-1685.7640,13.4440,327.3705},
{2493.2993,-1650.3931,13.5173,207.7227}
};
public OnPlayerSpawn(playerid)
{
switch(gTeam[playerid])
{
case TEAM_GROVE:
{
new RandomG = random(sizeof(RandomSpawnGrove));
SetPlayerPos(playerid, RandomSpawnGrove[RandomG][0], RandomSpawnGrove[RandomG][1], RandomSpawnGrove[RandomG][2]);
SetPlayerFacingAngle(playerid, RandomSpawnGrove[RandomG][3]);
}
}
return 1;
}