[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
#2

Wow, nice functions, allowing people to do some stuff in much easier way
I might use it, thanks!
Reply
#3

you are welcome
glad you like it
Reply
#4

awesome include might take a look at it, If I like it (which I'm sure I will) I'll use it (:
Reply
#5

Nice Include
Reply
#6

Quote:
Originally Posted by Master_Gangster
Посмотреть сообщение
awesome include might take a look at it, If I like it (which I'm sure I will) I'll use it (:
thanks

Quote:
Originally Posted by Ironboy
Посмотреть сообщение
Nice Include
thank you
Reply
#7

I was going to use this but can't. There is a minor problem using this in a TDM mode. There is no access to the classids without opening the include and counting the skins in a "class group". Making showing TextDraws ect, inside "OnPlayerRequestClass" harder. Maybe something like GetSkinClassid(skinid); if possible would help though i don't know if it is.

Other than that good include, i'd use this if i was writting a normal dm or something that doesnt require me doing stuff to classes.
Reply
#8

so you want to make like a gametext or a TXTD if player come to Choose a certain group ??

if so i can make it

like
pawn Код:
if(classid == GrooveClasses)
{
         //Code here
}
if so i can make them easily just tell me if this is what you want
Reply
#9

Yes it would make it better allround, then it could be used in all modes. (including mine)
Reply
#10

Quote:
Originally Posted by AH.1990
Посмотреть сообщение
Adds itallian maffia skins / classes at the specified position
Itallian?

ITALIAN
Reply
#11

my bad

will fix it right now
Reply
#12

Updated Added Skin Checking Check the first post for more info
Reply
#13

Wow Good Job also the skin checking is useful definitely i will use this !!
Reply
#14

thank you
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)