Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // === [Includes] ===
- #include <a_samp>
- #include <core>
- #include <float>
- #include <Dini>
- #include <dudb>
- #include <dutils>
- #define FILTERSCRIPT
- #pragma tabsize 0
- // === [Some configuring] ===
- #define JOIN_MESSAGES false
- #define Leavemessages false
- #define leavemessagecolor COLOR_RED
- #define joinmessagecolor COLOR_RED
- // 55 in total (commands)
- #define Level1Commands1 "Level 1: /asay, /aviso, /cnn, /force, /vida, /vidaall, /colete, /coleteall, /tapa, /ir, /trazer, /ejetar, /olhar, /dcarro, /rc" // 9
- #define Level2Commands1 "Level 2: /supertapa, /explodir, /akill, /kick, /congelar" // 9
- #define Level3Commands1 "Level 3: /ban, /jetpack, /veh, /mutar, /rtc" // 9
- #define Level4Commands1 "level 4: /vidat, /coletet, /dararma " // 7
- #define Level5Commands1 "Level 5: /desarmart, /ann, /pnn, /dnn, /cnnn, /znn" // 7
- #define Level6Commands1 "Level 6: /dargrana, /procura" // 5
- #define Level7Commands1 "Level 7: /mudarnomep" // 4
- #define Level8Commands1 "level 8: /tempo" // 3
- #define Level9Commands1 "level 9: /skickoff, /playerinfo" // 3
- #define Level10Commands1 "level 10: /trazerall, /explodirall" // 3
- #define Level11Commands1 "level 11: /rbans, /rlogs, /mapa, /nomedoserver, /setlevel, /kickall, /banirall, /congelarall, /descongelarall"// 3
- #define LevelportoesCommands1 "Portões: /abrirportaobus, /fecharportaobus, /abrirportaodp1, /fecharportaodp1" // 3
- #define LevelportoescontCommands1 "Portões da Bope Somente Admin Level 5.: /apbopels, /fpbopels, /apbopels1, /fpbopels1" // 3
- #define LevelportoesarenaCommands1 "Portões arena.: /abrirportaoarenac, /fecharportaoarenac, /abrirportaoarenav, /fecharportaoarenav" // 3
- #define ADMIN_SPEC_TYPE_NONE 0
- #define ADMIN_SPEC_TYPE_PLAYER 1
- #define ADMIN_SPEC_TYPE_VEHICLE 2
- #define BOPE 0
- new gSpectateID[MAX_PLAYERS];
- new gSpectateType[MAX_PLAYERS];
- forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
- forward ObjectToPoint(Float:radi, objectgt, Float:x, Float:y, Float:z);
- forward KeyChanges();
- new playingfootball[MAX_PLAYERS];
- new lastentered[128];
- forward Congelar(playerid);
- forward blindar(playerid);
- // === [Color Defines] ===
- #define COLOR_ADM 0x00F600AA
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_PURPLE 0xC2A2DAAA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_DBLUE 0x2641FEAA
- #define COLOR_BLUE 0x33AAFFFF
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_RED 0xFF0000FF
- #define COLOR_LIGHTRED 0xFF6347AA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_LIGHTGREEN 0x9ACD32AA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_YELLOW2 0xF5DEB3AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_PURPLE 0xC2A2DAAA
- #define COLOR_DBLUE 0x2641FEAA
- #define COLOR_CYAN 0x00FFFFAA
- #define COLOR_SYSTEM 0xEFEFF7AA
- #define COR_CINZA 0xAFAFAFAA
- #define GDE 0xAFAFAFAA
- #define COLOR_COP 0x807FFEAA
- #define TIME 1
- #define CAR_AMOUNT 590
- #define CAR_RESPAW 589
- #define COLOR_UPC 0xAA3333AA
- #define COLOR_DPA 0x0000BBAA
- #define COLOR_TVP 0xAFAFAFAA
- #define COLOR_PCA 0x33AA33AA
- #define COLOR_PC 0xFF0000FF
- #define COLOR_MPC 0x800080AA
- #define COLOR_SOLO 0xF6C200AA
- #define COLOR_PERIGO 0xEAA25AAA
- #define COLOR_EB 0x9FF600AA
- #define COLOR_VIP 0x7AB800AA
- // === [Pragma] ===
- #pragma unused ret_memcpy
- // === [Forward] ===
- forward IsStringAName(string[]);
- forward GetPlayerID(string[]);
- forward SendMessageToAdmins(color,const string[]);
- forward Restart();
- forward Unjail(giveplayerid);
- forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
- // === [Loops] ===
- new Mute[MAX_PLAYERS];
- new level[MAX_PLAYERS];
- new levelvip[MAX_PLAYERS];
- new levelcv[MAX_PLAYERS];
- new levelada[MAX_PLAYERS];
- new leveltcp[MAX_PLAYERS];
- new levelbope[MAX_PLAYERS];
- new levelreb[MAX_PLAYERS];
- new levelpcc[MAX_PLAYERS];
- new levelgoe[MAX_PLAYERS];
- new levelpm[MAX_PLAYERS];
- new levelexc[MAX_PLAYERS];
- new freeze[MAX_PLAYERS];
- new WarnedTimes[MAX_PLAYERS];
- new logged[MAX_PLAYERS];
- new logado[MAX_PLAYERS];
- new SilentBanKick[MAX_PLAYERS];
- new portaoc;
- new arenav;
- new dpbope1;
- new arenaantigac;
- new arenaantigav;
- new helibls;
- new helibls1;
- // === [Menus] ===
- new Menu:TimeMenu;
- new Menu:AM;
- new Menu:PM;
- new Menu:Vehicle;
- new futebol;
- // === [Enum] ===
- enum pInfo
- {
- pAdmin,
- pPMs,
- pEXC,
- pVIP,
- pBOPE,
- pCV,
- pADA,
- pTCP,
- pPCC,
- pREB,
- pGOE,
- pPM,
- }
- new PlayerInfo[MAX_PLAYERS][pInfo];
- public OnFilterScriptInit()
- {
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnGameModeInit()
- {
- // Don't use these lines if it's a filterscript
- SetGameModeText("Blank Script");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- // === [Register] ===
- if(strcmp(cmd, "/registrar", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- GetPlayerName(playerid, playername, sizeof(playername));
- if(20 < strlen(tmp) || strlen(tmp) < 4)
- {
- SendClientMessage(playerid, COLOR_CYAN, "Erro! Sua senha tem que ter mais de 4 e menos de 20 letras/números!");
- return 1;
- }
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_CYAN, "Uso correto: /registrar [senha] ~ Vai fazer com que você fique registrado com o server e seus stats sejam salvos!");
- }
- else
- {
- if (!dini_Exists(udb_encode(playername)))
- {
- dini_Create(udb_encode(playername));
- dini_IntSet(udb_encode(playername), "pass", udb_hash(tmp));
- dini_Set(udb_encode(playername),"senha",tmp);
- PlayerInfo[playerid][pAdmin] = 0;
- PlayerInfo[playerid][pVIP] = 0;
- PlayerInfo[playerid][pCV] = 0;
- PlayerInfo[playerid][pADA] = 0;
- PlayerInfo[playerid][pPCC] = 0;
- PlayerInfo[playerid][pREB] = 0;
- PlayerInfo[playerid][pTCP] = 0;
- PlayerInfo[playerid][pEXC] = 0;
- PlayerInfo[playerid][pBOPE] = 0;
- PlayerInfo[playerid][pGOE] = 0;
- PlayerInfo[playerid][pPM] = 0;
- dini_IntSet(udb_encode(playername), "level", PlayerInfo[playerid][pAdmin]);
- dini_IntSet(udb_encode(playername), "levelvip", PlayerInfo[playerid][pVIP]);
- dini_IntSet(udb_encode(playername), "levelcv", PlayerInfo[playerid][pCV]);
- dini_IntSet(udb_encode(playername), "levelada", PlayerInfo[playerid][pADA]);
- dini_IntSet(udb_encode(playername), "leveltcp", PlayerInfo[playerid][pTCP]);
- dini_IntSet(udb_encode(playername), "levelbope", PlayerInfo[playerid][pBOPE]);
- dini_IntSet(udb_encode(playername), "levelexc", PlayerInfo[playerid][pEXC]);
- dini_IntSet(udb_encode(playername), "levelpcc", PlayerInfo[playerid][pPCC]);
- dini_IntSet(udb_encode(playername), "levelreb", PlayerInfo[playerid][pREB]);
- dini_IntSet(udb_encode(playername), "levelgoe", PlayerInfo[playerid][pGOE]);
- dini_IntSet(udb_encode(playername), "levelpm", PlayerInfo[playerid][pPM]);
- format(string, sizeof(string), "%s(%i) registrado com a senha \"%s\"", playername, playerid, tmp);
- printf(string);
- format(string, sizeof(string), "Você criou a conta %s com a senha \"%s\". Não se esqueça da sua senha!", playername, tmp);
- SendClientMessage(playerid, COLOR_CYAN, string);
- PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
- ShowPlayerDialog(playerid, 60, DIALOG_STYLE_LIST, "Bem vindo, escolha uma organização:", "Comando Vermelho\nAmigos dos Amigos\nTerceiro Comando Puro\nPrimeiro Comando da Capital\nPolicia Militar", "Selecionar", "");
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Um erro aconteceu enquanto tentava se registrar ao server, vaza fakes");
- format(string, sizeof(string), "O nick %s já é registrado nesse server!", playername,tmp);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- }
- }
- return 1;
- }
- // === [Login] ===
- if(strcmp(cmd, "/login", true) == 0)
- {
- if(logged[playerid] == 1)
- {
- SendClientMessage(playerid, COLOR_CYAN, "Você já está logado!");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- GetPlayerName(playerid, playername, sizeof(playername));
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GREEN, "Uso correto: [senha]");
- }
- else
- {
- if(dini_Exists(udb_encode(playername)))
- {
- if(logged[playerid] == 0)
- {
- tmp2 = dini_Get(udb_encode(playername), "pass");
- if(udb_hash(tmp) != strval(tmp2))
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Erro! Você digitou a senha errada para %s!", PlayerName);
- SendClientMessage(playerid, COLOR_RED, string);
- }
- else
- {
- new pname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
- logged[playerid] = 1;
- logado[playerid] = 1;
- dini_Set(udb_encode(playername),"senha",tmp);
- PlayerInfo[playerid][pAdmin] = dini_Int(udb_encode(playername), "level");
- PlayerInfo[playerid][pPMs] = dini_Int(udb_encode(playername), "SeePMs");
- PlayerInfo[playerid][pVIP] = dini_Int(udb_encode(playername), "levelvip");
- PlayerInfo[playerid][pCV] = dini_Int(udb_encode(playername), "levelcv");
- PlayerInfo[playerid][pADA] = dini_Int(udb_encode(playername), "levelada");
- PlayerInfo[playerid][pTCP] = dini_Int(udb_encode(playername), "leveltcp");
- PlayerInfo[playerid][pBOPE] = dini_Int(udb_encode(playername), "levelbope");
- PlayerInfo[playerid][pEXC] = dini_Int(udb_encode(playername), "levelexc");
- PlayerInfo[playerid][pPCC] = dini_Int(udb_encode(playername), "levelpcc");
- PlayerInfo[playerid][pREB] = dini_Int(udb_encode(playername), "levelreb");
- PlayerInfo[playerid][pGOE] = dini_Int(udb_encode(playername), "levelgoe");
- PlayerInfo[playerid][pPM] = dini_Int(udb_encode(playername), "levelpm");
- GameTextForPlayer(playerid, "~G~ LOGADO COM SUCESSO !",2000,1);
- PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
- if(PlayerInfo[playerid][pAdmin] == 0)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s\nMembro Normal", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- PlayerInfo[playerid][pAdmin] = 0;
- dini_IntSet(udb_encode(playername), "level", PlayerInfo[playerid][pAdmin]);
- }
- if(PlayerInfo[playerid][pVIP] == 1)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, VIP | Comandos: /comandosvip", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- GivePlayerMoney(playerid, 100000);
- }
- if(PlayerInfo[playerid][pCV] == 1)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Aviãozinho do CV ! | Comandos: /comandoscv", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pCV] == 2)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Fogueteiro ! | Comandos: /comandoscv", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pCV] == 3)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Dono da Boca ! | Comandos: /comandoscv", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pCV] == 4)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Dono do Morro ! | Comandos: /comandoscv", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pPCC] == 1)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Membro do Primeiro Comando da Capital | Comandos: /comandospcc", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pPCC] == 2)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Líder do Primeiro Comando da Capital | Comandos: /comandospcc", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pPCC] == 3)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Presidente do Primeiro Comando da Capital | Comandos: /comandospcc", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pREB] == 1)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Repórter | Jornalista !", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pREB] == 2)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Repórter | Vice-Diretor !", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pREB] == 3)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Repórter | Diretor !", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pREB] == 4)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Repórter | Diretor !", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pPM] == 1)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Oficial da Polícia Militar | Novato !", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pPM] == 2)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Oficial da Polícia Militar | Capitão !", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pPM] == 3)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Oficial da Polícia Militar | Coronel !", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pADA] == 1)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Membro dos Amigos dos Amigos ! | Comandos: /comandosada", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pADA] == 2)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Líder dos Amigos dos Amigos ! | Comandos: /comandosada", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pADA] == 3)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Presidente dos Amigos dos Amigos ! | Comandos: /comandosada", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pTCP] == 1)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Membro do Terceiro Comando Puro ! | Comandos: /comandostcp", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pTCP] == 2)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Líder do Terceiro Comando Puro ! | Comandos: /comandostcp", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pTCP] == 3)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Presidente do Terceiro Comando Puro ! | Comandos: /comandostcp", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pBOPE] == 1)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Major do BOPE ! | Comandos: /comandosbope", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pBOPE] == 2)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Capitão do BOPE ! | Comandos: /comandosbope", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pBOPE] == 3)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Coronel do BOPE ! | Comandos: /comandosbope", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pBOPE] == 4)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, PRESIDENTE do BOPE ! | Comandos: /comandosbope", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pEXC] == 1)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Soldado do EXERCITO ! | Comandos: /comandosexc", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pEXC] == 2)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Major do EXERCITO ! | Comandos: /comandosexc", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pEXC] == 3)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Capitão do EXERCITO ! | Comandos: /comandosexc", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pEXC] == 4)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Coronel do EXERCITO ! | Comandos: /comandosexc", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pGOE] == 1)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Oficial do GOE ! | Comandos: /comandosgoe", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pGOE] == 2)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Capitão do GOE ! | Comandos: /comandosgoe", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pGOE] == 3)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Coronel do GOE ! | Comandos: /comandosgoe", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- }
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Admin level 1 | Todos os comandos: /adminhelp", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- format(string, sizeof(string), "~w~ADMIN ~g~onn");
- GameTextForAll(string, 5000, 1);
- format(string, sizeof(string), "%s Detectado como Administrador [Level: 1] ", pname);
- SendClientMessageToAll(COLOR_ADM, string);
- }
- if(PlayerInfo[playerid][pAdmin] == 2)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Admin level 2 | Todos os comandos: /adminhelp", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- format(string, sizeof(string), "~w~ADMIN ~g~onn");
- GameTextForAll(string, 5000, 1);
- format(string, sizeof(string), "%s Detectado como Administrador [Level: 2] ", pname);
- SendClientMessageToAll(COLOR_ADM, string);
- }
- if(PlayerInfo[playerid][pAdmin] == 3)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Admin level 3 | Todos os comandos: /adminhelp", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- IsPlayerAdmin(playerid);
- format(string, sizeof(string), "~w~ADMIN ~g~onn");
- GameTextForAll(string, 5000, 1);
- format(string, sizeof(string), "%s Detectado como Administrador [Level: 3] ", pname);
- SendClientMessageToAll(COLOR_ADM, string);
- }
- if(PlayerInfo[playerid][pAdmin] == 4)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Admin level 4 | Todos os comandos: /adminhelp", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- IsPlayerAdmin(playerid);
- format(string, sizeof(string), "~w~ADMIN ~g~onn");
- GameTextForAll(string, 5000, 1);
- format(string, sizeof(string), "%s Detectado como Administrador [Level: 4] ", pname);
- SendClientMessageToAll(COLOR_ADM, string);
- }
- if(PlayerInfo[playerid][pAdmin] == 5)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Admin level 5 | Todos os comandos: /adminhelp", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- IsPlayerAdmin(playerid);
- format(string, sizeof(string), "~w~ADMIN ~g~onn");
- GameTextForAll(string, 5000, 1);
- format(string, sizeof(string), "%s Detectado como Administrador [Level: 5] ", pname);
- SendClientMessageToAll(COLOR_ADM, string);
- }
- if(PlayerInfo[playerid][pAdmin] == 6)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Admin level 6 | Todos os comandos: /adminhelp", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- IsPlayerAdmin(playerid);
- format(string, sizeof(string), "~w~ADMIN ~g~onn");
- GameTextForAll(string, 5000, 1);
- format(string, sizeof(string), "%s Detectado como Administrador [Level: 6] ", pname);
- SendClientMessageToAll(COLOR_ADM, string);
- }
- if(PlayerInfo[playerid][pAdmin] == 7)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Admin level 7 | Todos os comandos: /adminhelp", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- IsPlayerAdmin(playerid);
- format(string, sizeof(string), "~w~ADMIN ~g~onn");
- GameTextForAll(string, 5000, 1);
- format(string, sizeof(string), "%s Detectado como Administrador [Level: 7] ", pname);
- SendClientMessageToAll(COLOR_ADM, string);
- }
- if(PlayerInfo[playerid][pAdmin] == 8)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Admin level 8 | Todos os comandos: /adminhelp", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- IsPlayerAdmin(playerid);
- format(string, sizeof(string), "~w~ADMIN ~g~onn");
- GameTextForAll(string, 5000, 1);
- format(string, sizeof(string), "%s Detectado como Administrador [Level: 8] ", pname);
- SendClientMessageToAll(COLOR_ADM, string);
- }
- if(PlayerInfo[playerid][pAdmin] == 9)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Admin level 9 | Todos os comandos: /adminhelp", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- IsPlayerAdmin(playerid);
- format(string, sizeof(string), "~w~ADMIN ~g~onn");
- GameTextForAll(string, 5000, 1);
- format(string, sizeof(string), "%s Detectado como Administrador [Level: 9] ", pname);
- SendClientMessageToAll(COLOR_ADM, string);
- }
- if(PlayerInfo[playerid][pAdmin] == 10)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Admin level 10 | Administrador Maior | Todos os comandos: /adminhelp", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- IsPlayerAdmin(playerid);
- format(string, sizeof(string), "~w~ADMIN ~g~onn");
- GameTextForAll(string, 5000, 1);
- format(string, sizeof(string), "%s Detectado como Administrador [Level: 10] ", pname);
- SendClientMessageToAll(COLOR_ADM, string);
- }
- if(PlayerInfo[playerid][pAdmin] == 11)
- {
- new PlayerName[24];
- GetPlayerName(playerid, PlayerName, 30);
- format(string, sizeof(string), "Logado como: %s, Admin level 11 (Fundador da Equipe) | Todos os comandos: /adminhelp", PlayerName);
- SendClientMessage(playerid, COLOR_CYAN, string);
- IsPlayerAdmin(playerid);
- format(string, sizeof(string), "~w~ADMIN ~g~onn");
- GameTextForAll(string, 5000, 1);
- format(string, sizeof(string), "%s Detectado como Administrador [Level: 11] ", pname);
- SendClientMessageToAll(COLOR_ADM, string);
- }
- return 1;
- }
- }
- }
- else
- {
- format(string, sizeof(string), "A conta %s, não existe nesse servidor!", playername);
- SendClientMessage(playerid, COLOR_CYAN, string);
- SendClientMessage(playerid, COLOR_CYAN, "Por favor use /registrar (senha) para se registrar.");
- }
- }
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- if(logado[playerid] == 1)
- {
- //deixa ele nascer
- return 1;
- }
- else
- {
- ShowPlayerDialog(playerid,76,DIALOG_STYLE_MSGBOX,"::::::TUTORIAL DE INICIO:::::","Para jogar em nosso servidor é preciso ser registrado: use /registrar [sua senha] e depois /login [sua senha]\r\n Se voce ja for um player registrado use /login [sua senha]\r\n Sua conta ira servir para armazenar seu dinheiro e para voce ter acesso aos comandos do servidor !","Ok", "Cancelar");
- return 0;
- }
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 60)
- {
- if(response)
- {
- if(listitem == 0)
- {
- levelcv[playerid] = 1;
- PlayerInfo[playerid][pCV] = 1;
- }
- if(listitem == 1)
- {
- levelada[playerid] = 1;
- PlayerInfo[playerid][pADA] = 1;
- }
- if(listitem == 2)
- {
- leveltcp[playerid] = 1;
- PlayerInfo[playerid][pTCP] = 1;
- }
- if(listitem == 3)
- {
- levelpcc[playerid] = 1;
- PlayerInfo[playerid][pPCC] = 1;
- }
- if(listitem == 4)
- {
- levelpm[playerid] = 1;
- PlayerInfo[playerid][pPM] = 1;
- }
- }
- }
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- new sendername[MAX_PLAYER_NAME];
- if(levelreb[playerid] >= 1 || PlayerInfo[playerid][pREB] >= 1)
- {
- //REPÓRTERES
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,-749.1455,-1346.5336,13.5140);
- GameTextForPlayer(playerid,"HQ DOS REPÓRTERES", 1000,1);
- GivePlayerWeapon(playerid,24,999999);
- GivePlayerWeapon(playerid,27,999999);
- GivePlayerWeapon(playerid,29,999999);
- GivePlayerWeapon(playerid,30,999999);
- GivePlayerWeapon(playerid,34,999999);
- GivePlayerWeapon(playerid,0,999999);
- SetPlayerArmour(playerid, 100.0);
- SetPlayerColor(playerid, COLOR_RED);
- SetPlayerSkin(playerid, 187);
- SetPlayerHealth(playerid, 100.0);
- SetPlayerVirtualWorld(playerid, 0);
- TogglePlayerControllable(playerid,1);
- SendClientMessage(playerid, COLOR_WHITE, "Use /comandosreb, para ver os comandos de sua Facção !");
- levelreb[playerid] = 1;
- PlayerInfo[playerid][pREB] = 1;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- return dini_IntSet(udb_encode(sendername), "levelreb", levelreb[playerid]);
- }
- if(levelcv[playerid] >= 1 || PlayerInfo[playerid][pCV] >= 1)
- {
- //COMANDO VERMELHO
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,-2567.4292,908.1173,64.8281);
- GameTextForPlayer(playerid,"FAVELA: COMPLEXO DO ALEMAO", 1000,1);
- GivePlayerWeapon(playerid,24,999999);
- GivePlayerWeapon(playerid,27,999999);
- GivePlayerWeapon(playerid,29,999999);
- GivePlayerWeapon(playerid,30,999999);
- GivePlayerWeapon(playerid,34,999999);
- GivePlayerWeapon(playerid,0,999999);
- SetPlayerArmour(playerid, 100.0);
- SetPlayerColor(playerid, COLOR_RED);
- SetPlayerSkin(playerid, 107);
- SetPlayerHealth(playerid, 100.0);
- SetPlayerVirtualWorld(playerid, 0);
- TogglePlayerControllable(playerid,1);
- SendClientMessage(playerid, COLOR_WHITE, "Use /comandoscv, para ver os comandos de sua Facção !");
- SendClientMessage(playerid, COLOR_RED, "Quem comanda é o comando, e o comando e VERMELHO !");
- levelcv[playerid] = 1;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[playerid][pCV] = 1;
- return dini_IntSet(udb_encode(sendername), "levelcv", levelcv[playerid]);
- }
- if(levelada[playerid] >= 1 || PlayerInfo[playerid][pADA] >= 1)
- {
- // ADA
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,-2548.8665,-465.9125,69.1830);
- GameTextForPlayer(playerid,"FAVELA: ROCINHA", 1000,1);
- GivePlayerWeapon(playerid,24,999999);
- GivePlayerWeapon(playerid,27,999999);
- GivePlayerWeapon(playerid,29,999999);
- GivePlayerWeapon(playerid,30,999999);
- GivePlayerWeapon(playerid,34,999999);
- GivePlayerWeapon(playerid,0,999999);
- SetPlayerArmour(playerid, 100.0);
- SetPlayerColor(playerid, COLOR_YELLOW);
- SetPlayerSkin(playerid, 14);
- SetPlayerHealth(playerid, 100.0);
- SetPlayerVirtualWorld(playerid, 0);
- TogglePlayerControllable(playerid,1);
- SendClientMessage(playerid, COLOR_WHITE, "Use /comandosada, para ver os comandos de sua Facção !");
- SendClientMessage(playerid, COLOR_YELLOW, "Somos Amigos dos Amigos, sem cumpri vacilação !");
- levelada[playerid] = 1;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- PlayerInfo[playerid][pADA] = 1;
- return dini_IntSet(udb_encode(sendername), "levelada", levelada[playerid]);
- }
- if(leveltcp[playerid] >= 1 || PlayerInfo[playerid][pTCP] >= 1)
- {
- // TCP
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,-2432.9561,1178.8481,35.0156);
- GameTextForPlayer(playerid,"FAVELA: FAZENDINHA", 1000,1);
- GivePlayerWeapon(playerid,24,999999);
- GivePlayerWeapon(playerid,27,999999);
- GivePlayerWeapon(playerid,29,999999);
- GivePlayerWeapon(playerid,30,999999);
- GivePlayerWeapon(playerid,34,999999);
- GivePlayerWeapon(playerid,0,999999);
- SetPlayerArmour(playerid, 100.0);
- SetPlayerColor(playerid, 0x0078F6AA);
- SetPlayerSkin(playerid, 29);
- SetPlayerHealth(playerid, 100.0);
- SetPlayerVirtualWorld(playerid, 0);
- TogglePlayerControllable(playerid,1);
- SendClientMessage(playerid, COLOR_WHITE, "Use /comandostcp, para ver os comandos de sua Facção !");
- SendClientMessage(playerid, 0x0078F6AA, "Terceiro Comando Puro, fala que é nóis !");
- leveltcp[playerid] = 1;
- PlayerInfo[playerid][pTCP] = 1;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- return dini_IntSet(udb_encode(sendername), "leveltcp", leveltcp[playerid]);
- }
- if(levelpcc[playerid] >= 1 || PlayerInfo[playerid][pPCC] >= 1)
- {
- // PCC
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,-2596.9053,908.8477,64.8281);
- GivePlayerWeapon(playerid,24,999999);
- GivePlayerWeapon(playerid,27,999999);
- GivePlayerWeapon(playerid,29,999999);
- GivePlayerWeapon(playerid,30,999999);
- GivePlayerWeapon(playerid,34,999999);
- GivePlayerWeapon(playerid,24,999999);
- GivePlayerWeapon(playerid,0,999999);
- SetPlayerArmour(playerid, 100.0);
- SetPlayerColor(playerid, 0xA81B00AA);
- SetPlayerSkin(playerid, 200);
- SetPlayerHealth(playerid, 100.0);
- SetPlayerVirtualWorld(playerid, 0);
- TogglePlayerControllable(playerid,1);
- SendClientMessage(playerid, COLOR_WHITE, "Use /comandospcc, para ver os comandos de sua Facção !");
- SendClientMessage(playerid, 0xA81B00AA, "Quem manda ? Quem manda ? Quem manda, é o PCC !");
- levelpcc[playerid] = 1;
- PlayerInfo[playerid][pPCC] = 1;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- return dini_IntSet(udb_encode(sendername), "levelpcc", leveltcp[playerid]);
- }
- if(levelpm[playerid] >= 1 || PlayerInfo[playerid][pPM] >= 1)
- {
- // PM
- SendClientMessage(playerid, COLOR_WHITE, "Use /comandospm para ver os comandos !");
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,-1622.0015,669.7461,7.1875);
- GameTextForPlayer(playerid,"DP-SF: PM", 1000,1);
- GivePlayerWeapon(playerid,23,999999);
- GivePlayerWeapon(playerid,25,999999);
- GivePlayerWeapon(playerid,28,999999);
- GivePlayerWeapon(playerid,3,999999);
- SetPlayerArmour(playerid, 100.0);
- SetPlayerColor(playerid, 0x0000F6AA);
- SetPlayerSkin(playerid, 280);
- SetPlayerHealth(playerid, 100.0);
- SetPlayerVirtualWorld(playerid, 0);
- TogglePlayerControllable(playerid,1);
- levelpm[playerid] = 1;
- PlayerInfo[playerid][pPM] = 1;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- dini_IntSet(udb_encode(sendername), "levelpm", levelpm[playerid]);
- }
- if(levelbope[playerid] >= 1 || PlayerInfo[playerid][pBOPE] >= 1)
- {
- // BOPE
- SendClientMessage(playerid, COLOR_WHITE, "Use /comandosbope para ver os comandos !");
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,1569.2749,-1691.6061,5.8906);
- GameTextForPlayer(playerid,"DP-LS: BOPE", 1000,1);
- GivePlayerWeapon(playerid,29,999999);
- GivePlayerWeapon(playerid,27,999999);
- GivePlayerWeapon(playerid,41,999999);
- GivePlayerWeapon(playerid,24,999999);
- GivePlayerWeapon(playerid,3,999999);
- GivePlayerWeapon(playerid,34,999999);
- GivePlayerWeapon(playerid,31,999999);
- SetPlayerArmour(playerid, 100.0);
- SetPlayerColor(playerid, 0x6C6B6AAA);
- SetPlayerSkin(playerid, 285);
- SetPlayerHealth(playerid, 100.0);
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pBOPE] = 1;
- //SpawnPlayer(playerid);
- TogglePlayerControllable(playerid,1);
- }
- if(levelexc[playerid] >= 1 || PlayerInfo[playerid][pEXC] >= 1)
- {
- // EXC
- SendClientMessage(playerid, COLOR_WHITE, "Use /comandosexc para ver os comandos !");
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,-1502.1250,472.0990,7.1875,86.2896);
- GameTextForPlayer(playerid,"BATALHAO DO EXERCITO", 1000,1);
- GivePlayerWeapon(playerid,29,999999);
- GivePlayerWeapon(playerid,27,999999);
- GivePlayerWeapon(playerid,41,999999);
- GivePlayerWeapon(playerid,24,999999);
- GivePlayerWeapon(playerid,3,999999);
- GivePlayerWeapon(playerid,34,999999);
- GivePlayerWeapon(playerid,31,999999);
- SetPlayerArmour(playerid, 100.0);
- SetPlayerColor(playerid, 0x33AA33AA);
- SetPlayerSkin(playerid, 287);
- SetPlayerHealth(playerid, 100.0);
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pEXC] = 1;
- //SpawnPlayer(playerid);
- TogglePlayerControllable(playerid,1);
- }
- if(levelgoe[playerid] >= 1 || PlayerInfo[playerid][pGOE] >= 1)
- {
- // GOE
- SendClientMessage(playerid, COLOR_WHITE, "Use /comandosgoe para ver os comandos !");
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,311.4784,-1513.7678,24.9219,43.4672);
- GivePlayerWeapon(playerid,29,999999);
- GivePlayerWeapon(playerid,27,999999);
- GivePlayerWeapon(playerid,31,999999);
- GivePlayerWeapon(playerid,24,999999);
- GivePlayerWeapon(playerid,3,999999);
- GivePlayerWeapon(playerid,41,999999);
- GivePlayerWeapon(playerid,23,999999);
- SetPlayerArmour(playerid, 100.0);
- SetPlayerColor(playerid, 0x000000AA);
- SetPlayerSkin(playerid, 281);
- SetPlayerHealth(playerid, 100.0);
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][pGOE] = 1;
- //SpawnPlayer(playerid);
- TogglePlayerControllable(playerid,1);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment