Commands for a certain skin?
#1

Can you make a command for a certain skin like /cuff only for cops and if you cant do it for a skin is there a way you can do it?
Reply
#2

pawn Код:
CMD:cuff(playerid, params[])
{
    if(GetPlayerSkin(playerid) == SKINID || GetPlayerSkin(playerid) == SKINID || GetPlayerSkin(playerid) == SKINID)
    {
        //code of cuff
    }
    else
    {
        //return 0;
    }
    return 1;
}
Reply
#3

Why are you using "GetPlayerSkin" many times?
Instead, use it one time:
pawn Код:
CMD:cuff(playerid, params[])
{
    if(GetPlayerSkin(playerid) == SKINID1 || SKINID2 || SKINID3)
    {
        //code of cuff
    }
    else
    {
        //return 0;
    }
    return 1;
}
Reply
#4

Ahh, didn't think of it like that..
Reply
#5

Thanks guys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)