SA-MP Forums Archive
[Include] OutSkins - Simple skin detection - 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] OutSkins - Simple skin detection (/showthread.php?tid=490140)



OutSkins - Simple skin detection - kooltuO - 25.01.2014

OutSkins
An easy way to skin detection.

Introduction
I decided to create a small include as I just started with scripting (scripting 2 days now)
It detects several skins, which can be used in an if or a switch (or any other detection)

What does OutSkins do?
OutSkins has several ways to detect skins, all pretty easy to create but can be usefull.

List of functions:
FunctionAction
IsLawEnforcerSkin(playerid)Detects if the player has a police officer skin.
IsGroveSkin(playerid)Detects if the player has a Grove Street skin.
IsBallasSkin(playerid)Detects if the player has a Kilo Tray Ballas skin.
IsVagosSkin(playerid)Detects if the player has a Vagos Gang skin.
IsAztecasSkin(playerid)Detects if the player has a Varrio Aztecas skin.
IsBouncerSkin(playerid)Detects if the player has a bouncer skin.
Added in 2.0:
IsPlayerMedic(playerid)Detects if the player has a medic skin.
IsPlayerFireFighter(playerid)Detects if the player has a firefighter skin.
IsPlayerFemale(playerid)Detects if the player has a female skin.
IsPlayerMale(playerid)Detects if the player has a male skin.
Added in 2.1:
Bug fix:swithc except switch at IsPlayerMale
Bug fix:Double case at IsBouncerSkin (164,164,165,166)
Downloads
Download PlaceDownload Link
Pastebin (1.0)http://pastebin.com/fBiyF66Z
Pastebin (2.0)http://pastebin.com/JV9p9iwk
Pastebin (2.1)http://pastebin.com/bb9yWYzy
Stats
Our speed comparing to xSkins is faster, although it has less abilities. Future updates will have the same abilities and it will be faster.



Re: OutSkins - Simple skin detection - Yashas - 25.01.2014

nice1 its faster than mine!


Re: OutSkins - Simple skin detection - kooltuO - 25.01.2014

Quote:
Originally Posted by Yashas
Посмотреть сообщение
nice1 its faster than mine!
It is . At the moment I am working on an update detecting more skins, which will be released in 1/2 hours.


Re: OutSkins - Simple skin detection - kooltuO - 25.01.2014

Updated with 2.0, 4 new functions added.


Re: OutSkins - Simple skin detection - kooltuO - 26.01.2014

I noticed there are some errors when using the script (IsPlayerMale and IsPlayerFemale are very bugged), I will release a quick patch in 10/15 minutes.