26.02.2012, 00:04
Havia feito um agora poco
pawn Код:
//cmd text
if ( strcmp ( cmdtext , "/trocarskin" , true ) == 0 ) {
return ShowPlayerDialog (playerid , ID , DIALOG_STYLE_INPUT , "Skin" , "Digite o id da skin" , "Pronto" , "Sair" ) ;
}
//ondialogresponse
switch ( dialogid ) {
case ID : {
if ( !response )
return SendClientMessage ( playerid , -1 ,"Seleзгo de skins cancelada!" ) ;
if( !strval ( inputtext ) )
return SendClientMessage( playerid , -1 , "Vocк nгo digitou nada--'" ) ;
switch ( strval ( inputtext ) ) {
case 1 .. 299 : {
new s [ 50 ] ;
format( s , 50 , "Vocк trocou sua skin para a id '%i" , strval( inputtext ) ) ;
SendClientMessage ( playerid , -1 ,s ) ;
SetPlayerSkin ( playerid , strval( inputtext ) ) ;
}
default: {
SendClientMessage ( playerid , -1 , "Skinid invalido!" );
}
}
}
return false;
}