skin cmd
#4

by Vernz . . Edited
Quote:

if a player type /skin ID then he should get the skin which he typed.

pawn Код:
CMD:skin(playerid, params[])
{
    new amount, name[MAX_PLAYER_NAME], string[128];
    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]);
    }
    return 1;
}
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: 2 Guest(s)