06.07.2013, 22:39
assim?
ou
pawn Код:
COMMAND:menu ( playerid, params[] ) {
if ( isnull ( params ) )
return SendClientMessage ( playerid, -1, "[ USE ]: /menu ( drogas )" ) ;
if ( strcmp ( params, "drogas", true ) == 0 ) {
ShowPlayerDialog ( playerid, 1000, DIALOG_STYLE_MSGBOX, "Menu Drogas", "Menu de Drogas OEWIEOWIE", "Continuar", "Sair" ) ;
}
return 1 ;
}
pawn Код:
COMMAND:menu ( playerid, params[] ) {
new
MyMenu [ 10 ] ;
if ( sscanf ( params, "u[10]", MyMenu ) )
return SendClientMessage ( playerid, -1, "[ USE ]: /menu ( drogas )" ) ;
if ( strcmp ( MyMenu, "drogas", true ) == 0 ) {
ShowPlayerDialog ( playerid, 1000, DIALOG_STYLE_MSGBOX, "Menu Drogas", "Menu de Drogas OEWIEOWIE", "Continuar", "Sair" ) ;
}
return 1 ;
}