Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if (dialogid == rAMenu)
{
if (response)
{
if (listitem == 0)
{
format(String, sizeof(String), "{B9BCCC}Kickar {FFFF00}%s{B9BCCC} porque motivo?", rNome(Player));
ShowPlayerDialog(playerid, rAKick, DIALOG_STYLE_INPUT, "Kick", String, "Kickar", "Cancelar");
}
if (listitem == 1)
{
format(String, sizeof(String), "{B9BCCC}Banir {FFFF00}%s{B9BCCC} porque motivo?", rNome(Player));
ShowPlayerDialog(playerid, rABan, DIALOG_STYLE_INPUT, "Ban", String, "Banir", "Cancelar");
}
if (listitem == 2)
{
GetPlayerPos(Player, rX, rY, rZ);
CreateExplosion(rX, rY, rZ, 10, 30);
CreateExplosion(rX, rY, rZ, 10, 30);
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} explodiu o jogador {FFFF00}%s{A9A9A9}.", rNome(playerid), rNome(Player));
SendClientMessageToAll(rCinza, StringTexto);
}
if (listitem == 3)
{
format(String, sizeof(String), "{B9BCCC}Avisar {FFFF00}%s{B9BCCC} porque motivo?", rNome(Player));
ShowPlayerDialog(playerid, rAAviso, DIALOG_STYLE_INPUT, "Aviso", String, "Avisar", "Cancelar");
}
if (listitem == 4)
{
format(String, sizeof(String), "{B9BCCC}Definir quantos pontos de vida para {FFFF00}%s{B9BCCC}?", rNome(Player));
ShowPlayerDialog(playerid, rAVida, DIALOG_STYLE_INPUT, "Vida", String, "Setar", "Cancelar");
}
if (listitem == 5)
{
format(String, sizeof(String), "{B9BCCC}Definir quantos pontos de colete para {FFFF00}%s{B9BCCC}?", rNome(Player));
ShowPlayerDialog(playerid, rAColete, DIALOG_STYLE_INPUT, "Colete", String, "Setar", "Cancelar");
}
if (listitem == 6)
{
format(String, sizeof(String), "{B9BCCC}Definir tempo para {FFFF00}%s{B9BCCC}", rNome(Player));
ShowPlayerDialog(playerid, rATempo, DIALOG_STYLE_INPUT, "Tempo", String, "Setar", "Cancelar");
}
if (listitem == 7)
{
format(String, sizeof(String), "{B9BCCC}Definir clima para {FFFF00}%s{B9BCCC}", rNome(Player));
ShowPlayerDialog(playerid, rAClima, DIALOG_STYLE_INPUT, "Clima", String, "Setar", "Cancelar");
}
if (listitem == 8)
{
format(String, sizeof(String), "{B9BCCC}Definir arma para {FFFF00}%s{B9BCCC}", rNome(Player));
ShowPlayerDialog(playerid, rAArma, DIALOG_STYLE_INPUT, "Arma", String, "Setar", "Cancelar");
}
if (listitem == 9)
{
format(String, sizeof(String), "{B9BCCC}Quantidade de dinheiro para {FFFF00}%s{B9BCCC}", rNome(Player));
ShowPlayerDialog(playerid, rAGrana, DIALOG_STYLE_INPUT, "Dinheiro", String, "Setar", "Cancelar");
}
if (listitem == 10)
{
format(String, sizeof(String), "{B9BCCC}Definir score para {FFFF00}%s{B9BCCC}", rNome(Player));
ShowPlayerDialog(playerid, rAScore, DIALOG_STYLE_INPUT, "Score", String, "Setar", "Cancelar");
}
if (listitem == 11)
{
format(String, sizeof(String), "{B9BCCC}Definir skin para {FFFF00}%s{B9BCCC}", rNome(Player));
ShowPlayerDialog(playerid, rASkin, DIALOG_STYLE_INPUT, "Skin", String, "Setar", "Cancelar");
}
if (listitem == 12)
{
if(Calado[Player] == true)
{
SendClientMessage(playerid, rAzul, "[INFO] Jogador Descalado.");
Calado[Player] = false;
SendClientMessage(Player, rCinza, "[AVISO] Jб podes escrever.");
}else{
SendClientMessage(playerid, rAzul, "[INFO] Jogador calado.");
Calado[Player] = true;
SendClientMessage(Player, rCinza, "[AVISO] Foste calado por um administrador.");
}
}
if (listitem == 13)
{
if(Congelado[Player] == true)
{
SendClientMessage(playerid, rAzul, "[INFO] Jogador Descongelado.");
TogglePlayerControllable(Player, 1);
Congelado[Player] = false;
SendClientMessage(Player, rCinza, "[AVISO] Foste descongelado por um administrador.");
}else{
SendClientMessage(playerid, rAzul, "[INFO] Jogador congelado.");
TogglePlayerControllable(Player, 0);
Congelado[Player] = true;
SendClientMessage(Player, rCinza, "[AVISO] Foste congelado por um administrador.");
}
}
if (listitem == 14)
{
GetPlayerPos(Player, rX, rY, rZ);
if(IsPlayerInAnyVehicle(playerid))
{
new Veiculo = GetPlayerVehicleID(playerid);
LinkVehicleToInterior(Veiculo, GetPlayerInterior(Player));
SetVehicleVirtualWorld(Veiculo, GetPlayerVirtualWorld(Player));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(Player));
SetVehiclePos(Veiculo, rX, rY, rZ+1);
PutPlayerInVehicle(playerid, Veiculo, 0);
}else{
SetPlayerPos(playerid, rX, rY, rZ+1);
SetPlayerInterior(playerid, GetPlayerInterior(Player));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(Player));
format(StringTexto, sizeof(StringTexto), "Foste atй а posiзгo de {FFFF00}%s{A9A9A9}.", rNome(Player));
SendClientMessage(playerid, rCinza, StringTexto);
}
}
if (listitem == 15)
{
GetPlayerPos(playerid, rX, rY, rZ);
if(IsPlayerInAnyVehicle(Player))
{
new Veiculo = GetPlayerVehicleID(Player);
LinkVehicleToInterior(Veiculo, GetPlayerInterior(playerid));
SetVehicleVirtualWorld(Veiculo, GetPlayerVirtualWorld(playerid));
SetPlayerVirtualWorld(Player, GetPlayerVirtualWorld(playerid));
SetVehiclePos(Veiculo, rX, rY, rZ+1);
PutPlayerInVehicle(Player, Veiculo, 0);
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} puxou {FFFF00}vocк{A9A9A9} atй a sua posiзгo.", rNome(playerid));
SendClientMessage(Player, rCinza, StringTexto);
}else{
SetPlayerPos(Player, rX, rY, rZ+1);
SetPlayerInterior(Player, GetPlayerInterior(playerid));
SetPlayerVirtualWorld(Player, GetPlayerVirtualWorld(playerid));
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} puxou {FFFF00}vocк{A9A9A9} atй a sua posiзгo.", rNome(playerid));
SendClientMessage(Player, rCinza, StringTexto);
}
}
if (listitem == 16)
{
if(Espiando[playerid] == true) return TogglePlayerSpectating(playerid, 0);
if(IsPlayerInAnyVehicle(Player))
{
TogglePlayerSpectating(playerid, 1);
Espiando[playerid] = true;
PlayerSpectateVehicle(playerid, Player);
SetPlayerInterior(playerid, GetPlayerInterior(Player));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(Player));
format(StringTexto, sizeof(StringTexto), "- Estбs a espiar %s.", rNome(Player));
SendClientMessage(playerid, rAmarelo, StringTexto);
}else{
TogglePlayerSpectating(playerid, 1);
Espiando[playerid] = true;
PlayerSpectatePlayer(playerid, Player);
SetPlayerInterior(playerid, GetPlayerInterior(Player));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(Player));
format(StringTexto, sizeof(StringTexto), "- Estбs a espiar %s.", rNome(Player));
SendClientMessage(playerid, rAmarelo, StringTexto);
}
}
if (listitem == 17)
{
ResetPlayerWeapons(Player);
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} resetou as armas do jogador {FFFF00}%s{A9A9A9}.", rNome(playerid), rNome(Player));
SendClientMessageToAll(rCinza, StringTexto);
}
if (listitem == 18)
{
format(String, sizeof(String), "{B9BCCC}Definir score para {FFFF00}todos online{B9BCCC}");
ShowPlayerDialog(playerid, rAScoret, DIALOG_STYLE_INPUT, "Score Todos", String, "Setar", "Cancelar");
}
if (listitem == 19)
{
format(String, sizeof(String), "{B9BCCC}Definir skin para {FFFF00}todos online{B9BCCC}");
ShowPlayerDialog(playerid, rASkint, DIALOG_STYLE_INPUT, "Skin Todos", String, "Setar", "Cancelar");
}
if (listitem == 20)
{
for (new r = 0; r != MAX_PLAYERS; r++)
{
if(IsPlayerConnected®)
{
if(Congelado[r] == true)
{
SendClientMessage(playerid, rAzul, "[INFO] Jogadores Descongelados.");
TogglePlayerControllable(r, 1);
Congelado[r] = false;
SendClientMessage(r, rCinza, "[AVISO] Foste descongelado por um administrador.");
}else{
SendClientMessage(playerid, rAzul, "[INFO] Jogadores congelados.");
TogglePlayerControllable(r, 0);
Congelado[r] = true;
SendClientMessage(r, rCinza, "[AVISO] Foste congelado por um administrador.");
}
}
}
}
if (listitem == 21)
{
for (new r = 0; r != MAX_PLAYERS; r++)
{
if(IsPlayerConnected®)
{
if(Calado[Player] == true)
{
SendClientMessage(playerid, rAzul, "[INFO] Jogadores Descalados.");
Calado[r] = false;
SendClientMessage(r, rCinza, "[AVISO] Jб podes escrever.");
}else{
SendClientMessage(playerid, rAzul, "[INFO] Jogadores calados.");
Calado[r] = true;
SendClientMessage(r, rCinza, "[AVISO] Foste calado por um administrador.");
}
}
}
}
if (listitem == 22)
{
format(String, sizeof(String), "{B9BCCC}Definir dinheiro para {FFFF00}todos online{B9BCCC}");
ShowPlayerDialog(playerid, rAGranat, DIALOG_STYLE_INPUT, "Dinheiro Todos", String, "Setar", "Cancelar");
}
if (listitem == 23)
{
format(String, sizeof(String), "{B9BCCC}Definir arma para {FFFF00}todos online{B9BCCC}");
ShowPlayerDialog(playerid, rAArmat, DIALOG_STYLE_INPUT, "Arma Todos", String, "Setar", "Cancelar");
}
if (listitem == 24)
{
format(String, sizeof(String), "{B9BCCC}Definir pontos de vida para {FFFF00}todos online{B9BCCC}");
ShowPlayerDialog(playerid, rAVidat, DIALOG_STYLE_INPUT, "Vida Todos", String, "Setar", "Cancelar");
}
if (listitem == 25)
{
format(String, sizeof(String), "{B9BCCC}Definir pontos de colete para {FFFF00}todos online{B9BCCC}");
ShowPlayerDialog(playerid, rAColetet, DIALOG_STYLE_INPUT, "Colete Todos", String, "Setar", "Cancelar");
}
if (listitem == 26)
{
format(String, sizeof(String), "{B9BCCC}Definir tempo para {FFFF00}todos online{B9BCCC}");
ShowPlayerDialog(playerid, rATempot, DIALOG_STYLE_INPUT, "Tempo Todos", String, "Setar", "Cancelar");
}
if (listitem == 27)
{
format(String, sizeof(String), "{B9BCCC}Definir clima para {FFFF00}todos online{B9BCCC}");
ShowPlayerDialog(playerid, rAClimat, DIALOG_STYLE_INPUT, "Clima Todos", String, "Setar", "Cancelar");
}
if (listitem == 28)
{
for (new r = 0; r != MAX_PLAYERS; r++)
{
if(IsPlayerConnected®)
{
GetPlayerPos(playerid, rX, rY, rZ);
if(IsPlayerInAnyVehicle®)
{
new Veiculo = GetPlayerVehicleID®;
LinkVehicleToInterior(Veiculo, GetPlayerInterior(playerid));
SetVehicleVirtualWorld(Veiculo, GetPlayerVirtualWorld(playerid));
SetPlayerVirtualWorld(r, GetPlayerVirtualWorld(playerid));
SetVehiclePos(Veiculo, rX, rY, rZ+1);
PutPlayerInVehicle(r, Veiculo, 0);
}else{
SetPlayerPos(r, rX, rY, rZ+1);
SetPlayerInterior(r, GetPlayerInterior(playerid));
SetPlayerVirtualWorld(r, GetPlayerVirtualWorld(playerid));
}
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} puxou {FFFF00}todos{A9A9A9} os jogadores atй а sua posiзгo.", rNome(playerid));
SendClientMessageToAll(rCinza, StringTexto);
}
}
}
if (listitem == 29)
{
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} resetou as armas de {FFFF00}todos{A9A9A9} os jogadores!", rNome(playerid));
SendClientMessageToAll(rCinza, StringTexto);
for (new r = 0; r != MAX_PLAYERS; r++)
{
if(IsPlayerConnected®)
{
ResetPlayerWeapons®;
}
}
}
}
}
if (listitem == 30)
{
if(rAdminNivel[playerid] < 3 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, rVermelho, "[ERRO] Somente administradores nivel 3, ou rcon.");
format(String, sizeof(String), "{B9BCCC}Definir nнvel de administrador para {FFFF00}%s{B9BCCC}", rNome(Player));
ShowPlayerDialog(playerid, rAAdmin, DIALOG_STYLE_INPUT, "Administrador", String, "Setar", "Cancelar");
}
if (listitem == 31)
{
if(rAdminNivel[playerid] < 3 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, rVermelho, "[ERRO] Somente administradores nivel 3, ou rcon.");
format(String, sizeof(String), "{B9BCCC}Kickar {FFFF00}todos online{B9BCCC}?\n\n - {FF0000}Atй mesmo vocк?");
ShowPlayerDialog(playerid, rAKickt, DIALOG_STYLE_MSGBOX, "Kickar Todos", String, "Sim", "Cancelar");
}
if (listitem == 32)
{
if(rAdminNivel[playerid] < 3 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, rVermelho, "[ERRO] Somente administradores nivel 3, ou rcon.");
format(String, sizeof(String), "{B9BCCC}Banir {FFFF00}todos online{B9BCCC}?\n\n - {FF0000}Atй mesmo vocк?");
ShowPlayerDialog(playerid, rABant, DIALOG_STYLE_MSGBOX, "Banir Todos", String, "Sim", "Cancelar");
}
if (listitem == 33)
{
if(rAdminNivel[playerid] < 3 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, rVermelho, "[ERRO] Somente administradores nivel 3, ou rcon.");
format(String, sizeof(String), "{FFFF00}Reiniciar o servidor{B9BCCC}?\n\n - {FF0000}O tempo para reiniciar automaticamente й 2 minutos.");
ShowPlayerDialog(playerid, rAReiniciar, DIALOG_STYLE_MSGBOX, "Reiniciar Servidor", String, "Sim", "Cancelar");
}
if (dialogid == rAKick)
{
if (response == 1)
{
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} kickou o jogador {FFFF00}%s{A9A9A9}. Razгo: {FFFF00}%s", rNome(playerid), rNome(Player), inputtext[0]);
SendClientMessageToAll(rCinza, StringTexto);
Kick(Player);
}
}
if (dialogid == rABan)
{
if (response == 1)
{
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} baniu o jogador {FFFF00}%s{A9A9A9}. Razгo: {FFFF00}%s", rNome(playerid), rNome(Player), inputtext[0]);
SendClientMessageToAll(rCinza, StringTexto);
BanEx(Player, inputtext[0]);
}
}
if (dialogid == rAAviso)
{
if (response == 1)
{
Avisos[Player] ++;
if(Avisos[Player] == 5)
{
Avisos[Player] = 0;
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} kickou o jogador {FFFF00}%s{A9A9A9}. ({FFFF00}%d/5{A9A9A9}) Razгo: {FFFF00}%s", rNome(playerid), rNome(Player), Avisos[Player], inputtext[0]);
SendClientMessageToAll(rCinza, StringTexto);
Kick(Player);
}
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} avisou o jogador {FFFF00}%s{A9A9A9}. ({FFFF00}%d/5{A9A9A9}) Razгo: {FFFF00}%s", rNome(playerid), rNome(Player), Avisos[Player], inputtext[0]);
SendClientMessageToAll(rCinza, StringTexto);
}
}
if (dialogid == rAVida)
{
if (response == 1)
{
if(!strlen(inputtext) || !isNumeric(inputtext))
{
format(String, sizeof(String), "{B9BCCC}Definir pontos de vida para {FFFF00}%s{B9BCCC}", rNome(Player));
ShowPlayerDialog(playerid, rAVida, DIALOG_STYLE_INPUT, "Vida", String, "Setar", "Cancelar");
}else{
if(strval(inputtext) < 0 || strval(inputtext) > 99999) return SendClientMessage(playerid, rVermelho, "[ERRO] Vida de 0 a 99999.");
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} definiu {FFFF00}%d{A9A9A9} de vida para o jogador {FFFF00}%s{A9A9A9}.", rNome(playerid), strval(inputtext), rNome(Player));
SendClientMessageToAll(rCinza, StringTexto);
SetPlayerHealth(Player, strval(inputtext));
}
}
}
if (dialogid == rAColete)
{
if (response == 1)
{
if(!strlen(inputtext) || !isNumeric(inputtext))
{
format(String, sizeof(String), "{B9BCCC}Definir pontos de colete para {FFFF00}%s{B9BCCC}", rNome(Player));
ShowPlayerDialog(playerid, rAColete, DIALOG_STYLE_INPUT, "Colete", String, "Setar", "Cancelar");
}else{
if(strval(inputtext) < 0 || strval(inputtext) > 999) return SendClientMessage(playerid, rVermelho, "[ERRO] Colete de 0 а 999.");
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} definiu {FFFF00}%d{A9A9A9} de colete para o jogador {FFFF00}%s{A9A9A9}.", rNome(playerid), strval(inputtext), rNome(Player));
SendClientMessageToAll(rCinza, StringTexto);
SetPlayerArmour(Player, strval(inputtext));
}
}
}
if (dialogid == rATempo)
{
if (response == 1)
{
if(!strlen(inputtext) || !isNumeric(inputtext))
{
format(String, sizeof(String), "{B9BCCC}Definir tempo para {FFFF00}%s{B9BCCC}", rNome(Player));
ShowPlayerDialog(playerid, rATempo, DIALOG_STYLE_INPUT, "Tempo", String, "Setar", "Cancelar");
}else{
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} definiu o tempo de {FFFF00}%s{A9A9A9} para a(s) {FFFF00}%d:00{A9A9A9} hora(s).", rNome(playerid), rNome(Player), strval(inputtext));
SendClientMessageToAll(rCinza, StringTexto);
SetPlayerTime(Player, strval(inputtext),0);
}
}
}
if (dialogid == rAClima)
{
if (response == 1)
{
if(!strlen(inputtext) || !isNumeric(inputtext))
{
format(String, sizeof(String), "{B9BCCC}Definir clima para {FFFF00}%s{B9BCCC}", rNome(Player));
ShowPlayerDialog(playerid, rAClima, DIALOG_STYLE_INPUT, "Clima", String, "Setar", "Cancelar");
}else{
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} definiu o clima de {FFFF00}%s{A9A9A9} para o id: {FFFF00}%d{A9A9A9}.", rNome(playerid), rNome(Player), strval(inputtext));
SendClientMessageToAll(rCinza, StringTexto);
SetPlayerWeather(Player, strval(inputtext));
}
}
}
if (dialogid == rAArma)
{
if (response == 1)
{
if(!strlen(inputtext) || !isNumeric(inputtext))
{
format(String, sizeof(String), "{B9BCCC}Digite o ID da arma a atribuir ao jogador {FFFF00}%s{B9BCCC}.", rNome(Player));
ShowPlayerDialog(playerid, rAArma, DIALOG_STYLE_INPUT, "Arma", String, "Setar", "Cancelar");
}else{
if(strval(inputtext) < 0 || strval(inputtext) > 48) return SendClientMessage(playerid, rVermelho, "[ERRO] Armas de 0 a 48.");
IDArma = strval(inputtext);
format(String, sizeof(String), "{B9BCCC}Quantas {FFFF00}muniзхes?{B9BCCC}.");
ShowPlayerDialog(playerid, rAArma2, DIALOG_STYLE_INPUT, "Arma Parte 2", String, "Setar", "Cancelar");
}
}
}
if (dialogid == rAArma2)
{
if (response == 1)
{
if(!strlen(inputtext) || !isNumeric(inputtext))
{
format(String, sizeof(String), "{B9BCCC}Quantas {FFFF00}muniзхes?{B9BCCC}.");
ShowPlayerDialog(playerid, rAArma2, DIALOG_STYLE_INPUT, "Arma Parte 2", String, "Setar", "Cancelar");
}else{
if(strval(inputtext) < 1 || strval(inputtext) > 999999) return SendClientMessage(playerid, rVermelho, "[ERRO] Muniзгo de 1 a 999999.");
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} definiu a Arma ID:{FFFF00}%d{A9A9A9} para o jogador {FFFF00}%s{A9A9A9}.", rNome(playerid), IDArma, rNome(Player));
SendClientMessageToAll(rCinza, StringTexto);
GivePlayerWeapon(Player, IDArma, strval(inputtext));
}
}
}
if (dialogid == rAGrana)
{
if (response == 1)
{
if(!strlen(inputtext) || !isNumeric(inputtext))
{
format(String, sizeof(String), "{B9BCCC}Definir dinheiro para {FFFF00}%s{B9BCCC}", rNome(Player));
ShowPlayerDialog(playerid, rAGrana, DIALOG_STYLE_INPUT, "Dinheiro", String, "Setar", "Cancelar");
}else{
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} deu R$:{FFFF00}%d{A9A9A9} de dinheiro ao jogador {FFFF00}%s{A9A9A9}.", rNome(playerid), strval(inputtext), rNome(Player));
SendClientMessageToAll(rCinza, StringTexto);
GivePlayerMoney(Player, strval(inputtext));
}
}
}
if (dialogid == rAScore)
{
if (response == 1)
{
if(!strlen(inputtext) || !isNumeric(inputtext))
{
format(String, sizeof(String), "{B9BCCC}Definir score para {FFFF00}%s{B9BCCC}?", rNome(Player));
ShowPlayerDialog(playerid, rAScore, DIALOG_STYLE_INPUT, "Score", String, "Setar", "Cancelar");
}else{
if(strval(inputtext) < 0 || strval(inputtext) > 999999) return SendClientMessage(playerid, rVermelho, "[ERRO] Score de 0 а 999999.");
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} deu {FFFF00}%d{A9A9A9} de score ao jogador {FFFF00}%s{A9A9A9}.", rNome(playerid), strval(inputtext), rNome(Player));
SendClientMessageToAll(rCinza, StringTexto);
SetPlayerScore(Player, strval(inputtext));
}
}
}
if (dialogid == rASkin)
{
if (response == 1)
{
if(!strlen(inputtext) || !isNumeric(inputtext))
{
format(String, sizeof(String), "{B9BCCC}Definir skin para {FFFF00}%s{B9BCCC}", rNome(Player));
ShowPlayerDialog(playerid, rASkin, DIALOG_STYLE_INPUT, "Skin", String, "Setar", "Cancelar");
}else{
if(strval(inputtext) < 0 || strval(inputtext) > 299) return SendClientMessage(playerid, rVermelho, "[ERRO] Skin de 0 а 299.");
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} definiu a skin do jogador {FFFF00}%s{A9A9A9} para a {FFFF00}%d{A9A9A9}. ", rNome(playerid), rNome(Player), strval(inputtext));
SendClientMessageToAll(rCinza, StringTexto);
SetPlayerSkin(Player, strval(inputtext));
}
}
}
if (dialogid == rAAdmin)
{
if (response == 1)
{
if(!strlen(inputtext) || !isNumeric(inputtext))
{
format(String, sizeof(String), "{B9BCCC}Definir nнvel de administrador para {FFFF00}%s{B9BCCC}?", rNome(Player));
ShowPlayerDialog(playerid, rAAdmin, DIALOG_STYLE_INPUT, "Administrador", String, "Setar", "Cancelar");
}else{
if(strval(inputtext) > 3 || strval(inputtext) > 3) return SendClientMessage(playerid, rVermelho, "[ERRO] Nivel de 0 а 3.");
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} deu ao {FFFF00}%s{A9A9A9} nнvel de administrador {FFFF00}%d{A9A9A9}.", rNome(playerid), rNome(Player), strval(inputtext));
SendClientMessageToAll(rCinza, StringTexto);
rAdminNivel[Player] = strval(inputtext);
}
}
}
if (dialogid == rAScoret)
{
if (response == 1)
{
if(!strlen(inputtext) || !isNumeric(inputtext))
{
format(String, sizeof(String), "{B9BCCC}Definir score para {FFFF00}todos online{B9BCCC}");
ShowPlayerDialog(playerid, rAScoret, DIALOG_STYLE_INPUT, "Score Todos", String, "Setar", "Cancelar");
}else{
if(strval(inputtext) < 0 || strval(inputtext) > 999999) return SendClientMessage(playerid, rVermelho, "[ERRO] Score de 0 a 999999.");
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} definiu {FFFF00}%d{A9A9A9} de score para {FFFF00}todos{A9A9A9} os jogadores!", rNome(playerid), strval(inputtext));
SendClientMessageToAll(rCinza, StringTexto);
for (new r = 0; r != MAX_PLAYERS; r++)
{
if(IsPlayerConnected®)
{
SetPlayerScore(r, strval(inputtext));
}
}
}
}
}
if (dialogid == rASkint)
{
if (response == 1)
{
if(!strlen(inputtext) || !isNumeric(inputtext))
{
format(String, sizeof(String), "{B9BCCC}Definir skin para {FFFF00}todos online{B9BCCC}");
ShowPlayerDialog(playerid, rASkint, DIALOG_STYLE_INPUT, "Skin Todos", String, "Setar", "Cancelar");
}else{
if(strval(inputtext) < 0 || strval(inputtext) > 299) return SendClientMessage(playerid, rVermelho, "[ERRO] Skin de 0 a 299.");
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} deu a skin {FFFF00}%d{A9A9A9} a {FFFF00}todos{A9A9A9} os jogadores!", rNome(playerid), strval(inputtext));
SendClientMessageToAll(rCinza, StringTexto);
for (new r = 0; r != MAX_PLAYERS; r++)
{
if(IsPlayerConnected®)
{
SetPlayerSkin(r, strval(inputtext));
}
}
}
}
}
if (dialogid == rAGranat)
{
if (response == 1)
{
if(!strlen(inputtext) || !isNumeric(inputtext))
{
format(String, sizeof(String), "{B9BCCC}Dar dinheiro a {FFFF00}todos online{B9BCCC}?");
ShowPlayerDialog(playerid, rAGranat, DIALOG_STYLE_INPUT, "Dinheiro Todos", String, "Setar", "Cancelar");
}else{
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} deu {FFFF00}%d{A9A9A9}$ a {FFFF00}todos{A9A9A9} os jogadores!", rNome(playerid), strval(inputtext));
SendClientMessageToAll(rCinza, StringTexto);
for (new r = 0; r != MAX_PLAYERS; r++)
{
if(IsPlayerConnected®)
{
GivePlayerMoney(r, strval(inputtext));
}
}
}
}
}
if (dialogid == rAArmat)
{
if (response == 1)
{
if(!strlen(inputtext) || !isNumeric(inputtext))
{
format(String, sizeof(String), "{B9BCCC}Digite o ID da arma a atribuir a {FFFF00}todos online{B9BCCC}.", rNome(Player));
ShowPlayerDialog(playerid, rAArmat, DIALOG_STYLE_INPUT, "Arma Todos", String, "Setar", "Cancelar");
}else{
if(strval(inputtext) < 0 || strval(inputtext) > 48) return SendClientMessage(playerid, rVermelho, "[ERRO] Armas de 0 a 48.");
IDArma = strval(inputtext);
format(String, sizeof(String), "{B9BCCC}Quantas {FFFF00}muniзхes?{B9BCCC}.");
ShowPlayerDialog(playerid, rAArmat2, DIALOG_STYLE_INPUT, "Arma Todos Parte 2", String, "Setar", "Cancelar");
}
}
}
if (dialogid == rAArmat2)
{
if (response == 1)
{
if(!strlen(inputtext) || !isNumeric(inputtext))
{
format(String, sizeof(String), "{B9BCCC}Quantas {FFFF00}muniзхes?{B9BCCC}.");
ShowPlayerDialog(playerid, rAArmat2, DIALOG_STYLE_INPUT, "Arma Parte 2", String, "Setar", "Cancelar");
}else{
if(strval(inputtext) < 1 || strval(inputtext) > 999999) return SendClientMessage(playerid, rVermelho, "[ERRO] Muniзгo de 1 a 999999.");
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} setou a Arma ID:{FFFF00}%d{A9A9A9} para {FFFF00}todos{A9A9A9} os jogadores!", rNome(playerid), IDArma);
SendClientMessageToAll(rCinza, StringTexto);
for (new r = 0; r != MAX_PLAYERS; r++)
{
if(IsPlayerConnected®)
{
GivePlayerWeapon(r, IDArma, strval(inputtext));
}
}
}
}
}
if (dialogid == rAVidat)
{
if (response == 1)
{
if(!strlen(inputtext) || !isNumeric(inputtext))
{
format(String, sizeof(String), "{B9BCCC}Definir pontos de vida para {FFFF00}todos online{B9BCCC}");
ShowPlayerDialog(playerid, rAVidat, DIALOG_STYLE_INPUT, "Vida Todos", String, "Setar", "Cancelar");
}else{
if(strval(inputtext) < 0 || strval(inputtext) > 99999) return SendClientMessage(playerid, rVermelho, "[ERRO] Vida de 0 а 99999.");
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} deu {FFFF00}%d{A9A9A9} de vida a {FFFF00}todos{A9A9A9} os jogadores!", rNome(playerid), strval(inputtext));
SendClientMessageToAll(rCinza, StringTexto);
for (new r = 0; r != MAX_PLAYERS; r++)
{
if(IsPlayerConnected®)
{
SetPlayerHealth(r, strval(inputtext));
}
}
}
}
}
if (dialogid == rAColetet)
{
if (response == 1)
{
if(!strlen(inputtext) || !isNumeric(inputtext))
{
format(String, sizeof(String), "{B9BCCC}Definir pontos de colete para {FFFF00}todos online{B9BCCC}?");
ShowPlayerDialog(playerid, rAColetet, DIALOG_STYLE_INPUT, "Colete Todos", String, "Setar", "Cancelar");
}else{
if(strval(inputtext) < 0 || strval(inputtext) > 99999) return SendClientMessage(playerid, rVermelho, "[ERRO] Vida de 0 а 99999.");
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} deu {FFFF00}%d{A9A9A9} de colete a {FFFF00}todos{A9A9A9} os jogadores!", rNome(playerid), strval(inputtext));
SendClientMessageToAll(rCinza, StringTexto);
for (new r = 0; r != MAX_PLAYERS; r++)
{
if(IsPlayerConnected®)
{
SetPlayerArmour(r, strval(inputtext));
}
}
}
}
}
if (dialogid == rATempot)
{
if (response == 1)
{
if(!strlen(inputtext) || !isNumeric(inputtext))
{
format(String, sizeof(String), "{B9BCCC}Definir tempo para {FFFF00}todos online{B9BCCC}?", rNome(Player));
ShowPlayerDialog(playerid, rATempot, DIALOG_STYLE_INPUT, "Tempo", String, "Setar", "Cancelar");
}else{
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} definiu o tempo de {FFFF00}todos{A9A9A9} os jogadores, para a(s) {FFFF00}%d:00{A9A9A9} hora(s).", rNome(playerid), strval(inputtext));
SendClientMessageToAll(rCinza, StringTexto);
for (new r = 0; r != MAX_PLAYERS; r++)
{
if(IsPlayerConnected®)
{
SetPlayerTime(r, strval(inputtext),0);
}
}
}
}
}
if (dialogid == rAClimat)
{
if (response == 1)
{
if(!strlen(inputtext) || !isNumeric(inputtext))
{
format(String, sizeof(String), "{B9BCCC}Definir clima para {FFFF00}todos online{B9BCCC}?");
ShowPlayerDialog(playerid, rAClimat, DIALOG_STYLE_INPUT, "Clima", String, "Setar", "Cancelar");
}else{
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} definiu o clima de {FFFF00}todos{A9A9A9} os jogadores, para o id: {FFFF00}%d{A9A9A9}.", rNome(playerid), strval(inputtext));
SendClientMessageToAll(rCinza, StringTexto);
SetWeather(strval(inputtext));
}
}
}
if (dialogid == rAKickt)
{
if (response == 1)
{
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} kickou {FFFF00}todos{A9A9A9} os jogadores!", rNome(playerid));
SendClientMessageToAll(rCinza, StringTexto);
for (new r = 0; r != MAX_PLAYERS; r++)
{
if(IsPlayerConnected®)
{
Kick®;
}
}
}
}
if (dialogid == rABant)
{
if (response == 1)
{
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} baniu {FFFF00}todos{A9A9A9} os jogadores!", rNome(playerid));
SendClientMessageToAll(rCinza, StringTexto);
for (new r = 0; r != MAX_PLAYERS; r++)
{
if(IsPlayerConnected®)
{
BanEx(r, "Admin Louco");
}
}
}
}
if (dialogid == rAReiniciar)
{
if (response == 1)
{
if(SendoReiniciado == true) return SendClientMessage(playerid, rAzul, "[ERRO] O Servidor jб estб a ser reiniciado!!");
format(StringTexto, sizeof(StringTexto), "O admin {FFFF00}%s{A9A9A9} decidiu reiniciar o servidor... Aguarde {FFFF00}2{A9A9A9} minutos para reiniciar.", rNome(playerid));
SendClientMessageToAll(rCinza, StringTexto);
for (new r = 0; r != MAX_PLAYERS; r++)
{
if(IsPlayerConnected®)
{
TempoStart = SetTimerEx("rReiniciandoServer", 120000, true, "d", r);
SendoReiniciado = true;
return 1;
}
}
}
}
return 0;
}