I cant see the model in class selection
#1

Hi all,in my server i've different screens for every team,but i've a problem:

/imageshack/i/samp20101218172614.jpg

As you cant see,when i choose a team,i cant see the model of the team.In this case,a pilot.

Any help?
Reply
#2

1. Maybe you didn't add the classes?
2. Maybe you didn't put the correct: SetPlayerPos, SetPlayerCameraPos, SetPlayerCameraLookAt
-----------------------------------------------------------------------------------------------
Reply
#3

Set the SetPlayerPos the same with the SetPlayerCameraLookAt

Example:
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
Reply
#4

This is my OnPlayerRequestClass:

Код:
public OnPlayerRequestClass(playerid, classid)
{
  SetPlayerFacingAngle(playerid,1);
  gPlayerClass[playerid] = classid;

  switch (classid) {

	   case 0:

	    {
      gTeam[playerid] = TEAM_SWAT;
	  GameTextForPlayer(playerid, "~g~Swat", 1000, 6);
	  SetPlayerCameraPos(playerid,-1585.859,712.039,-4.088);
      SetPlayerCameraLookAt(playerid,-1590.260,714.383,-5.242);
      SetPlayerFacingAngle(playerid,1);
	    }
	   case 1:

	    {
      gTeam[playerid] = TEAM_CHICKENS;
      GameTextForPlayer(playerid, "~y~Chickens", 1000, 6);
      SetPlayerCameraPos(playerid,-2674.063,272.076,6.053);
      SetPlayerCameraLookAt(playerid,-2672.888,266.586,4.335);
      SetPlayerFacingAngle(playerid,1);
	    }
	      case 2:

	    {
      gTeam[playerid] = TEAM_KAMIKAZERS;
      GameTextForPlayer(playerid, "~r~Kamikazers", 1000, 6);
      SetPlayerCameraPos(playerid,-1833.725,881.319,87.250);
      SetPlayerCameraLookAt(playerid,-1830.012,881.114,87.195);
      SetPlayerFacingAngle(playerid,1);
	    }
	      case 3:

	    {
      gTeam[playerid] = TEAM_IMMIGRANTS;
      GameTextForPlayer(playerid, "~g~Immigrants", 1000, 6);
      SetPlayerCameraPos(playerid,-1453.411,1505.879,2.141);
      SetPlayerCameraLookAt(playerid,-1448.855,1504.286,1.736);
      SetPlayerFacingAngle(playerid,1);
	    }
	      case 4:

	    {
      gTeam[playerid] = TEAM_MEDICS;
      GameTextForPlayer(playerid, "~r~Medics", 1000, 6);
      SetPlayerCameraPos(playerid,-2689.175,622.850,15.528);
      SetPlayerCameraLookAt(playerid,-2690.032,633.025,14.453);
      SetPlayerFacingAngle(playerid,1);
	    }
	      case 5:

	    {
      gTeam[playerid] = TEAM_FARMERS;
      GameTextForPlayer(playerid, "~g~Farmers", 1000, 6);
      SetPlayerCameraPos(playerid,-1115.033,-1196.493,129.692);
      SetPlayerCameraLookAt(playerid,-1109.436,-1196.336,129.225);
      SetPlayerFacingAngle(playerid,1);
	    }
	      case 6:

	    {
      gTeam[playerid] = TEAM_RICHS;
      GameTextForPlayer(playerid, "~y~Richs", 1000, 6);
      SetPlayerCameraPos(playerid,-2726.348,992.213,55.236);
      SetPlayerCameraLookAt(playerid,-2724.392,988.204,54.460);
      SetPlayerFacingAngle(playerid,1);
	    }
	      case 7:

	    {
      gTeam[playerid] = TEAM_PILOTS;
      GameTextForPlayer(playerid, "~b~Pilots", 1000, 6);
      SetPlayerCameraPos(playerid,-1373.156,-211.685,14.751);
      SetPlayerCameraLookAt(playerid,-1374.170,-215.035,14.148);
      SetPlayerFacingAngle(playerid,1);
	    }
  }
  	return 1;
}
Reply
#5

Maybe if you did read, you could resolve the problem yourself, without have to post this code...


Set the SetPlayerPos the same with the SetPlayerCameraLookAt

Example:
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);


Aki's post..
Reply
#6

