#2

I can show you my skin cmd code.
I don't exactly understand your code lol

PHP код:
CMD:setskin(playeridparams[])
{
    new 
targetplayerskinid;
    if(
sscanf(params"ui"targetplayerskinid)) return SendClientMessage(playeridCOLOR_ORANGE"Usage: /setskin [ID] [skinid]");
    if(
skinid || skinid 311) return SendClientMessage(playeridCOLOR_RED"Error: Available skinids 0 - 311");
    if(
skinid == 74) return SendClientMessage(playeridCOLOR_RED"Error: This skinid is unavailable!");
    if(!
IsPlayerConnected(targetplayer)) return SendClientMessage(playeridCOLOR_RED"Error: Player is not connected!");
    new 
string[64], pName[MAX_PLAYER_NAME], pName2[MAX_PLAYER_NAME];
    
SetPlayerSkin(targetplayerskinid);
    
format(stringsizeof string"Your skin has been set to %i by an admin."skinid);
    
SendClientMessage(targetplayerCOLOR_GREENstring);
    
GetPlayerName(playeridpNameMAX_PLAYER_NAME);
    
GetPlayerName(targetplayerpName2MAX_PLAYER_NAME);
    
format(stringsizeof string"You have set %s's skinid to %i."pName2skinid);
    
printf("[SETSKIN] %s has set the skin of %s to %i"pNamepName2skinid);
    
SendClientMessage(playeridCOLOR_WHITEstring);
    return 
1;

Reply


Messages In This Thread
Skin - by Counterafk - 02.10.2015, 13:46
Re: Skin - by saffierr - 02.10.2015, 13:49
Re: Skin - by Sellize - 02.10.2015, 13:52
Re: Skin - by Counterafk - 02.10.2015, 13:59
Re: Skin - by rappy93 - 02.10.2015, 14:07
Re: Skin - by Counterafk - 02.10.2015, 14:11
Re: Skin - by Bolex_ - 02.10.2015, 14:15
Re: Skin - by rappy93 - 02.10.2015, 14:19
Re: Skin - by Counterafk - 02.10.2015, 14:24

Forum Jump:


Users browsing this thread: 1 Guest(s)