09.11.2016, 17:39
Serб que alguem pode me ajudar a transformar esse cmd em Dialog ?
PHP код:
CMD:trazertodos(playerid)
{
if(Player[playerid][TempoPreso] >= 1 || Player[playerid][InHospital] == true) return SCM(playerid, COR_ERRO, "[ERRO]: Vocк nгo pode fazer isso agora!");
if(NaBoateVip[playerid] == 1) return SCM(playerid, COR_ERRO, "[ERRO]: Vocк nгo pode fazer isto agora.");
if(Player[playerid][Cargo] >= 4 || Player[playerid][Admin])
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
for(new i = 0; i < HighestID; i++)
{
if(Player[i][Faccoes] == Player[playerid][Faccoes])
{
if(Player[i][TempoPreso] >= 1 || EmTrabalho[i] >= 1 || Player[i][InHospital] == true) return SCM(playerid, COR_ERRO, "[ERRO]: Alguns Players Nгo Vieram Por Algum Motivo!");
SetPlayerVirtualWorld(i, GetPlayerVirtualWorld(playerid));
SetPlayerInterior(i, GetPlayerInterior(playerid));
SetPlayerPos(i, x, y, z);
new favela[80], string[126];
if(Player[playerid][Faccoes] == 12) { favela = "Aзo"; }
if(Player[playerid][Faccoes] == 11) { favela = "Carobinha"; }
if(Player[playerid][Faccoes] == 10) { favela = "Caixa d'gua"; }
if(Player[playerid][Faccoes] == 9) { favela = "Camara"; }
if(Player[playerid][Faccoes] == 8) { favela = "Serrinha"; }
if(Player[playerid][Faccoes] == 7) { favela = "Morro do Dende"; }
if(Player[playerid][Faccoes] == 6) { favela = "Sao Carlos"; }
if(Player[playerid][Faccoes] == 5) { favela = "Quitanda"; }
if(Player[playerid][Faccoes] == 4) { favela = "Pedreira"; }
if(Player[playerid][Faccoes] == 3) { favela = "Barao"; }
if(Player[playerid][Faccoes] == 2) { favela = "Chapadгo"; }
if(Player[playerid][Faccoes] == 1) { favela = "Final Feliz"; }
format(string, sizeof(string), " O %s %s puxou todos da Comunidade %s atй ele.", AccountName(playerid), Nome(playerid), favela);
MensagemLocal(playerid, COR_ROXO, string, 20);
}
}
}
else SCM(playerid, COR_ERRO, "[ERRO]: Vocк nгo tem permissгo para usar este comando!");
return 1;
}