SKin help
#4

PHP код:
new RestrictedSkins[2][1] =//we are setting the locked skins (by placing them in one array)
{
{
294},
{
189}    //for examples
};

CMD:changeskin(playeridparams[])
{
    new 
rSkins sizeof(RestrictedSkins), str[18];
    if(
sscanf(params"d"params)) return SendClientMessage(playerid, -1"Usage: /changeskin [skinid]");//usage message(if he misused the command)
    
if(strval(params) == RestrictedSkins[rSkins][0])//if locked skins it will return a message
    
{
        return 
SendClientMessage(playerid, -1"The skin id you typed is restricted, choose another one");
    }
    else {
//else if not a locked one
        
SetPlayerSkin(playeridstrval(params));
        
format(str18"Your Skin id: %d"strval(params));
        
SendClientMessage(playerid, -1str);
    }
    return 
1;

Reply


Messages In This Thread
SKin help - by Mustafa6155 - 24.10.2012, 15:05
Re: SKin help - by Mustafa6155 - 24.10.2012, 16:44
Re: SKin help - by AaronKillz - 24.10.2012, 17:10
Re: SKin help - by Youice - 24.10.2012, 17:14
Re: SKin help - by Mustafa6155 - 24.10.2012, 19:06
Re: SKin help - by Mecie_Jam - 24.10.2012, 19:50

Forum Jump:


Users browsing this thread: 2 Guest(s)