spawn coordinates.
#1

Hi all,i've added the coordinates for the teams in my gm,but when i try (every team),i always fall off from the sky.

This are the coords:

Код:
AddPlayerClass(285,-1614.0259,674.6093,-4.9063,345.0315,0,0,0,0,0,0); 
    AddPlayerClass(167,-2677.8723,261.9212,4.6328,3.1530,0,0,0,0,0,0);
    AddPlayerClass(30,-1736.7808,785.4903,167.6535,96.0389,0,0,0,0,0,0);
    AddPlayerClass(98,-1469.5306,1486.9131,8.2501,271.2484,0,0,0,0,0,0);
    AddPlayerClass(276,-2664.5979,637.5403,14.4531,167.7507,0,0,0,0,0,0);
    AddPlayerClass(160,-1078.7966,-1072.6577,129.2188,359.4542,0,0,0,0,0,0);
    AddPlayerClass(295,-2665.7546,940.0275,79.7101,195.8639,0,0,0,0,0,0);
    AddPlayerClass(61,-1392.9427,-233.9721,14.1484,309.1721,0,0,0,0,0,0);
What's wrong with that?
Reply
#2

Check your OnPlayerSpawn.
Reply
#3

Those are the spawning coordonates for the teams?
Reply
#4

@twinki,yeah.

blackwave,here is my OnPlayerSpawn.

Код:
public OnPlayerSpawn(playerid)
{
  if(gTeam[playerid] == TEAM_SWAT)
  {
    SetPlayerColor(playerid, COLOR_GREEN);
  }
  if(gTeam[playerid] == TEAM_CHICKENS)
  {
    SetPlayerColor(playerid, COLOR_YELLOW);
  }
  if(gTeam[playerid] == TEAM_KAMIKAZERS)
  {
    SetPlayerColor(playerid, COLOR_RED);
  }
  if(gTeam[playerid] == TEAM_IMMIGRANTS)
  {
    SetPlayerColor(playerid, COLOR_CORAL);
  }
  if(gTeam[playerid] == TEAM_MEDICS)
  {
    SetPlayerColor(playerid, COLOR_ORANGE);
  }
  if(gTeam[playerid] == TEAM_FARMERS)
  {
    SetPlayerColor(playerid, COLOR_PINK);
  }
  if(gTeam[playerid] == TEAM_RICHS)
  {
    SetPlayerColor(playerid, COLOR_LIGHTBLUE);
  }
  if(gTeam[playerid] == TEAM_PILOTS)
  {
    SetPlayerColor(playerid, COLOR_GREY);
  }

  }
Reply
#5

This is the screen of a random team chosen:

Reply
#6

Because you have your Z Coordinates way in the sky, make sure you're setting the player's Interior if that is your intention.
Reply
#7

There's no team spawning in interior,that's strange..
Reply
#8

BUMP,it's pretty urgent ...
Reply
#9

Change cords to 0,0,2 and see if you still can't see anything, if you can't add try SetPlayerInterior, or SetPlayerVirtualworld,
Reply
#10

Got it,it's SetPlayerInterior that causes problems.

Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)