SA-MP Forums Archive
/skin command, i'm too newbie for this. - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /skin command, i'm too newbie for this. (/showthread.php?tid=139119)



/skin command, i'm too newbie for this. - Gummy Bear - 04.04.2010

Hello there, well yes, im new to scripting, i'm looking for a script command that would be to change skins rapidly.

Like /skin [skin-id]

Then tadam, it changes =D


Re: /skin command, i'm too newbie for this. - pmk1 - 04.04.2010

here:
if (strcmp("/0", cmdtext, true, 10) == 0)
{
SetPlayerSkin(playerid,0);
return 1;
}

try with this one, you'll have to make from 0 to 299 i think xD have fun pasting this.
i'm not in mood of makin a loop. xD


Re: /skin command, i'm too newbie for this. - Nakash - 04.04.2010

Quote:
Originally Posted by Gummy Bear
Hello there, well yes, im new to scripting, i'm looking for a script command that would be to change skins rapidly.

Like /skin [skin-id]

Then tadam, it changes =D
pawn Код:
if(strcmp(cmd, "/skin", true) == 0)
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /skin [SKIN]");
            return 1;
        }
        new level;
        level = strval(tmp);
        SetPlayerSkin(playerid, level);
        return 1;
    }



Re: /skin command, i'm too newbie for this. - pmk1 - 04.04.2010

yea lol use kartowa's it's better if you want to make like : /skin 0-299 but if you want some commands like /cj, /army, /truth /ryder,/bsmoke, etc use mine.


Re: /skin command, i'm too newbie for this. - Gummy Bear - 04.04.2010

haha :P
Thanks guys


Re: /skin command, i'm too newbie for this. - pmk1 - 04.04.2010

np noob xD jk