How To Make a Simple Skin Selection ?
#1

Hello Guys, i m new scripter and i want to add Skin Selection i Have evrything in script...But When people want to select
the skin CJ skin only apear and No Other Skins..
So Guys i Want You to Help Me its Not a problem..Just Asking How to do it ..

Thanks For evry one that Will Help Me !! and rep+
Reply
#2

How are we supposed to help you if we can't see the code?
Reply
#3

Here is OnPlayerRequestClass Code

public OnPlayerRequestClass(playerid, classid)
{
PlayerPlaySound(playerid,1097,2050.1995, 1344.5500, 13.237;
SetPlayerPos(playerid,2494.3813,-1666.6300,13.343;
SetPlayerFacingAngle(playerid, 90.1217);
SetPlayerInterior(playerid,0);
SetPlayerCameraPos(playerid,2485.8796,-1666.2290,13.343;
SetPlayerCameraLookAt(playerid,2496.2637,-1662.7610,13.3359);
ApplyAnimation(playerid,"DANCING","DNCE_M_A",4.0,1 ,0,0,0,-1);
return 1;
}

i Want You To Help Me How to add skins into Skin selection
That i can click to the arrow and the skin change than click ok to spawn
Got it
Reply
#4

pawn Код:
new bool: InCar[MAX_PLAYERS];
public OnGameModeInit()
{
    AddPlayerClass(293,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // 0
    AddPlayerClass(299,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // 1
    AddPlayerClass(298,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // 2
    AddPlayerClass(297,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // 3
    AddPlayerClass(104,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // Ballas 3 - 4
    AddPlayerClass(103,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // Ballas 2 - 5
    AddPlayerClass(102,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // Ballas 1 - 6
    AddPlayerClass(107,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // Grove 3 - 7
    AddPlayerClass(106,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // Grove 2 - 8
    AddPlayerClass(105,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // Grove 1 - 9
    AddPlayerClass(296,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // 4
    AddPlayerClass(295,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // 5
    AddPlayerClass(294,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // 6
    AddPlayerClass(292,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC 7
    AddPlayerClass(291,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC 8
    AddPlayerClass(290,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC 9
    AddPlayerClass(288,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC 10
    AddPlayerClass(287,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC 11
    AddPlayerClass(286,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC 12
    AddPlayerClass(285,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC 13
    AddPlayerClass(284,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC 14
    AddPlayerClass(283,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC 15
    AddPlayerClass(282,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC 16
    AddPlayerClass(281,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC 17
    AddPlayerClass(280,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC 18
    AddPlayerClass(279,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC 19
    AddPlayerClass(278,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC 20
    AddPlayerClass(276,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC 21
    AddPlayerClass(274,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC 22
    AddPlayerClass(272,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC 2
    AddPlayerClass(271,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(270,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(269,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(268,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(267,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(266,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(265,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(264,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(258,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(256,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(255,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(252,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(250,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(249,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(248,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(247,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(241,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(240,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(233,2119.5608,1233.0441,10.8203,89.3993,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(223,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(221,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(217,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(212,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(209,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(205,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(204,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(203,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(197,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(195,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(186,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(185,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(184,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(181,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(180,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(179,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(178,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(175,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(174,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(173,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(167,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(165,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(162,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(156,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(154,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(143,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(127,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(126,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(125,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(124,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(123,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(122,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(121,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(120,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(118,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(117,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(116,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(115,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(114,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(113,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(112,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(111,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(110,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(109,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(108,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(101,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(100,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(99,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(82,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(81,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(70,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(67,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(62,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(51,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(50,-543.4429,2573.9592,53.5156,270.4008,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(49,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(41,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(29,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(28,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(26,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(25,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(24,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(23,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(22,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(21,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(20,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(19,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(7,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(0,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(1,-543.4693,2607.3337,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    AddPlayerClass(2,-543.7243,2592.7314,53.5156,270.7141,0,0,0,0,0,0); // OG LOC
    return 1;
}
SetupPlayerForClassSelection(playerid)
{
    InCar[playerid] = false;
    SetPlayerPos(playerid,1103.3688,-827.0107,114.4477);
    SetPlayerFacingAngle(playerid, 60);
    SetPlayerCameraPos(playerid,1099.5803,-822.9796,114.4477);
    SetPlayerCameraLookAt(playerid,1101.4971,-825.1699,114.4477);

}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

public OnPlayerRequestClass(playerid, classid)
{
    PlayerPlaySound(playerid, 1097, -1370.2362,-256.3250,14.1440);
    SetupPlayerForClassSelection(playerid);
    return 1;
}
hope i helped
Reply
#5

Use:

AddPlayerClass callback.

Heres some from my side:

//Add under OnGameModeInIt

AddPlayerClass(1, -1483.5228,2615.6306,58.7879,2.3950,0,0,0,0,0,0); //Old man
AddPlayerClass(29, -1483.5228,2615.6306,58.7879,2.3950,0,0,0,0,0,0);// Drug dealer
AddPlayerClass(47, -1483.5228,2615.6306,58.7879,2.3950,0,0,0,0,0,0);// Green shirt ped
AddPlayerClass(57, -1483.5228,2615.6306,58.7879,2.3950,0,0,0,0,0,0); //Fed guy
AddPlayerClass(60, -1483.5228,2615.6306,58.7879,2.3950,0,0,0,0,0,0);// Cool guy in grey shirt
AddPlayerClass(70, -1483.5228,2615.6306,58.7879,2.3950,0,0,0,0,0,0);//Scientist in white shirt
Reply
#6

pawn Код:
public OnGameModeInit()
{
   for(new i = 0; i < 299; i++)
   {
      if(i != 0) // List your skins here that you don't want to add.
      {
         AddPlayerClass(i, -543.7243, 2592.7314, 53.5156, 270.7141, 0, 0, 0, 0, 0, 0);
      }
   }
   return 1;
}
Reply
#7

Thanks Anthony and Gangs_Rocks and Campbell-
Reply
#8

wooot :O
how u knew my name i anthony? :P
anw glad i helped
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)