Help /setskin
#1

Hey guys, i need help with this cmd /setskin
when i type '/setskin 0 23' its not changing my skin to 23 its shows 'Administrator Linus[0] has seted your skin to 20' not 23 and not changing mine skin to 23
pawn Код:
COMMAND:setskin(playerid, params[])
{
    if(AccountInfo[playerid][aLevel] < 1) SendClientMessage(playerid, COLOR_RED, "AdminLevel 1 needed for this command!");
    else
    {
        new ID, Index;
        new tmp2[256]; tmp2 = strtok(params,Index);
        new skin = strval(tmp2);
        if(sscanf(params, "is", ID, skin)) SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /setskin [id] [skinid]");
        else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_RED, "Player is not connected");
        else
        {
        if(!IsValidSkin(skin)) return SendClientMessage(playerid, COLOR_YELLOW, "ERROR: Invaild Skin ID");
        SetPlayerSkin(ID, skin);
        new string[256], name[60], name2[60];
        GetPlayerName(playerid, name, 60);
        GetPlayerName(ID, name2, 60);
       
        format(string, 256, "Administrator %s[%d] has set your skin to %d", name, playerid, skin);
        SendClientMessage(ID, COLOR_YELLOW, string);
       
        format(string, 256, "You have seted %s skin to %d", name2, skin);
        SendClientMessage(playerid, COLOR_YELLOW, string);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Help /setskin - by Linus- - 28.12.2010, 12:04
Re: Help /setskin - by SAMPGammer - 28.12.2010, 12:06
Re: Help /setskin - by Linus- - 28.12.2010, 12:11
Re: Help /setskin - by JaTochNietDan - 28.12.2010, 12:40
Re: Help /setskin - by Linus- - 28.12.2010, 12:43
Re: Help /setskin - by JaTochNietDan - 28.12.2010, 12:46
Re: Help /setskin - by Linus- - 28.12.2010, 12:50
Re: Help /setskin - by JaTochNietDan - 28.12.2010, 12:51
Re: Help /setskin - by Linus- - 28.12.2010, 12:53
Re: Help /setskin - by JaTochNietDan - 28.12.2010, 12:57

Forum Jump:


Users browsing this thread: 2 Guest(s)