[HELP] Skin help
#1

Hey,i need help with my server i have update is to 0.3d but there is no new skin..I tried /setskin 0 5..
pawn Код:
Invalid skin
Reply
#2

Try:
pawn Код:
public OnGameModeInit()
{
    for(new i = 0; i < 299; i++)
    {
        AddPlayerClass(i,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
    }
    return 1;
}
Gives you all skins.
Reply
#3

No its an Rp i just want to add the skin in my GM no picking a skin..How can i add the new skin in my server pack?
Reply
#4

Quote:
Originally Posted by Stigg
Посмотреть сообщение
Try:
pawn Код:
public OnGameModeInit()
{
    for(new i = 0; i < 299; i++)
    {
        AddPlayerClass(i,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
    }
    return 1;
}
Gives you all skins.
That has 2 issues. One being skin ID 299 won't be added itself, and second, skin ID 74 doesn't exist.
Also, why would he want to create all these classes, when that's not his issue. His issue is his (/setskin)
command isn't working because it wasn't created for 0.3d.

pawn Код:
public OnGameModeInit()
{
    for(new i = 0; i < 300; i++) if(i != 74) AddPlayerClass(i, 0.0, 0.0, 0.0, 0.0, -1, -1, -1, -1, -1, -1);
    return 1;
}


Anyways, Tamao_Serizawa, show us the stock function which is used to determine if the skin ID is valid, or show the command, is a stock isn't used.
Reply
#5

I dunno what stock are you talking about..cuz i dunno anything about this GM.haha lol..but i need to add some new skin..But the raven roleplay has the new skin when i type /setskin 0 5 it become the fat guy..
Reply
#6

Okay, then let's start with the (/setskin) command. Paste it here within [PAWN] [ /PAWN] tags.
Reply
#7

pawn Код:
CMD:setskin(playerid, params[])
{
    if (PlayerInfo[playerid][pAdmin] >= 3)
    {
        new string[128], giveplayerid, skinid;
        if(sscanf(params, "ud", giveplayerid, skinid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /setskin [playerid] [skinid]");

        if(IsPlayerConnected(giveplayerid))
        {
            if(!IsInvalidSkin(skinid))
            {
                if(GetPlayerSkin(giveplayerid) == skinid)
                {
                    SendClientMessageEx( playerid, COLOR_WHITE, "The player you're trying to change skins of already is using the skin you're trying to set." );
                }
                else
                {
                    PlayerInfo[giveplayerid][pChar] = skinid;
                    PlayerInfo[giveplayerid][pModel] = skinid;
                    format(string, sizeof(string), "Your skin has been changed to ID %d by Administrator %s.", skinid, GetPlayerNameEx(playerid));
                    SendClientMessageEx(giveplayerid, COLOR_WHITE, string);
                    format(string, sizeof(string), "You have given %s skin ID %d.", GetPlayerNameEx(giveplayerid), skinid);
                    SendClientMessageEx(playerid, COLOR_WHITE, string);
                    SetPlayerSkin(giveplayerid, PlayerInfo[giveplayerid][pChar]);
                }
            }
            else
            {
                SendClientMessageEx(playerid, COLOR_GREY, "Invalid skin ID!");
            }
        }
    }
    else
    {
        SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
    }
    return 1;
}
here?
Reply
#8

This is my /setskin command...It's in sscanf2 and zcmd..

pawn Код:
#if cmdSETSKIN == 1
CMD:setskin(playerid, params[])
{
    if(AccInfo[playerid][Level] >= 3)
    {
        new id, skin, str[128];
        if(sscanf(params, "ui", id, skin)) return SendClientMessage(playerid, Dred, "USAGE: /setskin <playerid/partofname> <skinid>");
        if(skin < 0 || skin > 299 || skin == 74) return SendClientMessage(playerid, Dred, "Invalid skin.");
       
        format(str,sizeof(str), "Admin %s has set your skin to skin id %d", Name(playerid), skin);
        SendClientMessage(id, Dcyan, str);
        format(str,sizeof(str), "%s skin has been set to %d", Name(id), skin);
        SendClientMessage(playerid, Dcyan, str);
       
        SetPlayerSkin(id, skin);
    }
    else return ErrorMsg(playerid);
    return 1;
}
#endif
Ignore the #if and #endif
Reply
#9

Is this what your asking for??
Reply
#10

i dont want player level 3 to /setskin i want admin level 3 can /setskin..
Btw there is no new skin>>>>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)