skin cmd
#9

Quote:
Originally Posted by vernz
Посмотреть сообщение
Depending whats your saving system, just change it to yours and use sscanf+ zcmd

pawn Код:
CMD:skin(playerid, params[])
{
    new amount, name[MAX_PLAYER_NAME], string[128];
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
        if(sscanf(params,"i",amount)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setskin [skinmodel]");
        else if(amount> 299 || amount< 1) return SendClientMessage(playerid,COLOR_GREY,"Invalid skinid [1-299].");
        else
        {
            GetPlayerName(playerid, name, sizeof(name));
            strreplace(name, '_', ' ');
            format(string, sizeof(string),"You have set %s's money to %d.", name, amount);
            SendClientMessage(playerid,COLOR_WHITE,string);
            PlayerInfo[playerid][pSkin] = amount;
            SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
        }
    }
    else return SendClientMessage(playerid,COLOR_GREY,"You're not authorized to use that command!");
    return 1;
}
Ta tu besoins d'aide mon chaton ? <3
Reply


Messages In This Thread
skin cmd - by P<3TS - 26.07.2012, 00:08
Re : skin cmd - by vernz - 26.07.2012, 00:32
Re: skin cmd - by misticini - 26.07.2012, 00:35
Re: skin cmd - by Devilxz97 - 26.07.2012, 00:40
Re: skin cmd - by P<3TS - 26.07.2012, 01:00
Re: skin cmd - by Devilxz97 - 26.07.2012, 01:11
Re: skin cmd - by P<3TS - 26.07.2012, 01:11
Re: skin cmd - by Devilxz97 - 26.07.2012, 01:14
Re : skin cmd - by chuck005 - 26.07.2012, 01:58

Forum Jump:


Users browsing this thread: 6 Guest(s)