How to add /skin command for player? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to add /skin command for player? (
/showthread.php?tid=174663)
How to add /skin command for player? -
Injector - 06.09.2010
I really need help to script "/skin" command.
USAGE: /skin [ID] to change the skin.
For any player.
Thanks
Re: How to add /skin command for player? -
LarzI - 06.09.2010
Search. <8chars>
Re: How to add /skin command for player? -
Injector - 06.09.2010
I didn't find any results for it. Only I found for admins.
I want it for any player. Any player can change his skin by typing /skin [ID]
Re: How to add /skin command for player? -
LarzI - 06.09.2010
Here:
(Tell me if you want strcmp version)
pawn Код:
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!" );
}
And isnull :
pawn Код:
#define isnull(%1) \
((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))