[Include] AH-EasySkins (Group Classes And Align Them Easily)
#1

AH-EasyClasses

  • Introduction
This Include was made from scratch by me.
It allows you to easily create , group and align classes.
  • How To Start Using it
  1. Download The Include
  2. Put AHI folder and AH-FuncList In pawno\include
  3. In your game mode or filter script write #include<AHI\AH-EasySkins>>
  4. Now You Can use all the functions Enjoy!
  • Features / Functions
  • AHSkin_GameModeInit();

    You Must put it under OnGameModeInit if its not a filterscript in order to use the include

  • AHSkin_FilterScriptInit();

    You Must put it under OnFilterScriptInit if its not a game mode in order to use the include

  • AddAllClasses(Float: x_spawn, Float:y_spawn, Float:z_spawn, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);

    Adds all skins / classes at the specified position in this order : 1-male 2-female 3-gangs(aligned exactly as the wiki) 4-public services(1-medics 2-firemen 3-police)

  • AddNormalMaleClasses(Float: x_spawn, Float:y_spawn, Float:z_spawn, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);

    Adds all normal male skins / classes at the specified position

  • AddNormalFemaleClasses(Float: x_spawn, Float:y_spawn, Float:z_spawn, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);

    Adds all normal female skins / classes at the specified position

  • AddAllGangsClasses(Float: x_spawn, Float:y_spawn, Float:z_spawn, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);

    Adds all gangs skins / classes at the specified position

  • AddGrooveClasses(Float: x_spawn, Float:y_spawn, Float:z_spawn, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);

    Adds groove gang skins / classes at the specified position

  • AddBallasClasses(Float: x_spawn, Float:y_spawn, Float:z_spawn, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);

    Adds ballas gang skins / classes at the specified position

  • AddAzectasClasses(Float: x_spawn, Float:y_spawn, Float:z_spawn, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);

    Adds azectas gang skins / classes at the specified position'

  • AddVagosClasses(Float: x_spawn, Float:y_spawn, Float:z_spawn, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);

    Adds vagos gang skins / classes at the specified position

  • AddNangClasses(Float: x_spawn, Float:y_spawn, Float:z_spawn, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);

    Adds nang gang skins / classes at the specified position

  • AddRifaClasses(Float: x_spawn, Float:y_spawn, Float:z_spawn, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);

    Adds rifa gang skins / classes at the specified classes

  • AddTriadsClasses(Float: x_spawn, Float:y_spawn, Float:z_spawn, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);

    Adds triads gang skins / classes at the specified position

  • AddBikersClasses(Float: x_spawn, Float:y_spawn, Float:z_spawn, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);

    Adds bikers gang skins / classes at the specified position

  • AddRMaffiaClasses(Float: x_spawn, Float:y_spawn, Float:z_spawn, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);

    Adds russian maffia skins / classes at the specified position

  • AddIMaffiaClasses(Float: x_spawn, Float:y_spawn, Float:z_spawn, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);

    Adds italian maffia skins / classes at the specified position

  • AddAllPublicServicesClasses(Float: x_spawn, Float:y_spawn, Float:z_spawn, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);

    Adds all public services skins / classes at the specified position

  • AddMedicClasses(Float: x_spawn, Float:y_spawn, Float:z_spawn, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);

    Adds medic skins / classes at the specified position

  • AddFireClasses(Float: x_spawn, Float:y_spawn, Float:z_spawn, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);

    Adds firemen skins / classes at the specified position

  • AddPoliceClasses(Float: x_spawn, Float:y_spawn, Float:z_spawn, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);

    Adds police skins / classes at the specified position

  • AddClownClass(Float: x_spawn, Float:y_spawn, Float:z_spawn, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);

    Adds clown skin / class at the specified position
Added Skin Checking (Here it is Iggy ):

GrooveSkins[3];
BallasSkins[3];
AzectasSkins[3];
VagosSkins[3];
NangSkins[3];
RifaSkins[3];
TriadsSkins[3];
BikersSkins[3];
RMaffiaSkins[3];
IMaffiaSkins[4];
MedicSkins[3];
FireSkins[3];
PoliceSkins[11];
ClownSkin[1];


Example:
you can use it like this :

GrooveSkin[0];
GrooveSkin[1];
GrooveSkin[2];

Groove Contains only 3 skins so if you wanna Check if the skin is groove you would do this

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
        if(classid == GrooveSkins[0] || GrooveSkins[1] || GrooveSkins[2])
        {
                 SendClientMessage(playerid, Color, "Groove");
        }
        if(classid == IMaffiaSkins[0] || IMaffiaSkins[1] || IMaffiaSkins[2] || IMaffiaSkins[3])
        {
                 SendClientMessage(playerid, Color, "Italian Maffia");
        }
    return 1;
}
  • Examples
examples of using the include
pawn Код:
public OnGameModeInit()
{
         AddPoliceClasses(1554.7692,-1676.1294,16.1953, 0.0,24,100,0,0,0,0);
         return 1;
}
this will add all police skins and spawn them at los santos police department and give them a desert eagle with 100 bullet
  • Download
  1. SolidFiles
  2. Pastebin
  • Credits
Noone

If you face any trouble , found any mistake, wanna post an idea
post please

Enjoy!!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)