[Ayuda] ShowDialog - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (
https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [Ayuda] ShowDialog (
/showthread.php?tid=144462)
[Ayuda] ShowDialog -
Andres_Garcia - 27.04.2010
Bueno esto no lo entiendo mucho, estube leyendo y no logro entender como aser esto.
Pasar estos 2 comandos a showdialog
algo asi
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Presione un boton?", "Usted desea", "Autorizar", "Desautorizar");
Код:
if(strcmp(cmd, "/AutorizarTactica", true) == 0)
{
if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pRank] >= 5)
{
authorizetactical = 1;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "** HQ: Director %s has authorized the Tactical Response uniform **", sendername);
SendRadioMessage(2, TEAM_BLUE_COLOR, string);
}
return 1;
}
if(strcmp(cmd, "/DesautorizarTactica", true) == 0)
{
if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pRank] >= 5)
{
authorizetactical = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "** HQ: Director %s has deauthorized the Tactical Response uniform",sendername);
SendRadioMessage(2, TEAM_BLUE_COLOR, string);
}
return 1;
}