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!