Код:
public OnPlayerRequestClass(playerid, classid)
{
  SetPlayerFacingAngle(playerid,1);
  gPlayerClass[playerid] = classid;

  switch (classid) {

	   case 0:

	    {
      gTeam[playerid] = TEAM_SWAT;
	  GameTextForPlayer(playerid, "~g~Swat", 1000, 6);
	  SetPlayerCameraPos(playerid,-1585.859,712.039,-4.088);
      SetPlayerCameraLookAt(playerid,-1590.260,714.383,-5.242);
      SetPlayerPos(playerid, -1590.260,714.383,-5.242);
      SetPlayerFacingAngle(playerid,1);
	    }
	   case 1:

	    {
      gTeam[playerid] = TEAM_CHICKENS;
      GameTextForPlayer(playerid, "~y~Chickens", 1000, 6);
      SetPlayerCameraPos(playerid,-2674.063,272.076,6.053);
      SetPlayerCameraLookAt(playerid,-2672.888,266.586,4.335);
      SetPlayerPos(playerid,-2672.888,266.586,4.335);
      SetPlayerFacingAngle(playerid,1);
	    }
	      case 2:

	    {
      gTeam[playerid] = TEAM_KAMIKAZERS;
      GameTextForPlayer(playerid, "~r~Kamikazers", 1000, 6);
      SetPlayerCameraPos(playerid,-1833.725,881.319,87.250);
      SetPlayerCameraLookAt(playerid,-1830.012,881.114,87.195);
      SetPlayerPos(playerid,-1830.012,881.114,87.195);
      SetPlayerFacingAngle(playerid,1);
	    }
	      case 3:

	    {
      gTeam[playerid] = TEAM_IMMIGRANTS;
      GameTextForPlayer(playerid, "~g~Immigrants", 1000, 6);
      SetPlayerCameraPos(playerid,-1453.411,1505.879,2.141);
      SetPlayerCameraLookAt(playerid,-1448.855,1504.286,1.736);
      SetPlayerPos(playerid,-1448.855,1504.286,1.736);
      SetPlayerFacingAngle(playerid,1);
	    }
	      case 4:

	    {
      gTeam[playerid] = TEAM_MEDICS;
      GameTextForPlayer(playerid, "~r~Medics", 1000, 6);
      SetPlayerCameraPos(playerid,-2689.175,622.850,15.528);
      SetPlayerCameraLookAt(playerid,-2690.032,633.025,14.453);
      SetPlayerPos(playerid,-2690.032,633.025,14.453);
      SetPlayerFacingAngle(playerid,1);
	    }
	      case 5:

	    {
      gTeam[playerid] = TEAM_FARMERS;
      GameTextForPlayer(playerid, "~g~Farmers", 1000, 6);
      SetPlayerCameraPos(playerid,-1115.033,-1196.493,129.692);
      SetPlayerCameraLookAt(playerid,-1109.436,-1196.336,129.225);
      SetPlayerPos(playerid,-1109.436,-1196.336,129.225);
      SetPlayerFacingAngle(playerid,1);
	    }
	      case 6:

	    {
      gTeam[playerid] = TEAM_RICHS;
      GameTextForPlayer(playerid, "~y~Richs", 1000, 6);
      SetPlayerCameraPos(playerid,-2726.348,992.213,55.236);
      SetPlayerCameraLookAt(playerid,-2724.392,988.204,54.460);
      SetPlayerPos(playerid,-2724.392,988.204,54.460);
      SetPlayerFacingAngle(playerid,1);
	    }
	      case 7:

	    {
      gTeam[playerid] = TEAM_PILOTS;
      GameTextForPlayer(playerid, "~b~Pilots", 1000, 6);
      SetPlayerCameraPos(playerid,-1373.156,-211.685,14.751);
      SetPlayerCameraLookAt(playerid,-1374.170,-215.035,14.148);
      SetPlayerPos(playerid,-1374.170,-215.035,14.148);
      SetPlayerFacingAngle(playerid,1);
	    }
  }
  	return 1;
}
Reply
#7

Quote:
Originally Posted by blackwave
Посмотреть сообщение
Maybe if you did read, you could resolve the problem yourself, without have to post this code...


Set the SetPlayerPos the same with the SetPlayerCameraLookAt

Example:
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);


Aki's post..
LOL Please dont talk me like that,i readed what Aki's writed,i posted the code just to be secured.
Reply
#8

and now it will be a flame war again so don't start another one please thanks, Lil'Mid.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)