Skin remove?
#9

How about this?

pawn Код:
CMD:skinset(playerid, params[])
{
    new skin, sendername[MAX_PLAYER_NAME], string[128];
   
    if(sscanf(params,"i", skin)) return SendClientMessage(playerid, COLOR_RED,"[ADMIN] /setskin [SkinModel]");
    if(skin > 299 || skin < 1) return SendClientMessage(playerid, COLOR_RED, "You've inserted a wrong skin ID. Choose from 1-299");
   
    if(skin == 1) return SendClientMessage(playerid,-1,"You can't use that skin, choose another."); // Here put the skin ID you want to forbid using.
   
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string),"Your skin ID now is %d", skin);
    SendClientMessage(playerid, 0x47568497, string);
    SetPlayerSkin(playerid, skin);
   
    return 1;
}
Reply


Messages In This Thread
Skin remove? - by Blackazur - 08.09.2012, 09:23
Re: Skin remove? - by C00K13M0N$73R - 08.09.2012, 09:25
AW: Skin remove? - by Blackazur - 08.09.2012, 09:27
Re: AW: Skin remove? - by C00K13M0N$73R - 08.09.2012, 09:32
AW: Skin remove? - by Blackazur - 08.09.2012, 09:58
Re: Skin remove? - by HuSs3n - 08.09.2012, 10:04
Re: Skin remove? - by Lordzy - 08.09.2012, 10:09
AW: Skin remove? - by Blackazur - 08.09.2012, 10:13
Re: Skin remove? - by Guitar - 08.09.2012, 10:29
AW: Skin remove? - by Blackazur - 08.09.2012, 11:01

Forum Jump:


Users browsing this thread: 10 Guest(s)