Help Is Invalid Skin
#1

How to exclude the function "Is Invalid Skin" because my custom skin is 20005 which rule is less than 299 how to leave it!
PHP код:
CMD:setskin(playeridparams[])
{
    if (
PlayerInfo[playerid][pAdmin] >= 3)
    {
        new 
string[128], giveplayeridskinid;
        if(
sscanf(params"ud"giveplayeridskinid)) return SendClientMessageEx(playeridCOLOR_GREY"SU DUNG: /setskin [Player] [skinid]");
 
        if(
IsPlayerConnected(giveplayerid))
        {
   if(!
IsInvalidSkin(skinid))
            {
                if(
GetPlayerSkin(giveplayerid) == skinid)
                {
                    
SendClientMessageExplayeridCOLOR_WHITE"The person you're trying to change skins of already is using the skin you're trying to set." );
                }
                else
                {
                    
PlayerInfo[giveplayerid][pModel] = skinid;
                    
format(stringsizeof(string), "Your skin has been changed to ID %d by Administrator %s."skinidGetPlayerNameEx(playerid));
                    
SendClientMessageEx(giveplayeridCOLOR_WHITEstring);
                    
format(stringsizeof(string), "You have given %s skin ID %d."GetPlayerNameEx(giveplayerid), skinid);
                    
SendClientMessageEx(playeridCOLOR_WHITEstring);
                    
SetPlayerSkin(giveplayeridPlayerInfo[giveplayerid][pModel]);
                }
            }
            else
            {
                
SendClientMessageEx(playeridCOLOR_GREY"Invalid skin ID!");
            }
        }
    }
    else
    {
        
SendClientMessageEx(playeridCOLOR_GRAD1"Ban Khфng Cу Kha Nang Su Dung Lкnh Nаy !");
    }
    return 
1;

Reply


Messages In This Thread
Help Is Invalid Skin - by nguyenthanhdanhsamp - 25.05.2018, 13:11
Re: Help Is Invalid Skin - by zerruv - 25.05.2018, 13:48
Re: Help Is Invalid Skin - by nguyenthanhdanhsamp - 25.05.2018, 13:53
Re: Help Is Invalid Skin - by GeorgeMcReary - 25.05.2018, 17:07

Forum Jump:


Users browsing this thread: 1 Guest(s)