Help me with skins
#4

You got me confused now, what do you mean by "where is the skin id??", choose a skin you want to be only for members and for example with a setskin command do something like this:

PHP код:
CMD:setskintome(playeridparams[])
{
    new 
myname[MAX_PLAYER_NAME], skinidstring[128];
    if(
sscanf(params"i"skinid)) return SendClientMessage(playerid, -1"USAGE: /setskintome [SkinID]");
    if (
skinid 299 || skinid 0) return SendClientMessage(playeridYellow"Skin ID's are ranged from 299 to 0");
    if(
skinid == 200//200 is just an example! Don't copy and paste this code since it won't work!!
    
{
        if(
PlayerInfo[playerid][Member] == 0) return SendClientMessage(playeridRed"You have to be a Member to use this skin!");
        else
        {
            
SetPlayerSkin(playeridskinid);
            new 
string[128];
            
format(stringsizeof(string), "*Member Skin* %s Has set his skin to %s"mynameskinid);
            
SendClientMessageToAll(limestring);
            
PlayerInfo[playerid][pSkin]=skinid;
        }
    }
    
GetPlayerName(playeridmynameMAX_PLAYER_NAME);
    
SetPlayerSkin(playeridskinid);
    
PlayerInfo[playerid][pSkin]=skinid;
    
format(stringsizeof(string), "%s Has set his skin to %s"mynameskinid);
    
SendClientMessageToAll(Limestring);
    return 
1;

I hope you got it.
Reply


Messages In This Thread
Help me with skins - by Mustafa6155 - 17.10.2012, 18:08
Re: Help me with skins - by gtakillerIV - 17.10.2012, 18:10
AW: Help me with skins - by Mustafa6155 - 18.10.2012, 15:39
Re: Help me with skins - by gtakillerIV - 18.10.2012, 15:45
AW: Help me with skins - by Mustafa6155 - 18.10.2012, 16:01
Re: Help me with skins - by gtakillerIV - 18.10.2012, 16:04
Re: Help me with skins - by Red_Dragon. - 18.10.2012, 16:04
AW: Help me with skins - by Mustafa6155 - 18.10.2012, 16:30

Forum Jump:


Users browsing this thread: 1 Guest(s)