SA-MP Forums Archive
spawn coordinates. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: spawn coordinates. (/showthread.php?tid=199220)



spawn coordinates. - Face9000 - 14.12.2010

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?


Re: spawn coordinates. - blackwave - 14.12.2010

Check your OnPlayerSpawn.


Re: spawn coordinates. - twinki - 14.12.2010

Those are the spawning coordonates for the teams?


Re: spawn coordinates. - Face9000 - 14.12.2010

@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);
  }

  }



Re: spawn coordinates. - Face9000 - 14.12.2010

This is the screen of a random team chosen:




Re: spawn coordinates. - Joe Staff - 14.12.2010

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


Re: spawn coordinates. - Face9000 - 14.12.2010

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


Re: spawn coordinates. - Face9000 - 15.12.2010

BUMP,it's pretty urgent ...


Re: spawn coordinates. - Haydz - 15.12.2010

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


Re: spawn coordinates. - Face9000 - 15.12.2010

Got it,it's SetPlayerInterior that causes problems.

Thanks.