#5

Fixed Sellize's code.

PHP код:
CMD:skin(playerid,params[])
{
    new 
playerState GetPlayerState(playerid);
    if(
playerState == PLAYER_STATE_SPAWNED)
    {
        new 
skinid;
        if(
sscanf(params"i"skinid)) return SendClientMessage(playeridyellow"Usage: /skin [skin ID]") ;
        if(
skinid || skinid 311) return SendClientMessage(playeridred"Invaild skin ID!");
        new 
Jstring[128];
        
format(Jstringsizeof(Jstring), "You have set your skin ID to %i."skinid);
        
SendClientMessage(playerid0xFDEE00FFJstring);
        
SetPVarInt(playerid,"Useskin",1);
        
SetPlayerSkin(playeridskinid);
        return 
1;
    }
    else return 
SendClientMessage(playerid, -1"You need to be spawned!");

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)