14.10.2016, 00:02
gostaria de saber como faзo pra quando eu digitar /trazertodos apareзer uma mensagem para o player se ele aceita ou nao ser puxado
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][Lider] >= 1 || Player[playerid][Dono])
{
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 = "Cesarгo"; }
if(Player[playerid][Faccoes] == 11) { favela = "Caixa d'Agua"; }
if(Player[playerid][Faccoes] == 10) { favela = "Fuba"; }
if(Player[playerid][Faccoes] == 9) { favela = "Vigбrio Geral"; }
if(Player[playerid][Faccoes] == 8) { favela = "Parada de Lucas"; }
if(Player[playerid][Faccoes] == 7) { favela = "Acari"; }
if(Player[playerid][Faccoes] == 6) { favela = "Juramento"; }
if(Player[playerid][Faccoes] == 5) { favela = "Rocinha"; }
if(Player[playerid][Faccoes] == 4) { favela = "Pedreira"; }
if(Player[playerid][Faccoes] == 3) { favela = "Chapadгo"; }
if(Player[playerid][Faccoes] == 2) { favela = "Antares"; }
if(Player[playerid][Faccoes] == 1) { favela = "Tabajara"; }
format(string, sizeof(string), "** O %s %s puxou todos da favela %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;
}