How to do 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)
+--- Thread: How to do this ? (
/showthread.php?tid=332312)
How to do this ? -
Scripter12345 - 07.04.2012
How would i make it so if a player enters a certain ID that contains a skin that a group has how would i stop them from using it
So like if they choose a certain skin ID how could i stop them from selecting it
pawn Код:
if(dialogid == DIALOG_BUYCLOTHES)
{
if(response)
{
new clothes = strval(inputtext);
{
SetPlayerSkin( playerid, strval( inputtext ) );
SaveAccountStats(playerid);
SendClientMessage(playerid, COLOR_GOLD, "Skin changed");
}
}
}
Please Help Me Please
Re: How to do this ? -
Scripter12345 - 07.04.2012
Any one know ?
Re: How to do this ? -
ReneG - 07.04.2012
Wait 24 hours before posting again.
Edit your first post, don't bump after two hours.
Your question makes absolutely no sense. Rephrase it.
Re: How to do this ? -
Scripter12345 - 07.04.2012
Quote:
Originally Posted by VincentDunn
Wait 24 hours before posting again.
Edit your first post, don't bump after two hours.
Your question makes absolutely no sense. Rephrase it.
|
Well when a player is in a interior and does /buyclothes it brings up a dialog saying enter a skin ID to change to it, what im trying to do is if that player enters a certain skin ID and it is already being used by another group and is no longer available, how would i code that
Please Help Me Please
Re: How to do this ? -
JJB562 - 07.04.2012
Try doing something like this:
pawn Код:
if(strval(inputtext)) == SkinIDHere)
{
if(CodeToCheckGangHere)
{
SetPlayerSkin(playerid, strval(inputtext))
SendClientMessage(playerid, COLORHERE, "Your Skin Has Successfully Been Changed");
}
else
{
SendClientMessage(playerid, COLORHERE, "This Skin Has Already Been Taken By Another Group");
}
}
Re: How to do this ? -
Scripter12345 - 07.04.2012
Quote:
Originally Posted by JJB562
Try doing something like this:
pawn Код:
if(strval(inputtext)) == SkinIDHere) { if(CodeToCheckGangHere) { SetPlayerSkin(playerid, strval(inputtext)) SendClientMessage(playerid, COLORHERE, "Your Skin Has Successfully Been Changed"); } else { SendClientMessage(playerid, COLORHERE, "This Skin Has Already Been Taken By Another Group"); } }
|
I have not made any groups yet though
Re: How to do this ? -
JJB562 - 07.04.2012
Well, just make groups and put the code to check what group they're in where I told you too.
Re: How to do this ? -
Scripter12345 - 07.04.2012
Quote:
Originally Posted by JJB562
Well, just make groups and put the code to check what group they're in where I told you too.
|
Can you give me a tip on how to create groups or give me a tutorial please
Please Help Me Please