SA-MP Forums Archive
[FilterScript] Skin selector (excellent for new scripters) - 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)
+--- Thread: [FilterScript] Skin selector (excellent for new scripters) (/showthread.php?tid=358257)



Skin selector (excellent for new scripters) - Krakuski - 09.07.2012

This is just a simple script on how to change your own skin on a DM/Stunt server. I had to do it the long way since I dont know how to make it shorter :3. Basically all you do is use /skin [ID], and pick a skin you would like to wear.

Pictures:
Before: http://i49.tinypic.com/xb0nmg.png

In the middle: http://i46.tinypic.com/4uxwd1.png

After: http://i50.tinypic.com/x0pt3n.png

That was my first filterscript! Thanks guys.

SKIN PICTURES AND ID'S: https://sampwiki.blast.hk/wiki/Skins:All

PASTEBIN: http://pastebin.com/NcG2vkXa

Also Credits to my friend A. Speed.


Re: Skin selector (excellent for new scripters) - steki. - 10.07.2012

Oh god. You didn't.


Re: Skin selector (excellent for new scripters) - [T]he3DeVi[L]` - 10.07.2012

WTF is this shit?
whatever.. You could do it like that
PHP Code:
if(!strcmp(cmdtext"/Skin"true5)) return !strlen(cmdtext[6]) || !strval(cmdtext[6])? SendClientMessage(playerid, -1"/skin [skinid]") : SetPlayerSkin(playeridstrval(cmdtext[6])); 
BTW, for uncrash situation (wrong skinid), u need to check if the skin id is valid


Re: Skin selector (excellent for new scripters) - Guest4390857394857 - 20.02.2014

you can use sscanf to make it simpler with 5 lines! xD


Re: Skin selector (excellent for new scripters) - Yves - 20.02.2014

The best filterscript ever nobody as ever created this.


Re: Skin selector (excellent for new scripters) - amirm3hdi - 18.05.2015

How can u have 16 reps XD XD


Re: Skin selector (excellent for new scripters) - GShock - 18.05.2015

OR
pawn Code:
CMD:skin(playerid,params[])
{
    new skinid;
    if (skinid < 0 || skinid > 299) return SendClientMessage(playerid, -1,"ERROR: Invalid skin");
    SetPlayerSkin(playerid, skinid);
    return 1;
}



Re: Skin selector (excellent for new scripters) - Ghazal - 18.05.2015

The thread is from 2012...


Re: Skin selector (excellent for new scripters) - GShock - 18.05.2015

Dayum :3


Re: Skin selector (excellent for new scripters) - EmilLykke - 18.05.2015

Quote:
Originally Posted by GShock
View Post
OR
pawn Code:
CMD:skin(playerid,params[])
{
    new skinid;
    if (skinid < 0 || skinid > 299) return SendClientMessage(playerid, -1,"ERROR: Invalid skin");
    SetPlayerSkin(playerid, skinid);
    return 1;
}
I was thinking the EXACT same xD