Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // OnPlayerText
- public OnPlayerText(playerid, text[])
- {
- new rString[128];
- if(strfind(text, "189.", true) != -1 || strfind(text, "201.", true) != -1 || strfind(text, "200.", true) != -1 || strfind(text, "69.", true) != -1 || strfind(text, "187.", true) != -1
- || strfind(text, "64.", true) != -1 || strfind(text, "120.", true) != -1 || strfind(text, "165.", true) != -1 || strfind(text, "85.", true) != -1 || strfind(text, ":7771", true) != -1
- || strfind(text, ":7770", true) != -1 || strfind(text, "7777", true) != -1 || strfind(text, ":7776", true) != -1 || strfind(text, ":7777", true) != -1 || strfind(text, ":7778", true) != -1
- || strfind(text, ":7779", true) != -1 || strfind(text, "1.", true) != -1 || strfind(text, ".br", true) != -1 || strfind(text, ".net", true) != -1 || strfind(text, ".blogspot", true) != -1
- || strfind(text, ".forum", true) != -1 || strfind(text, ".wiki", true) != -1 || strfind(text, "wiki.", true) != -1 || strfind(text, ".info", true) != -1 || strfind(text, "www.", true) != -1
- || strfind(text, ".org", true) != -1 || strfind(text, ".tk", true) != -1 || strfind(text, "co.cc", true) != -1 || strfind(text, "http", true) != -1)
- {
- format(rString, sizeof(rString), "[Anti-Divulgação] %s foi kickado automaticamente por tentar divulgar.", rNome(playerid));
- SendClientMessageToAll(Vermelho, rString);
- Kick(playerid);
- return 0;
- }
- Flood[playerid]++;
- SetTimerEx("TempoFlood", 1500, false, "d", playerid);
- if(Flood[playerid] == 5)
- {
- format(rString, sizeof(rString), "[Anti-Flood] %s foi kickado automaticamente por fazer flood.", rNome(playerid));
- SendClientMessageToAll(Vermelho, rString);
- Kick(playerid);
- return 0;
- }
- if(Logado[playerid] == false)
- {
- SendClientMessage(playerid, Verde, "[ERRO] Você deve spawnar para falar.");
- return 0;
- }
- if(Calado[playerid] == true)
- {
- SendClientMessage(playerid, Verde, "[ERRO] Você não pode falar. Pois foi calado por um admin!");
- return 0;
- }
- if(text[0] == '@')
- {
- if(ConvidadoGrupoID[playerid] > 0)
- {
- format(rString, sizeof(rString), "[ChatGrupo] %s(%d): {FFFFFF}%s", rNome(playerid), playerid, text[1]);
- ChatGrupo(playerid, Amarelo, rString);
- return 0;
- }else{
- SendClientMessage(playerid, Vermelho, "[INFO] O character '@' é privado para o Chat de Grupos.");
- return 0;
- }
- }
- if(text[0] == '!')
- {
- if(SDSAdmin[playerid] >= 1 || IsPlayerAdmin(playerid))
- {
- format(rString, sizeof(rString), "[Administrador] {A9A9A9}%s:{FFFFFF}%s", rNome(playerid), text[1]);
- SendClientMessageToAll(Vermelho, rString);
- return 0;
- }
- }else{
- SetPlayerChatBubble(playerid, text, 0x696969AA, 10.0, 2500);
- format(rString, sizeof(rString), "{FFFFFF}(%d)%s", playerid, text[0]);
- SendPlayerMessageToAll(playerid, rString);
- return 0;
- }
- return 1;
- }
- // Flood
- forward TempoFlood(playerid);
- public TempoFlood(playerid)
- {
- Flood[playerid] = 0;
- return 1;
- }
- // Erro de comando
- public OnPlayerCommandPerformed(playerid, cmdtext[], success)
- {
- new rStr[128];
- if(!success)
- {
- format(rStr, sizeof(rStr), "[Atenção]{A9A9A9} O Comando: {6495ED}%s{A9A9A9} Não existe! Use: {6495ED}/Comandos{A9A9A9} - {6495ED}/Ajuda{A9A9A9}.", cmdtext);
- SendClientMessage(playerid, Azul, rStr);
- }
- return true;
- }
- // OnPlayerDeath
- public OnPlayerDeath(playerid, killerid, reason)
- {
- if(Logado[playerid] != false)
- {
- SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
- SendDeathMessage(killerid, playerid, reason);
- Kills[playerid] ++;
- DestroyVehicle(SDSCar[playerid]);
- AreaDM[playerid] = false;
- SetTimerEx("TempoKill", 1500, false, "d", playerid);
- if(Kills[playerid] == 5)
- {
- SendClientMessage(playerid, Vermelho, "[INFO] Aprenda a se comportar. Volte so quando aprender!");
- Ban(playerid);
- }
- }
- return 1;
- }
- forward TempoKill(playerid);
- public TempoKill(playerid)
- {
- Kills[playerid] = 0;
- return 1;
- }
- // Request Class
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid,-2677.0771,1602.9396,3.2226);
- SetPlayerCameraPos(playerid,-2676.3555,1596.6190,3.2226);
- SetPlayerCameraLookAt(playerid,-2676.5554,1599.8995,3.2226);
- SetPlayerFacingAngle(playerid,180);
- SetPlayerTime(playerid,12,0);
- SetPlayerWeather(playerid,5);
- ApplyAnimation(playerid, "Dancing", "Dan_Loop_A", 5.0, 1, 0, 0, 0, 0);
- return 1;
- }
- // Stock Salvar Player
- stock SDSalvar(playerid)
- {
- new rString[68];
- format(rString,sizeof rString, Registros, rNome(playerid));
- DOF2_SetInt(rString, "Dinheiro", GetPlayerMoney(playerid));
- DOF2_SetInt(rString, "Score", GetPlayerScore(playerid));
- DOF2_SetInt(rString, "Avisos", Avisos[playerid]);
- DOF2_SetInt(rString, "Administrador", SDSAdmin[playerid]);
- DOF2_SetInt(rString, "Grupo ID", ConvidadoGrupoID[playerid]);
- DOF2_SaveFile();
- return 1;
- }
- // Stock Carregando Player
- stock SDSLoad(playerid)
- {
- new rString[68];
- format(rString,sizeof rString, Registros, rNome(playerid));
- GivePlayerMoney(playerid, DOF2_GetInt(rString, "Dinheiro"));
- SetPlayerScore(playerid, DOF2_GetInt(rString, "Score"));
- SDSAdmin[playerid] = DOF2_GetInt(rString, "Administrador");
- Avisos[playerid] = DOF2_GetInt(rString, "Avisos");
- ConvidadoGrupoID[playerid] = DOF2_GetInt(rString, "Grupo ID");
- return 1;
- }
- // Stock MaxIps
- stock GetNumberOfPlayersOnThisIP(test_ip[])
- {
- new against_ip[32+1];
- new x = 0;
- new ip_count = 0;
- for(x=0; x<MAX_PLAYERS; x++)
- {
- if(IsPlayerConnected(x))
- {
- GetPlayerIp(x,against_ip,32);
- if(!strcmp(against_ip,test_ip)) ip_count++;
- }
- }
- return ip_count;
- }
- // Anti-Roubo
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- SendClientMessage(playerid, Vermelho, "[AVISO]{FFFFFF} Não tente roubar veículos, você morrerá automaticamente{FF0000}.");
- if(!ispassenger && IsVehicleOccupied(vehicleid)) SetPlayerHealth(playerid,0.0);
- return 1;
- }
- stock IsVehicleOccupied(vehicleid)
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- if(IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == PLAYER_STATE_DRIVER)
- return 1;
- return 0;
- }
- public SpawnPlayerid(playerid)
- {
- new rand = random(sizeof(RandomSpawn));
- SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1], RandomSpawn[rand][2]);
- SetPlayerFacingAngle(playerid, RandomSpawn[rand][3]);
- return 1;
- }
- // DialogResponse
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- new arq[50],String[100];
- format(arq, sizeof arq, Registros, rNome(playerid));
- if (dialogid == rRegistro)
- {
- if (response == 1)
- {
- if(!strlen(inputtext)) return ShowPlayerDialog(playerid, rRegistro, DIALOG_STYLE_PASSWORD, "[BPC] - Login", "{B9BCCC}Você deve escrever uma senha.\n\n{B9BCCC}Re-Digite a senha:", "Registrar", "Sair");
- DOF2_CreateFile(arq);
- LimparChatPlayer(playerid);
- printf("[Registro] %s registrou-se. Sua Senha: %s", rNome(playerid), inputtext[0]);
- format(String, sizeof(String), "{B9BCCC}Nome: {6495ED}%s{B9BCCC} registrado!\n\n{B9BCCC}Agora logue-se:", rNome(playerid));
- ShowPlayerDialog(playerid, rLogin, DIALOG_STYLE_PASSWORD, "[BPC] - Login", String, "Logar", "Sair");
- GivePlayerMoney(playerid, 5000);
- SetPlayerScore(playerid, 0);
- DOF2_SetString(arq, "Senha", inputtext);
- SDSalvar(playerid);
- return 1;
- }
- SendClientMessage(playerid, Vermelho, "> Você clicou na opção sair,e foi kickado! <");
- Kick(playerid);
- }
- else if (dialogid == rLogin)
- {
- if (response == 1)
- {
- if(!strlen(inputtext)) return ShowPlayerDialog(playerid, rLogin, DIALOG_STYLE_PASSWORD, "[BPC] - Login", "{B9BCCC}Você deve escrever uma senha.\n\n{B9BCCC}Re-Digite a senha:", "Logar", "Sair");
- if (!strcmp(DOF2_GetString(arq, "Senha"), inputtext))
- {
- LimparChatPlayer(playerid);
- Logado[playerid] = true;
- TextDrawShowForPlayer(playerid, Novida);
- PrimeiroS[playerid] = true;
- SendClientMessage(playerid, Azul, "*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~");
- SendClientMessage(playerid, Branco, "» Brasil PlayCity ® DRIFT SHOW 2013 ©");
- SendClientMessage(playerid, Branco, "» Para mais informações,utilize: /Ajuda");
- SendClientMessage(playerid, Branco, "» Conheça nossos /mundos");
- SendClientMessage(playerid, Branco, "» Site: www.brasilplaycity.com.br");
- SendClientMessage(playerid, Azul, "*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~");
- SDSLoad(playerid);
- if(SDSAdmin[playerid] > 0)
- {
- SendClientMessage(playerid, Cinza, "Administrador: {FF0000}Sim");
- }else{
- SendClientMessage(playerid, Cinza, "Administrador: {FF0000}Não");
- }
- if(ConvidadoGrupoID[playerid] > 0)
- {
- SendClientMessage(playerid, Cinza, "Tem Grupo: {FF0000}Sim");
- TemGrupo[playerid] = true;
- }else{
- SendClientMessage(playerid, Cinza, "Tem Grupo: {FF0000}Não");
- }
- PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
- return 1;
- }
- ShowPlayerDialog(playerid, rLogin, DIALOG_STYLE_PASSWORD, "[BPC] - Login", "{B9BCCC}Senha incorreta...\n\n{B9BCCC}Tente novamente:", "Logar", "Sair");
- return 1;
- }
- SendClientMessage(playerid, Vermelho, "> Você clicou na opção sair,e foi kickado! <");
- Kick(playerid);
- }
- if (dialogid == rMundos)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SendClientMessage(playerid, Cinza, "[INFO] Mundo:{FFFF00} Com Objetos{A9A9A9}, selecionado!");
- SetPlayerVirtualWorld(playerid, 0);
- ResetPlayerWeapons(playerid);
- DestroyVehicle(SDSCar[playerid]);
- MundoDM[playerid] = false;
- }
- if(listitem == 1)
- {
- SendClientMessage(playerid, Cinza, "[INFO] Mundo:{FFFF00} Sem Objetos{A9A9A9}, selecionado!");
- SetPlayerVirtualWorld(playerid, 1);
- ResetPlayerWeapons(playerid);
- DestroyVehicle(SDSCar[playerid]);
- MundoDM[playerid] = false;
- }
- if(listitem == 2)
- {
- SendClientMessage(playerid, Cinza, "[INFO] Mundo:{FFA500} Outro{A9A9A9}, selecionado!");
- SetPlayerVirtualWorld(playerid, 2);
- ResetPlayerWeapons(playerid);
- DestroyVehicle(SDSCar[playerid]);
- MundoDM[playerid] = false;
- }
- if(listitem == 3)
- {
- SendClientMessage(playerid, Cinza, "[INFO] Mundo:{FFA500} Outro 2{A9A9A9}, selecionado!");
- SetPlayerVirtualWorld(playerid, 3);
- ResetPlayerWeapons(playerid);
- DestroyVehicle(SDSCar[playerid]);
- MundoDM[playerid] = false;
- }
- if(listitem == 4)
- {
- SendClientMessage(playerid, Cinza, "[INFO] Mundo:{27FF10} Eventos{A9A9A9}, selecionado!");
- SetPlayerVirtualWorld(playerid, 4);
- ResetPlayerWeapons(playerid);
- DestroyVehicle(SDSCar[playerid]);
- MundoDM[playerid] = false;
- }
- if(listitem == 5)
- {
- SendClientMessage(playerid, Cinza, "[INFO] Mundo:{556B2F} Mata-Mata{A9A9A9}, selecionado!");
- SetPlayerVirtualWorld(playerid, 5);
- ResetPlayerWeapons(playerid);
- DestroyVehicle(SDSCar[playerid]);
- MundoDM[playerid] = true;
- }
- }
- }
- new Str[120];
- new Arquivos[50];
- format(Str, sizeof(Str), "%s%s", playerid, rNome(playerid));
- if (dialogid == Dica)
- {
- if (response == 1)
- {
- new Nome[100];
- format(Nome, sizeof(Nome), "(Dica): %s", inputtext);
- format(Arquivos, sizeof(Arquivos), rDB, rNome(playerid));
- DOF2_SetString(Arquivos, Str, Nome);
- DOF2_SaveFile();
- SendClientMessage(playerid, Verde, "[INFO] Sua dica, foi enviada com sucesso.");
- for (new r = 0; r != MAX_PLAYERS; r++)
- {
- if(SDSAdmin[r] > 0 || IsPlayerAdmin(r))
- {
- if(IsPlayerConnected(r))
- {
- format(String, sizeof(String), "[INFO] Nova dica! Nome: {00FF00}%s{A9A9A9} Dica: {00FF00}%s", rNome(playerid), inputtext[0]);
- SendClientMessage(r, Cinza, String);
- }
- }
- }
- }
- }
- if (dialogid == Bug)
- {
- if (response == 1)
- {
- new Nome[100];
- format(Nome, sizeof(Nome), "(Bug): %s", inputtext);
- format(Arquivos, sizeof(Arquivos), rDB, rNome(playerid));
- DOF2_SetString(Arquivos, Str, Nome);
- DOF2_SaveFile();
- SendClientMessage(playerid, Verde, "[INFO] Seu bug, foi enviado com sucesso.");
- for (new r = 0; r != MAX_PLAYERS; r++)
- {
- if(SDSAdmin[r] > 0 || IsPlayerAdmin(r))
- {
- if(IsPlayerConnected(r))
- {
- format(String, sizeof(String), "[INFO] Novo bug! Nome: {FF0000}%s{A9A9A9} Bug: {FF0000}%s", rNome(playerid), inputtext[0]);
- SendClientMessage(r, Cinza, String);
- }
- }
- }
- }
- }
- if(dialogid == rRadios)
- {
- if (response)
- {
- if (listitem == 0)
- {
- PlayAudioStreamForPlayer(playerid, "http://176.31.64.241:9960/");
- SendClientMessage(playerid, -1, ">> Radio Power Mix.");
- }
- if (listitem == 1)
- {
- PlayAudioStreamForPlayer(playerid, "http://83.170.116.212:7589");
- SendClientMessage(playerid, -1, ">> Radio Super Mix.");
- }
- if (listitem == 2)
- {
- PlayAudioStreamForPlayer(playerid,"http://live.hunterfm.com:8080/");
- SendClientMessage(playerid, -1, ">> Radio Hunter.");
- }
- if (listitem == 3)
- {
- StopAudioStreamForPlayer(playerid);
- SendClientMessage(playerid, Vermelho, ">> Radio Desligada.");
- }
- }
- }
- if (dialogid == rControles)
- {
- if (listitem == 0)
- {
- if (Lights[playerid] == 0)
- {
- new veh = GetPlayerVehicleID(playerid);
- new engine, lights, alarm, doors, bonnet, boot, objective;
- GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
- SetVehicleParamsEx(veh, engine, VEHICLE_PARAMS_ON, alarm, doors, bonnet, boot, objective);
- Lights[playerid] = 1;
- }
- else if (Lights[playerid] == 1)
- {
- new veh = GetPlayerVehicleID(playerid);
- new engine, lights, alarm, doors, bonnet, boot, objective;
- GetVehicleParamsEx(veh, engine, lights, alarm, doors, bonnet, boot, objective);
- SetVehicleParamsEx(veh, engine, VEHICLE_PARAMS_OFF, alarm, doors, bonnet, boot, objective);
- Lights[playerid] = 0;
- }
- }
- if (listitem == 1)
- {
- if (Bonnet[playerid] == 0)
- {
- new veh = GetPlayerVehicleID(playerid);
- new engine, lights, alarm, doors, bonnet, boot, objective;
- GetVehicleParamsEx(veh, engine, lights, alarm, doors, bonnet, boot, objective);
- SetVehicleParamsEx(veh, engine, lights, alarm, doors, VEHICLE_PARAMS_ON, boot, objective);
- Bonnet[playerid] = 1;
- }
- else if (Bonnet[playerid] == 1)
- {
- new veh = GetPlayerVehicleID(playerid);
- new engine, lights, alarm, doors, bonnet, boot, objective;
- GetVehicleParamsEx(veh, engine, lights, alarm, doors, bonnet, boot, objective);
- SetVehicleParamsEx(veh, engine, lights, alarm, doors, VEHICLE_PARAMS_OFF, boot, objective);
- Bonnet[playerid] = 0;
- }
- }
- if (listitem == 2)
- {
- if (Boot[playerid] == 0)
- {
- new veh = GetPlayerVehicleID(playerid);
- new engine, lights, alarm, doors, bonnet, boot, objective;
- GetVehicleParamsEx(veh, engine, lights, alarm, doors, bonnet, boot, objective);
- SetVehicleParamsEx(veh, engine, lights, alarm, doors, bonnet, VEHICLE_PARAMS_ON, objective);
- Boot[playerid] = 1;
- }
- else if (Boot[playerid] == 1)
- {
- new engine, lights, alarm, doors, bonnet, boot, objective;
- new veh = GetPlayerVehicleID(playerid);
- GetVehicleParamsEx(veh, engine, lights, alarm, doors, bonnet, boot, objective);
- SetVehicleParamsEx(veh, engine, lights, alarm, doors, bonnet, VEHICLE_PARAMS_OFF, objective);
- Boot[playerid] = 0;
- }
- }
- if (listitem == 3)
- {
- if (Engine[playerid] == 0)
- {
- new veh = GetPlayerVehicleID(playerid);
- new engine, lights, alarm, doors, bonnet, boot, objective;
- GetVehicleParamsEx(veh, engine, lights, alarm, doors, bonnet, boot, objective);
- SetVehicleParamsEx(veh, VEHICLE_PARAMS_ON, lights, alarm, doors, bonnet, boot, objective);
- Engine[playerid] = 1;
- }
- else if (Engine[playerid] == 1)
- {
- new veh = GetPlayerVehicleID(playerid);
- new engine, lights, alarm, doors, bonnet, boot, objective;
- GetVehicleParamsEx(veh, engine, lights, alarm, doors, bonnet, boot, objective);
- SetVehicleParamsEx(veh, VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective);
- Engine[playerid] = 0;
- }
- }
- if (listitem == 4)
- {
- if (Alarm[playerid] == 0)
- {
- new veh = GetPlayerVehicleID(playerid);
- new engine, lights, alarm, doors, bonnet, boot, objective;
- GetVehicleParamsEx(veh, engine, lights, alarm, doors, bonnet, boot, objective);
- SetVehicleParamsEx(veh, engine, lights, VEHICLE_PARAMS_ON, doors, bonnet, boot, objective);
- Alarm[playerid] = 1;
- }
- else if (Engine[playerid] == 1)
- {
- new veh = GetPlayerVehicleID(playerid);
- new engine, lights, alarm, doors, bonnet, boot, objective;
- GetVehicleParamsEx(veh, engine, lights, alarm, doors, bonnet, boot, objective);
- SetVehicleParamsEx(veh, engine, lights, VEHICLE_PARAMS_OFF, doors, bonnet, boot, objective);
- Alarm[playerid] = 0;
- }
- }
- }
- if(dialogid == rCores)
- {
- if (response)
- {
- if (listitem == 0)
- {
- SetPlayerColor(playerid, -1);
- SendClientMessage(playerid, Branco, "[INFO] Cor Alterada.");
- }
- if (listitem == 1)
- {
- SetPlayerColor(playerid, 0x000000AA);
- SendClientMessage(playerid, Branco, "[INFO] Cor Alterada.");
- }
- if (listitem == 2)
- {
- SetPlayerColor(playerid, 0xFF0000AA);
- SendClientMessage(playerid, Branco, "[INFO] Cor Alterada.");
- }
- if (listitem == 3)
- {
- SetPlayerColor(playerid, 0xFFFF00AA);
- SendClientMessage(playerid, Branco, "[INFO] Cor Alterada.");
- }
- if (listitem == 4)
- {
- SetPlayerColor(playerid, 0xFFA500AA);
- SendClientMessage(playerid, Branco, "[INFO] Cor Alterada.");
- }
- if (listitem == 5)
- {
- SetPlayerColor(playerid, 0xBEBEBEAA);
- SendClientMessage(playerid, Branco, "[INFO] Cor Alterada.");
- }
- if (listitem == 6)
- {
- SetPlayerColor(playerid, 0x912CEEAA);
- SendClientMessage(playerid, Branco, "[INFO] Cor Alterada.");
- }
- if (listitem == 7)
- {
- SetPlayerColor(playerid, 0xFF00FFAA);
- SendClientMessage(playerid, Branco, "[INFO] Cor Alterada.");
- }
- if (listitem == 8)
- {
- SetPlayerColor(playerid, 0x228B22AA);
- SendClientMessage(playerid, Branco, "[INFO] Cor Alterada.");
- }
- if (listitem == 9)
- {
- SetPlayerColor(playerid, 0x0000FFAA);
- SendClientMessage(playerid, Branco, "[INFO] Cor Alterada.");
- }
- if (listitem == 10)
- {
- SetPlayerColor(playerid, 0x00FF00AA);
- SendClientMessage(playerid, Branco, "[INFO] Cor Alterada.");
- }
- if (listitem == 11)
- {
- SetPlayerColor(playerid, 0x1E90FFAA);
- SendClientMessage(playerid, Branco, "[INFO] Cor Alterada.");
- }
- if (listitem == 12)
- {
- SetPlayerColor(playerid, 0xFFFFFF00);
- SendClientMessage(playerid, Branco, "[INFO] Cor Alterada.");
- }
- }
- }
- // Comandos
- if(dialogid == rComandos)
- {
- if (response == 1)
- {
- new zString[500];
- format(zString, sizeof(zString), "{FF0000}Lista de Comandos:\n\n");
- strcat(zString, "{B9BCCC}/MeuTempo - {6495ED}Muda a hora do seu jogo.\n");
- strcat(zString, "{B9BCCC}/MeuClima - {6495ED}Muda o clima do seu jogo.\n");
- strcat(zString, "{B9BCCC}/MinhaSkin - {6495ED}Muda sua skin.\n");
- strcat(zString, "{B9BCCC}/SP - {6495ED}Salva sua posição.\n");
- strcat(zString, "{B9BCCC}/IRP - {6495ED}Ir na sua posição salvada.\n");
- strcat(zString, "{B9BCCC}/Ac - {6495ED}Acessorios para o player.\n\n");
- strcat(zString, "{FF0000}> [AVISO] Idéias? Conte-nos: /Dica. <");
- ShowPlayerDialog(playerid, rComandos2, DIALOG_STYLE_MSGBOX, "[SDS] - Comandos [2]", zString, "Fechar", "");
- }
- }
- if (dialogid == rConvidar)
- {
- new rString[140];
- if (response == 1)
- {
- format(rString, sizeof(rString), "[AVISO] %s e o mais novo membro do grupo.", rNome(playerid));
- ChatGrupo(Player, Vermelho, rString);
- ConvidadoGrupoID[playerid] = ConvidadoGrupoID[Player];
- SendClientMessage(playerid, VerdeC, "[INFO] Convite aceito. Use /AjudaG para mais informações.");
- TemGrupo[playerid] = true;
- SDSalvar(playerid);
- }
- if (!response)
- {
- format(rString, sizeof(rString), "[AVISO] %s recusou o convite do grupo.", rNome(playerid));
- ChatGrupo(Player, Vermelho, rString);
- SendClientMessage(playerid, VerdeC, "[INFO] Convite recusado.");
- }
- }
- if (dialogid == CoresG)
- {
- if (response)
- {
- if (listitem == 0)
- {
- for (new r = 0; r != MAX_PLAYERS; r++)
- {
- if (IsPlayerConnected(r))
- {
- if(ConvidadoGrupoID[r] == ConvidadoGrupoID[playerid])
- {
- SetPlayerColor(r, -1);
- SendClientMessage(r, -1, "[AVISO] O líder definiu a cor do grupo para: {FFFFFF}Branco");
- }
- }
- }
- }
- if (listitem == 1)
- {
- for (new r = 0; r != MAX_PLAYERS; r++)
- {
- if (IsPlayerConnected(r))
- {
- if(ConvidadoGrupoID[r] == ConvidadoGrupoID[playerid])
- {
- SetPlayerColor(r, 0xFF0000AA);
- SendClientMessage(r, -1, "[AVISO] O líder definiu a cor do grupo para: {FF0000}Vermelho");
- }
- }
- }
- }
- if (listitem == 2)
- {
- for (new r = 0; r != MAX_PLAYERS; r++)
- {
- if (IsPlayerConnected(r))
- {
- if(ConvidadoGrupoID[r] == ConvidadoGrupoID[playerid])
- {
- SetPlayerColor(r, 0x000000AA);
- SendClientMessage(r, -1, "[AVISO] O líder definiu a cor do grupo para: {000000}Preto");
- }
- }
- }
- }
- if (listitem == 3)
- {
- for (new r = 0; r != MAX_PLAYERS; r++)
- {
- if (IsPlayerConnected(r))
- {
- if(ConvidadoGrupoID[r] == ConvidadoGrupoID[playerid])
- {
- SetPlayerColor(r, 0x696969AA);
- SendClientMessage(r, -1, "[AVISO] O líder definiu a cor do grupo para: {696969}Cinza");
- }
- }
- }
- }
- if (listitem == 4)
- {
- for (new r = 0; r != MAX_PLAYERS; r++)
- {
- if (IsPlayerConnected(r))
- {
- if(ConvidadoGrupoID[r] == ConvidadoGrupoID[playerid])
- {
- SetPlayerColor(r, 0x00FF00AA);
- SendClientMessage(r, -1, "[AVISO] O líder definiu a cor do grupo para: {00FF00}Verde Claro");
- }
- }
- }
- }
- if (listitem == 5)
- {
- for (new r = 0; r != MAX_PLAYERS; r++)
- {
- if (IsPlayerConnected(r))
- {
- if(ConvidadoGrupoID[r] == ConvidadoGrupoID[playerid])
- {
- SetPlayerColor(r, 0x00FFFFAA);
- SendClientMessage(r, -1, "[AVISO] O líder definiu a cor do grupo para: {00FFFF}Azul Claro");
- }
- }
- }
- }
- if (listitem == 6)
- {
- for (new r = 0; r != MAX_PLAYERS; r++)
- {
- if (IsPlayerConnected(r))
- {
- if(ConvidadoGrupoID[r] == ConvidadoGrupoID[playerid])
- {
- SetPlayerColor(r, 0x0000FFAA);
- SendClientMessage(r, -1, "[AVISO] O líder definiu a cor do grupo para: {0000FF}Azul");
Add Comment
Please, Sign In to add comment