Cj skin problem Rep++
#1

When me request class i can't spawn and can't see skins only cj skin



Код:
	public OnPlayerRequestClass(playerid, classid)
   {
   {

    SetPlayerPos(playerid,1975.2399,-1220.0157,25.0779);
	SetPlayerCameraPos(playerid, 1969.5686,-1224.0016,24.9909);
	SetPlayerCameraLookAt(playerid, 1975.2399,-1220.0157,25.0779);
	SetPlayerFacingAngle(playerid,122.4500);
    switch(classid)
         {
         case 0:
         {
              SetPlayerTeam(playerid, Grove);
              GameTextForPlayer(playerid, "~g~Grove", 3000, 5);
              ApplyAnimation(playerid,"RAPPING","RAP_A_Loop",4.0,0,0,0,1,-1);
         }
         case 1:
         {
              SetPlayerTeam(playerid, Grove);
              GameTextForPlayer(playerid, "~g~Grove", 3000, 5);
     	      ApplyAnimation(playerid,"RAPPING","RAP_A_Loop",4.0,0,0,0,1,-1);
         }
         case 2:
         {
              SetPlayerTeam(playerid, Grove);
              GameTextForPlayer(playerid, "~g~Grove", 3000, 5);
              ApplyAnimation(playerid,"RAPPING","RAP_B_Loop",4.0,0,0,0,1,-1);
         }
         case 3:
         {
              SetPlayerTeam(playerid, Grove);
              GameTextForPlayer(playerid, "~g~Grove", 3000, 5);
              ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,0,0,0,1,-1);
              }
              
               case 4:
         {
              SetPlayerTeam(playerid, Ballas);
              GameTextForPlayer(playerid, "~p~Ballas", 3000, 5);
              ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,0,0,0,1,-1);
              }
              
                    case 5:
         {
              SetPlayerTeam(playerid, Ballas);
              GameTextForPlayer(playerid, "~p~Ballas", 3000, 5);
              ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,0,0,0,1,-1);
              }
              
                    case 6:
         {
              SetPlayerTeam(playerid, Ballas);
              GameTextForPlayer(playerid, "~p~Ballas", 3000, 5);
              ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,0,0,0,1,-1);
              }
              
              case 7:
         {
              SetPlayerTeam(playerid, Vagos);
              GameTextForPlayer(playerid, "~y~Vagos", 3000, 5);
              ApplyAnimation(playerid,"RAPPING","RAP_B_Loop",4.0,0,0,0,1,-1);
         }
              case 8:
         {
              SetPlayerTeam(playerid, Vagos);
              GameTextForPlayer(playerid, "~y~Vagos", 3000, 5);
              ApplyAnimation(playerid,"RAPPING","RAP_B_Loop",4.0,0,0,0,1,-1);
         }
              case 9:
         {
              SetPlayerTeam(playerid, Vagos);
              GameTextForPlayer(playerid, "~y~Vagos", 3000, 5);
              ApplyAnimation(playerid,"RAPPING","RAP_B_Loop",4.0,0,0,0,1,-1);
         }
         
                case 10:
         {
              SetPlayerTeam(playerid, Aztecas);
              GameTextForPlayer(playerid, "~b~~h~~h~Aztecas", 3000, 5);
              ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,0,0,0,1,-1);
              }
              
                     case 11:
         {
              SetPlayerTeam(playerid, Aztecas);
              GameTextForPlayer(playerid, "~b~~h~~h~Aztecas", 3000, 5);
              ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,0,0,0,1,-1);
              }
              
                     case 12:
         {
              SetPlayerTeam(playerid, Aztecas);
              GameTextForPlayer(playerid, "~b~~h~~h~Aztecas", 3000, 5);
              ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,0,0,0,1,-1);
              }
              
                     case 13:
         {
              SetPlayerTeam(playerid, Aztecas);
              GameTextForPlayer(playerid, "~b~~h~~h~Aztecas", 3000, 5);
              ApplyAnimation(playerid,"RAPPING","RAP_C_Loop",4.0,0,0,0,1,-1);
              }
              
              case 14:
         {
              SetPlayerTeam(playerid, cops);
              GameTextForPlayer(playerid, "~b~The Cops", 3000, 5);
              ApplyAnimation(playerid, "ped", "ARRESTgun", 4.0, 0, 1, 1, 1, 1, 1);

              }
              case 15:
         {
              SetPlayerTeam(playerid, cops);
              GameTextForPlayer(playerid, "~b~The Cops", 3000, 5);
              ApplyAnimation(playerid, "ped", "ARRESTgun", 4.0, 0, 1, 1, 1, 1, 1);

              }
              
             case 16:
         {
              SetPlayerTeam(playerid, cops);
              GameTextForPlayer(playerid, "~b~The Cops", 3000, 5);
              ApplyAnimation(playerid, "ped", "ARRESTgun", 4.0, 0, 1, 1, 1, 1, 1);
              
            }

                     case 17:
         {
              SetPlayerTeam(playerid, RM);
              GameTextForPlayer(playerid, "~r~The Russian Mafia", 3000, 5);
              
            }
                                 case 18:
         {
              SetPlayerTeam(playerid, RM);
              GameTextForPlayer(playerid, "~r~The Russian Mafia", 3000, 5);
              
            }
            
                                 case 19:
         {
              SetPlayerTeam(playerid, RM);
              GameTextForPlayer(playerid, "~r~The Russian Mafia", 3000, 5);
              
            }

		 }
   }
}
Player class

