17.10.2014, 12:59
(
Последний раз редактировалось Rudy_; 18.10.2014 в 15:58.
)
Edit: Nvm
if(CurrentMap == 0)
{
switch (gTeam[playerid])
{
case 0: //team 1
{
new Random = random(sizeof(PropSpawns));
SetPlayerPos(playerid, PropSpawns[Random][Pos][0], PropSpawns[Random][Pos][1], PropSpawns[Random][Pos][2]);
SetPlayerFacingAngle(playerid, PropSpawns[Random][Pos][3]);
}
case 1: //team 2
{
new Random = random(sizeof(HunterSpawns));
SetPlayerPos(playerid, HunterSpawns[Random][Pos][0], HunterSpawns[Random][Pos][1], HunterSpawns[Random][Pos][2]);
SetPlayerFacingAngle(playerid, HunterSpawns[Random][Pos][3]);
}
}
CurrentMap = 1;
}
else if(CurrentMap == 1)
{
switch (gTeam[playerid])
{
case 0: //team 1
{
new Random = random(sizeof(PropSpawns));
SetPlayerPos(playerid, PropSpawns[Random][Pos][0], PropSpawns[Random][Pos][1], PropSpawns[Random][Pos][2]);
SetPlayerFacingAngle(playerid, PropSpawns[Random][Pos][3]);
}
case 1: //team 2
{
new Random = random(sizeof(HunterSpawns));
SetPlayerPos(playerid, HunterSpawns[Random][Pos][0], HunterSpawns[Random][Pos][1], HunterSpawns[Random][Pos][2]);
SetPlayerFacingAngle(playerid, HunterSpawns[Random][Pos][3]);
}
}
CurrentMap = 0;
}
return 1;
}