#8

Quote:
Originally Posted by Counterafk
Посмотреть сообщение
Strange, I get this when I use the command.

It seems that the PLAYER_STATE_SPAWNED is set only the moment the player spawns so you can't use it in a command like that.

I got the info here: https://sampforum.blast.hk/showthread.php?tid=112857

I'd recommend taking out the condition and making the code like this:

PHP код:
CMD:skin(playerid,params[]) 

    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

Or if you want, you could the command for admins only.
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)