SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 15/03/2011, 09:35 PM   #1
AH.1990
Big Clucker
 
Join Date: Mar 2011
Posts: 50
Reputation: 2
Default AH-EasySkins (Group Classes And Align Them Easily)

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 Code:
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 Code:
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!!
__________________
Scripting For Money!!
I Can Script ANY THING!!!
You Can Add My E-mail And Offer Me
We Will Use Western Union For Money Transfer
E-mail :AH.1990@rocketmail.com
--------------------------------------------------------------
My Work:

Last edited by AH.1990; 16/03/2011 at 04:39 PM.
AH.1990 is offline   Reply With Quote
Old 15/03/2011, 09:39 PM   #2
Ivan_Pantovic
Banned
 
Join Date: Apr 2010
Location: Belgrade, Serbia
Posts: 376
Reputation: 26
Default Re: AH-EasySkins (Group Classes And Align Them Easily)

Wow, nice functions, allowing people to do some stuff in much easier way
I might use it, thanks!
Ivan_Pantovic is offline   Reply With Quote
Old 15/03/2011, 09:42 PM   #3
AH.1990
Big Clucker
 
Join Date: Mar 2011
Posts: 50
Reputation: 2
Default Re: AH-EasySkins (Group Classes And Align Them Easily)

you are welcome
glad you like it
__________________
Scripting For Money!!
I Can Script ANY THING!!!
You Can Add My E-mail And Offer Me
We Will Use Western Union For Money Transfer
E-mail :AH.1990@rocketmail.com
--------------------------------------------------------------
My Work:
AH.1990 is offline   Reply With Quote
Old 16/03/2011, 01:24 AM   #4
Master_Gangster
Huge Clucker
 
Master_Gangster's Avatar
 
Join Date: Jan 2009
Posts: 272
Reputation: 0
Default Re: AH-EasySkins (Group Classes And Align Them Easily)

awesome include might take a look at it, If I like it (which I'm sure I will) I'll use it (:
Master_Gangster is offline   Reply With Quote
Old 16/03/2011, 06:29 AM   #5
Ironboy
High-roller
 
Ironboy's Avatar
 
Join Date: Nov 2010
Location: United Arab Emirates
Posts: 1,669
Reputation: 368
Default Re: AH-EasySkins (Group Classes And Align Them Easily)

Nice Include
__________________
Ironboy is offline   Reply With Quote
Old 16/03/2011, 10:50 AM   #6
AH.1990
Big Clucker
 
Join Date: Mar 2011
Posts: 50
Reputation: 2
Default Re: AH-EasySkins (Group Classes And Align Them Easily)

Quote:
Originally Posted by Master_Gangster View Post
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 View Post
Nice Include
thank you
__________________
Scripting For Money!!
I Can Script ANY THING!!!
You Can Add My E-mail And Offer Me
We Will Use Western Union For Money Transfer
E-mail :AH.1990@rocketmail.com
--------------------------------------------------------------
My Work:
AH.1990 is offline   Reply With Quote
Old 16/03/2011, 11:05 AM   #7
iggy1
High-roller
 
iggy1's Avatar
 
Join Date: Mar 2009
Location: One past the end.
Posts: 2,383
Reputation: 235
Default Re: AH-EasySkins (Group Classes And Align Them Easily)

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.
__________________
Quote:
Originally Posted by Y_Less
That code compiles perfectly, but I can tell you now it won't make me a cup of tea.
"No offense, but you are a stupid asshole." - Ron Burgundy
iggy1 is offline   Reply With Quote
Old 16/03/2011, 12:12 PM   #8
AH.1990
Big Clucker
 
Join Date: Mar 2011
Posts: 50
Reputation: 2
Default Re: AH-EasySkins (Group Classes And Align Them Easily)

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 Code:
if(classid == GrooveClasses)
{
         //Code here
}

if so i can make them easily just tell me if this is what you want
__________________
Scripting For Money!!
I Can Script ANY THING!!!
You Can Add My E-mail And Offer Me
We Will Use Western Union For Money Transfer
E-mail :AH.1990@rocketmail.com
--------------------------------------------------------------
My Work:
AH.1990 is offline   Reply With Quote
Old 16/03/2011, 12:29 PM   #9
iggy1
High-roller
 
iggy1's Avatar
 
Join Date: Mar 2009
Location: One past the end.
Posts: 2,383
Reputation: 235
Default Re: AH-EasySkins (Group Classes And Align Them Easily)

Yes it would make it better allround, then it could be used in all modes. (including mine)
__________________
Quote:
Originally Posted by Y_Less
That code compiles perfectly, but I can tell you now it won't make me a cup of tea.
"No offense, but you are a stupid asshole." - Ron Burgundy
iggy1 is offline   Reply With Quote
Old 16/03/2011, 12:51 PM   #10
Sasino97
High-roller
 
Sasino97's Avatar
 
Join Date: Dec 2010
Location: Napoli, Italia
Posts: 1,326
Reputation: 64
Default Re: AH-EasySkins (Group Classes And Align Them Easily)

Quote:
Originally Posted by AH.1990 View Post
Adds itallian maffia skins / classes at the specified position
Itallian?

ITALIAN
__________________
Code:
Sasino97 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] [INC] ezBriefMessages - Show Objectives easily! Rzzr Includes 20 07/03/2010 10:44 AM
[FilterScript] [FS] Weaponset - Change your weapons in fight easily! @TheShadow@ Filterscripts 8 08/06/2009 05:53 PM
[Include] [INC] Bzuco┤s interior script - Add easily shops/pubs etc. bzuco Includes 43 20/05/2009 09:13 PM


All times are GMT. The time now is 04:51 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.