21.04.2012, 17:52
pawn Code:
if ( strcmp ( cmd , "/skin" , true ) == 0 )
{
new skinid ;
tmp = strtok ( cmdtext , idx ) ;
if ( !strlen ( tmp ) ) return SendClientMessage ( playerid, -1, "/skin [skin]" ) ;
skinid = strval ( tmp ) ;
if ( skinid < 0 || skinid > 300 ) return SendClientMessage ( playerid, -1, "Skin invalida" ) ;
SetPlayerSkin ( playerid , skinid ) ;
format ( string , sizeof ( string ) , "Skin %d" , skinid ) ;
SendClientMessage ( playerid , -1 , string ) ;
return 1 ;
}