Galera queria criar um comando com senha exemplo "Ao dijita o comando Abisse uma Caixa de Dialogo pedindo senha"
|
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/comando", true) == 0)
{
ShowPlayerDialog(playerid, 468, DIALOG_STYLE_INPUT, "Senha", "Insira a senha abaixo:", "Enviar", "Cancelar");
return 1;
}
return 0;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/comando", true) == 0)
{
new nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, nome, MAX_PLAYER_NAME);
if(strcmp(nome, "Shadoww5", true) == 0) { SendClientMessage(playrid, 0xFFFF00FF, "Seu nome й Shadoww5."); }
else { SendClientMessage(playrid, 0xFFFF00FF, "Vocк nгo pode usar este comando, pois seu nome nгo й Shadoww5."); }
return 1;
}
return 0;
}