Need a /skin/clothes command - 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: Need a /skin/clothes command (
/showthread.php?tid=198091)
Need a /skin/clothes command -
Amator - 11.12.2010
Hey
I really need some help for a /skin or /clothes command. I'd like players to be in Binco to use this but I don't really know how to do this. Please help
thank you
Re: Need a /skin/clothes command -
Biesmen - 11.12.2010
Request here:
https://sampforum.blast.hk/showthread.php?tid=187229
Re : Need a /skin/clothes command -
Hamza' - 11.12.2010
Under On Player Command
pawn Код:
if(!strcmp("/changeskin", cmd, false, 9))
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438)) // Change it to Binco coordination
{
ShowPlayerDialog( playerid, 1500, DIALOG_STYLE_INPUT, "CLOTHES CHANGING", "Write here the skin ID you want to change", "Change", "Cancel" );
}
else
{
SendClientMessage(playerid, COLOR_RED, "You have to be in Binco");
}
return 1;
}
Under OnDialogResponse
pawn Код:
if(dialogid == 1500)
{
if(response == 1)
{
if(!strlen(inputtext))
{
SendClientMessage(playerid, 0xFFFFFFFF, "You didn't write anything!");
ShowPlayerDialog( playerid, 1500, DIALOG_STYLE_INPUT, "CLOTHES CHANGING", "Write here the skin ID you want to change", "Change", "Cancel" );
}
else
{
SetPlayerSkin(playerid, inputtext);
}
}
}
However, you got to make it restricted to SAMP available skins, or else, the client/server will be crashed.