How to do this ?
#1

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
Reply
#2

Any one know ?
Reply
#3

Wait 24 hours before posting again.
Edit your first post, don't bump after two hours.

Your question makes absolutely no sense. Rephrase it.
Reply
#4

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
Reply
#5

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");
    }
}
Reply
#6

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
Reply
#7

Well, just make groups and put the code to check what group they're in where I told you too.
Reply
#8

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)