Код:
    AddPlayerClass(270,2498.4844,-1643.2212,13.7826,177.4201,0,0,0,0,0,0); // Grove
    AddPlayerClass(107,2523.1538,-1676.8932,19.9302,85.9960,0,0,0,0,0,0); // Grove
    AddPlayerClass(106,2520.4983,-1678.9030,15.0817,81.9226,0,0,0,0,0,0); // Grove
    AddPlayerClass(105,2498.4844,-1643.2212,13.7826,177.4201,0,0,0,0,0,0); // Grove
	AddPlayerClass(104,2168.0500,-1672.7062,15.0821,237.2750,0,0,0,0,0,0); // Ballas
	AddPlayerClass(102,2157.4907,-1708.4534,15.0859,359.4762,0,0,0,0,0,0);// Ballas
	AddPlayerClass(103,2190.2344,-1674.0280,14.2937,345.6894,0,0,0,0,0,0); // Ballas
	AddPlayerClass(109,2801.4448,-1088.8105,30.7218,275.2714,0,0,0,0,0,0); // Vagos
	AddPlayerClass(108,2801.4448,-1088.8105,30.7218,275.2714,0,0,0,0,0,0); // Vagos
	AddPlayerClass(110,2801.4448,-1088.8105,30.7218,275.2714,0,0,0,0,0,0); // Vagos
	AddPlayerClass(292,1755.6479,-1911.7106,13.5680,270.3058,0,0,0,0,0,0); // astecaspawn
	AddPlayerClass(115,1755.6479,-1911.7106,13.5680,270.3058,0,0,0,0,0,0); // Aztecas
	AddPlayerClass(116,1755.6479,-1911.7106,13.5680,270.3058,0,0,0,0,0,0); // Aztecas
	AddPlayerClass(266,1552.8384,-1675.1357,16.1953,89.8920,0,0,0,0,0,0); // PRVA
    AddPlayerClass(265,1580.5128,-1634.4861,13.5617,130.4118,0,0,0,0,0,0); // druga
    AddPlayerClass(267,1549.9097,-1639.7108,6.2188,140.2159,0,0,0,0,0,0); // treca
    AddPlayerClass(111,2787.7656,-2440.0081,13.6337,87.6605,0,0,0,0,0,0);// RMSPAWN1
    AddPlayerClass(112,2733.2246,-2510.9709,13.6641,353.6037,0,0,0,0,0,0); // RMSPAWN2
    AddPlayerClass(113,2778.6196,-2410.5166,13.6359,176.8974,0,0,0,0,0,0); // RMSPAWN3
Reply
#2

Search "SetPlayerSkin" in your gamemode, your code is ok
Reply
#3

Hey there I'm now a little busy but I saw that you have braces that you don't need. Remove the last brace "}" and the first "{" brace this should slove your issue.
Reply
#4

I have "SetPlayerSkin" only in /setskin command
Reply
#5

Quote:
Originally Posted by bgedition
Посмотреть сообщение
Hey there I'm now a little busy but I saw that you have braces that you don't need. Remove the last brace "}" and the first "{" brace this should slove your issue.
thanks but not working same problem
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)