Quote:
Originally Posted by CutX
you don't need a switch in your TEAM_BUM case, as from the code you supplyed, there's only one option. CITY_LS
so instead of:
PHP код:
case TEAM_BUM:
{
switch(curCity)
{
case CITY_LS:
{
new
r = random( sizeof(BumSpawnsLS) );
SetPlayerPos(playerid, BumSpawnsLS[r][0], BumSpawnsLS[r][1], BumSpawnsLS[r][2]);
SetPlayerFacingAngle(playerid, BumSpawnsLS[r][3]);
}
}
#if defined USE_ANTI_TEAMKILL
SetPlayerTeam(playerid, TEAM_BUM);
#endif
}
you could just write
PHP код:
case TEAM_BUM:
{
new r = random( sizeof(BumSpawnsLS) );
SetPlayerPos(playerid, BumSpawnsLS[r][0], BumSpawnsLS[r][1], BumSpawnsLS[r][2]);
SetPlayerFacingAngle(playerid, BumSpawnsLS[r][3]);
#if defined USE_ANTI_TEAMKILL
SetPlayerTeam(playerid, TEAM_BUM);
#endif
}
|
Sorry, I should have made it clear that I was working on "TEAM_BUM" and that they're going to have LS, LV, and SF coordinates aswell.