[FilterScript] Skin selector (excellent for new scripters)
#1

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.
Reply
#2

Oh god. You didn't.
Reply
#3

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
Reply
#4

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

The best filterscript ever nobody as ever created this.
Reply
#6

How can u have 16 reps XD XD
Reply
#7

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;
}
Reply
#8

The thread is from 2012...
Reply
#9

Dayum :3
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)