SA-MP Forums Archive
[Include] AH-EasySkins (Group Classes And Align Them Easily) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] AH-EasySkins (Group Classes And Align Them Easily) (/showthread.php?tid=240436)



AH-EasySkins (Group Classes And Align Them Easily) - AH.1990 - 15.03.2011

AH-EasyClasses

This Include was made from scratch by me.
It allows you to easily create , group and align classes.
  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!
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 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
  1. SolidFiles
  2. Pastebin
Noone

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

Enjoy!!


Re: AH-EasySkins (Group Classes And Align Them Easily) - Ivan_Pantovic - 15.03.2011

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


Re: AH-EasySkins (Group Classes And Align Them Easily) - AH.1990 - 15.03.2011

you are welcome
glad you like it


Re: AH-EasySkins (Group Classes And Align Them Easily) - Master_Gangster - 16.03.2011

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


Re: AH-EasySkins (Group Classes And Align Them Easily) - Ironboy - 16.03.2011

Nice Include


Re: AH-EasySkins (Group Classes And Align Them Easily) - AH.1990 - 16.03.2011

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


Re: AH-EasySkins (Group Classes And Align Them Easily) - iggy1 - 16.03.2011

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.


Re: AH-EasySkins (Group Classes And Align Them Easily) - AH.1990 - 16.03.2011

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


Re: AH-EasySkins (Group Classes And Align Them Easily) - iggy1 - 16.03.2011

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


Re: AH-EasySkins (Group Classes And Align Them Easily) - Sasino97 - 16.03.2011

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

ITALIAN


Re: AH-EasySkins (Group Classes And Align Them Easily) - AH.1990 - 16.03.2011

my bad

will fix it right now


Re: AH-EasySkins (Group Classes And Align Them Easily) - AH.1990 - 16.03.2011

Updated Added Skin Checking Check the first post for more info


Re: AH-EasySkins (Group Classes And Align Them Easily) - Kyro - 16.03.2011

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


Re: AH-EasySkins (Group Classes And Align Them Easily) - AH.1990 - 16.03.2011

thank you