27.04.2010, 15:43
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");
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; }