Skin command with dcmd - 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 with dcmd (
/showthread.php?tid=186665)
Skin command with dcmd -
Face9000 - 30.10.2010
Hai all,i need the skin command for dcmd.
the command will give a player the choice of all skins.
It's possible?Thanks
Re: Skin command with dcmd -
dark_clown - 30.10.2010
pawn Код:
dcmd_skin(playerid,params[])
{
new skin;
if(sscanf(params,"d",skin)) return SendClientMessage(playerid,red,"USAGE: /skin [skinid]");
else if(skin > 299 || skin < 0) return SendClientMessage(playerid,red,"ERROR: Invalid skin ID!");
else if(skin == GetPlayerSkin(playerid)) return SendClientMessage(playerid,red,"ERROR: That player already have this skin ID!");
else
{
SetPlayerSkin(playerid,skin);
SendClientMessage(playerid,ORANGE,"Your skin has been changed, and auto saved");
}
return 1;
}
im using the one from my admin system dadmin

on progress and i took uneeded stuff u didnt need
but the prob its with sscanf
Re: Skin command with dcmd -
Face9000 - 30.10.2010
Umh..i dont need sscanf :/
Re: Skin command with dcmd -
Cameltoe - 30.10.2010
Quote:
Originally Posted by dark_clown
but the prob its with sscanf
|
Quote:
Originally Posted by Logitech90
Umh..i dont need sscanf :/
|
What's the problem using sscanf?
Re: Skin command with dcmd -
TheHoodRat - 30.10.2010
Without sscanf, parameters are useless.
If you make a /ban command
WITHOUT sscanf, then it will just tell you the command syntax and not return the ban to the player you want to ban.