[FilterScript] Skin Script [MY FIRST!!] - 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 Script [MY FIRST!!] (
/showthread.php?tid=247350)
Skin Script [MY FIRST!!] -
Monster[HD] - 08.04.2011
Hello Do You Want A Skin Script? Heres The Options
/s 1-30
Some Skins Are The Same = Bug Sorry
Download
pastebin -
http://pastebin.com/tnbKdWd8
Re: Skin Script [MY FIRST!!] -
gamer931215 - 08.04.2011
Nice for a first filterscript though,
but yeah you should search for a zcmd & sscanf tutorial
heres an example of my /skin:
pawn Код:
COMMAND:skin(playerid,params[])
{
if(IsPlayerDeathmatching(playerid)) return SendClientMessage(playerid,gCOLOR_RED,"You cannot teleport while deathmatching!");
new skin;if(sscanf(params,"i",skin)) return SendClientMessage(playerid,gCOLOR_RED,"USAGE: /skin [skinid]");
if(skin >= skin && skin < 300)
{
SetPlayerSkin(playerid,skin);
} else return SendClientMessage(playerid,gCOLOR_RED,"Invalid skinID");
return 1;
}
this is just one command that includes all 300 skins!
Re: Skin Script [MY FIRST!!] -
BizzyD - 09.04.2011
Its alright for your first filterscript

But you cant have spaces in your command like /s 9. They wont work then.
Re: Skin Script [MY FIRST!!] -
admantis - 09.04.2011
Quote:
Originally Posted by AlexzzPro
Its alright for your first filterscript  But you cant have spaces in your command like /s 9. They wont work then.
|
In strcmp it will work, not in Y_CMD, ZCMD, dcmd.
Re: Skin Script [MY FIRST!!] -
Maftaca - 09.04.2011
Quote:
Originally Posted by admantis
In strcmp it will work, not in Y_CMD, ZCMD, dcmd.
|
RIGHT.