06.09.2010, 14:50
I really need help to script "/skin" command.
USAGE: /skin [ID] to change the skin.
For any player.
Thanks
USAGE: /skin [ID] to change the skin.
For any player.
Thanks
CMD:skin(playerid, params[])
{
if( isnull( params ))
return SendClientMessage( playerid, 0xFFFF00FF, "[USAGE] /skin [id (0-299)]" );
new
pSkin = strval( params );
if( pSkin < 0 || pSkin > 299 )
return SendClientMessage( playerid, 0xFFFF00FF, "[USAGE] /skin [id (0-299)]" );
SetPlayerSkin( playerid, pSkin );
return SendClientMessage( playerid, 0x00FF00FF, "[SUCCESS] Skin successfully set!" );
}
#define isnull(%1) \
((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))