[HELP] Teams
#1

When I'm typing /tpm it says I'm not in a team...
I have maked teams for each skin, like this:

Код:
public OnPlayerRequestClass(playerid, classid)
{
  PlayerPlaySound(playerid,1187,0,0,0);
  
  switch(classid)
  {
    case 0:
    {
    	GameTextForPlayer(playerid,"~n~~n~~n~~r~Leader Only, choose this skin will get you kicked!",1500,3);
			{
		    SetPlayerInterior(playerid, 0);
				SetPlayerPos(playerid,2512.5608,-1672.9667,13.5011);
				SetPlayerFacingAngle(playerid,64.2249);
				SetPlayerCameraPos(playerid,2508.3335,-1671.0104,13.3804);
				SetPlayerCameraLookAt(playerid,2512.5608,-1672.9667,13.5011);
				SetPlayerColor(playerid,0x33AA33AA);
				SetPlayerTeam(playerid,1);
				ApplyAnimation(playerid, "PLAYIDLES", "TIME", 4.1,1,1,1,1,1);
			}
	  }
	  case 1:
	  {
			GameTextForPlayer(playerid,"~n~~n~~n~~r~Leader Only, choose this skin will get you kicked!",15000,3);
			{
		    SetPlayerInterior(playerid, 0);
				SetPlayerPos(playerid,2472.9453,-1685.5513,13.5078);
				SetPlayerFacingAngle(playerid,311.5923);
				SetPlayerCameraPos(playerid,2476.3086,-1682.2748,13.3651);
				SetPlayerCameraLookAt(playerid,2472.9453,-1685.5513,13.5078);
				SetPlayerColor(playerid,0x33AA33AA);
				SetPlayerTeam(playerid,1);
				ApplyAnimation(playerid,"PLAYIDLES","TIME",4.1,1,1,1,1,1);
		 	}
	  }
	  case 2:
	  {
			GameTextForPlayer(playerid,"~n~~n~~n~~r~Leader Only, choose this skin will get you kicked!",15000,3);
			{
		    SetPlayerInterior(playerid, 0);
				SetPlayerPos(playerid,2073.7031,-1698.3047,13.5547);
				SetPlayerFacingAngle(playerid,305.7675);
				SetPlayerCameraPos(playerid,2077.3848,-1695.4141,13.3906);
				SetPlayerCameraLookAt(playerid,2073.7031,-1698.3047,13.5547);
				SetPlayerColor(playerid,0x33AA33AA);
				SetPlayerTeam(playerid,1);
				ApplyAnimation(playerid,"PLAYIDLES","TIME",4.1,1,1,1,1,1);
			}
	  }
	  case 3:
	  {
			GameTextForPlayer(playerid,"~n~~n~~n~~w~Grove Street Families",15000,3);
			{
		    SetPlayerInterior(playerid, 0);
				SetPlayerPos(playerid,2510.8049,-1672.5457,13.4367);
				SetPlayerFacingAngle(playerid,257.4974);
				SetPlayerCameraPos(playerid,2515.3618,-1673.4263,13.7578);
				SetPlayerCameraLookAt(playerid,2510.8049,-1672.5457,13.4367);
				SetPlayerColor(playerid,0x33AA33AA);
				SetPlayerTeam(playerid,1);
				ApplyAnimation(playerid,"PLAYIDLES","TIME",4.1,1,1,1,1,1);
		 	}
	  }
	  case 4:
	  {
			GameTextForPlayer(playerid,"~n~~n~~n~~w~Grove Street Families",15000,3);
			{
		    SetPlayerInterior(playerid, 0);
				SetPlayerPos(playerid,2510.8049,-1672.5457,13.4367);
				SetPlayerFacingAngle(playerid,257.4974);
				SetPlayerCameraPos(playerid,2515.3618,-1673.4263,13.7578);
				SetPlayerCameraLookAt(playerid,2510.8049,-1672.5457,13.4367);
				SetPlayerColor(playerid,0x33AA33AA);
				SetPlayerTeam(playerid,1);
				ApplyAnimation(playerid,"PLAYIDLES","TIME",4.1,1,1,1,1,1);
		 	}
	  }
	  case 5:
	  {
			GameTextForPlayer(playerid,"~n~~n~~n~~w~Grove Street Families",15000,3);
			{
		    SetPlayerInterior(playerid, 0);
				SetPlayerPos(playerid,2510.8049,-1672.5457,13.4367);
				SetPlayerFacingAngle(playerid,257.4974);
				SetPlayerCameraPos(playerid,2515.3618,-1673.4263,13.7578);
				SetPlayerCameraLookAt(playerid,2510.8049,-1672.5457,13.4367);
				SetPlayerColor(playerid,0x33AA33AA);
				SetPlayerTeam(playerid,1);
				ApplyAnimation(playerid,"PLAYIDLES","TIME",4.1,1,1,1,1,1);
		 	}
	  }
	  case 6:
	  {
			GameTextForPlayer(playerid,"~n~~n~~n~~w~Grove Street Families",15000,3);
			{
		    SetPlayerInterior(playerid, 0);
				SetPlayerPos(playerid,2402.2185,-1724.1449,13.5890);
				SetPlayerFacingAngle(playerid,178.5367);
				SetPlayerCameraPos(playerid,2402.2507,-1728.5920,13.3828);
				SetPlayerCameraLookAt(playerid,2402.2185,-1724.1449,13.5890);
				SetPlayerColor(playerid,0x33AA33AA);
				SetPlayerTeam(playerid,1);
				ApplyAnimation(playerid,"PLAYIDLES","TIME",4.1,1,1,1,1,1);
		 	}
	  }
	  case 7:
	  {
			GameTextForPlayer(playerid,"~n~~n~~n~~w~The Ballas",15000,3);
			{
		    SetPlayerInterior(playerid, 0);
				SetPlayerPos(playerid,1899.3342,-1114.0002,26.6664);
				SetPlayerFacingAngle(playerid,270.3702);
				SetPlayerCameraPos(playerid,1903.8831,-1113.9707,26.6664);
				SetPlayerCameraLookAt(playerid,1899.3342,-1114.0002,26.6664);
				SetPlayerColor(playerid,0x800080AA);
				SetPlayerTeam(playerid,2);
				ApplyAnimation(playerid,"PLAYIDLES","TIME",4.1,1,1,1,1,1);
		 	}
	  }
	  case 8:
	  {
			GameTextForPlayer(playerid,"~n~~n~~n~~w~The Ballas",15000,3);
			{
		    SetPlayerInterior(playerid, 0);
				SetPlayerPos(playerid,1899.3342,-1114.0002,26.6664);
				SetPlayerFacingAngle(playerid,270.3702);
				SetPlayerCameraPos(playerid,1903.8831,-1113.9707,26.6664);
				SetPlayerCameraLookAt(playerid,1899.3342,-1114.0002,26.6664);
				SetPlayerColor(playerid,0x800080AA);
				SetPlayerTeam(playerid,2);
				ApplyAnimation(playerid,"PLAYIDLES","TIME",4.1,1,1,1,1,1);
		 	}
	  }
	  case 9:
	  {
			GameTextForPlayer(playerid,"~n~~n~~n~~w~The Ballas",15000,3);
			{
		    SetPlayerInterior(playerid, 0);
				SetPlayerPos(playerid,1899.3342,-1114.0002,26.6664);
				SetPlayerFacingAngle(playerid,270.3702);
				SetPlayerCameraPos(playerid,1903.8831,-1113.9707,26.6664);
				SetPlayerCameraLookAt(playerid,1899.3342,-1114.0002,26.6664);
				SetPlayerColor(playerid,0x800080AA);
				SetPlayerTeam(playerid,2);
				ApplyAnimation(playerid,"PLAYIDLES","TIME",4.1,1,1,1,1,1);
		 	}
	  }
Any ideas why it dont work?
Reply
#2

I haven't looked at the code but I suggest you to read this also.
https://sampwiki.blast.hk/wiki/OnPlayerTeamPrivmsg

It's just missed from a_samp's include.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)