Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'
- *'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'
- *'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'
- *'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'
- FortCarson - RolePlay
- |----------------------------------------------------------------------------|
- | IDEALIZADOR(ES): Rodney_Francalim |
- | APOIO(S): Evolution SA:MP |
- | |
- | CRÉDITOS: Rodney_Francalim - Base do GM e maioria dos sistemas |
- | Monster - Sistema de registro/login |
- | Chainksain_666 - Relógio |
- | Ricardo Brasil - Alguns comandos do AD:RP |
- | |
- |=============================== IMPORTANTE =================================|
- | NÃO RETIRE/EDITE OS CRÉDITOS DO GAMEMODE, OU PEDOBEAR LHE FARÁ UM VISITA |
- |----------------------------------------------------------------------------|
- *'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'
- *'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'
- *'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'
- *'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*/
- //==================== [ Includes ] =====================
- #include <a_samp>
- //#include <dudb>
- #include <utils>
- #include <streamer>
- //#pragma tabsize 0
- #pragma unused ret_memcpy
- #pragma dynamic 5220
- //////////////////////////////[ EQUIPE/CRIADOR ]////////////////////////////////
- #define SCRIPT_EQUIPE "Evolution SA:MP" // PODERÁ SER ALTERADO /
- #define SCRIPT_CRIADOR "Rodney Francalim" // NÃO PODERÁ SER ALTERADO /
- ////////////////////////////////////////////////////////////////////////////////
- #define ADMIN_OLHANDO_PLAYER 1
- #define PAROU_DE_OLHAR_PLAYER 0
- /////////////////////////
- #define SCM SendClientMessage
- /////////////////////////
- #define CHECK_CHEGOU 12
- #define MAX_ZONE_NAME 28
- //======== [ hexadecimáis do SendClientMessage ] ========
- //{90EE90}"SERVER"
- ////{D2D2FF}"Texto padrão"
- //{A9C4E4}"Texto padrão"
- //{FFFF00}"INFO"
- //{00FA9A}"JOGADOR"
- //{FF0000}"ERRO"
- //{33CCFF}"ADMIN"
- //{4169E1}"Números"
- //============== [ Cores do Servidor ] ==================
- //--------------------- 3D Label ------------------------
- #define COR_TEXTO3D 0xF68E00F6
- //#define COR_TEXTO3D 0x800000FF
- //-------------------------------------------------------
- #define COR_ADMINCHAT 0xCDCD9CAA
- #define COR_CINZA 0xAFAFAFAA
- #define COR_VERDE 0x33AA33AA
- #define COR_VERMELHA 0xAA3333AA
- #define COR_AMARELA 0xFFFF00AA
- #define COR_BRANCA 0xFFFFFFAA
- //#define COR_INFO 0xD2D2FFFF
- #define COR_INFO 0xA9C4E4AA
- #define COR_AZULCLARO 0x33CCFFAA
- #define COR_VERMELHOCLARO 0xFF6347AA
- #define COR_OOC 0xE0FFFFAA
- #define COR_CHATOOC 0x939393AA
- #define COLOR_FADE1 0xE6E6E6E6
- #define COLOR_FADE2 0xC8C8C8C8
- #define COLOR_FADE3 0xAAAAAAAA
- #define COLOR_FADE4 0x8C8C8C8C
- #define COLOR_FADE5 0x6E6E6E6E
- #define COR_PURPLE 0xC2A2DAAA
- #define COR_IDENTIDADE 0x4F754AFF
- #define COR_NIDENTIDADE 0xA3A3A3FF
- //=================== [ Dialog ] ========================
- // dialogid usados: 1 ~ 8, 10 ~ 19
- #define GPS 10
- #define COMPRAR247PALOMINO 11
- // [ dialogid ~ RD:CP ]
- #define BATERCARTAO 12
- #define BATERCARTAO1 13
- #define BATERCARTAO2 14
- #define EQUIPAR 15
- #define EQUIPAR1 16
- #define EQUIPAR2 17
- #define EQUIPAR3 18
- #define EQUIPAR4 19
- #define AJUDA 20
- #define DOCUMENTOS 21
- #define KICK 22
- #define BAN 23
- #define OBTERDOC 24
- // [ Carros configs. ]
- #define TEMPORESPAWN 5 // por minuto
- #define NDECARROS 1 // SE POR MAIS CARROS ADICIONA OS VALORES AQUI
- // [ TEXTO3D NO ADMIN EM MODO DE TRABALHO ]
- new Text3D:Texto3DAdmin[MAX_PLAYERS];
- // [ Saude/Colete de adm ]
- new Float:saudedeademir;
- new Float:coletedeademir;
- // [ produção ]
- new TempoProd;
- forward Producao();
- // [ server ligado/desligado ]
- new v[6];
- // [ PROIBIDO DE USAR CMD ]
- new SemCMD[MAX_PLAYERS];
- // [ carro ]
- new engine,lights,alarm,doors,bonnet,boot,objective;
- new Tanque[MAX_VEHICLES];
- new Abastecendo[MAX_PLAYERS];
- #define PRECGAS 3 // PREÇO DO LITRO DE GASOLINA EM US$
- #define MaxGas 100
- #define TempGGas 30000
- new TimerObterGas;
- forward ObterGas();
- forward GastarGas();
- new SemGas[MAX_VEHICLES];
- forward EUmPostoDeGas(playerid);
- // [ ANTIFLOOD ]
- new ANTIFLOOD[MAX_PLAYERS];
- new ANTIFLOODTIMER[MAX_PLAYERS];
- //============== [ NOME DO SERVIDOR ] ===================
- new contagem = 0;
- new ServidorNome[3][128] = {
- "[ALFA] FortCarson:RolePlay",
- "[ALFA] Fort Carson",
- "[ALFA] alfaroleplay.forumeiros.com"
- };
- // [ InfoServer ]
- new TotalDeRegistrados = 0;
- // [ chat global ]
- new SemOOC = 0;
- //====================[outros]===========================
- new Espiando[MAX_PLAYERS];
- new Espiado[MAX_PLAYERS];
- new gPlayerLogged[MAX_PLAYERS];
- new GpsCheckPoint[MAX_PLAYERS];
- new spawnado[MAX_PLAYERS],VelocidadeLigada[MAX_PLAYERS];
- new VendoTutTemp[MAX_PLAYERS] = 0;
- new Marcha[MAX_PLAYERS];
- //==============================================================================
- // [ RELÓGIO/DATA ] ============================================================
- static i_ServerSeconds;
- static i_ServerMinutes;
- static i_ServerHours;
- static i_ServerDays;
- static i_ServerMonths;
- static i_ServerYears;
- forward ProcessGameTime(playerid);
- forward RelogioDoServerEmIC();
- new DiaDaSemana = 0;
- //==============================================================================
- // [ PAYDAY ]
- forward PayDay();
- //==============================================================================
- // [ TEXTDRAWS ] ===============================================================
- // relógio OOC
- new Text:Textdraw0; //Horas
- new Text:Textdraw1; //Minutos
- new Text:Textdraw2; //Segundos
- new Text:Textdraw3; //Dia
- new Text:Textdraw4; //Mês
- new Text:Textdraw5; //Ano
- // relógio IC
- new Text:Textdraw6; //Horas(Minutos)
- new Text:Textdraw7; //Minutos(Segundos)
- new Text:Textdraw8; //DiaDaSemana
- new HorasIC = 0;
- new MinutosIC = 0;
- //velocimetro
- new Text:Textdraw9;
- new Text:Textdraw10;
- new Text:Textdraw11;
- new Text:Textdraw12;
- new Text:Textdraw13;
- new Text:Textdraw14;
- new Text:Textdraw15;
- new Text:Textdraw16;
- new Text:Textdraw17;
- new Text:Textdraw18;
- new Text:Textdraw19;
- new Text:Textdraw20;
- new Text:Textdraw21;
- new Text:Textdraw22;
- new Text:Textdraw23;
- new Text:Textdraw24;
- new Text:Textdraw25;
- new Text:Textdraw26;
- new Text:Textdraw27;
- new Text:Textdraw28;
- new Text:Textdraw29;
- new Text:Textdraw30;
- new Text:Textdraw31;
- new Text:Textdraw32;
- new Text:Textdraw33;
- //==============================================================================
- // variação na conta
- forward ActionLog(string[]);
- forward BanLog(string[]);
- forward KickLog(string[]);
- forward VKLog(string[]);
- forward DeleteLog(string[]);
- forward EditarStats(string[]);
- forward AdminLog(string[]);
- forward Banido(playerid, motivo[], admin[]);
- //================== [ Stock de nome ] ==================
- stock NomeDoJogador(playerid)
- {
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);
- return Nome;
- }
- // [ janela fechada ]
- new JanelaAberta[MAX_PLAYERS];
- // [ chat real ]
- new chatreal = 1;
- //==================== [ Atuaalizar GM ] ================
- forward GameModeExitFunc();
- //================= [ alfaInfo ] ======================
- // [ status em geral ]
- enum pInfo
- {
- pTituloE,
- pTempoPD,
- pCartTrab,
- pSemOOC,
- pTrabalhando,
- pRegistroGeral,
- pNRegistro,
- pRelogio,
- pGPS,
- pAgenda,
- pCNumero,
- pFerido,
- pAnoNascimento,
- pMesNascimento,
- pDiaNascimento,
- pCongelado,
- pCalado,
- pATrabalhando,
- pLider,
- pCargo,
- pLogou,
- pOrigem,
- pIdade,
- pSexo,
- pTut,
- pLugar,
- pReg,
- pSenha,
- pMoney,
- pLevel,
- pSkin,
- pMortes,
- pKills,
- pAdmin,
- pLogado,
- pORG,
- pEXP,
- pBanco,
- pEmprego,
- pBanido,
- };
- new PlayerInfo[MAX_PLAYERS][pInfo];
- new vehName[][] =
- {
- "Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel",
- "Dumper", "Firetruck", "Trashmaster", "Stretch", "Manana", "Infernus",
- "Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam",
- "Esperanto", "Taxi", "Washington", "Bobcat", "Whoopee", "BF Injection",
- "Hunter", "Premier", "Enforcer", "Securicar", "Banshee", "Predator", "Bus",
- "Rhino", "Barracks", "Hotknife", "Trailer", "Previon", "Coach", "Cabbie",
- "Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral",
- "Squalo", "Seasparrow", "Pizzaboy", "Tram", "Trailer", "Turismo", "Speeder",
- "Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair", "Berkley's RC Van",
- "Skimmer", "PCJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider", "Glendale",
- "Oceanic","Sanchez", "Sparrow", "Patriot", "Quad", "Coastguard", "Dinghy",
- "Hermes", "Sabre", "Rustler", "ZR-350", "Walton", "Regina", "Comet", "BMX",
- "Burrito", "Camper", "Marquis", "Baggage", "Dozer", "Maverick", "News Chopper",
- "Rancher", "FBI Rancher", "Virgo", "Greenwood", "Jetmax", "Hotring", "Sandking",
- "Blista Compact", "Police Maverick", "Boxvillde", "Benson", "Mesa", "RC Goblin",
- "Hotring Racer A", "Hotring Racer B", "Bloodring Banger", "Rancher", "Super GT",
- "Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropduster", "Stunt",
- "Tanker", "Roadtrain", "Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra",
- "FCR-900", "NRG-500", "HPV1000", "Cement Truck", "Tow Truck", "Fortune",
- "Cadrona", "FBI Truck", "Willard", "Forklift", "Tractor", "Combine", "Feltzer",
- "Remington", "Slamvan", "Blade", "Freight", "Streak", "Vortex", "Vincent",
- "Bullet", "Clover", "Sadler", "Firetruck", "Hustler", "Intruder", "Primo",
- "Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite",
- "Windsor", "Monster", "Monster", "Uranus", "Jester", "Sultan", "Stratium",
- "Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito",
- "Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper",
- "Broadway", "Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400",
- "News Van", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club",
- "Freight Box", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car",
- "Police Car", "Police Car", "Police Ranger", "Picador", "S.W.A.T", "Alpha",
- "Phoenix", "Glendale", "Sadler", "Luggage", "Luggage", "Stairs", "Boxville",
- "Tiller", "Utility Trailer"
- };
- #define MAX_STRING 255
- #define MAX_ZONE_NAME 28
- enum SAZONE_MAIN {
- SAZONE_NAME[28],
- Float:SAZONE_AREA[6]
- };
- static const gSAZones[][SAZONE_MAIN] = {
- // NOMES /LOCALIZAR AREA (Xmin,Ymin,Zmin,Xmax,Ymax,Zmax)
- { "'The Big Ear'", {-410.00, 1403.30, -3.00, -137.90, 1681.20, 200.00}},
- { "Aldea Malvada", {-1372.10, 2498.50, 0.00, -1277.50, 2615.30, 200.00}},
- { "Angel Pine", {-2324.90, -2584.20, -6.10, -1964.20, -2212.10, 200.00}},
- { "Arco del Oeste", {-901.10, 2221.80, 0.00, -592.00, 2571.90, 200.00}},
- { "Avispa Country Club", {-2646.40, -355.40, 0.00, -2270.00, -222.50, 200.00}},
- { "Avispa Country Club", {-2831.80, -430.20, -6.10, -2646.40, -222.50, 200.00}},
- { "Avispa Country Club", {-2361.50, -417.10, 0.00, -2270.00, -355.40, 200.00}},
- { "Avispa Country Club", {-2667.80, -302.10, -28.80, -2646.40, -262.30, 71.10}},
- { "Avispa Country Club", {-2470.00, -355.40, 0.00, -2270.00, -318.40, 46.10}},
- { "Avispa Country Club", {-2550.00, -355.40, 0.00, -2470.00, -318.40, 39.70}},
- { "Back o Beyond", {-1166.90, -2641.10, 0.00, -321.70, -1856.00, 200.00}},
- { "Battery Point", {-2741.00, 1268.40, -4.50, -2533.00, 1490.40, 200.00}},
- { "Bayside", {-2741.00, 2175.10, 0.00, -2353.10, 2722.70, 200.00}},
- { "Bayside Marina", {-2353.10, 2275.70, 0.00, -2153.10, 2475.70, 200.00}},
- { "Beacon Hill", {-399.60, -1075.50, -1.40, -319.00, -977.50, 198.50}},
- { "Blackfield", {964.30, 1203.20, -89.00, 1197.30, 1403.20, 110.90}},
- { "Blackfield", {964.30, 1403.20, -89.00, 1197.30, 1726.20, 110.90}},
- { "Blackfield Chapel", {1375.60, 596.30, -89.00, 1558.00, 823.20, 110.90}},
- { "Blackfield Chapel", {1325.60, 596.30, -89.00, 1375.60, 795.00, 110.90}},
- { "Blackfield Intersection", {1197.30, 1044.60, -89.00, 1277.00, 1163.30, 110.90}},
- { "Blackfield Intersection", {1166.50, 795.00, -89.00, 1375.60, 1044.60, 110.90}},
- { "Blackfield Intersection", {1277.00, 1044.60, -89.00, 1315.30, 1087.60, 110.90}},
- { "Blackfield Intersection", {1375.60, 823.20, -89.00, 1457.30, 919.40, 110.90}},
- { "Blueberry", {104.50, -220.10, 2.30, 349.60, 152.20, 200.00}},
- { "Blueberry", {19.60, -404.10, 3.80, 349.60, -220.10, 200.00}},
- { "Blueberry Acres", {-319.60, -220.10, 0.00, 104.50, 293.30, 200.00}},
- { "Caligula's Palace", {2087.30, 1543.20, -89.00, 2437.30, 1703.20, 110.90}},
- { "Caligula's Palace", {2137.40, 1703.20, -89.00, 2437.30, 1783.20, 110.90}},
- { "Calton Heights", {-2274.10, 744.10, -6.10, -1982.30, 1358.90, 200.00}},
- { "Chinatown", {-2274.10, 578.30, -7.60, -2078.60, 744.10, 200.00}},
- { "City Hall", {-2867.80, 277.40, -9.10, -2593.40, 458.40, 200.00}},
- { "Come-A-Lot", {2087.30, 943.20, -89.00, 2623.10, 1203.20, 110.90}},
- { "Commerce", {1323.90, -1842.20, -89.00, 1701.90, -1722.20, 110.90}},
- { "Commerce", {1323.90, -1722.20, -89.00, 1440.90, -1577.50, 110.90}},
- { "Commerce", {1370.80, -1577.50, -89.00, 1463.90, -1384.90, 110.90}},
- { "Commerce", {1463.90, -1577.50, -89.00, 1667.90, -1430.80, 110.90}},
- { "Commerce", {1583.50, -1722.20, -89.00, 1758.90, -1577.50, 110.90}},
- { "Commerce", {1667.90, -1577.50, -89.00, 1812.60, -1430.80, 110.90}},
- { "Conference Center", {1046.10, -1804.20, -89.00, 1323.90, -1722.20, 110.90}},
- { "Conference Center", {1073.20, -1842.20, -89.00, 1323.90, -1804.20, 110.90}},
- { "Cranberry Station", {-2007.80, 56.30, 0.00, -1922.00, 224.70, 100.00}},
- { "Creek", {2749.90, 1937.20, -89.00, 2921.60, 2669.70, 110.90}},
- { "Dillimore", {580.70, -674.80, -9.50, 861.00, -404.70, 200.00}},
- { "Doherty", {-2270.00, -324.10, -0.00, -1794.90, -222.50, 200.00}},
- { "Doherty", {-2173.00, -222.50, -0.00, -1794.90, 265.20, 200.00}},
- { "Downtown", {-1982.30, 744.10, -6.10, -1871.70, 1274.20, 200.00}},
- { "Downtown", {-1871.70, 1176.40, -4.50, -1620.30, 1274.20, 200.00}},
- { "Downtown", {-1700.00, 744.20, -6.10, -1580.00, 1176.50, 200.00}},
- { "Downtown", {-1580.00, 744.20, -6.10, -1499.80, 1025.90, 200.00}},
- { "Downtown", {-2078.60, 578.30, -7.60, -1499.80, 744.20, 200.00}},
- { "Downtown", {-1993.20, 265.20, -9.10, -1794.90, 578.30, 200.00}},
- { "Downtown Los Santos", {1463.90, -1430.80, -89.00, 1724.70, -1290.80, 110.90}},
- { "Downtown Los Santos", {1724.70, -1430.80, -89.00, 1812.60, -1250.90, 110.90}},
- { "Downtown Los Santos", {1463.90, -1290.80, -89.00, 1724.70, -1150.80, 110.90}},
- { "Downtown Los Santos", {1370.80, -1384.90, -89.00, 1463.90, -1170.80, 110.90}},
- { "Downtown Los Santos", {1724.70, -1250.90, -89.00, 1812.60, -1150.80, 110.90}},
- { "Downtown Los Santos", {1370.80, -1170.80, -89.00, 1463.90, -1130.80, 110.90}},
- { "Downtown Los Santos", {1378.30, -1130.80, -89.00, 1463.90, -1026.30, 110.90}},
- { "Downtown Los Santos", {1391.00, -1026.30, -89.00, 1463.90, -926.90, 110.90}},
- { "Downtown Los Santos", {1507.50, -1385.20, 110.90, 1582.50, -1325.30, 335.90}},
- { "East Beach", {2632.80, -1852.80, -89.00, 2959.30, -1668.10, 110.90}},
- { "East Beach", {2632.80, -1668.10, -89.00, 2747.70, -1393.40, 110.90}},
- { "East Beach", {2747.70, -1668.10, -89.00, 2959.30, -1498.60, 110.90}},
- { "East Beach", {2747.70, -1498.60, -89.00, 2959.30, -1120.00, 110.90}},
- { "East Los Santos", {2421.00, -1628.50, -89.00, 2632.80, -1454.30, 110.90}},
- { "East Los Santos", {2222.50, -1628.50, -89.00, 2421.00, -1494.00, 110.90}},
- { "East Los Santos", {2266.20, -1494.00, -89.00, 2381.60, -1372.00, 110.90}},
- { "East Los Santos", {2381.60, -1494.00, -89.00, 2421.00, -1454.30, 110.90}},
- { "East Los Santos", {2281.40, -1372.00, -89.00, 2381.60, -1135.00, 110.90}},
- { "East Los Santos", {2381.60, -1454.30, -89.00, 2462.10, -1135.00, 110.90}},
- { "East Los Santos", {2462.10, -1454.30, -89.00, 2581.70, -1135.00, 110.90}},
- { "Easter Basin", {-1794.90, 249.90, -9.10, -1242.90, 578.30, 200.00}},
- { "Easter Basin", {-1794.90, -50.00, -0.00, -1499.80, 249.90, 200.00}},
- { "Easter Bay Airport", {-1499.80, -50.00, -0.00, -1242.90, 249.90, 200.00}},
- { "Easter Bay Airport", {-1794.90, -730.10, -3.00, -1213.90, -50.00, 200.00}},
- { "Easter Bay Airport", {-1213.90, -730.10, 0.00, -1132.80, -50.00, 200.00}},
- { "Easter Bay Airport", {-1242.90, -50.00, 0.00, -1213.90, 578.30, 200.00}},
- { "Easter Bay Airport", {-1213.90, -50.00, -4.50, -947.90, 578.30, 200.00}},
- { "Easter Bay Airport", {-1315.40, -405.30, 15.40, -1264.40, -209.50, 25.40}},
- { "Easter Bay Airport", {-1354.30, -287.30, 15.40, -1315.40, -209.50, 25.40}},
- { "Easter Bay Airport", {-1490.30, -209.50, 15.40, -1264.40, -148.30, 25.40}},
- { "Easter Bay Chemicals", {-1132.80, -768.00, 0.00, -956.40, -578.10, 200.00}},
- { "Easter Bay Chemicals", {-1132.80, -787.30, 0.00, -956.40, -768.00, 200.00}},
- { "El Castillo del Diablo", {-464.50, 2217.60, 0.00, -208.50, 2580.30, 200.00}},
- { "El Castillo del Diablo", {-208.50, 2123.00, -7.60, 114.00, 2337.10, 200.00}},
- { "El Castillo del Diablo", {-208.50, 2337.10, 0.00, 8.40, 2487.10, 200.00}},
- { "El Corona", {1812.60, -2179.20, -89.00, 1970.60, -1852.80, 110.90}},
- { "El Corona", {1692.60, -2179.20, -89.00, 1812.60, -1842.20, 110.90}},
- { "El Quebrados", {-1645.20, 2498.50, 0.00, -1372.10, 2777.80, 200.00}},
- { "Esplanade East", {-1620.30, 1176.50, -4.50, -1580.00, 1274.20, 200.00}},
- { "Esplanade East", {-1580.00, 1025.90, -6.10, -1499.80, 1274.20, 200.00}},
- { "Esplanade East", {-1499.80, 578.30, -79.60, -1339.80, 1274.20, 20.30}},
- { "Esplanade North", {-2533.00, 1358.90, -4.50, -1996.60, 1501.20, 200.00}},
- { "Esplanade North", {-1996.60, 1358.90, -4.50, -1524.20, 1592.50, 200.00}},
- { "Esplanade North", {-1982.30, 1274.20, -4.50, -1524.20, 1358.90, 200.00}},
- { "Fallen Tree", {-792.20, -698.50, -5.30, -452.40, -380.00, 200.00}},
- { "Fallow Bridge", {434.30, 366.50, 0.00, 603.00, 555.60, 200.00}},
- { "Fern Ridge", {508.10, -139.20, 0.00, 1306.60, 119.50, 200.00}},
- { "Financial", {-1871.70, 744.10, -6.10, -1701.30, 1176.40, 300.00}},
- { "Fisher's Lagoon", {1916.90, -233.30, -100.00, 2131.70, 13.80, 200.00}},
- { "Flint Intersection", {-187.70, -1596.70, -89.00, 17.00, -1276.60, 110.90}},
- { "Flint Range", {-594.10, -1648.50, 0.00, -187.70, -1276.60, 200.00}},
- { "Fort Carson", {-376.20, 826.30, -3.00, 123.70, 1220.40, 200.00}},
- { "Foster Valley", {-2270.00, -430.20, -0.00, -2178.60, -324.10, 200.00}},
- { "Foster Valley", {-2178.60, -599.80, -0.00, -1794.90, -324.10, 200.00}},
- { "Foster Valley", {-2178.60, -1115.50, 0.00, -1794.90, -599.80, 200.00}},
- { "Foster Valley", {-2178.60, -1250.90, 0.00, -1794.90, -1115.50, 200.00}},
- { "Frederick Bridge", {2759.20, 296.50, 0.00, 2774.20, 594.70, 200.00}},
- { "Gant Bridge", {-2741.40, 1659.60, -6.10, -2616.40, 2175.10, 200.00}},
- { "Gant Bridge", {-2741.00, 1490.40, -6.10, -2616.40, 1659.60, 200.00}},
- { "Ganton", {2222.50, -1852.80, -89.00, 2632.80, -1722.30, 110.90}},
- { "Ganton", {2222.50, -1722.30, -89.00, 2632.80, -1628.50, 110.90}},
- { "Garcia", {-2411.20, -222.50, -0.00, -2173.00, 265.20, 200.00}},
- { "Garcia", {-2395.10, -222.50, -5.30, -2354.00, -204.70, 200.00}},
- { "Garver Bridge", {-1339.80, 828.10, -89.00, -1213.90, 1057.00, 110.90}},
- { "Garver Bridge", {-1213.90, 950.00, -89.00, -1087.90, 1178.90, 110.90}},
- { "Garver Bridge", {-1499.80, 696.40, -179.60, -1339.80, 925.30, 20.30}},
- { "Glen Park", {1812.60, -1449.60, -89.00, 1996.90, -1350.70, 110.90}},
- { "Glen Park", {1812.60, -1100.80, -89.00, 1994.30, -973.30, 110.90}},
- { "Glen Park", {1812.60, -1350.70, -89.00, 2056.80, -1100.80, 110.90}},
- { "Green Palms", {176.50, 1305.40, -3.00, 338.60, 1520.70, 200.00}},
- { "Greenglass College", {964.30, 1044.60, -89.00, 1197.30, 1203.20, 110.90}},
- { "Greenglass College", {964.30, 930.80, -89.00, 1166.50, 1044.60, 110.90}},
- { "Hampton Barns", {603.00, 264.30, 0.00, 761.90, 366.50, 200.00}},
- { "Hankypanky Point", {2576.90, 62.10, 0.00, 2759.20, 385.50, 200.00}},
- { "Harry Gold Parkway", {1777.30, 863.20, -89.00, 1817.30, 2342.80, 110.90}},
- { "Hashbury", {-2593.40, -222.50, -0.00, -2411.20, 54.70, 200.00}},
- { "Hilltop Farm", {967.30, -450.30, -3.00, 1176.70, -217.90, 200.00}},
- { "Hunter Quarry", {337.20, 710.80, -115.20, 860.50, 1031.70, 203.70}},
- { "Idlewood", {1812.60, -1852.80, -89.00, 1971.60, -1742.30, 110.90}},
- { "Idlewood", {1812.60, -1742.30, -89.00, 1951.60, -1602.30, 110.90}},
- { "Idlewood", {1951.60, -1742.30, -89.00, 2124.60, -1602.30, 110.90}},
- { "Idlewood", {1812.60, -1602.30, -89.00, 2124.60, -1449.60, 110.90}},
- { "Idlewood", {2124.60, -1742.30, -89.00, 2222.50, -1494.00, 110.90}},
- { "Idlewood", {1971.60, -1852.80, -89.00, 2222.50, -1742.30, 110.90}},
- { "Jefferson", {1996.90, -1449.60, -89.00, 2056.80, -1350.70, 110.90}},
- { "Jefferson", {2124.60, -1494.00, -89.00, 2266.20, -1449.60, 110.90}},
- { "Jefferson", {2056.80, -1372.00, -89.00, 2281.40, -1210.70, 110.90}},
- { "Jefferson", {2056.80, -1210.70, -89.00, 2185.30, -1126.30, 110.90}},
- { "Jefferson", {2185.30, -1210.70, -89.00, 2281.40, -1154.50, 110.90}},
- { "Jefferson", {2056.80, -1449.60, -89.00, 2266.20, -1372.00, 110.90}},
- { "Julius Thruway East", {2623.10, 943.20, -89.00, 2749.90, 1055.90, 110.90}},
- { "Julius Thruway East", {2685.10, 1055.90, -89.00, 2749.90, 2626.50, 110.90}},
- { "Julius Thruway East", {2536.40, 2442.50, -89.00, 2685.10, 2542.50, 110.90}},
- { "Julius Thruway East", {2625.10, 2202.70, -89.00, 2685.10, 2442.50, 110.90}},
- { "Julius Thruway North", {2498.20, 2542.50, -89.00, 2685.10, 2626.50, 110.90}},
- { "Julius Thruway North", {2237.40, 2542.50, -89.00, 2498.20, 2663.10, 110.90}},
- { "Julius Thruway North", {2121.40, 2508.20, -89.00, 2237.40, 2663.10, 110.90}},
- { "Julius Thruway North", {1938.80, 2508.20, -89.00, 2121.40, 2624.20, 110.90}},
- { "Julius Thruway North", {1534.50, 2433.20, -89.00, 1848.40, 2583.20, 110.90}},
- { "Julius Thruway North", {1848.40, 2478.40, -89.00, 1938.80, 2553.40, 110.90}},
- { "Julius Thruway North", {1704.50, 2342.80, -89.00, 1848.40, 2433.20, 110.90}},
- { "Julius Thruway North", {1377.30, 2433.20, -89.00, 1534.50, 2507.20, 110.90}},
- { "Julius Thruway South", {1457.30, 823.20, -89.00, 2377.30, 863.20, 110.90}},
- { "Julius Thruway South", {2377.30, 788.80, -89.00, 2537.30, 897.90, 110.90}},
- { "Julius Thruway West", {1197.30, 1163.30, -89.00, 1236.60, 2243.20, 110.90}},
- { "Julius Thruway West", {1236.60, 2142.80, -89.00, 1297.40, 2243.20, 110.90}},
- { "Juniper Hill", {-2533.00, 578.30, -7.60, -2274.10, 968.30, 200.00}},
- { "Juniper Hollow", {-2533.00, 968.30, -6.10, -2274.10, 1358.90, 200.00}},
- { "K.A.C.C. Military Fuels", {2498.20, 2626.50, -89.00, 2749.90, 2861.50, 110.90}},
- { "Kincaid Bridge", {-1339.80, 599.20, -89.00, -1213.90, 828.10, 110.90}},
- { "Kincaid Bridge", {-1213.90, 721.10, -89.00, -1087.90, 950.00, 110.90}},
- { "Kincaid Bridge", {-1087.90, 855.30, -89.00, -961.90, 986.20, 110.90}},
- { "King's", {-2329.30, 458.40, -7.60, -1993.20, 578.30, 200.00}},
- { "King's", {-2411.20, 265.20, -9.10, -1993.20, 373.50, 200.00}},
- { "King's", {-2253.50, 373.50, -9.10, -1993.20, 458.40, 200.00}},
- { "LVA Freight Depot", {1457.30, 863.20, -89.00, 1777.40, 1143.20, 110.90}},
- { "LVA Freight Depot", {1375.60, 919.40, -89.00, 1457.30, 1203.20, 110.90}},
- { "LVA Freight Depot", {1277.00, 1087.60, -89.00, 1375.60, 1203.20, 110.90}},
- { "LVA Freight Depot", {1315.30, 1044.60, -89.00, 1375.60, 1087.60, 110.90}},
- { "LVA Freight Depot", {1236.60, 1163.40, -89.00, 1277.00, 1203.20, 110.90}},
- { "Las Barrancas", {-926.10, 1398.70, -3.00, -719.20, 1634.60, 200.00}},
- { "Las Brujas", {-365.10, 2123.00, -3.00, -208.50, 2217.60, 200.00}},
- { "Las Colinas", {1994.30, -1100.80, -89.00, 2056.80, -920.80, 110.90}},
- { "Las Colinas", {2056.80, -1126.30, -89.00, 2126.80, -920.80, 110.90}},
- { "Las Colinas", {2185.30, -1154.50, -89.00, 2281.40, -934.40, 110.90}},
- { "Las Colinas", {2126.80, -1126.30, -89.00, 2185.30, -934.40, 110.90}},
- { "Las Colinas", {2747.70, -1120.00, -89.00, 2959.30, -945.00, 110.90}},
- { "Las Colinas", {2632.70, -1135.00, -89.00, 2747.70, -945.00, 110.90}},
- { "Las Colinas", {2281.40, -1135.00, -89.00, 2632.70, -945.00, 110.90}},
- { "Las Payasadas", {-354.30, 2580.30, 2.00, -133.60, 2816.80, 200.00}},
- { "Las Venturas Airport", {1236.60, 1203.20, -89.00, 1457.30, 1883.10, 110.90}},
- { "Las Venturas Airport", {1457.30, 1203.20, -89.00, 1777.30, 1883.10, 110.90}},
- { "Las Venturas Airport", {1457.30, 1143.20, -89.00, 1777.40, 1203.20, 110.90}},
- { "Las Venturas Airport", {1515.80, 1586.40, -12.50, 1729.90, 1714.50, 87.50}},
- { "Last Dime Motel", {1823.00, 596.30, -89.00, 1997.20, 823.20, 110.90}},
- { "Leafy Hollow", {-1166.90, -1856.00, 0.00, -815.60, -1602.00, 200.00}},
- { "Lil' Probe Inn", {-90.20, 1286.80, -3.00, 153.80, 1554.10, 200.00}},
- { "Linden Side", {2749.90, 943.20, -89.00, 2923.30, 1198.90, 110.90}},
- { "Linden Station", {2749.90, 1198.90, -89.00, 2923.30, 1548.90, 110.90}},
- { "Linden Station", {2811.20, 1229.50, -39.50, 2861.20, 1407.50, 60.40}},
- { "Little Mexico", {1701.90, -1842.20, -89.00, 1812.60, -1722.20, 110.90}},
- { "Little Mexico", {1758.90, -1722.20, -89.00, 1812.60, -1577.50, 110.90}},
- { "Los Flores", {2581.70, -1454.30, -89.00, 2632.80, -1393.40, 110.90}},
- { "Los Flores", {2581.70, -1393.40, -89.00, 2747.70, -1135.00, 110.90}},
- { "Los Santos International", {1249.60, -2394.30, -89.00, 1852.00, -2179.20, 110.90}},
- { "Los Santos International", {1852.00, -2394.30, -89.00, 2089.00, -2179.20, 110.90}},
- { "Los Santos International", {1382.70, -2730.80, -89.00, 2201.80, -2394.30, 110.90}},
- { "Los Santos International", {1974.60, -2394.30, -39.00, 2089.00, -2256.50, 60.90}},
- { "Los Santos International", {1400.90, -2669.20, -39.00, 2189.80, -2597.20, 60.90}},
- { "Los Santos International", {2051.60, -2597.20, -39.00, 2152.40, -2394.30, 60.90}},
- { "Marina", {647.70, -1804.20, -89.00, 851.40, -1577.50, 110.90}},
- { "Marina", {647.70, -1577.50, -89.00, 807.90, -1416.20, 110.90}},
- { "Marina", {807.90, -1577.50, -89.00, 926.90, -1416.20, 110.90}},
- { "Market", {787.40, -1416.20, -89.00, 1072.60, -1310.20, 110.90}},
- { "Market", {952.60, -1310.20, -89.00, 1072.60, -1130.80, 110.90}},
- { "Market", {1072.60, -1416.20, -89.00, 1370.80, -1130.80, 110.90}},
- { "Market", {926.90, -1577.50, -89.00, 1370.80, -1416.20, 110.90}},
- { "Market Station", {787.40, -1410.90, -34.10, 866.00, -1310.20, 65.80}},
- { "Martin Bridge", {-222.10, 293.30, 0.00, -122.10, 476.40, 200.00}},
- { "Missionary Hill", {-2994.40, -811.20, 0.00, -2178.60, -430.20, 200.00}},
- { "Montgomery", {1119.50, 119.50, -3.00, 1451.40, 493.30, 200.00}},
- { "Montgomery", {1451.40, 347.40, -6.10, 1582.40, 420.80, 200.00}},
- { "Montgomery Intersection", {1546.60, 208.10, 0.00, 1745.80, 347.40, 200.00}},
- { "Montgomery Intersection", {1582.40, 347.40, 0.00, 1664.60, 401.70, 200.00}},
- { "Mulholland", {1414.00, -768.00, -89.00, 1667.60, -452.40, 110.90}},
- { "Mulholland", {1281.10, -452.40, -89.00, 1641.10, -290.90, 110.90}},
- { "Mulholland", {1269.10, -768.00, -89.00, 1414.00, -452.40, 110.90}},
- { "Mulholland", {1357.00, -926.90, -89.00, 1463.90, -768.00, 110.90}},
- { "Mulholland", {1318.10, -910.10, -89.00, 1357.00, -768.00, 110.90}},
- { "Mulholland", {1169.10, -910.10, -89.00, 1318.10, -768.00, 110.90}},
- { "Mulholland", {768.60, -954.60, -89.00, 952.60, -860.60, 110.90}},
- { "Mulholland", {687.80, -860.60, -89.00, 911.80, -768.00, 110.90}},
- { "Mulholland", {737.50, -768.00, -89.00, 1142.20, -674.80, 110.90}},
- { "Mulholland", {1096.40, -910.10, -89.00, 1169.10, -768.00, 110.90}},
- { "Mulholland", {952.60, -937.10, -89.00, 1096.40, -860.60, 110.90}},
- { "Mulholland", {911.80, -860.60, -89.00, 1096.40, -768.00, 110.90}},
- { "Mulholland", {861.00, -674.80, -89.00, 1156.50, -600.80, 110.90}},
- { "Mulholland Intersection", {1463.90, -1150.80, -89.00, 1812.60, -768.00, 110.90}},
- { "North Rock", {2285.30, -768.00, 0.00, 2770.50, -269.70, 200.00}},
- { "Ocean Docks", {2373.70, -2697.00, -89.00, 2809.20, -2330.40, 110.90}},
- { "Ocean Docks", {2201.80, -2418.30, -89.00, 2324.00, -2095.00, 110.90}},
- { "Ocean Docks", {2324.00, -2302.30, -89.00, 2703.50, -2145.10, 110.90}},
- { "Ocean Docks", {2089.00, -2394.30, -89.00, 2201.80, -2235.80, 110.90}},
- { "Ocean Docks", {2201.80, -2730.80, -89.00, 2324.00, -2418.30, 110.90}},
- { "Ocean Docks", {2703.50, -2302.30, -89.00, 2959.30, -2126.90, 110.90}},
- { "Ocean Docks", {2324.00, -2145.10, -89.00, 2703.50, -2059.20, 110.90}},
- { "Ocean Flats", {-2994.40, 277.40, -9.10, -2867.80, 458.40, 200.00}},
- { "Ocean Flats", {-2994.40, -222.50, -0.00, -2593.40, 277.40, 200.00}},
- { "Ocean Flats", {-2994.40, -430.20, -0.00, -2831.80, -222.50, 200.00}},
- { "Octane Springs", {338.60, 1228.50, 0.00, 664.30, 1655.00, 200.00}},
- { "Old Venturas Strip", {2162.30, 2012.10, -89.00, 2685.10, 2202.70, 110.90}},
- { "Palisades", {-2994.40, 458.40, -6.10, -2741.00, 1339.60, 200.00}},
- { "Palomino Creek", {2160.20, -149.00, 0.00, 2576.90, 228.30, 200.00}},
- { "Paradiso", {-2741.00, 793.40, -6.10, -2533.00, 1268.40, 200.00}},
- { "Pershing Square", {1440.90, -1722.20, -89.00, 1583.50, -1577.50, 110.90}},
- { "Pilgrim", {2437.30, 1383.20, -89.00, 2624.40, 1783.20, 110.90}},
- { "Pilgrim", {2624.40, 1383.20, -89.00, 2685.10, 1783.20, 110.90}},
- { "Pilson Intersection", {1098.30, 2243.20, -89.00, 1377.30, 2507.20, 110.90}},
- { "Pirates in Men's Pants", {1817.30, 1469.20, -89.00, 2027.40, 1703.20, 110.90}},
- { "Playa del Seville", {2703.50, -2126.90, -89.00, 2959.30, -1852.80, 110.90}},
- { "Prickle Pine", {1534.50, 2583.20, -89.00, 1848.40, 2863.20, 110.90}},
- { "Prickle Pine", {1117.40, 2507.20, -89.00, 1534.50, 2723.20, 110.90}},
- { "Prickle Pine", {1848.40, 2553.40, -89.00, 1938.80, 2863.20, 110.90}},
- { "Prickle Pine", {1938.80, 2624.20, -89.00, 2121.40, 2861.50, 110.90}},
- { "Queens", {-2533.00, 458.40, 0.00, -2329.30, 578.30, 200.00}},
- { "Queens", {-2593.40, 54.70, 0.00, -2411.20, 458.40, 200.00}},
- { "Queens", {-2411.20, 373.50, 0.00, -2253.50, 458.40, 200.00}},
- { "Randolph Industrial Estate", {1558.00, 596.30, -89.00, 1823.00, 823.20, 110.90}},
- { "Redsands East", {1817.30, 2011.80, -89.00, 2106.70, 2202.70, 110.90}},
- { "Redsands East", {1817.30, 2202.70, -89.00, 2011.90, 2342.80, 110.90}},
- { "Redsands East", {1848.40, 2342.80, -89.00, 2011.90, 2478.40, 110.90}},
- { "Redsands West", {1236.60, 1883.10, -89.00, 1777.30, 2142.80, 110.90}},
- { "Redsands West", {1297.40, 2142.80, -89.00, 1777.30, 2243.20, 110.90}},
- { "Redsands West", {1377.30, 2243.20, -89.00, 1704.50, 2433.20, 110.90}},
- { "Redsands West", {1704.50, 2243.20, -89.00, 1777.30, 2342.80, 110.90}},
- { "Regular Tom", {-405.70, 1712.80, -3.00, -276.70, 1892.70, 200.00}},
- { "Richman", {647.50, -1118.20, -89.00, 787.40, -954.60, 110.90}},
- { "Richman", {647.50, -954.60, -89.00, 768.60, -860.60, 110.90}},
- { "Richman", {225.10, -1369.60, -89.00, 334.50, -1292.00, 110.90}},
- { "Richman", {225.10, -1292.00, -89.00, 466.20, -1235.00, 110.90}},
- { "Richman", {72.60, -1404.90, -89.00, 225.10, -1235.00, 110.90}},
- { "Richman", {72.60, -1235.00, -89.00, 321.30, -1008.10, 110.90}},
- { "Richman", {321.30, -1235.00, -89.00, 647.50, -1044.00, 110.90}},
- { "Richman", {321.30, -1044.00, -89.00, 647.50, -860.60, 110.90}},
- { "Richman", {321.30, -860.60, -89.00, 687.80, -768.00, 110.90}},
- { "Richman", {321.30, -768.00, -89.00, 700.70, -674.80, 110.90}},
- { "Robada Intersection", {-1119.00, 1178.90, -89.00, -862.00, 1351.40, 110.90}},
- { "Roca Escalante", {2237.40, 2202.70, -89.00, 2536.40, 2542.50, 110.90}},
- { "Roca Escalante", {2536.40, 2202.70, -89.00, 2625.10, 2442.50, 110.90}},
- { "Rockshore East", {2537.30, 676.50, -89.00, 2902.30, 943.20, 110.90}},
- { "Rockshore West", {1997.20, 596.30, -89.00, 2377.30, 823.20, 110.90}},
- { "Rockshore West", {2377.30, 596.30, -89.00, 2537.30, 788.80, 110.90}},
- { "Rodeo", {72.60, -1684.60, -89.00, 225.10, -1544.10, 110.90}},
- { "Rodeo", {72.60, -1544.10, -89.00, 225.10, -1404.90, 110.90}},
- { "Rodeo", {225.10, -1684.60, -89.00, 312.80, -1501.90, 110.90}},
- { "Rodeo", {225.10, -1501.90, -89.00, 334.50, -1369.60, 110.90}},
- { "Rodeo", {334.50, -1501.90, -89.00, 422.60, -1406.00, 110.90}},
- { "Rodeo", {312.80, -1684.60, -89.00, 422.60, -1501.90, 110.90}},
- { "Rodeo", {422.60, -1684.60, -89.00, 558.00, -1570.20, 110.90}},
- { "Rodeo", {558.00, -1684.60, -89.00, 647.50, -1384.90, 110.90}},
- { "Rodeo", {466.20, -1570.20, -89.00, 558.00, -1385.00, 110.90}},
- { "Rodeo", {422.60, -1570.20, -89.00, 466.20, -1406.00, 110.90}},
- { "Rodeo", {466.20, -1385.00, -89.00, 647.50, -1235.00, 110.90}},
- { "Rodeo", {334.50, -1406.00, -89.00, 466.20, -1292.00, 110.90}},
- { "Royal Casino", {2087.30, 1383.20, -89.00, 2437.30, 1543.20, 110.90}},
- { "San Andreas Sound", {2450.30, 385.50, -100.00, 2759.20, 562.30, 200.00}},
- { "Santa Flora", {-2741.00, 458.40, -7.60, -2533.00, 793.40, 200.00}},
- { "Santa Maria Beach", {342.60, -2173.20, -89.00, 647.70, -1684.60, 110.90}},
- { "Santa Maria Beach", {72.60, -2173.20, -89.00, 342.60, -1684.60, 110.90}},
- { "Shady Cabin", {-1632.80, -2263.40, -3.00, -1601.30, -2231.70, 200.00}},
- { "Shady Creeks", {-1820.60, -2643.60, -8.00, -1226.70, -1771.60, 200.00}},
- { "Shady Creeks", {-2030.10, -2174.80, -6.10, -1820.60, -1771.60, 200.00}},
- { "Sobell Rail Yards", {2749.90, 1548.90, -89.00, 2923.30, 1937.20, 110.90}},
- { "Spinybed", {2121.40, 2663.10, -89.00, 2498.20, 2861.50, 110.90}},
- { "Starfish Casino", {2437.30, 1783.20, -89.00, 2685.10, 2012.10, 110.90}},
- { "Starfish Casino", {2437.30, 1858.10, -39.00, 2495.00, 1970.80, 60.90}},
- { "Starfish Casino", {2162.30, 1883.20, -89.00, 2437.30, 2012.10, 110.90}},
- { "Temple", {1252.30, -1130.80, -89.00, 1378.30, -1026.30, 110.90}},
- { "Temple", {1252.30, -1026.30, -89.00, 1391.00, -926.90, 110.90}},
- { "Temple", {1252.30, -926.90, -89.00, 1357.00, -910.10, 110.90}},
- { "Temple", {952.60, -1130.80, -89.00, 1096.40, -937.10, 110.90}},
- { "Temple", {1096.40, -1130.80, -89.00, 1252.30, -1026.30, 110.90}},
- { "Temple", {1096.40, -1026.30, -89.00, 1252.30, -910.10, 110.90}},
- { "The Camel's Toe", {2087.30, 1203.20, -89.00, 2640.40, 1383.20, 110.90}},
- { "The Clown's Pocket", {2162.30, 1783.20, -89.00, 2437.30, 1883.20, 110.90}},
- { "The Emerald Isle", {2011.90, 2202.70, -89.00, 2237.40, 2508.20, 110.90}},
- { "The Farm", {-1209.60, -1317.10, 114.90, -908.10, -787.30, 251.90}},
- { "The Four Dragons Casino", {1817.30, 863.20, -89.00, 2027.30, 1083.20, 110.90}},
- { "The High Roller", {1817.30, 1283.20, -89.00, 2027.30, 1469.20, 110.90}},
- { "The Mako Span", {1664.60, 401.70, 0.00, 1785.10, 567.20, 200.00}},
- { "The Panopticon", {-947.90, -304.30, -1.10, -319.60, 327.00, 200.00}},
- { "The Pink Swan", {1817.30, 1083.20, -89.00, 2027.30, 1283.20, 110.90}},
- { "The Sherman Dam", {-968.70, 1929.40, -3.00, -481.10, 2155.20, 200.00}},
- { "The Strip", {2027.40, 863.20, -89.00, 2087.30, 1703.20, 110.90}},
- { "The Strip", {2106.70, 1863.20, -89.00, 2162.30, 2202.70, 110.90}},
- { "The Strip", {2027.40, 1783.20, -89.00, 2162.30, 1863.20, 110.90}},
- { "The Strip", {2027.40, 1703.20, -89.00, 2137.40, 1783.20, 110.90}},
- { "The Visage", {1817.30, 1863.20, -89.00, 2106.70, 2011.80, 110.90}},
- { "The Visage", {1817.30, 1703.20, -89.00, 2027.40, 1863.20, 110.90}},
- { "Unity Station", {1692.60, -1971.80, -20.40, 1812.60, -1932.80, 79.50}},
- { "Valle Ocultado", {-936.60, 2611.40, 2.00, -715.90, 2847.90, 200.00}},
- { "Verdant Bluffs", {930.20, -2488.40, -89.00, 1249.60, -2006.70, 110.90}},
- { "Verdant Bluffs", {1073.20, -2006.70, -89.00, 1249.60, -1842.20, 110.90}},
- { "Verdant Bluffs", {1249.60, -2179.20, -89.00, 1692.60, -1842.20, 110.90}},
- { "Verdant Meadows", {37.00, 2337.10, -3.00, 435.90, 2677.90, 200.00}},
- { "Verona Beach", {647.70, -2173.20, -89.00, 930.20, -1804.20, 110.90}},
- { "Verona Beach", {930.20, -2006.70, -89.00, 1073.20, -1804.20, 110.90}},
- { "Verona Beach", {851.40, -1804.20, -89.00, 1046.10, -1577.50, 110.90}},
- { "Verona Beach", {1161.50, -1722.20, -89.00, 1323.90, -1577.50, 110.90}},
- { "Verona Beach", {1046.10, -1722.20, -89.00, 1161.50, -1577.50, 110.90}},
- { "Vinewood", {787.40, -1310.20, -89.00, 952.60, -1130.80, 110.90}},
- { "Vinewood", {787.40, -1130.80, -89.00, 952.60, -954.60, 110.90}},
- { "Vinewood", {647.50, -1227.20, -89.00, 787.40, -1118.20, 110.90}},
- { "Vinewood", {647.70, -1416.20, -89.00, 787.40, -1227.20, 110.90}},
- { "Whitewood Estates", {883.30, 1726.20, -89.00, 1098.30, 2507.20, 110.90}},
- { "Whitewood Estates", {1098.30, 1726.20, -89.00, 1197.30, 2243.20, 110.90}},
- { "Willowfield", {1970.60, -2179.20, -89.00, 2089.00, -1852.80, 110.90}},
- { "Willowfield", {2089.00, -2235.80, -89.00, 2201.80, -1989.90, 110.90}},
- { "Willowfield", {2089.00, -1989.90, -89.00, 2324.00, -1852.80, 110.90}},
- { "Willowfield", {2201.80, -2095.00, -89.00, 2324.00, -1989.90, 110.90}},
- { "Willowfield", {2541.70, -1941.40, -89.00, 2703.50, -1852.80, 110.90}},
- { "Willowfield", {2324.00, -2059.20, -89.00, 2541.70, -1852.80, 110.90}},
- { "Willowfield", {2541.70, -2059.20, -89.00, 2703.50, -1941.40, 110.90}},
- { "Yellow Bell Station", {1377.40, 2600.40, -21.90, 1492.40, 2687.30, 78.00}},
- // Main Zones
- { "Los Santos", {44.60, -2892.90, -242.90, 2997.00, -768.00, 900.00}},
- { "Las Venturas", {869.40, 596.30, -242.90, 2997.00, 2993.80, 900.00}},
- { "Bone County", {-480.50, 596.30, -242.90, 869.40, 2993.80, 900.00}},
- { "Tierra Robada", {-2997.40, 1659.60, -242.90, -480.50, 2993.80, 900.00}},
- { "Tierra Robada", {-1213.90, 596.30, -242.90, -480.50, 1659.60, 900.00}},
- { "San Fierro", {-2997.40, -1115.50, -242.90, -1213.90, 1659.60, 900.00}},
- { "Red County", {-1213.90, -768.00, -242.90, 2997.00, 596.30, 900.00}},
- { "Flint County", {-1213.90, -2892.90, -242.90, 44.60, -768.00, 900.00}},
- { "Whetstone", {-2997.40, -2892.90, -242.90, -1213.90, -1115.50, 900.00}}
- };
- //================ [ TEXTDRAW DE ENTRADA ] ==============
- // [ Desativas radar ]
- //new radardesativado;
- //============ [ Sistema de login/registro ] ============
- new TempoTuto[MAX_PLAYERS];
- new VerTuto[MAX_PLAYERS];
- new MostrarIconesMapa[MAX_PLAYERS];
- new gPlayerConta[MAX_PLAYERS];
- forward RegistrarJogador(playerid, senha[]);
- forward CarregarJogador(playerid, senha[]);
- forward AtualizarJogador(playerid);
- new Digitou[MAX_PLAYERS][64];
- new anonormal, mesnormal, dianormal;
- //================= [ SpawnarJogador ] ==================
- forward SpawnarJogador(playerid);
- forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
- forward ShowStats(playerid,targetid);
- // [ Proximidade ]
- forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
- forward ProxDetectorS(Float:radi, playerid, targetid);
- new BigEar[MAX_PLAYERS];
- //=================== [ infoserver ] ====================
- new Online;
- new AdminsOnline;
- // [ Criou veículo ]
- new CriouVeiculo[MAX_PLAYERS] = 0;
- new veiculonovo;
- // [ Celular ]
- new CelularOcupado[MAX_PLAYERS];
- new CelularLigado[MAX_PLAYERS];
- //======================= [ AFK ] =======================
- new AFK[MAX_PLAYERS] = 0;
- //================= [ Nome Server ] =====================
- forward NomeServer();
- // [ atualizações constantes no server ]
- new atualizacoesgeraisdoserver;
- forward atualizarserver();
- //============== [ prompt de comando ] ==================
- main()
- {
- print("[====================================]");
- print("[ Alfa - Fort Carson ]");
- print("[ ~ RolePlay ~ ]");
- print("[_________ [San Andreas:MP]__________]");
- print("[====================================]");
- }
- //========== [ OnPlayerConnect ] ==================
- public OnPlayerConnect(playerid)
- {
- //new string[128];
- DisableInteriorEnterExits();
- UsePlayerPedAnims();
- SetPlayerVirtualWorld(playerid,playerid+1);
- SetPlayerColor(playerid,COR_CINZA);
- Online++;
- //=========== [ Sistema de registro ] ===============
- Abastecendo[playerid] = 0;
- SemCMD[playerid] = 0;
- TempoTuto[playerid] = 0;
- Marcha[playerid] = 0;
- CelularOcupado[playerid] = 255;
- JanelaAberta[playerid] = 0;
- CelularLigado[playerid] = 0;
- MostrarIconesMapa[playerid] = 0;
- SetPlayerHealth(playerid, 100);
- PlayerInfo[playerid][pTituloE] = 0;
- PlayerInfo[playerid][pTempoPD] = 0;
- PlayerInfo[playerid][pCartTrab] = 0;
- PlayerInfo[playerid][pSemOOC] = 0;
- PlayerInfo[playerid][pTrabalhando] = 0;
- PlayerInfo[playerid][pRegistroGeral] = 0;
- PlayerInfo[playerid][pNRegistro] = 0;
- PlayerInfo[playerid][pRelogio] = 0;
- PlayerInfo[playerid][pGPS] = 0;
- PlayerInfo[playerid][pAgenda] = 0;
- PlayerInfo[playerid][pCNumero] = 0;
- PlayerInfo[playerid][pDiaNascimento] = 0;
- PlayerInfo[playerid][pMesNascimento] = 0;
- PlayerInfo[playerid][pFerido] = 0;
- PlayerInfo[playerid][pDiaNascimento] = 0;
- PlayerInfo[playerid][pCongelado] = 0;
- PlayerInfo[playerid][pCalado] = 0;
- PlayerInfo[playerid][pATrabalhando] = 0;
- PlayerInfo[playerid][pLider] = 0;
- PlayerInfo[playerid][pCargo] = 0;
- PlayerInfo[playerid][pLogou] = 0;
- PlayerInfo[playerid][pOrigem] = 0;
- PlayerInfo[playerid][pIdade] = 0;
- PlayerInfo[playerid][pSexo] = 0;
- PlayerInfo[playerid][pTut] = 0;
- PlayerInfo[playerid][pLugar] = 0;
- PlayerInfo[playerid][pLevel] = 0;
- PlayerInfo[playerid][pMoney] = 0;
- PlayerInfo[playerid][pMortes] = 0;
- PlayerInfo[playerid][pKills] = 0;
- PlayerInfo[playerid][pSkin] = 1;
- PlayerInfo[playerid][pAdmin] = 0;
- PlayerInfo[playerid][pLogado] = 0;
- PlayerInfo[playerid][pORG] = 0;
- PlayerInfo[playerid][pEmprego] = 0;
- PlayerInfo[playerid][pBanido] = 0;
- PlayerInfo[playerid][pEXP] = 0;
- PlayerInfo[playerid][pBanco] = 0;
- gPlayerConta[playerid] = 0;
- gPlayerLogged[playerid] = 0;
- new string2[64];
- format(string2, sizeof(string2), "Contas/%s.ini", NomeDoJogador(playerid));
- SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: Aguarde alguns segundos...");
- LimparChat(playerid, 125);
- // [ textdraws ]
- TextDrawShowForPlayer(playerid, Textdraw0); //Horas
- TextDrawShowForPlayer(playerid, Textdraw1); //Minutos
- TextDrawShowForPlayer(playerid, Textdraw2); //Segundos
- TextDrawShowForPlayer(playerid, Textdraw3); //Dia
- TextDrawShowForPlayer(playerid, Textdraw4); //Mes
- TextDrawShowForPlayer(playerid, Textdraw5); //Ano
- TextDrawShowForPlayer(playerid, Textdraw6); //Horas(min)
- TextDrawShowForPlayer(playerid, Textdraw7); //Minutos(seg)
- TextDrawShowForPlayer(playerid, Textdraw8); //DiaDaSemana
- // [ ícones ]
- SetPlayerMapIcon(playerid, 0, -207.6064, 1119.2050, 20.4297, 48, 0xE6E6E6E6); // Prefeitura ~ Fort Carson
- SetPlayerMapIcon(playerid, 1, -179.6620,1133.3715,19.7422, 52, 0xE6E6E6E60); // Banco ~ Fort Carson
- /*SetPlayerMapIcon(playerid, 2, 627.7889, -571.8434, 17.5394, 30, 0xE6E6E6E6); // Departamento de Polícia ~ Dillimore
- SetPlayerMapIcon(playerid, 3, 2302.7932, -16.2295, 27.4844, 52, 0xE6E6E6E6); // Banco ~ Palomino Creek
- SetPlayerMapIcon(playerid, 4, -207.8791, 1119.089, 21.4297, 45, 0xE6E6E6E6); // Loja de roupas ~ ???
- SetPlayerMapIcon(playerid, 5, 2256.7087, -44.5215, 26.8834, 56, 0xE6E6E6E6); // Igreja ~ Palomino Creek
- SetPlayerMapIcon(playerid, 6, 2318.8008, -88.6682, 26.4844, 17, 0xE6E6E6E6); // 24/7 ~ Palomino Creek
- SetPlayerMapIcon(playerid, 7, 701.9257, -494.3564, 16.3359, 17, 0xE6E6E6E6); // 24/7 ~ Dillimore
- SetPlayerMapIcon(playerid, 8, 2104.3079, 41.3257, 26.3359, 34, 0xE6E6E6E6); // Placa de velocidade ~ Palomino Creek
- SetPlayerMapIcon(playerid, 9, 2353.4829, -92.0126, 26.5072, 55, 0xE6E6E6E6); // AutoEscola ~ Palomino Creek*/
- // [ total de icones no server = 1 ] // sempre adicionar mais ícones quando colocá-los
- return 1;
- }
- //================== [ OnPlayerSpawn ] ==================
- public OnPlayerSpawn(playerid)
- {
- SpawnarJogador(playerid);
- return 1;
- }
- //=============== [ SpawnarJogador ] ====================
- public SpawnarJogador(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pATrabalhando] == 1)
- {
- Delete3DTextLabel(Texto3DAdmin[playerid]);
- Texto3DAdmin[playerid] = Create3DTextLabel("Admin: Duvidas? Ajuda?", COR_TEXTO3D,0,0,0,50,-1,1);
- Attach3DTextLabelToPlayer(Texto3DAdmin[playerid], playerid, 0,0,0);
- }
- if(PlayerInfo[playerid][pLogou] == 0)
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Para jogar é preciso estar logado.");
- Kick(playerid);
- return 1;
- }
- SetPlayerColor(playerid,COR_BRANCA);
- //GangZoneShowForPlayer(playerid, radardesativado, 0x000000FF);
- SetPlayerVirtualWorld(playerid,0);
- PlayerPlaySound(playerid, 1069, 0.0, 0.0, 0.0);
- if(PlayerInfo[playerid][pLogou] == 0) { Kick(playerid); SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Para jogar é preciso estar logado."); return 1; }
- if(PlayerInfo[playerid][pRelogio] == 1)
- {
- //MOSTRAR RELÓGIOIC
- }
- if(PlayerInfo[playerid][pReg] == 0 && PlayerInfo[playerid][pTut] == 0 && VerTuto[playerid] == 0 && TempoTuto[playerid] == 0)
- {
- SetPlayerPos(playerid, -210.7981,1131.9382,12.2688);
- SetPlayerCameraPos(playerid, -211.5025,1128.8004,13.4459);
- SetPlayerCameraLookAt(playerid, -211.5025,1128.8004,13.4458);
- TogglePlayerControllable(playerid, 0);
- SCM(playerid, COR_INFO, "{90EE90}ALFA{A9C4E4}: Bem-vindo ao FortCarson:RolePlay - Por favor, responda as informações pra seguir.");
- ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "{90EE90}FortCarson:RolePlay ~ {FFFFFF}Qual o seu sexo? (IC)", "{6495ED}Masculino\n{FF00FF}Feminino", "Ok", "");
- }
- else if(PlayerInfo[playerid][pReg] == 1 && PlayerInfo[playerid][pTut] == 1)
- {
- if(PlayerInfo[playerid][pLider] == 0 && PlayerInfo[playerid][pORG] == 0)
- {
- if(PlayerInfo[playerid][pAdmin] != 0)
- {
- AdminsOnline++;
- }
- if(PlayerInfo[playerid][pOrigem] == 1)
- {
- SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
- SetPlayerPos(playerid, -177.1503,1111.4773,19.7422);
- TogglePlayerControllable(playerid, 1);
- SetPlayerInterior(playerid,0);
- SetPlayerHealth(playerid, 70.0);
- SetPlayerFacingAngle(playerid, 135);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- else if(PlayerInfo[playerid][pOrigem] == 2)
- {
- SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
- SetPlayerPos(playerid, 171.5337,1252.4419,25.3);
- TogglePlayerControllable(playerid, 1);
- SetPlayerInterior(playerid,0);
- SetPlayerHealth(playerid, 70.0);
- SetPlayerFacingAngle(playerid, 343);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- else if(PlayerInfo[playerid][pOrigem] == 3)
- {
- SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
- SetPlayerPos(playerid, -410.5126,1160.3617,2.3388);
- TogglePlayerControllable(playerid, 1);
- SetPlayerInterior(playerid,0);
- SetPlayerHealth(playerid, 70.0);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- }
- else if(PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pORG] == 1)
- {
- SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
- SetPlayerPos(playerid, 196.8041,171.1494,1003.0234);
- TogglePlayerControllable(playerid, 1);
- SetPlayerFacingAngle(playerid, 180);
- SetPlayerInterior(playerid, 3);
- PlayerInfo[playerid][pLugar] = 111;
- SetPlayerHealth(playerid, 70.0);
- SetCameraBehindPlayer(playerid);
- return 1;
- }
- }
- }
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- new placa[10];
- GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF);
- format(placa, sizeof placa, "FC-%d", vehicleid + 1000);
- SetVehicleNumberPlate(vehicleid, placa);
- SetVehicleHealth(vehicleid, 1000);
- return 1;
- }
- //=============== [ OnPlayerDisconnect ] ================
- public OnPlayerDisconnect(playerid, reason)
- {
- new string[128];
- PlayerInfo[playerid][pLogado] = 0;
- Delete3DTextLabel(Texto3DAdmin[playerid]);
- Online --;
- if(VerTuto[playerid] != 0 || TempoTuto[playerid] != 0)
- {
- format(string, sizeof(string), "Contas/%s.ini", NomeDoJogador(playerid));
- dini_Remove(string);
- return 1;
- }
- if(CriouVeiculo[playerid] == 1)
- {
- DestroyVehicle(veiculonovo);
- }
- switch(reason)
- {
- case 0: format(string, sizeof(string), "{90EE90}(!) {A9C4E4}: [{FF0000}-{A9C4E4}] O %s %s saiu do server por erro de conexão ou crash. [%d/%d]", NivelDeAdm(playerid), NomeDoJogador(playerid),Online,GetMaxPlayers());
- case 1: format(string, sizeof(string), "{90EE90}(!) {A9C4E4}: [{FF0000}-{A9C4E4}] O %s %s saiu por vontade propria. [%d/%d]", NivelDeAdm(playerid), NomeDoJogador(playerid),Online,GetMaxPlayers());
- case 2: format(string, sizeof(string), "{90EE90}(!) {A9C4E4}: [{FF0000}-{A9C4E4}] O %s %s Saiu do servidor kickado ou banido. [%d/%d]", NivelDeAdm(playerid), NomeDoJogador(playerid),Online,GetMaxPlayers());
- }
- MensagemAdmin(COR_INFO, string, 1);
- AtualizarJogador(playerid);
- TextDrawHideForPlayer(playerid, Textdraw0); //Horas
- TextDrawHideForPlayer(playerid, Textdraw1); //Minutos
- TextDrawHideForPlayer(playerid, Textdraw2); //Segundos
- TextDrawHideForPlayer(playerid, Textdraw3); //Dia
- TextDrawHideForPlayer(playerid, Textdraw4); //Mes
- TextDrawHideForPlayer(playerid, Textdraw5); //Ano
- TextDrawHideForPlayer(playerid, Textdraw6); //Horas(min)
- TextDrawHideForPlayer(playerid, Textdraw7); //Minutos(seg)
- TextDrawHideForPlayer(playerid, Textdraw8); //DiaDaSemana
- return 1;
- }
- //===============[ OnPlayerRequestClass ] ===============
- public OnPlayerRequestClass(playerid,classid)
- {
- new arquivodini[128];
- format(arquivodini, 64, "Contas/%s.ini", NomeDoJogador(playerid));
- SetPlayerCameraPos(playerid, -303.5813,1051.5614,79.0741);
- SetPlayerCameraLookAt(playerid, -164.1154,1101.6588,19.5938);
- SetPlayerPos(playerid, -304.0317,1051.3651,20.8353);
- if(dini_Exists(arquivodini))
- {
- TogglePlayerControllable(playerid, 0);
- SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: Seu nick está registrado, logue.");
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "Digite sua senha para logar-se", "Logar", "");
- }
- else
- {
- TogglePlayerControllable(playerid, 0);
- SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: Você não está registrado. Registre-se para jogar");
- ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "Crie sua senha para registrar-se", "Registrar", "");
- }
- return 1;
- }
- //================= [ OnGameModeInit ] ==================
- public OnGameModeInit()
- {
- new str[128];
- getdate(v[0], v[1], v[2]);
- gettime(v[3], v[4], v[5]);
- print("\n---------------------------------------------------------");
- printf("Servidor ligado: [%02d/%02d/%d %02d:%02d:%02d]", v[2], v[1], v[0], v[3], v[4], v[5]);
- print("---------------------------------------------------------\n");
- SetGameModeText("Alfa ~ FortCarson:RolePlay ~ BR");
- SetTimer("NomeServer",1000,1);
- /*SetTimer("AtualizarVelocimetro",1, 1);
- TempoProd = SetTimer("Producao", 240000, 1);
- SetTimer("ObterGas", 1000, 1);
- TimerObterGas = SetTimer("GastarGas", TempGGas, 1);
- atualizacoesgeraisdoserver = SetTimer("atualizarserver", 1000,1);*/
- SendRconCommand("mapname Fort Carson");
- // [ textdraws ]
- // relógio OOC
- Textdraw0 = TextDrawCreate(498.000000, 1.000000, " ");
- TextDrawBackgroundColor(Textdraw0, 255);
- TextDrawFont(Textdraw0, 1);
- TextDrawLetterSize(Textdraw0, 0.300000, 1.199998);
- TextDrawColor(Textdraw0, -1);
- TextDrawSetOutline(Textdraw0, 0);
- TextDrawSetProportional(Textdraw0, 1);
- TextDrawSetShadow(Textdraw0, 0);
- Textdraw1 = TextDrawCreate(509.000000, 1.000000, " ");
- TextDrawBackgroundColor(Textdraw1, 255);
- TextDrawFont(Textdraw1, 1);
- TextDrawLetterSize(Textdraw1, 0.300000, 1.200000);
- TextDrawColor(Textdraw1, -1);
- TextDrawSetOutline(Textdraw1, 0);
- TextDrawSetProportional(Textdraw1, 1);
- TextDrawSetShadow(Textdraw1, 0);
- Textdraw2 = TextDrawCreate(525.000000, 1.000000, " ");
- TextDrawBackgroundColor(Textdraw2, 255);
- TextDrawFont(Textdraw2, 1);
- TextDrawLetterSize(Textdraw2, 0.300000, 1.200000);
- TextDrawColor(Textdraw2, -1);
- TextDrawSetOutline(Textdraw2, 0);
- TextDrawSetProportional(Textdraw2, 1);
- TextDrawSetShadow(Textdraw2, 0);
- Textdraw3 = TextDrawCreate(552.000000, 1.000000, " ");
- TextDrawBackgroundColor(Textdraw3, 255);
- TextDrawFont(Textdraw3, 1);
- TextDrawLetterSize(Textdraw3, 0.300000, 1.200000);
- TextDrawColor(Textdraw3, -1);
- TextDrawSetOutline(Textdraw3, 0);
- TextDrawSetProportional(Textdraw3, 1);
- TextDrawSetShadow(Textdraw3, 0);
- Textdraw4 = TextDrawCreate(565.000000, 1.000000, " ");
- TextDrawBackgroundColor(Textdraw4, 255);
- TextDrawFont(Textdraw4, 1);
- TextDrawLetterSize(Textdraw4, 0.300000, 1.200000);
- TextDrawColor(Textdraw4, -1);
- TextDrawSetOutline(Textdraw4, 0);
- TextDrawSetProportional(Textdraw4, 1);
- TextDrawSetShadow(Textdraw4, 0);
- Textdraw5 = TextDrawCreate(580.000000, 1.000000, " ");
- TextDrawBackgroundColor(Textdraw5, 255);
- TextDrawFont(Textdraw5, 1);
- TextDrawLetterSize(Textdraw5, 0.300000, 1.200000);
- TextDrawColor(Textdraw5, -1);
- TextDrawSetOutline(Textdraw5, 0);
- TextDrawSetProportional(Textdraw5, 1);
- TextDrawSetShadow(Textdraw5, 0);
- //relógioIC
- Textdraw6 = TextDrawCreate(499.000000, 14.000000, " ");
- TextDrawBackgroundColor(Textdraw6, 255);
- TextDrawFont(Textdraw6, 3);
- TextDrawLetterSize(Textdraw6, 0.289999, 1.000000);
- TextDrawColor(Textdraw6, -1446714113);
- TextDrawSetOutline(Textdraw6, 1);
- TextDrawSetProportional(Textdraw6, 1);
- Textdraw7 = TextDrawCreate(510.000000, 14.000000, " ");
- TextDrawBackgroundColor(Textdraw7, 255);
- TextDrawFont(Textdraw7, 3);
- TextDrawLetterSize(Textdraw7, 0.289999, 1.000000);
- TextDrawColor(Textdraw7, -1446714113);
- TextDrawSetOutline(Textdraw7, 1);
- TextDrawSetProportional(Textdraw7, 1);
- Textdraw8 = TextDrawCreate(534.000000, 14.000000, "SEGUNDA-FEIRA");
- TextDrawBackgroundColor(Textdraw8, 255);
- TextDrawFont(Textdraw8, 3);
- TextDrawLetterSize(Textdraw8, 0.289999, 1.000000);
- TextDrawColor(Textdraw8, -1446714113);
- TextDrawSetOutline(Textdraw8, 1);
- TextDrawSetProportional(Textdraw8, 1);
- //Velocímetro
- Textdraw9 = TextDrawCreate(498.000000, 351.000000, "~n~");
- TextDrawBackgroundColor(Textdraw9, 255);
- TextDrawFont(Textdraw9, 1);
- TextDrawLetterSize(Textdraw9, 1.279999, 10.100014);
- TextDrawColor(Textdraw9, -1);
- TextDrawSetOutline(Textdraw9, 0);
- TextDrawSetProportional(Textdraw9, 1);
- TextDrawSetShadow(Textdraw9, 0);
- TextDrawUseBox(Textdraw9, 1);
- TextDrawBoxColor(Textdraw9, 100);
- TextDrawTextSize(Textdraw9, 632.000000, 30.000000);
- Textdraw10 = TextDrawCreate(502.000000, 356.000000, "~n~");
- TextDrawBackgroundColor(Textdraw10, 255);
- TextDrawFont(Textdraw10, 1);
- TextDrawLetterSize(Textdraw10, 0.500000, 9.000000);
- TextDrawColor(Textdraw10, -1);
- TextDrawSetOutline(Textdraw10, 0);
- TextDrawSetProportional(Textdraw10, 1);
- TextDrawSetShadow(Textdraw10, 1);
- TextDrawUseBox(Textdraw10, 1);
- TextDrawBoxColor(Textdraw10, 51350);
- TextDrawTextSize(Textdraw10, 628.000000, 0.000000);
- Textdraw11 = TextDrawCreate(501.000000, 354.000000, " "); // nome do carro
- TextDrawBackgroundColor(Textdraw11, 255);
- TextDrawFont(Textdraw11, 2);
- TextDrawLetterSize(Textdraw11, 0.370000, 1.600000);
- TextDrawColor(Textdraw11, -1);
- TextDrawSetOutline(Textdraw11, 1);
- TextDrawSetProportional(Textdraw11, 1);
- Textdraw12 = TextDrawCreate(500.000000, 384.000000, " "); // qtdd de velocidade
- TextDrawBackgroundColor(Textdraw12, -1);
- TextDrawFont(Textdraw12, 1);
- TextDrawLetterSize(Textdraw12, 0.289999, 1.299999);
- TextDrawColor(Textdraw12, 255);
- TextDrawSetOutline(Textdraw12, 0);
- TextDrawSetProportional(Textdraw12, 1);
- TextDrawSetShadow(Textdraw12, 0);
- Textdraw13 = TextDrawCreate(500.000000, 374.000000, " "); // velocidade
- TextDrawBackgroundColor(Textdraw13, -1);
- TextDrawFont(Textdraw13, 1);
- TextDrawLetterSize(Textdraw13, 0.289999, 1.100000);
- TextDrawColor(Textdraw13, -1);
- TextDrawSetOutline(Textdraw13, 0);
- TextDrawSetProportional(Textdraw13, 1);
- TextDrawSetShadow(Textdraw13, 0);
- Textdraw14 = TextDrawCreate(500.000000, 396.000000, " "); // tanque
- TextDrawBackgroundColor(Textdraw14, -1);
- TextDrawFont(Textdraw14, 1);
- TextDrawLetterSize(Textdraw14, 0.289999, 1.100000);
- TextDrawColor(Textdraw14, -1);
- TextDrawSetOutline(Textdraw14, 0);
- TextDrawSetProportional(Textdraw14, 1);
- TextDrawSetShadow(Textdraw14, 0);
- Textdraw15 = TextDrawCreate(500.000000, 406.000000, " "); // qtdd de gasosa
- TextDrawBackgroundColor(Textdraw15, -1);
- TextDrawFont(Textdraw15, 1);
- TextDrawLetterSize(Textdraw15, 0.289999, 1.299999);
- TextDrawColor(Textdraw15, 255);
- TextDrawSetOutline(Textdraw15, 0);
- TextDrawSetProportional(Textdraw15, 1);
- TextDrawSetShadow(Textdraw15, 0);
- Textdraw16 = TextDrawCreate(500.000000, 418.000000, " "); // estado
- TextDrawBackgroundColor(Textdraw16, -1);
- TextDrawFont(Textdraw16, 1);
- TextDrawLetterSize(Textdraw16, 0.289999, 1.100000);
- TextDrawColor(Textdraw16, -1);
- TextDrawSetOutline(Textdraw16, 0);
- TextDrawSetProportional(Textdraw16, 1);
- TextDrawSetShadow(Textdraw16, 0);
- Textdraw17 = TextDrawCreate(520.000000, 385.000000, " "); //km/h
- TextDrawBackgroundColor(Textdraw17, -1);
- TextDrawFont(Textdraw17, 1);
- TextDrawLetterSize(Textdraw17, 0.289999, 1.100000);
- TextDrawColor(Textdraw17, -1);
- TextDrawSetOutline(Textdraw17, 0);
- TextDrawSetProportional(Textdraw17, 1);
- TextDrawSetShadow(Textdraw17, 0);
- Textdraw18 = TextDrawCreate(504.000000, 373.000000, "________");
- TextDrawBackgroundColor(Textdraw18, 255);
- TextDrawFont(Textdraw18, 2);
- TextDrawLetterSize(Textdraw18, 0.370000, -0.399998);
- TextDrawColor(Textdraw18, -1);
- TextDrawSetOutline(Textdraw18, 1);
- TextDrawSetProportional(Textdraw18, 1);
- TextDrawUseBox(Textdraw18, 1);
- TextDrawBoxColor(Textdraw18, 255);
- TextDrawTextSize(Textdraw18, 626.000000, 0.000000);
- Textdraw19 = TextDrawCreate(520.000000, 407.000000, " "); // litros
- TextDrawBackgroundColor(Textdraw19, -1);
- TextDrawFont(Textdraw19, 1);
- TextDrawLetterSize(Textdraw19, 0.289999, 1.100000);
- TextDrawColor(Textdraw19, -1);
- TextDrawSetOutline(Textdraw19, 0);
- TextDrawSetProportional(Textdraw19, 1);
- TextDrawSetShadow(Textdraw19, 0);
- Textdraw20 = TextDrawCreate(500.000000, 428.000000, " "); // funcionando
- TextDrawBackgroundColor(Textdraw20, -1);
- TextDrawFont(Textdraw20, 1);
- TextDrawLetterSize(Textdraw20, 0.289999, 1.299999);
- TextDrawColor(Textdraw20, 255);
- TextDrawSetOutline(Textdraw20, 0);
- TextDrawSetProportional(Textdraw20, 1);
- TextDrawSetShadow(Textdraw20, 0);
- Textdraw21 = TextDrawCreate(569.000000, 377.000000, "~n~");
- TextDrawBackgroundColor(Textdraw21, 255);
- TextDrawFont(Textdraw21, 1);
- TextDrawLetterSize(Textdraw21, 0.500000, 6.499998);
- TextDrawColor(Textdraw21, -1);
- TextDrawSetOutline(Textdraw21, 0);
- TextDrawSetProportional(Textdraw21, 1);
- TextDrawSetShadow(Textdraw21, 1);
- TextDrawUseBox(Textdraw21, 1);
- TextDrawBoxColor(Textdraw21, 255);
- TextDrawTextSize(Textdraw21, 561.000000, 0.000000);
- Textdraw22 = TextDrawCreate(567.000000, 374.000000, " "); // marcha
- TextDrawBackgroundColor(Textdraw22, -1);
- TextDrawFont(Textdraw22, 1);
- TextDrawLetterSize(Textdraw22, 0.289999, 1.100000);
- TextDrawColor(Textdraw22, -1);
- TextDrawSetOutline(Textdraw22, 0);
- TextDrawSetProportional(Textdraw22, 1);
- TextDrawSetShadow(Textdraw22, 0);
- Textdraw23 = TextDrawCreate(567.000000, 384.000000, " "); // marcha ré
- TextDrawBackgroundColor(Textdraw23, -1);
- TextDrawFont(Textdraw23, 1);
- TextDrawLetterSize(Textdraw23, 0.289999, 1.299999);
- TextDrawColor(Textdraw23, 255);
- TextDrawSetOutline(Textdraw23, 0);
- TextDrawSetProportional(Textdraw23, 1);
- TextDrawSetShadow(Textdraw23, 0);
- Textdraw24 = TextDrawCreate(574.000000, 384.000000, " "); // marcha nula
- TextDrawBackgroundColor(Textdraw24, -1);
- TextDrawFont(Textdraw24, 1);
- TextDrawLetterSize(Textdraw24, 0.289999, 1.299999);
- TextDrawColor(Textdraw24, 255);
- TextDrawSetOutline(Textdraw24, 0);
- TextDrawSetProportional(Textdraw24, 1);
- TextDrawSetShadow(Textdraw24, 0);
- Textdraw25 = TextDrawCreate(582.000000, 384.000000, " "); // marcha 1
- TextDrawBackgroundColor(Textdraw25, -1);
- TextDrawFont(Textdraw25, 1);
- TextDrawLetterSize(Textdraw25, 0.289999, 1.299999);
- TextDrawColor(Textdraw25, 255);
- TextDrawSetOutline(Textdraw25, 0);
- TextDrawSetProportional(Textdraw25, 1);
- TextDrawSetShadow(Textdraw25, 0);
- Textdraw26 = TextDrawCreate(588.000000, 384.000000, " "); // ... 2
- TextDrawBackgroundColor(Textdraw26, -1);
- TextDrawFont(Textdraw26, 1);
- TextDrawLetterSize(Textdraw26, 0.289999, 1.299999);
- TextDrawColor(Textdraw26, 255);
- TextDrawSetOutline(Textdraw26, 0);
- TextDrawSetProportional(Textdraw26, 1);
- TextDrawSetShadow(Textdraw26, 0);
- Textdraw27 = TextDrawCreate(595.000000, 384.000000, " "); // ... 3
- TextDrawBackgroundColor(Textdraw27, -1);
- TextDrawFont(Textdraw27, 1);
- TextDrawLetterSize(Textdraw27, 0.289999, 1.299999);
- TextDrawColor(Textdraw27, 255);
- TextDrawSetOutline(Textdraw27, 0);
- TextDrawSetProportional(Textdraw27, 1);
- TextDrawSetShadow(Textdraw27, 0);
- Textdraw28 = TextDrawCreate(602.000000, 384.000000, " "); // ... 4
- TextDrawBackgroundColor(Textdraw28, -1);
- TextDrawFont(Textdraw28, 1);
- TextDrawLetterSize(Textdraw28, 0.289999, 1.299999);
- TextDrawColor(Textdraw28, 255);
- TextDrawSetOutline(Textdraw28, 0);
- TextDrawSetProportional(Textdraw28, 1);
- TextDrawSetShadow(Textdraw28, 0);
- Textdraw29 = TextDrawCreate(608.000000, 384.000000, " "); // marcha 5
- TextDrawBackgroundColor(Textdraw29, -1);
- TextDrawFont(Textdraw29, 1);
- TextDrawLetterSize(Textdraw29, 0.289999, 1.299999);
- TextDrawColor(Textdraw29, 255);
- TextDrawSetOutline(Textdraw29, 0);
- TextDrawSetProportional(Textdraw29, 1);
- TextDrawSetShadow(Textdraw29, 0);
- Textdraw30 = TextDrawCreate(567.000000, 396.000000, " "); // placa
- TextDrawBackgroundColor(Textdraw30, -1);
- TextDrawFont(Textdraw30, 1);
- TextDrawLetterSize(Textdraw30, 0.289999, 1.100000);
- TextDrawColor(Textdraw30, -1);
- TextDrawSetOutline(Textdraw30, 0);
- TextDrawSetProportional(Textdraw30, 1);
- TextDrawSetShadow(Textdraw30, 0);
- Textdraw31 = TextDrawCreate(567.000000, 406.000000, " "); // n da placa
- TextDrawBackgroundColor(Textdraw31, -1);
- TextDrawFont(Textdraw31, 1);
- TextDrawLetterSize(Textdraw31, 0.289999, 1.299999);
- TextDrawColor(Textdraw31, 255);
- TextDrawSetOutline(Textdraw31, 0);
- TextDrawSetProportional(Textdraw31, 1);
- TextDrawSetShadow(Textdraw31, 0);
- Textdraw32 = TextDrawCreate(567.000000, 418.000000, " "); // motor
- TextDrawBackgroundColor(Textdraw32, -1);
- TextDrawFont(Textdraw32, 1);
- TextDrawLetterSize(Textdraw32, 0.289999, 1.100000);
- TextDrawColor(Textdraw32, -1);
- TextDrawSetOutline(Textdraw32, 0);
- TextDrawSetProportional(Textdraw32, 1);
- TextDrawSetShadow(Textdraw32, 0);
- Textdraw33 = TextDrawCreate(567.000000, 428.000000, " "); // ligado/desligado
- TextDrawBackgroundColor(Textdraw33, -1);
- TextDrawFont(Textdraw33, 1);
- TextDrawLetterSize(Textdraw33, 0.289999, 1.299998);
- TextDrawColor(Textdraw33, 255);
- TextDrawSetOutline(Textdraw33, 0);
- TextDrawSetProportional(Textdraw33, 1);
- TextDrawSetShadow(Textdraw33, 0);
- for(new i = 0; i<MAX_PLAYERS; i++)
- {
- //ocultar textdraws
- TextDrawHideForPlayer(i, Textdraw0); //Horas
- TextDrawHideForPlayer(i, Textdraw1); //Minutos
- TextDrawHideForPlayer(i, Textdraw2); //Segundos
- TextDrawHideForPlayer(i, Textdraw3); //Dia
- TextDrawHideForPlayer(i, Textdraw4); //Mes
- TextDrawHideForPlayer(i, Textdraw5); //Ano
- TextDrawHideForPlayer(i, Textdraw6); //Horas(Minutos)
- TextDrawHideForPlayer(i, Textdraw7); //Minutos(Segundos)
- TextDrawHideForPlayer(i, Textdraw8); //DiaDaSemana
- ProcessGameTime(i);
- SetTimer("ProcessGameTime", 1000, 1);
- }
- SetTimer("RelogioDoServerEmIC", 1000, 1);
- ShowPlayerMarkers(0);
- AllowInteriorWeapons(1);
- AllowAdminTeleport(1);
- DisableInteriorEnterExits();
- UsePlayerPedAnims();
- // [ desativar radar ]
- //radardesativado = GangZoneCreate(-3334.758544, -3039.903808, 3049.241455, 3184.096191);
- // [ objetos do server ]
- // [ Prefeitura - Fort Carson ] = 68 objeto(s)
- CreateDynamicObject(14597,-219.97753906,1119.30566406,13.26100922,0.00000000,0.00000000,0.00000000); //object(paperchase07) (1)
- CreateDynamicObject(14598,-210.51687622,1131.10449219,9.42149639,0.00000000,0.00000000,0.00000000); //object(paperchase_glass) (1)
- CreateDynamicObject(1532,-206.85572815,1120.27587891,11.26882172,0.00000000,0.00000000,270.00000000); //object(gen_doorext11) (1)
- CreateDynamicObject(2885,-206.60839844,1119.64941406,17.87967873,0.00000000,0.00000000,90.24719238); //object(xref_garagedoor) (1)
- CreateDynamicObject(2885,-222.09082031,1122.65722656,16.00468445,0.00000000,0.00000000,180.24169922); //object(xref_garagedoor) (2)
- CreateDynamicObject(2885,-221.94140625,1115.92871094,16.00468445,0.00000000,0.00000000,0.24169922); //object(xref_garagedoor) (3)
- CreateDynamicObject(1491,-210.88203430,1116.03723145,11.27614975,0.00000000,0.00000000,180.00000000); //object(gen_doorint01) (1)
- CreateDynamicObject(1491,-210.88516235,1122.61206055,11.27614975,0.00000000,0.00000000,179.99450684); //object(gen_doorint01) (2)
- CreateDynamicObject(14527,-228.37879944,1119.30639648,12.82624054,0.00000000,0.00000000,3.75000000); //object(fannyfan) (1)
- CreateDynamicObject(14527,-211.35800171,1119.52722168,12.82624054,0.00000000,0.00000000,3.74633789); //object(fannyfan) (2)
- CreateDynamicObject(14527,-212.87341309,1108.94482422,12.82624054,0.00000000,0.00000000,3.74633789); //object(fannyfan) (3)
- CreateDynamicObject(14527,-212.79205322,1128.97070312,12.82624054,0.00000000,0.00000000,3.74633789); //object(fannyfan) (4)
- CreateDynamicObject(2166,-210.54179382,1129.72216797,11.26882172,0.00000000,0.00000000,180.00000000); //object(med_office_desk_2) (1)
- CreateDynamicObject(2198,-212.47785950,1128.72290039,11.26882172,0.00000000,0.00000000,180.00000000); //object(med_office2_desk_3) (1)
- CreateDynamicObject(1811,-213.41908264,1126.86462402,11.89512634,0.00000000,0.00000000,250.00000000); //object(med_din_chair_5) (3)
- CreateDynamicObject(1811,-212.16514587,1126.53588867,11.90245438,0.00000000,0.00000000,289.99938965); //object(med_din_chair_5) (4)
- CreateDynamicObject(1663,-213.05456543,1129.79150391,11.72903633,0.00000000,0.00000000,30.00000000); //object(swivelchair_b) (1)
- CreateDynamicObject(1581,-211.43611145,1128.73413086,12.05790043,271.99993896,0.00000000,344.00000000); //object(keycard) (1)
- CreateDynamicObject(1714,-232.03752136,1120.31811523,11.27614975,0.00000000,0.00000000,80.00000000); //object(kb_swivelchair1) (1)
- CreateDynamicObject(1715,-228.24107361,1120.52343750,11.26882172,0.00000000,0.00000000,289.99511719); //object(kb_swivelchair2) (1)
- CreateDynamicObject(1715,-228.46569824,1118.58422852,11.27614975,0.00000000,0.00000000,229.99328613); //object(kb_swivelchair2) (2)
- CreateDynamicObject(2184,-229.38357544,1120.67541504,11.26882172,0.00000000,0.00000000,110.00000000); //object(med_office6_desk_2) (1)
- CreateDynamicObject(2184,-230.23339844,1118.18994141,11.26882172,0.00000000,0.00000000,66.99462891); //object(med_office6_desk_2) (2)
- CreateDynamicObject(1808,-232.61447144,1122.01660156,11.26882172,0.00000000,0.00000000,0.00000000); //object(cj_watercooler2) (2)
- CreateDynamicObject(2190,-229.65469360,1121.01721191,12.04455948,0.00000000,0.00000000,270.00000000); //object(pc_1) (1)
- CreateDynamicObject(2894,-229.90962219,1119.81420898,12.04455948,0.00000000,0.00000000,240.00000000); //object(kmb_rhymesbook) (1)
- CreateDynamicObject(2773,-222.72558594,1120.13867188,11.78326416,0.00000000,0.00000000,90.00000000); //object(cj_airprt_bar) (1)
- CreateDynamicObject(2773,-222.69270325,1118.40649414,11.77448750,0.00000000,0.00000000,90.00000000); //object(cj_airprt_bar) (2)
- CreateDynamicObject(1491,-224.24575806,1118.54968262,11.27614975,0.00000000,0.00000000,89.99450684); //object(gen_doorint01) (3)
- CreateDynamicObject(1726,-220.22558594,1121.57128906,11.26882172,0.00000000,0.00000000,0.00000000); //object(mrk_seating2) (1)
- CreateDynamicObject(1808,-217.66699219,1116.33789062,11.26882172,0.00000000,0.00000000,179.99450684); //object(cj_watercooler2) (3)
- CreateDynamicObject(14455,-233.11695862,1121.47485352,13.03668118,0.00000000,0.00000000,270.00000000); //object(gs_bookcase) (1)
- CreateDynamicObject(2604,-219.62345886,1117.99853516,12.06569672,0.00000000,0.00000000,0.00000000); //object(cj_police_counter) (1)
- CreateDynamicObject(1715,-219.56564331,1116.86071777,11.26882172,0.00000000,0.00000000,159.99511719); //object(kb_swivelchair2) (1)
- CreateDynamicObject(2175,-215.71878052,1107.28222656,11.26882172,0.00000000,0.00000000,0.00000000); //object(med_office4_desk_3) (1)
- CreateDynamicObject(2173,-210.36862183,1110.49340820,11.26882172,0.00000000,0.00000000,90.00000000); //object(med_office_desk_3) (1)
- CreateDynamicObject(1671,-209.34355164,1110.85058594,11.72903633,0.00000000,0.00000000,250.00000000); //object(swivelchair_a) (1)
- CreateDynamicObject(2894,-210.35130310,1110.98278809,12.07047558,0.00000000,0.00000000,90.00000000); //object(kmb_rhymesbook) (2)
- CreateDynamicObject(1959,-215.39517212,1107.32836914,12.05893135,0.00000000,0.00000000,0.00000000); //object(shop_till) (1)
- CreateDynamicObject(2773,-213.48295593,1107.31066895,11.78326416,0.00000000,0.00000000,90.00000000); //object(cj_airprt_bar) (1)
- CreateDynamicObject(2773,-212.53915405,1108.27185059,11.78326416,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (1)
- CreateDynamicObject(2773,-210.66880798,1108.81408691,11.78326416,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (1)
- CreateDynamicObject(2773,-212.55975342,1110.20861816,11.78326416,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (1)
- CreateDynamicObject(2773,-209.73823547,1113.45202637,11.78326416,0.00000000,0.00000000,90.00000000); //object(cj_airprt_bar) (1)
- CreateDynamicObject(2773,-211.66886902,1113.44641113,11.78326416,0.00000000,0.00000000,90.00000000); //object(cj_airprt_bar) (1)
- CreateDynamicObject(2773,-210.67683411,1114.43273926,11.78326416,0.00000000,0.00000000,180.00000000); //object(cj_airprt_bar) (1)
- CreateDynamicObject(2773,-213.47389221,1109.23974609,11.78326416,0.00000000,0.00000000,90.00000000); //object(cj_airprt_bar) (1)
- CreateDynamicObject(2773,-215.37777710,1109.23730469,11.78326416,0.00000000,0.00000000,90.00000000); //object(cj_airprt_bar) (1)
- CreateDynamicObject(1722,-213.98164368,1110.02600098,11.26882172,0.00000000,0.00000000,0.00000000); //object(off_chairnu) (1)
- CreateDynamicObject(1722,-215.21952820,1109.99487305,11.26882172,0.00000000,0.00000000,0.00000000); //object(off_chairnu) (2)
- CreateDynamicObject(1722,-215.22650146,1111.18798828,11.27614975,0.00000000,0.00000000,0.00000000); //object(off_chairnu) (3)
- CreateDynamicObject(1722,-214.01708984,1111.20373535,11.27614975,0.00000000,0.00000000,0.00000000); //object(off_chairnu) (4)
- CreateDynamicObject(1722,-215.23886108,1112.38098145,11.27614975,0.00000000,0.00000000,0.00000000); //object(off_chairnu) (5)
- CreateDynamicObject(1722,-214.00997925,1112.37451172,11.27614975,0.00000000,0.00000000,0.00000000); //object(off_chairnu) (6)
- CreateDynamicObject(2700,-213.82290649,1115.57763672,14.83560467,0.00000000,0.00000000,270.00000000); //object(cj_sex_tv2) (1)
- CreateDynamicObject(2002,-215.64521790,1115.03979492,11.27614975,0.00000000,0.00000000,90.00000000); //object(water_coolnu) (1)
- CreateDynamicObject(1808,-208.89115906,1108.53063965,11.26882172,0.00000000,0.00000000,270.00000000); //object(cj_watercooler2) (4)
- CreateDynamicObject(2773,-209.67118835,1107.85522461,11.78326416,0.00000000,0.00000000,90.00000000); //object(cj_airprt_bar) (1)
- CreateDynamicObject(2773,-210.65679932,1106.88659668,11.78326416,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (1)
- CreateDynamicObject(1726,-215.32730103,1121.63818359,11.26882172,0.00000000,0.00000000,0.00000000); //object(mrk_seating2) (1)
- CreateDynamicObject(1726,-213.35334778,1116.91857910,11.26882172,0.00000000,0.00000000,180.00000000); //object(mrk_seating2) (1)
- CreateDynamicObject(14489,-229.61470032,1122.19079590,13.37683964,0.00000000,0.00000000,270.00000000); //object(carlspics) (1)
- CreateDynamicObject(2007,-231.84474182,1121.82739258,11.26882172,0.00000000,0.00000000,0.00000000); //object(filing_cab_nu01) (1)
- CreateDynamicObject(2818,-230.55438232,1116.42272949,14.54072857,270.00000000,180.00000000,180.00000000); //object(gb_bedrug02) (1)
- CreateDynamicObject(2828,-230.46684265,1118.79187012,12.04455948,0.00000000,0.00000000,20.00000000); //object(gb_ornament02) (1)
- CreateDynamicObject(2835,-224.80578613,1118.82824707,11.26882172,0.00000000,0.00000000,90.00000000); //object(gb_livingrug04) (1)
- CreateDynamicObject(14705,-232.67887878,1116.73620605,12.61852074,0.00000000,0.00000000,0.00000000); //object(int2vase) (1)
- CreateDynamicObject(2491,-232.45918274,1116.99523926,10.49381828,0.00000000,0.00000000,0.00000000); //object(model_stand) (1)
- // [ Estação - Fort Carson ] = 39 objeto(s)
- CreateDynamicObject(18284,168.70166016,1246.61010742,25.38256454,0.00000000,0.00000000,67.50000000); //object(cw_tscanopy) (1)
- CreateDynamicObject(18284,168.70117188,1246.60937500,19.60757637,0.00000000,0.00000000,67.49450684); //object(cw_tscanopy) (2)
- CreateDynamicObject(18284,165.99578857,1240.59277344,19.60756111,0.00000000,0.00000000,65.49450684); //object(cw_tscanopy) (3)
- CreateDynamicObject(18284,168.70117188,1246.60937500,18.75757027,0.00000000,0.00000000,67.49450684); //object(cw_tscanopy) (4)
- CreateDynamicObject(18284,165.99511719,1240.59277344,18.75757408,0.00000000,0.00000000,65.48950195); //object(cw_tscanopy) (5)
- CreateDynamicObject(18284,163.13735962,1234.33837891,19.60756111,0.00000000,0.00000000,65.48950195); //object(cw_tscanopy) (6)
- CreateDynamicObject(18284,163.13671875,1234.33789062,18.85757256,0.00000000,0.00000000,65.48950195); //object(cw_tscanopy) (7)
- CreateDynamicObject(14877,160.62258911,1228.23999023,20.49082375,0.00000000,0.00000000,65.50000000); //object(michelle-stairs) (1)
- CreateDynamicObject(2885,161.63755798,1230.59545898,22.13712692,90.00000000,180.00952148,335.99050903); //object(xref_garagedoor) (1)
- CreateDynamicObject(14877,158.30999756,1222.97497559,20.26582718,0.00000000,0.00000000,65.49499512); //object(michelle-stairs) (2)
- CreateDynamicObject(2885,160.56973267,1228.13940430,21.78711700,90.00000000,180.00549316,335.98937988); //object(xref_garagedoor) (2)
- CreateDynamicObject(14877,156.86141968,1219.78906250,19.91582108,0.00000000,0.00000000,65.49499512); //object(michelle-stairs) (4)
- CreateDynamicObject(2885,159.51434326,1225.81494141,21.46212196,90.00000000,180.00549316,335.98937988); //object(xref_garagedoor) (4)
- CreateDynamicObject(14877,154.87519836,1215.42333984,19.69082451,0.00000000,0.00000000,65.49499512); //object(michelle-stairs) (5)
- CreateDynamicObject(2885,154.19847107,1213.91748047,20.33711624,90.00000000,179.99450684,335.99487305); //object(xref_garagedoor) (5)
- CreateDynamicObject(2885,157.52001953,1221.49902344,20.73712540,90.00000000,179.99450684,335.99487305); //object(xref_garagedoor) (6)
- CreateDynamicObject(2885,156.85397339,1219.82653809,21.63714600,352.00000000,0.00000000,155.98937988); //object(xref_garagedoor) (12)
- CreateDynamicObject(2885,151.51019287,1207.94165039,20.53714371,359.99645996,0.00000000,155.98388672); //object(xref_garagedoor) (13)
- CreateDynamicObject(13749,159.33596802,1193.62011719,14.15132713,0.00000000,0.00000000,30.00000000); //object(cunte_curvesteps1) (1)
- CreateDynamicObject(2885,155.37817383,1216.67529297,20.33711624,90.00000000,180.00549316,335.98388672); //object(xref_garagedoor) (14)
- CreateDynamicObject(2885,157.21580505,1215.82446289,20.33711624,90.00000000,180.00549316,335.98388672); //object(xref_garagedoor) (15)
- CreateDynamicObject(2885,156.01342773,1213.07714844,20.33711624,90.00000000,180.00549316,335.98388672); //object(xref_garagedoor) (16)
- CreateDynamicObject(2885,153.36303711,1207.12231445,20.53714371,359.99450684,0.00000000,155.98388672); //object(xref_garagedoor) (17)
- CreateDynamicObject(2773,156.74366760,1205.67382812,21.06403351,0.00000000,0.00000000,66.25000000); //object(cj_airprt_bar) (1)
- CreateDynamicObject(2773,155.00161743,1206.43554688,21.06403351,0.00000000,0.00000000,66.24755859); //object(cj_airprt_bar) (3)
- CreateDynamicObject(2773,153.24131775,1207.21813965,21.03903389,0.00000000,0.00000000,66.24755859); //object(cj_airprt_bar) (4)
- CreateDynamicObject(2773,151.48164368,1208.00134277,21.03903389,0.00000000,0.00000000,66.24755859); //object(cj_airprt_bar) (5)
- CreateDynamicObject(2773,149.72196960,1208.78552246,21.03903389,0.00000000,0.00000000,66.24755859); //object(cj_airprt_bar) (6)
- CreateDynamicObject(2773,147.96206665,1209.56823730,21.03903389,0.00000000,0.00000000,66.24755859); //object(cj_airprt_bar) (7)
- CreateDynamicObject(1256,170.85429382,1245.72705078,23.22015762,0.00000000,0.00000000,337.50000000); //object(stonebench1) (1)
- CreateDynamicObject(1256,176.29493713,1243.50878906,23.22015762,0.00000000,0.00000000,337.49450684); //object(stonebench1) (2)
- CreateDynamicObject(1256,165.75384521,1247.79589844,23.22015762,0.00000000,0.00000000,337.49450684); //object(stonebench1) (3)
- CreateDynamicObject(1256,161.52157593,1249.78674316,23.22015762,0.00000000,0.00000000,157.49450684); //object(stonebench1) (4)
- CreateDynamicObject(1256,166.52284241,1247.50439453,23.22015762,0.00000000,0.00000000,157.49450684); //object(stonebench1) (5)
- CreateDynamicObject(1256,171.59207153,1245.45166016,23.22015762,0.00000000,0.00000000,157.49450684); //object(stonebench1) (6)
- CreateDynamicObject(14877,157.46809387,1206.95141602,18.79083824,0.00000000,0.00000000,335.49499512); //object(michelle-stairs) (10)
- CreateDynamicObject(2885,148.76269531,1214.91442871,20.53714371,359.99450684,0.00000000,66.23388672); //object(xref_garagedoor) (18)
- CreateDynamicObject(2885,160.32887268,1209.79003906,20.53714371,359.98901367,0.00000000,246.23107910); //object(xref_garagedoor) (19)
- CreateDynamicObject(18284,169.94557190,1249.44824219,19.60757637,0.00000000,0.00000000,67.49450684); //object(cw_tscanopy) (8)
- // [ Docas - Fort Carson ] = 1 objeto
- CreateDynamicObject(3073,-409.71902466,1155.82055664,3.17121983,7.05850220,28.23291016,206.22509766); //object(kmb_container_broke) (1)
- // [ PostoDeGasolina/FC ] = 3 objetos
- CreateDynamicObject(18452,-167.44091797,1228.33557129,21.69091797,0.00000000,0.00000000,359.99450684); //object(cw_tscanopy01) (2)
- CreateDynamicObject(1676,-167.17025757,1225.55798340,20.42178726,0.00000000,0.00000000,180.00000000); //object(washgaspump) (1)
- CreateDynamicObject(1676,-167.15441895,1231.11755371,20.42178726,0.00000000,0.00000000,180.00000000); //object(washgaspump) (5)
- // [ Banco/FC ] = 28 objetos
- CreateDynamicObject(13007,-169.55877686,1122.63757324,-13.85860348,0.00000000,0.00000000,0.00000000); //object(sw_bankbits) (1)
- CreateDynamicObject(2946,-178.23849487,1130.93273926,-15.63390923,0.00000000,0.00000000,270.00000000); //object(cr_door_03) (1)
- CreateDynamicObject(2946,-175.06437683,1130.93164062,-15.64766598,0.00000000,0.25000000,90.00000000); //object(cr_door_03) (2)
- CreateDynamicObject(2773,-174.57998657,1117.81726074,-15.12306023,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (1)
- CreateDynamicObject(2773,-171.83224487,1117.81872559,-15.12306023,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (2)
- CreateDynamicObject(2773,-169.18222046,1117.84057617,-15.12306023,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (3)
- CreateDynamicObject(2773,-166.45680237,1117.86242676,-15.12306023,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (4)
- CreateDynamicObject(2773,-166.43067932,1122.87145996,-15.12306023,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (6)
- CreateDynamicObject(2773,-166.42584229,1120.95556641,-15.12306023,0.00000000,0.00000000,0.00000000); //object(cj_airprt_bar) (7)
- CreateDynamicObject(2773,-169.40882874,1121.90344238,-15.12306023,0.00000000,0.00000000,90.00000000); //object(cj_airprt_bar) (8)
- CreateDynamicObject(1892,-160.54783630,1119.30322266,-15.64766598,0.00000000,0.00000000,90.00000000); //object(security_gatsh) (1)
- CreateDynamicObject(1892,-176.12963867,1128.60852051,-15.64028835,0.00000000,0.00000000,180.00000000); //object(security_gatsh) (2)
- CreateDynamicObject(2773,-174.48625183,1128.58190918,-15.12306023,0.00000000,0.00000000,90.00000000); //object(cj_airprt_bar) (9)
- CreateDynamicObject(2773,-178.86152649,1128.59191895,-15.12306023,0.00000000,0.00000000,90.00000000); //object(cj_airprt_bar) (10)
- CreateDynamicObject(14576,-174.32218933,1116.14758301,-20.03787804,0.00000000,0.00000000,90.00000000); //object(vault_door) (1)
- CreateDynamicObject(1491,-159.56918335,1119.02844238,-15.62275314,0.00000000,0.00000000,90.00000000); //object(gen_doorint01) (1)
- CreateDynamicObject(1491,-159.56851196,1119.02783203,-13.12274933,0.00000000,0.00000000,90.00000000); //object(gen_doorint01) (2)
- CreateDynamicObject(1498,-158.52812195,1121.81921387,-19.82801056,0.00000000,0.00000000,0.00000000); //object(gen_doorext03) (1)
- CreateDynamicObject(1492,-159.62815857,1119.47827148,-19.84803009,0.00000000,0.00000000,90.00000000); //object(gen_doorint02) (1)
- CreateDynamicObject(1491,-159.63099670,1119.47558594,-15.82276154,0.00000000,90.00000000,89.99993896); //object(gen_doorint01) (3)
- CreateDynamicObject(1491,-157.01055908,1121.87268066,-15.82277298,0.00000000,90.00000000,180.00000000); //object(gen_doorint01) (4)
- CreateDynamicObject(14633,-166.35940552,1115.47033691,-19.32724380,0.00000000,0.00000000,0.00000000); //object(paperchase_bits2c) (1)
- CreateDynamicObject(14600,-166.24392700,1112.67041016,-19.39064980,0.00000000,0.00000000,266.00000000); //object(paperchase_bits2) (1)
- CreateDynamicObject(14600,-160.86161804,1112.85546875,-19.53336143,0.00000000,0.00000000,0.00000000); //object(paperchase_bits2) (3)
- CreateDynamicObject(1558,-162.79652405,1115.98632812,-20.24896812,0.00000000,0.00000000,0.00000000); //object(cj_cardbrd_pickup) (1)
- CreateDynamicObject(939,-165.97717285,1123.85693359,-18.48156166,0.00000000,0.00000000,0.00000000); //object(cj_df_unit) (1)
- CreateDynamicObject(939,-168.37129211,1119.65832520,-18.48156166,0.00000000,0.00000000,40.00000000); //object(cj_df_unit) (2)
- CreateDynamicObject(2634,-182.02372742,1116.16162109,-26.53380203,0.00000000,0.00000000,270.00000000); //object(ab_vaultdoor) (1)
- // [ Departamento de Polícia/FC ] = 49 objetos
- CreateDynamicObject(1536,239.56149292,116.06816864,1002.21875000,0.00000000,0.00000000,90.00000000); //object(gen_doorext15) (1)
- CreateDynamicObject(1536,239.51530457,119.06489563,1002.21875000,0.00000000,0.00000000,270.00000000); //object(gen_doorext15) (2)
- CreateDynamicObject(1536,238.91680908,115.92274475,1002.21875000,0.00000000,0.00000000,180.00000000); //object(gen_doorext15) (3)
- CreateDynamicObject(1536,235.90135193,115.88132477,1002.21875000,0.00000000,0.00000000,359.99450684); //object(gen_doorext15) (4)
- CreateDynamicObject(1536,239.55473328,126.59528351,1002.21875000,0.00000000,0.00000000,270.00000000); //object(gen_doorext15) (5)
- CreateDynamicObject(1536,239.58267212,123.59390259,1002.21875000,0.00000000,0.00000000,90.00000000); //object(gen_doorext15) (6)
- CreateDynamicObject(1536,253.26095581,126.75399780,1002.21875000,0.00000000,0.00000000,270.00000000); //object(gen_doorext15) (7)
- CreateDynamicObject(1536,253.29389954,123.73830414,1002.21875000,0.00000000,0.00000000,90.00000000); //object(gen_doorext15) (8)
- CreateDynamicObject(1536,253.18676758,107.57101440,1002.21875000,0.00000000,0.00000000,90.00000000); //object(gen_doorext15) (9)
- CreateDynamicObject(1536,253.15910339,110.57179260,1002.21875000,0.00000000,0.00000000,270.00000000); //object(gen_doorext15) (10)
- CreateDynamicObject(1536,253.69003296,115.81721497,1002.21875000,0.00000000,0.00000000,0.00000000); //object(gen_doorext15) (11)
- CreateDynamicObject(1536,256.68923950,115.85442352,1002.21875000,0.00000000,0.00000000,180.00000000); //object(gen_doorext15) (12)
- CreateDynamicObject(970,239.68080139,112.85557556,1004.42919922,0.00000000,180.00000000,268.00000000); //object(fencesmallb) (2)
- CreateDynamicObject(970,253.15802002,117.43113708,1004.42919922,0.00000000,179.99450684,267.99499512); //object(fencesmallb) (3)
- CreateDynamicObject(1536,212.05882263,139.23364258,1001.98480225,0.00000000,0.00000000,180.00000000); //object(gen_doorext15) (13)
- CreateDynamicObject(1536,209.04597473,139.19004822,1001.98480225,0.00000000,0.00000000,359.99450684); //object(gen_doorext15) (14)
- CreateDynamicObject(1536,207.32229614,140.93591309,1001.98480225,0.00000000,0.00000000,89.99450684); //object(gen_doorext15) (15)
- CreateDynamicObject(1536,207.27909851,143.93394470,1001.98480225,0.00000000,0.00000000,269.99450684); //object(gen_doorext15) (16)
- CreateDynamicObject(1536,222.56431580,139.23464966,1001.98480225,0.00000000,0.00000000,179.99450684); //object(gen_doorext15) (17)
- CreateDynamicObject(1536,219.54986572,139.20614624,1001.98480225,0.00000000,0.00000000,359.98901367); //object(gen_doorext15) (18)
- CreateDynamicObject(2885,204.58561707,165.63418579,1008.73431396,0.00000000,0.00000000,89.99450684); //object(xref_garagedoor) (2)
- CreateDynamicObject(2885,204.60183716,173.38400269,1008.73431396,0.00000000,0.00000000,89.99450684); //object(xref_garagedoor) (3)
- CreateDynamicObject(2885,230.17866516,156.28402710,1008.73431396,0.00000000,0.00000000,179.99450684); //object(xref_garagedoor) (4)
- CreateDynamicObject(1536,225.70831299,156.07290649,1001.98480225,0.00000000,0.00000000,359.98901367); //object(gen_doorext15) (19)
- CreateDynamicObject(1536,204.32760620,168.73007202,1001.98480225,0.00000000,0.00000000,269.98901367); //object(gen_doorext15) (20)
- CreateDynamicObject(1566,228.25381470,152.81158447,1003.53881836,0.00000000,0.00000000,270.00000000); //object(cj_ws_door) (1)
- CreateDynamicObject(1566,228.24824524,149.64714050,1003.53881836,0.00000000,0.00000000,90.00000000); //object(cj_ws_door) (2)
- CreateDynamicObject(1566,265.18566895,110.34418488,1009.33569336,0.00000000,0.00000000,90.00000000); //object(cj_ws_door) (4)
- CreateDynamicObject(1566,265.20278931,113.51905060,1009.33569336,0.00000000,0.00000000,270.00000000); //object(cj_ws_door) (5)
- CreateDynamicObject(2395,264.98007202,109.47619629,1003.61718750,0.00000000,0.00000000,0.00000000); //object(cj_sports_wall) (1)
- CreateDynamicObject(2395,262.82284546,109.46604919,1003.61718750,0.00000000,0.00000000,0.00000000); //object(cj_sports_wall) (2)
- CreateDynamicObject(2395,262.29858398,107.51044464,1003.61718750,0.00000000,0.00000000,270.00000000); //object(cj_sports_wall) (3)
- CreateDynamicObject(1502,262.38397217,109.52159119,1003.61718750,0.00000000,0.00000000,270.00000000); //object(gen_doorint04) (1)
- CreateDynamicObject(1649,264.55203247,109.58245850,1005.28778076,0.00000000,0.00000000,180.00000000); //object(wglasssmash) (1)
- CreateDynamicObject(1649,266.25213623,109.56593323,1005.28778076,0.00000000,0.00000000,179.99450684); //object(wglasssmash) (2)
- CreateDynamicObject(2395,262.50518799,104.76976013,1003.61718750,0.00000000,0.00000000,90.00000000); //object(cj_sports_wall) (4)
- CreateDynamicObject(2604,266.34057617,110.17700958,1004.41406250,0.00000000,0.00000000,180.00000000); //object(cj_police_counter) (1)
- CreateDynamicObject(2611,268.12295532,111.15653229,1006.05084229,0.00000000,0.00000000,270.00000000); //object(police_nb1) (1)
- CreateDynamicObject(2612,263.43713379,112.31493378,1005.76562500,0.00000000,0.00000000,0.00000000); //object(police_nb2) (1)
- CreateDynamicObject(2614,246.50411987,118.27032471,1008.90069580,0.00000000,0.00000000,0.00000000); //object(cj_us_flag) (1)
- CreateDynamicObject(2885,263.68145752,121.72054291,1010.32806396,0.00000000,0.00000000,90.00000000); //object(xref_garagedoor) (5)
- CreateDynamicObject(2885,270.29031372,115.91053772,1010.32806396,0.00000000,0.00000000,180.00000000); //object(xref_garagedoor) (6)
- CreateDynamicObject(2885,271.69418335,118.12178040,1010.32806396,0.00000000,0.00000000,89.99450684); //object(xref_garagedoor) (7)
- CreateDynamicObject(1516,266.40213013,107.85986328,1003.61718750,0.00000000,0.00000000,0.00000000); //object(dyn_table_03) (1)
- CreateDynamicObject(1721,267.95776367,107.81980896,1003.61718750,0.00000000,0.00000000,90.00000000); //object(est_chair1) (1)
- CreateDynamicObject(1663,264.75106812,107.46885681,1004.07739258,0.00000000,0.00000000,90.00000000); //object(swivelchair_b) (1)
- CreateDynamicObject(1663,264.75430298,108.18643188,1004.07739258,0.00000000,0.00000000,87.99511719); //object(swivelchair_b) (2)
- CreateDynamicObject(974,243.01005554,119.68070221,1006.99645996,0.00000000,0.00000000,0.00000000); //object(tall_fence) (3)
- CreateDynamicObject(974,249.63795471,119.65837097,1006.99645996,0.00000000,0.00000000,0.00000000); //object(tall_fence) (4)
- // [ total de objetos no server = 188 ] // sempre adicionar mais objetos quando colocá-los
- // [ Pikcups ]
- CreateDynamicPickup(1239, 23, -207.6064,1119.2050, 20.4297); // Entrada Prefeitura ~ Fort Carson
- CreateDynamicPickup(1239, 23, -207.7033,1119.5430, 12.2688); // Saída Prefeitura ~ Fort Carson
- CreateDynamicPickup(1239, 23, -211.3374,1127.8392, 12.2688); // Obter documentos ~ Fort Carson
- CreateDynamicPickup(1239, 23, -179.6620,1133.3715,19.7422); // Entrada Banco ~ Fort Carson
- CreateDynamicPickup(1239, 23, -176.4678,1129.9913,-14.6403); // Saída Banco ~ Fort Carson
- CreateDynamicPickup(1239, 23, -217.8412,979.1472,19.5040); // Entrada DP ~ Fort Carson
- CreateDynamicPickup(1239, 23, 246.4066,107.5535,1003.2188); // Saída Banco ~ Fort Carson
- CreateDynamicPickup(1239, 23, -175.5683,1115.0616,-19.4555); // Atalho Banco [ Sc ~ Cb ] ~ Fort Carson
- CreateDynamicPickup(1239, 23, 239.9455,117.7430,1003.2257); // Entrada esquerda ~ DP ~ 1
- CreateDynamicPickup(1239, 23, 252.1524,109.1200,1003.2188); // Entrada direita ~ DP ~ 1
- CreateDynamicPickup(1239, 23, 210.5085,140.1983,1003.0234); // Entrada esquerda ~ DP ~ 2
- CreateDynamicPickup(1239, 23, 254.3451,109.0811,1003.2257); // Entrada direita ~ DP ~ 2
- CreateDynamicPickup(1239, 23, 252.8684,125.3000,1003.2188); // Entrada Bancada direita ~ 1
- CreateDynamicPickup(1239, 23, 253.6967,125.2000,1003.2188); // Entrada Bancada direita ~ 2
- CreateDynamicPickup(1239, 23, 255.2427,115.0590,1003.2188); // EntDirS1
- CreateDynamicPickup(1239, 23, 255.1188,116.7185,1003.2188); // EntDirS2
- CreateDynamicPickup(1239, 23, 207.7065,142.4978,1003.0234); // EntEsqS1
- CreateDynamicPickup(1239, 23, 237.3459,115.0957,1003.2188); // EntEsqS2
- CreateDynamicPickup(1239, 23, 240.5758,125.1392,1003.2257); // EntEsqB1
- CreateDynamicPickup(1239, 23, 221.0409,140.0483,1003.0234); // EntEsqB2
- CreateDynamicPickup(1239, 23, 227.4080,151.1664,1003.0234); // EntCorEsc1
- CreateDynamicPickup(1239, 23, 264.5517,112.0055,1008.8203); // EntCorEsc2
- CreateDynamicPickup(1239, 23, 226.5256,155.1976,1003.0234); // EntCorCel1
- CreateDynamicPickup(1239, 23, 203.4983,167.9230,1003.0234); // EntCorCel2
- // [ total de pickups no server = 24 ] // sempre adicionar mais pickups quando colocá-los
- // [ Textos 3D Label ]
- Create3DTextLabel("Prefeitura de Fort Carson\nPressione 'F' para entrar.", COR_TEXTO3D, -207.6064, 1119.2050, 21.4297, 5.0, 0);
- Create3DTextLabel("[SAÍDA]\nPressione 'F' para sair.", COR_TEXTO3D, -207.7033, 1119.5430, 13.2688, 5.0, 0);
- Create3DTextLabel("Cartório da prefeitura\nPressione 'F' para tirar os documentos.", COR_TEXTO3D, -211.3374,1127.8392,12.2688, 5.0, 0);
- Create3DTextLabel("Banco de Fort Carson\nPressione 'F' para entrar.", COR_TEXTO3D, -179.6620,1133.3715,19.7422, 5.0, 0);
- Create3DTextLabel("[SAÍDA]\nPressione 'F' para sair.", COR_TEXTO3D, -176.4678,1129.9913,-14.6403, 5.0, 0);
- Create3DTextLabel("Departamento de Polícia de Fort Carson\nPressione 'F' para entrar.", COR_TEXTO3D, -217.8412,979.1472,19.5040, 5.0, 0);
- Create3DTextLabel("[SAÍDA]\nPressione 'F' para sair.", COR_TEXTO3D, 246.4066,107.5535,1003.2188, 5.0, 0);
- Create3DTextLabel("Bifurcação para o cofre\nPressione 'F' para pular.", COR_TEXTO3D, -175.5683,1115.0616,-19.4555, 5.0, 0);
- // [ CARROS ]
- AddStaticVehicleEx(438,-158.55610657,1084.10156250,19.94218826,14.00000000,6,1,60000*TEMPORESPAWN); //[ 1 ] SÓ PRA TESTES
- //==============================================
- // SE POR MAIS CARROS ADICIONA OS VALORES NA DEFINE "NDECARROS"
- for(new car = 1; car <= MAX_VEHICLES; car++)
- {
- Tanque[car] = MaxGas;
- GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(car,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF);
- SemGas[car] = 0;
- }
- format(str, sizeof(str), "Configs/NumeroDeRegistrados.ini");
- if(dini_Exists(str))
- {
- TotalDeRegistrados = dini_Int(str, "Registrados");
- return 1;
- }
- else
- {
- dini_Create(str);
- dini_IntSet(str,"Registrados", 0);
- }
- return 1;
- }
- public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
- {
- if(newkeys == KEY_SECONDARY_ATTACK)
- {
- OnPlayerCommandText(playerid,"/entrar");
- OnPlayerCommandText(playerid,"/sair");
- OnPlayerCommandText(playerid, "/sairdoveiculokrlarromvadodemerdaqq");
- if(PlayerToPoint(1.0, playerid, -212.7301,1109.2706,12.2688))
- {
- OnPlayerCommandText(playerid,"/obterinformaçõesporratioeusoufodaemqq");
- }
- if(PlayerToPoint(1.0, playerid, -211.3374,1127.8392,12.2688))
- {
- OnPlayerCommandText(playerid,"/obterdocumentoskrlmonsterviadodokctqq");
- }
- /*if(PlayerToPoint(1.0, playerid, -211.3374,1127.8392,12.2688)) // REDEFINIR
- {
- OnPlayerCommandText(playerid,"/comprar");
- }*/
- if(PlayerToPoint(1.0, playerid, 568.5528,-587.1313,6.0749)) // REDEFINIR
- {
- OnPlayerCommandText(playerid,"/equipar");
- }
- if(PlayerToPoint(1.0, playerid, 596.4583,-557.9193,6.0387)) // REDEFINIR
- {
- OnPlayerCommandText(playerid,"/batercartao");
- }
- if(PlayerToPoint(1.0, playerid, 2278.2593,-80.7719,1.3218)) // REDEFINIR
- {
- OnPlayerCommandText(playerid, "/empregos");
- }
- }
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- if(PlayerInfo[playerid][pATrabalhando] == 1)
- {
- TogglePlayerControllable(playerid, 1);
- Delete3DTextLabel(Texto3DAdmin[playerid]);
- Texto3DAdmin[playerid] = Create3DTextLabel("Admin: Em que posso serví-lo?",0xFF000099,0,0,0,50,-1,1);
- Attach3DTextLabelToPlayer(Texto3DAdmin[playerid], playerid, 0,0,0);
- }
- if(newstate == PLAYER_STATE_ONFOOT)
- {
- TogglePlayerControllable(playerid, 1);
- if(CriouVeiculo[playerid] == 1)
- {
- CriouVeiculo[playerid] = 0;
- }
- }
- if(newstate == PLAYER_STATE_PASSENGER)
- {
- }
- if(newstate == PLAYER_STATE_DRIVER)
- {
- }
- return 1;
- }
- // [ Atualizações constantes ]
- public atualizarserver()
- {
- new gasstring[128];
- new nomedokr[128];
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(GetPlayerSpeed(i, true) >= 350)
- {
- format(gasstring, sizeof(gasstring), "{FF0000}LOG{A9C4E4}: {FF0000}O jogador %s(%d) está correndo à %dkm/h, use /espiar nele pode SpeedHack.",NomeDoJogador(i),i,GetPlayerSpeed(i, true));
- MensagemAdmin(COR_INFO,gasstring,1);
- printf("%s", gasstring);
- }
- MostrarAdmin(i);
- if(VerTuto[i] == 1)
- {
- if(TempoTuto[i] >= 1)
- {
- TogglePlayerControllable(i, 0);
- TempoTuto[i] += 1;
- if(TempoTuto[i] == 3)
- {
- LimparChat(i, 125);
- SCM(i, COR_INFO, "{33CCFF}:: Introdução ::");
- SCM(i, COR_INFO, "Este tutorial irá falar sobre as principais regras do nosso servidor, preste atenção, pois será muito útil.");
- SCM(i, COR_INFO, "Todos os novos jogadores precisam e devem saber o que pode e o que não se pode fazer.");
- }
- else if(TempoTuto[i] == 18)
- {
- LimparChat(i, 125);
- SCM(i, COR_INFO, "{33CCFF}:: Tópicos ::");
- SCM(i, COR_INFO, "- In Character(IC)");
- SCM(i, COR_INFO, "- Out of Character(OOC)");
- SCM(i, COR_INFO, "- Metagame(MG)");
- SCM(i, COR_INFO, "- Powergame(PG)");
- SCM(i, COR_INFO, "- Kills(RK, CK)/Anti-RPs(BH, NJ)");
- SCM(i, COR_INFO, "- Como pedir ajuda");
- SCM(i, COR_INFO, "- Considerações finais");
- }
- else if(TempoTuto[i] == 28)
- {
- LimparChat(i, 125);
- SCM(i, COR_INFO, "{33CCFF}:: In Character(IC) ::");
- SCM(i, COR_INFO, "O {FFFFFF}in character{A9C4E4} é o canal no qual você interpreta o seu {FF5555}PERSONAGEM{A9C4E4}.");
- SCM(i, COR_INFO, "Neste canal você não pode usar abreviações digitais, exemplos: blz, vc, lol, wtf. E assim por diante.");
- SCM(i, COR_INFO, "Você deve interpretar seu personagem de forma mais real possível, inclusive evitando erros gramaticáis.");
- SCM(i, COR_INFO, "Exemplos:");
- format(nomedokr, sizeof(nomedokr), "{FFFFFF}%s diz: Senhor, você poderia me ajudar em uma coisa?", NomeDoJogador(i));
- SCM(i, COR_INFO, nomedokr);
- format(nomedokr, sizeof(nomedokr), "{FFFFFF}%s diz: Policial, o senhor precisa me ajudar, eu fui assaltado.", NomeDoJogador(i));
- SCM(i, COR_INFO, nomedokr);
- SCM(i, COR_INFO, "Se você seguir os exemplos acima, você já estará apto a usar o {FFFFFF}In Character{A9C4E4} de forma clara.");
- }
- else if(TempoTuto[i] == 63)
- {
- LimparChat(i, 125);
- SCM(i, COR_INFO, "{33CCFF}:: Out of Character(OOC) ::");
- SCM(i, COR_INFO, "Já no {939393}Out of Character{A9C4E4} é diferente, é um canal que você interpreta {FF5555}A SI MESMO{A9C4E4}.");
- SCM(i, COR_INFO, "Neste canal você pode usar abreviações digitais, pedir ajuda com algum comando ou anim, enfim...Fora do seu personagem.");
- SCM(i, COR_INFO, "Você não pode mentir, ou xingar algum player ou administrador, caso isso ocorra, poderá resultar em banimento.");
- SCM(i, COR_INFO, "Exemplos:");
- format(nomedokr, sizeof(nomedokr),"{939393}(( %s diz: ei kr, tu pode me ajudar? sab ql o cmd pra sentar? :x ))", NomeDoJogador(i));
- SCM(i, COR_INFO, nomedokr);
- format(nomedokr, sizeof(nomedokr),"{939393}(( %s diz: af mãn, n sei ond eu pego emprego? sabe onde tem? DD: ))", NomeDoJogador(i));
- SCM(i, COR_INFO, nomedokr);
- }
- else if(TempoTuto[i] == 88)
- {
- LimparChat(i, 125);
- SCM(i, COR_INFO, "{33CCFF}:: Metagame(MG) ::");
- SCM(i, COR_INFO, "Metagame é quando acontece do jogador usar informações {939393}OOC{A9C4E4} em {FFFFFF}IC{A9C4E4}.");
- SCM(i, COR_INFO, "Um exemplo clássico, é o jogador ver o nome de um outro jogador sobre sua cabeça e chegar conversando com ele");
- SCM(i, COR_INFO, "falando o nome dele como se já se conhecessem. O que não é correto, pois, na vida real, as pessoas não possuem nomes");
- SCM(i, COR_INFO, "sobre a cabeça. Portanto, chegue em {FFFFFF}IC{A9C4E4} perguntando o nome dela.");
- SCM(i, COR_INFO, "Existem muitos exemplos de Metagame, mas lembre-se, metagame é usar informações {939393}OOC{A9C4E4} em {FFFFFF}IC{A9C4E4}.");
- SCM(i, COR_INFO, "Evite isso.");
- LimparChat(i, 2);
- }
- else if(TempoTuto[i] == 113)
- {
- LimparChat(i, 125);
- SCM(i, COR_INFO, "{33CCFF}:: Powergame(PG) ::");
- SCM(i, COR_INFO, "Power game é fazer algo totalmente além da realidade, ou uma ação que não dê chances de defesa à outro jogador.");
- SCM(i, COR_INFO, "E essas coisas são comuns, quando um novato aprende ele acaba cometendo esses atos. Veremos agora exemplos de Powergame.");
- SCM(i, COR_INFO, "Exemplos: {888888}(( Usando /eu ))");
- format(nomedokr, sizeof(nomedokr), "{C2A2DA}* %s dá um soco em Renan_Ítalo e ele evapora.", NomeDoJogador(i));
- SCM(i, COR_INFO, nomedokr);
- format(nomedokr, sizeof(nomedokr), "{C2A2DA}* %s abre os braços, começa a girar e perfura o solo.", NomeDoJogador(i));
- SCM(i, COR_INFO, nomedokr);
- SCM(i, COR_INFO, "Essas duas últimas situações, são dois exemplos de Powergame. Um não dá chances de defesa à outro jogador");
- SCM(i, COR_INFO, "já o outro, é algo que foge da nossa realidade. Agora vamos ver um exemplo de non-Powergame.");
- SCM(i, COR_INFO, "Exemplo: {888888}(( Usando /eu ))");
- format(nomedokr, sizeof(nomedokr), "{C2A2DA}* %s leva sua mão até o peito de Renan_Ítalo, e começa a socá-lo.");
- SCM(i, COR_INFO, nomedokr);
- }
- else if(TempoTuto[i] == 138)
- {
- LimparChat(i, 125);
- SCM(i, COR_INFO, "{33CCFF}:: Kills(RevengeKill, CharacterKill)/Anti-RPs(BunnyHop, NinjaJack) ::");
- SCM(i, COR_INFO, "Kills:");
- SCM(i, COR_INFO, "Revenge Kill: Ocorre quando um jogador X é morto por um jogador Y, e o jogador X volta ao local do crime e mata o jogador Y.");
- SCM(i, COR_INFO, "Não faça isso, pois quando você morre você esquece os últimos acontecimentos em {FFFFFF}IC{A9C4E4}.");
- SCM(i, COR_INFO, "Character Kill: Ocorre quando um jogador é assassinado por motivos {FFFFFF}IC{A9C4E4}, e caso a solicitação seja feita");
- SCM(i, COR_INFO, "e aprovada a conta do jogador será bloqueada, ou seja, a conta deixará de existir.");
- SCM(i, COR_INFO, "BunnyHop: Ocorre quando um jogador corre pulando para chegar mais rápido ao seu destino, e você não faz isso na vida real.");
- SCM(i, COR_INFO, "NinjaJack: Ocorre quando um jogador simplesmente entra em um veículo que não é dele sem usar o /eu.");
- LimparChat(i, 2);
- }
- else if(TempoTuto[i] == 153)
- {
- LimparChat(i, 125);
- SCM(i, COR_INFO, "{33CCFF}:: Solicitando ajuda ::");
- SCM(i, COR_INFO, "Para solicitar ajuda é fácil, basta digitar /ajuda e clicar em ''Solicitar administrador''");
- SCM(i, COR_INFO, "Caso nenhum administrador lhe envie uma MP, ou vá até você, aguarde, pois eles devem estar ocupados.");
- SCM(i, COR_INFO, "Se ocorrer FLOOD na solicitação, o jogador será severamente punido, qualquer tentativa de FLOOD, o jogador");
- SCM(i, COR_INFO, "será punido. Outra, caso um administrador esteja jogando, não envie uma MP para ele, pedindo ajuda, caso ele");
- SCM(i, COR_INFO, "quiser, poderá te punir.");
- LimparChat(i, 4);
- }
- else if(TempoTuto[i] == 178)
- {
- LimparChat(i, 125);
- SCM(i, COR_INFO, "{33CCFF}:: Considerações finais ::");
- format(nomedokr,sizeof(nomedokr), "A equipe %s te deseja um bom jogo, e esperamos que fique de fato em nosso servidor", SCRIPT_EQUIPE);
- SCM(i, COR_INFO, nomedokr);
- LimparChat(i, 3);
- format(nomedokr, sizeof(nomedokr), " {FFFFFF}Copyright {880000}FortCarson RolePlay{FFFFFF}: {33CCFF}%s", SCRIPT_CRIADOR);
- SCM(i, COR_INFO, nomedokr);
- }
- else if(TempoTuto[i] == 193)
- {
- if(VendoTutTemp[i] == 1)
- {
- VerTuto[i] = 0;
- TempoTuto[i] = 0;
- SetPlayerVirtualWorld(i,0);
- LimparChat(i, 125);
- PlayerInfo[i][pReg] = 1;
- PlayerInfo[i][pTut] = 1;
- SemCMD[i] = 0;
- TogglePlayerControllable(i, 1);
- SetCameraBehindPlayer(i);
- SetPlayerPos(i, -212.7301,1109.2706,12.2688);
- AtualizarJogador(i);
- }
- else
- {
- VerTuto[i] = 0;
- TempoTuto[i] = 0;
- SetPlayerVirtualWorld(i,0);
- LimparChat(i, 125);
- PlayerInfo[i][pReg] = 1;
- PlayerInfo[i][pTut] = 1;
- SemCMD[i] = 0;
- TogglePlayerControllable(i, 1);
- SpawnPlayer(i);
- SpawnarJogador(i);
- AtualizarJogador(i);
- SCM(i, COR_INFO, "Bem-vindo(a) ao FortCarson:RolePlay");
- SCM(i, COR_INFO, "================================================================================");
- format(nomedokr, sizeof(nomedokr), "Dono: {33CCFF}%s", SCRIPT_CRIADOR);
- SCM(i, COR_INFO, nomedokr);
- SCM(i, COR_INFO, "Gênero: {FFFFFF}RolePlay");
- SCM(i, COR_INFO, "Fundação: {4169E1}21/10/2011");
- SCM(i, COR_INFO, "IP: {4169E1}Em breve");
- SCM(i, COR_INFO, "TeamSpeak: {4169E1}64.31.29.69{A9C4E4}:{4169E1}9987");
- SCM(i, COR_INFO, "================================================================================");
- }
- }
- }
- }
- }
- return 1;
- }
- //================ [ OnDialogResponse ] =================
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- new string[128];
- TogglePlayerControllable(playerid, 1);
- new armabranca, municao, armasecundaria, municao1, armaprimaria, armaprimaria1, armaprimaria2, armaprimaria3, municao2, municao21, municao22, municao23, armaulti1, municao31, armaulti2, municao32, armaulti3, municao33;
- if(dialogid == 1)
- {
- if(response)
- {
- strmid(Digitou[playerid], inputtext, 0, strlen(inputtext), 255);
- if(!strcmp(Digitou[playerid], "Nada", true))
- {
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "Tens que digitar uma senha", "Logar", "");
- }
- else
- {
- new tmppass[64];
- strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
- CarregarJogador(playerid, tmppass);
- }
- }
- else
- {
- SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: Você foi kickado do servidor, motivo: Recusou logar.");
- format(string, sizeof(string), "{33CCFF}(!) {A9C4E4}: O jogador %s foi kickado do servidor por não ter logado.", NomeDoJogador(playerid));
- MensagemAdmin(COR_INFO, string, 1);
- Kick(playerid);
- AtualizarJogador(playerid);
- }
- }
- if(dialogid == 2)
- {
- if(response == 1)
- {
- if(strlen(inputtext) < 3)
- {
- ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FF0000}Sua senha deve contar mais de 3 caractéres.", "Registrar", "");
- return 1;
- }
- if(strlen(inputtext) > 20)
- {
- ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FF0000}Sua senha deve contar menos de 20 caractéres.", "Registrar", "");
- return 1;
- }
- RegistrarJogador(playerid, inputtext);
- }
- else
- {
- Kick(playerid);
- AtualizarJogador(playerid);
- }
- }
- if(dialogid == 3)
- {
- if(response == 0)
- {
- ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "{90EE90}FortCarson:RolePlay ~ {FFFFFF}Por favor, escolha seu sexo. (IC)", "{6495ED}Masculino\n{FF00FF}Feminino", "Ok", "");
- return 1;
- }
- if(response >= 1)
- {
- if(listitem == 0)
- {
- SetPlayerSkin(playerid, 26);
- PlayerInfo[playerid][pSkin] = 26;
- PlayerInfo[playerid][pSexo] = 1;
- AtualizarJogador(playerid);
- ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "{90EE90}Ok, você é homem.", "{FFFFFF}Qual o dia do seu nascimento? (IC)", "Ok", "Voltar");
- }
- if(listitem == 1)
- {
- SetPlayerSkin(playerid, 41);
- PlayerInfo[playerid][pSkin] = 41;
- PlayerInfo[playerid][pSexo] = 2;
- AtualizarJogador(playerid);
- ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "{90EE90}Ok, você é mulher.", "{FFFFFF}Qual o dia do seu nascimento? (IC)", "Ok", "Voltar");
- }
- }
- }
- if(dialogid == 4)
- {
- if(response == 0)
- {
- ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "{90EE90}FortCarson:RolePlay ~ {FFFFFF}Por favor, escolha seu sexo. (IC)", "{6495ED}Masculino\n{FF00FF}Feminino", "Ok", "");
- return 1;
- }
- if(response == 1)
- {
- if(!EUmNumero(inputtext))
- {
- ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Qual o dia do seu nascimento? (IC)\n\n{FF0000}Somente números, por favor.", "Ok", "Voltar");
- return 1;
- }
- if(strval(inputtext) > 0 && strval(inputtext) < 32 && strlen(inputtext) > 0)
- {
- PlayerInfo[playerid][pDiaNascimento] = strval(inputtext);
- AtualizarJogador(playerid);
- ShowPlayerDialog(playerid, 5, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Qual o mês do seu nascimento? (IC)", "Ok", "Voltar");
- }
- else if(strval(inputtext) < 1 || strval(inputtext) > 31)
- {
- ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Qual o dia do seu nascimento? (IC)\n\n{FF0000}Este dia não existe.", "Ok", "Voltar");
- return 1;
- }
- }
- }
- if(dialogid == 5)
- {
- if(response == 0)
- {
- ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Qual o dia do seu nascimento? (IC)", "Ok", "Voltar");
- return 1;
- }
- if(response == 1)
- {
- if(!EUmNumero(inputtext))
- {
- ShowPlayerDialog(playerid, 5, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Qual o mês do seu nascimento? (IC)\n\n{FF0000}Somente números, por favor.", "Ok", "Voltar");
- return 1;
- }
- if(strval(inputtext) > 0 && strval(inputtext) < 13 && strlen(inputtext) > 0)
- {
- PlayerInfo[playerid][pMesNascimento] = strval(inputtext);
- AtualizarJogador(playerid);
- ShowPlayerDialog(playerid, 6, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Qual o ano do seu nascimento? (IC)", "Ok", "Voltar");
- }
- else if(strval(inputtext) < 0 || strval(inputtext) > 12)
- {
- ShowPlayerDialog(playerid, 5, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Qual o mês do seu nascimento? (IC)\n\n{FF0000}Este mês não existe.", "Ok", "Voltar");
- return 1;
- }
- }
- }
- if(dialogid == 6)
- {
- if(response == 0)
- {
- ShowPlayerDialog(playerid, 5, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Qual o mes do seu nascimento? (IC)", "Ok", "Voltar");
- return 1;
- }
- if(response == 1)
- {
- if(!EUmNumero(inputtext))
- {
- ShowPlayerDialog(playerid, 6, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Qual o ano do seu nascimento? (IC)\n\n{FF0000}Somente números, por favor.", "Ok", "");
- return 1;
- }
- if(strval(inputtext) > 1913 && strval(inputtext) < 1974 && strlen(inputtext) > 0)
- {
- PlayerInfo[playerid][pAnoNascimento] = strval(inputtext);
- getdate(anonormal, mesnormal, dianormal);
- new checaridadedomanolo = anonormal - PlayerInfo[playerid][pAnoNascimento];
- if(PlayerInfo[playerid][pMesNascimento] > mesnormal)
- {
- checaridadedomanolo -= 1;
- }
- else if(PlayerInfo[playerid][pMesNascimento] == mesnormal && PlayerInfo[playerid][pDiaNascimento] > dianormal)
- {
- checaridadedomanolo -= 1;
- }
- PlayerInfo[playerid][pIdade] = checaridadedomanolo - 19;
- AtualizarJogador(playerid);
- format(string, sizeof(string), "Ok, você tem %d anos ~ \n\n{FFFFFF}Como você veio para Fort Carson? (IC)", PlayerInfo[playerid][pIdade]);
- ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, string, "Nativo [ Fort Carson ]\nLegalmente [ Red County ]\nIlegalmente [ Liberty City ]", "Ok", "");
- }
- else if(strval(inputtext) < 1913 || strval(inputtext) > 1974)
- {
- ShowPlayerDialog(playerid, 6, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Qual o ano do seu nascimento? (IC)\n\n{FF0000}Escolha um ano de nascimento entre: 1913 - 1974", "Ok", "Voltar");
- return 1;
- }
- }
- }
- if(dialogid == 7)
- {
- if(response == 0)
- {
- ShowPlayerDialog(playerid, 6, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Qual o ano do seu nascimento? (IC)", "Ok", "Voltar");
- return 1;
- }
- if(response >= 1)
- {
- SetPlayerCameraPos(playerid, -303.5813,1051.5614,79.0741);
- SetPlayerCameraLookAt(playerid, -164.1154,1101.6588,19.5938);
- SetPlayerPos(playerid, -304.0317,1051.3651,20.8353);
- if(listitem == 0)
- {
- PlayerInfo[playerid][pOrigem] = 1;
- if(PlayerInfo[playerid][pSexo] == 1)
- {
- SetPlayerSkin(playerid, 161);
- PlayerInfo[playerid][pSkin] = 161;
- }
- else if(PlayerInfo[playerid][pSexo] == 2)
- {
- SetPlayerSkin(playerid, 131);
- PlayerInfo[playerid][pSkin] = 131;
- }
- ShowPlayerDialog(playerid, 8, DIALOG_STYLE_MSGBOX, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Você é natural de {FF0000}Fort Carson{FFFFFF}, tens certeza de que quer ser nativo?", "Sim", "Não");
- }
- if(listitem == 1)
- {
- PlayerInfo[playerid][pOrigem] = 2;
- if(PlayerInfo[playerid][pSexo] == 1)
- {
- SetPlayerSkin(playerid, 26);
- PlayerInfo[playerid][pSkin] = 26;
- }
- else if(PlayerInfo[playerid][pSexo] == 2)
- {
- SetPlayerSkin(playerid, 41);
- PlayerInfo[playerid][pSkin] = 41;
- }
- ShowPlayerDialog(playerid, 8, DIALOG_STYLE_MSGBOX, "{90EE90}FortCarson:RolePlay", "{FFFFFF}Você iniciará na {FF0000}estação{FFFFFF}, tens certeza de que quer vir legalmente?", "Sim", "Não");
- }
- if(listitem == 2)
- {
- PlayerInfo[playerid][pOrigem] = 3;
- if(PlayerInfo[playerid][pSexo] == 1)
- {
- SetPlayerSkin(playerid, 184);
- PlayerInfo[playerid][pSkin] = 184;
- }
- else if(PlayerInfo[playerid][pSexo] == 2)
- {
- SetPlayerSkin(playerid, 157);
- PlayerInfo[playerid][pSkin] = 157;
- }
- ShowPlayerDialog(playerid, 8, DIALOG_STYLE_MSGBOX, "{90EE90}FortCarson:RolePlay", "Você iniciará nas {FF0000}docas{A9C4E4}, tens certeza de que quer vir ilegamente?", "Sim", "Não");
- }
- }
- }
- if(dialogid == 8)
- {
- if(response)
- {
- ShowPlayerDialog(playerid, 9, DIALOG_STYLE_MSGBOX, "Tens experiência em servidores de RP?", "Seja sincero", "sim", "não");
- }
- else
- {
- ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Como você veio para Fort Carson? (IC)", "Nativo [ Fort Carson ]\nLegalmente [ Red County ]\nIlegalmente [ Liberty City ]", "Ok", "Voltar");
- return 1;
- }
- }
- if(dialogid == 9)
- {
- if(response)
- {
- LimparChat(playerid, 125);
- PlayerInfo[playerid][pReg] = 1;
- PlayerInfo[playerid][pTut] = 1;
- TempoTuto[playerid] = 0;
- VerTuto[playerid] = 0;
- SpawnPlayer(playerid);
- SpawnarJogador(playerid);
- AtualizarJogador(playerid);
- }
- else
- {
- LimparChat(playerid, 125);
- PlayerInfo[playerid][pCalado] = 1;
- SemCMD[playerid] = 1;
- TempoTuto[playerid] = 1;
- VerTuto[playerid] = 1;
- SpawnarJogador(playerid);
- AtualizarJogador(playerid);
- SetPlayerPos(playerid, -210.7981,1131.9382,12.2688);
- SetPlayerCameraPos(playerid, -211.5025,1128.8004,13.4459);
- SetPlayerCameraLookAt(playerid, -211.5025,1128.8004,13.4458);
- return 1;
- }
- }
- if(dialogid == GPS)
- {
- if(response)
- {
- format(string, sizeof(string), "* %s, com seu GPS, ajusta-o para determinada posição.", NomeDoJogador(playerid));
- ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
- if(listitem == 0)
- {
- SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: Prefeitura de Fort Carson marcada no mapa.");
- SetPlayerCheckpoint(playerid, -207.6064,1119.2050,20.4297,8.0);//Prefeitura ~ FortCarson
- GpsCheckPoint[playerid] = CHECK_CHEGOU;
- }
- else if(listitem == 1) // SEMPRE POR ESSE POR ÚLTIMO, INCLUSIVE NO VALOR.
- {
- SCM(playerid, COR_INFO, "{FFFF00}(!) {D2D2FF}: GPS desativado.");
- DisablePlayerCheckpoint(playerid); //GPS DESSLIGADO
- }
- }
- }
- if(dialogid == COMPRAR247PALOMINO)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(PlayerInfo[playerid][pCNumero] == 0)
- {
- if(PlayerInfo[playerid][pMoney] < 400) return SCM(playerid, COR_INFO," {FF0000}(!) {AFAFAF}: Você não tem dinheiro suficiente");
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- new numerodotelrandomico = 30000000 + random(8999999);
- PlayerInfo[playerid][pCNumero] = numerodotelrandomico;
- format(string, sizeof(string), "{FFFF00}Caixa{A9C4E4} diz: Obrigado por adquirir um celular, número: %d. | valor: US$ 399,90", numerodotelrandomico);
- GivePlayerMoney(playerid, -400);
- PlayerInfo[playerid][pMoney] -= 400;
- SCM(playerid, COR_INFO, string);
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /ligar [NÚMERO]");
- AtualizarJogador(playerid);
- return 1;
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você já tem um celular, caso queira mudar o número digite, /ligar 850");
- return 1;
- }
- }
- if(listitem == 1)
- {
- if(PlayerInfo[playerid][pAgenda] == 0)
- {
- if(PlayerInfo[playerid][pMoney] < 30) return SCM(playerid, COR_INFO," {FF0000}(!) {AFAFAF}: Você não tem dinheiro suficiente");
- SCM(playerid, COR_INFO, "{FFFF00}Caixa{A9C4E4} diz: Obrigado por adquirir uma agenda telefônica. | valor: US$ 29,90");
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- PlayerInfo[playerid][pMoney] -= 30;
- GivePlayerMoney(playerid, -30);
- PlayerInfo[playerid][pAgenda] = 1;
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /telefone [ID]");
- AtualizarJogador(playerid);
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você já tem uma agenda telefônica.");
- return 1;
- }
- }
- if(listitem == 2)
- {
- if(PlayerInfo[playerid][pGPS] == 0)
- {
- if(PlayerInfo[playerid][pMoney] < 800) return SCM(playerid, COR_INFO," {FF0000}(!) {AFAFAF}: Você não tem dinheiro suficiente");
- SCM(playerid, COR_INFO, "{FFFF00}Caixa{A9C4E4} diz: Obrigado por adquirir um GPS. | valor US$ 799,90");
- SCM(playerid, COR_INFO, "{FFFF00}Caixa{A9C4E4} diz: Lembre-se, você só conseguirá usá-lo dentro de um veículo.");
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- PlayerInfo[playerid][pMoney] -= 800;
- GivePlayerMoney(playerid, -800);
- PlayerInfo[playerid][pGPS] = 1;
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /gps");
- AtualizarJogador(playerid);
- return 1;
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você já tem um GPS.");
- return 1;
- }
- }
- if(listitem == 3)
- {
- if(PlayerInfo[playerid][pRelogio] == 0)
- {
- if(PlayerInfo[playerid][pMoney] < 60) return SCM(playerid, COR_INFO," {FF0000}(!) {AFAFAF}: Você não tem dinheiro suficiente");
- SCM(playerid, COR_INFO, "{FFFF00}Caixa{A9C4E4} diz: Obrigado por adquirir um relógio. | valor US$ 59,90");
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- PlayerInfo[playerid][pMoney] -= 60;
- GivePlayerMoney(playerid, -60);
- PlayerInfo[playerid][pRelogio] = 1;
- //MOSTRAR RELÓGIOIC
- AtualizarJogador(playerid);
- return 1;
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você já tem um relógio.");
- return 1;
- }
- }
- }
- else
- {
- return 1;
- }
- }
- // [ dialogid = RC:PD ]
- if(dialogid == BATERCARTAO)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(PlayerInfo[playerid][pTrabalhando] == 0)
- {
- format(string, sizeof(string), "* O oficial %s pegou seu crachá do armário.", NomeDoJogador(playerid));
- ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
- GivePlayerWeapon(playerid, 24, 200);
- GivePlayerWeapon(playerid, 3, 99999);
- GivePlayerWeapon(playerid, 41, 2000);
- PlayerInfo[playerid][pTrabalhando] = 1;
- }
- else if(PlayerInfo[playerid][pTrabalhando] == 1)
- {
- format(string, sizeof(string), "* O oficial %s guardou seu crachá no armário.", NomeDoJogador(playerid));
- ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
- ResetPlayerWeapons(playerid);
- PlayerInfo[playerid][pTrabalhando] = 0;
- }
- }
- if(listitem == 1)
- {
- format(string, sizeof(string), "* O oficial %s vestiu o uniforme da S.W.A.T.", NomeDoJogador(playerid));
- ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
- SetPlayerSkin(playerid, 285);
- }
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid, BATERCARTAO1, DIALOG_STYLE_LIST, "RC:PD ~ Uniformes","Cadete\nOficial 1\nOficial 2\nSargento\nCapitão\nSub Sheriff\nSheriff", "Vestir", "Cancelar");
- }
- if(listitem == 3)
- {
- ShowPlayerDialog(playerid, BATERCARTAO2, DIALOG_STYLE_LIST, "RC:PD ~ Disfarces","Maxicano rico\nAsiático rico\nHomem rico\nNegro rico\nMendigo\nMulher rica\nEmpresário\nEmpresária\nFazendeira\nFazendeiro\nTraficante de drogas\nGangster\nCivil", "Vestir", "Cancelar");
- }
- }
- }
- if(dialogid == BATERCARTAO1)
- {
- if(response)
- {
- if(listitem == 0) // Cadete
- {
- SetPlayerSkin(playerid, 71);
- }
- if(listitem == 1) // Oficial 1
- {
- SetPlayerSkin(playerid, 284);
- }
- if(listitem == 2) // Oficial 2
- {
- SetPlayerSkin(playerid, 282);
- }
- if(listitem == 3) // Sargento
- {
- SetPlayerSkin(playerid, 281);
- }
- if(listitem == 4) // Capitão
- {
- SetPlayerSkin(playerid, 280);
- }
- if(listitem == 5) // Sub-Sheriff
- {
- SetPlayerSkin(playerid, 288);
- }
- if(listitem == 6) // Sheriff
- {
- SetPlayerSkin(playerid, 283);
- }
- }
- }
- if(dialogid == BATERCARTAO2)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerSkin(playerid, 223);
- }
- if(listitem == 1)
- {
- SetPlayerSkin(playerid, 120);
- }
- if(listitem == 2)
- {
- SetPlayerSkin(playerid, 240);
- }
- if(listitem == 3)
- {
- SetPlayerSkin(playerid, 296);
- }
- if(listitem == 4)
- {
- SetPlayerSkin(playerid, 137);
- }
- if(listitem == 5)
- {
- SetPlayerSkin(playerid, 214);
- }
- if(listitem == 6)
- {
- SetPlayerSkin(playerid, 294);
- }
- if(listitem == 7)
- {
- SetPlayerSkin(playerid, 150);
- }
- if(listitem == 8)
- {
- SetPlayerSkin(playerid, 201);
- }
- if(listitem == 9)
- {
- SetPlayerSkin(playerid, 162);
- }
- if(listitem == 10)
- {
- SetPlayerSkin(playerid, 29);
- }
- if(listitem == 11)
- {
- SetPlayerSkin(playerid, 293);
- }
- if(listitem == 12)
- {
- SetPlayerSkin(playerid, 59);
- }
- }
- }
- if(dialogid == EQUIPAR) //Arma branca\nArma secundárias\nArma primárias\nUltilitários
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid, EQUIPAR1, DIALOG_STYLE_LIST, "Escolha sua arma branca.","{FFFFFF}Cassetete\nFaca", "Selecionar", "Cancelar");
- }
- if(listitem == 1)
- {
- ShowPlayerDialog(playerid, EQUIPAR2, DIALOG_STYLE_LIST, "Escolha sua arma secundária.","{FFFFFF}9mm\n9mm silenciadora\nDesert eagle", "Selecionar", "Cancelar");
- }
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid, EQUIPAR3, DIALOG_STYLE_LIST, "Escolha sua arma primária.","{FFFFFF}Escopeta\nEscopeta de combate\nMp5\nM4\nSniper rifle", "Selecionar", "Cancelar");
- }
- if(listitem == 3)
- {
- ShowPlayerDialog(playerid, EQUIPAR4, DIALOG_STYLE_LIST, "Escolha seu ultilitário.","{FFFFFF}Bomba de gás\nSpray de pimenta\nÓculos de visão noturna\nColete", "Selecionar", "Cancelar");
- }
- }
- }
- if(dialogid == EQUIPAR1)
- {
- if(response)
- {
- if(listitem == 0)
- {
- GivePlayerWeapon(playerid, 3, 999);
- }
- if(listitem == 1)
- {
- GivePlayerWeapon(playerid, 4, 999);
- }
- }
- }
- if(dialogid == EQUIPAR2)
- {
- if(response)
- {
- GetPlayerWeaponData(playerid, 1, armabranca, municao);
- GetPlayerWeaponData(playerid, 3, armaprimaria, municao2);
- GetPlayerWeaponData(playerid, 4, armaprimaria1, municao21);
- GetPlayerWeaponData(playerid, 5, armaprimaria2, municao22);
- GetPlayerWeaponData(playerid, 6, armaprimaria3, municao23);
- GetPlayerWeaponData(playerid, 8, armaulti1, municao31);
- GetPlayerWeaponData(playerid, 9, armaulti2, municao32);
- GetPlayerWeaponData(playerid, 11, armaulti3, municao33);
- if(listitem == 0)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, armaulti3, municao33);
- GivePlayerWeapon(playerid, armaulti2, municao32);
- GivePlayerWeapon(playerid, armaulti1, municao31);
- GivePlayerWeapon(playerid, armaprimaria, municao2);
- GivePlayerWeapon(playerid, armaprimaria1, municao21);
- GivePlayerWeapon(playerid, armaprimaria2, municao22);
- GivePlayerWeapon(playerid, armaprimaria3, municao23);
- GivePlayerWeapon(playerid, armabranca, municao);
- GivePlayerWeapon(playerid, 22, 500);
- }
- if(listitem == 1)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, armaulti3, municao33);
- GivePlayerWeapon(playerid, armaulti2, municao32);
- GivePlayerWeapon(playerid, armaulti1, municao31);
- GivePlayerWeapon(playerid, armaprimaria, municao2);
- GivePlayerWeapon(playerid, armaprimaria1, municao21);
- GivePlayerWeapon(playerid, armaprimaria2, municao22);
- GivePlayerWeapon(playerid, armaprimaria3, municao23);
- GivePlayerWeapon(playerid, armabranca, municao);
- GivePlayerWeapon(playerid, 23, 500);
- }
- if(listitem == 2)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, armaulti3, municao33);
- GivePlayerWeapon(playerid, armaulti2, municao32);
- GivePlayerWeapon(playerid, armaulti1, municao31);
- GivePlayerWeapon(playerid, armaprimaria, municao2);
- GivePlayerWeapon(playerid, armaprimaria1, municao21);
- GivePlayerWeapon(playerid, armaprimaria2, municao22);
- GivePlayerWeapon(playerid, armaprimaria3, municao23);
- GivePlayerWeapon(playerid, armabranca, municao);
- GivePlayerWeapon(playerid, 24, 500);
- }
- }
- }
- if(dialogid == EQUIPAR3)
- {
- if(response)
- {
- GetPlayerWeaponData(playerid, 1, armabranca, municao);
- GetPlayerWeaponData(playerid, 2, armasecundaria, municao1);
- GetPlayerWeaponData(playerid, 8, armaulti1, municao31);
- GetPlayerWeaponData(playerid, 9, armaulti2, municao32);
- GetPlayerWeaponData(playerid, 11, armaulti3, municao33);
- if(listitem == 0)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, armaulti3, municao33);
- GivePlayerWeapon(playerid, armaulti2, municao32);
- GivePlayerWeapon(playerid, armaulti1, municao31);
- GivePlayerWeapon(playerid, armasecundaria, municao1);
- GivePlayerWeapon(playerid, armabranca, municao);
- GivePlayerWeapon(playerid, 25, 500);
- }
- if(listitem == 1)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, armaulti3, municao33);
- GivePlayerWeapon(playerid, armaulti2, municao32);
- GivePlayerWeapon(playerid, armaulti1, municao31);
- GivePlayerWeapon(playerid, armasecundaria, municao1);
- GivePlayerWeapon(playerid, armabranca, municao);
- GivePlayerWeapon(playerid, 27, 500);
- }
- if(listitem == 2)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, armaulti3, municao33);
- GivePlayerWeapon(playerid, armaulti2, municao32);
- GivePlayerWeapon(playerid, armaulti1, municao31);
- GivePlayerWeapon(playerid, armasecundaria, municao1);
- GivePlayerWeapon(playerid, armabranca, municao);
- GivePlayerWeapon(playerid, 29, 500);
- }
- if(listitem == 3)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, armaulti3, municao33);
- GivePlayerWeapon(playerid, armaulti2, municao32);
- GivePlayerWeapon(playerid, armaulti1, municao31);
- GivePlayerWeapon(playerid, armasecundaria, municao1);
- GivePlayerWeapon(playerid, armabranca, municao);
- GivePlayerWeapon(playerid, 31, 500);
- }
- if(listitem == 4)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, armaulti3, municao33);
- GivePlayerWeapon(playerid, armaulti2, municao32);
- GivePlayerWeapon(playerid, armaulti1, municao31);
- GivePlayerWeapon(playerid, armasecundaria, municao1);
- GivePlayerWeapon(playerid, armabranca, municao);
- GivePlayerWeapon(playerid, 34, 500);
- }
- }
- }
- if(dialogid == EQUIPAR4)
- {
- if(response)
- {
- GetPlayerWeaponData(playerid, 1, armabranca, municao);
- GetPlayerWeaponData(playerid, 2, armasecundaria, municao1);
- GetPlayerWeaponData(playerid, 3, armaprimaria, municao2);
- GetPlayerWeaponData(playerid, 4, armaprimaria1, municao21);
- GetPlayerWeaponData(playerid, 5, armaprimaria2, municao22);
- GetPlayerWeaponData(playerid, 6, armaprimaria3, municao23);
- GetPlayerWeaponData(playerid, 8, armaulti1, municao31);
- GetPlayerWeaponData(playerid, 9, armaulti2, municao32);
- GetPlayerWeaponData(playerid, 11, armaulti3, municao33);
- if(listitem == 0)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, armaulti3, municao33);
- GivePlayerWeapon(playerid, armaulti2, municao32);
- GivePlayerWeapon(playerid, armaulti1, municao31);
- GivePlayerWeapon(playerid, armasecundaria, municao1);
- GivePlayerWeapon(playerid, armaprimaria, municao2);
- GivePlayerWeapon(playerid, armaprimaria1, municao21);
- GivePlayerWeapon(playerid, armaprimaria2, municao22);
- GivePlayerWeapon(playerid, armaprimaria3, municao23);
- GivePlayerWeapon(playerid, armabranca, municao);
- GivePlayerWeapon(playerid, 17, 500);
- }
- if(listitem == 1)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, armaulti3, municao33);
- GivePlayerWeapon(playerid, armaulti2, municao32);
- GivePlayerWeapon(playerid, armaulti1, municao31);
- GivePlayerWeapon(playerid, armasecundaria, municao1);
- GivePlayerWeapon(playerid, armaprimaria, municao2);
- GivePlayerWeapon(playerid, armaprimaria1, municao21);
- GivePlayerWeapon(playerid, armaprimaria2, municao22);
- GivePlayerWeapon(playerid, armaprimaria3, municao23);
- GivePlayerWeapon(playerid, armabranca, municao);
- GivePlayerWeapon(playerid, 41, 2000);
- }
- if(listitem == 2)
- {
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, armaulti3, municao33);
- GivePlayerWeapon(playerid, armaulti2, municao32);
- GivePlayerWeapon(playerid, armaulti1, municao31);
- GivePlayerWeapon(playerid, armasecundaria, municao1);
- GivePlayerWeapon(playerid, armaprimaria, municao2);
- GivePlayerWeapon(playerid, armaprimaria1, municao21);
- GivePlayerWeapon(playerid, armaprimaria2, municao22);
- GivePlayerWeapon(playerid, armaprimaria3, municao23);
- GivePlayerWeapon(playerid, armabranca, municao);
- GivePlayerWeapon(playerid, 44, 500);
- }
- if(listitem == 3)
- {
- SetPlayerArmour(playerid, 100);
- }
- }
- }
- if(dialogid == AJUDA)
- {
- if(response)
- {
- if(listitem == 0) // SOLICITAR ADMINISTRADOR
- {
- OnPlayerCommandText(playerid, "/relatorio Oi, por favor, alguém poderia vir aqui me ajudar?");
- }
- if(listitem == 1) // AJUDA ADMINISTRADOR
- {
- OnPlayerCommandText(playerid, "/aa");
- }
- if(listitem == 2) // AJUDA JOGADOR
- {
- OnPlayerCommandText(playerid, "/ajudaplayer");
- }
- if(listitem == 3) // AJUDA EMPREGO (ORG/Empregos secundários)
- {
- OnPlayerCommandText(playerid, "/ajudaemprego");
- }
- if(listitem == 4) // AJUDA LÍDER
- {
- OnPlayerCommandText(playerid, "/ajudalider");
- }
- }
- }
- if(dialogid == DOCUMENTOS)
- {
- if(response)
- {
- if(listitem == 0)
- {
- format(string, sizeof(string), "* %s confere seu dinheiro.", NomeDoJogador(playerid));
- ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
- SetPlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
- }
- if(listitem == 1)
- {
- format(string, sizeof(string), "* %s confere sua identidade.", NomeDoJogador(playerid));
- ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
- ShowStats(playerid,playerid);
- }
- }
- }
- if(dialogid == OBTERDOC)
- {
- if(response) /*Título de eleitor\nCarteira de trabalho\nLicenças", "Esc*/
- {
- if(listitem == 0) // Título de eleitor
- {
- if(PlayerInfo[playerid][pTituloE] == 1) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você já tirou seu título de eleitor.");
- PlayerInfo[playerid][pTituloE] = 1;
- }
- if(listitem == 1)
- {
- OnPlayerCommandText(playerid, "/pcarteiradtrabporramerdadpokrlsouvozaoqq");
- }
- if(listitem == 2)
- {
- SCM(playerid, COR_INFO, " {FFFF00}(!) {A9C4E4}: Para obter licenças de direção, vá à escola de pilotagem, e nos apresente seu resultado.");
- }
- }
- }
- return 0;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
- DisablePlayerCheckpoint(playerid);
- GpsCheckPoint[playerid] = CHECK_CHEGOU;
- GameTextForPlayer(playerid, "~r~Voce chegou no destino.", 5000, 1);
- return 1;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid)
- {
- new placa[10];
- format(placa, sizeof(placa), "~g~FC-%d", vehicleid);
- TextDrawSetString(Textdraw31, placa);
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- JanelaAberta[playerid] = 1;
- veiculonovo = GetPlayerVehicleID(playerid);
- if(CriouVeiculo[playerid] == 1)
- {
- CriouVeiculo[playerid] = 0;
- DestroyVehicle(veiculonovo);
- }
- return 1;
- }
- // [ OnPlayerText ]
- public OnPlayerText(playerid, text[])
- {
- new string[256];
- new tmp[256];
- new y,m,d;
- new h,mi,s;
- getdate(y,m,d);
- gettime(h,mi,s);
- if(PlayerInfo[playerid][pCalado] == 1) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você está calado.");
- if(PlayerInfo[playerid][pReg] == 0) return 1;
- static simbolos[][]= { "(:", "[:", "{:", ":}", ":D", ":)", ":]", ";D", ": )", ";)", ";]", "( :", ";}" };
- static simbolos2[][]= { ":(", ":[", ":/", ";/", ";(", ": (", "''/", "\''", "D:", "):", ") :" };
- for(new a; a < sizeof(simbolos); ++a) {
- if((strfind(text, simbolos[a], true) != -1)) {
- format(string, sizeof(string), "* %s esboça um sorriso.", NomeDoJogador(playerid));
- ProxDetector(10.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
- return 0;
- }
- }
- for(new a; a < sizeof(simbolos2); ++a) {
- if((strfind(text, simbolos2[a], true) != -1)) {
- format(string, sizeof(string), "* %s faz uma cara de tristeza.", NomeDoJogador(playerid));
- ProxDetector(10.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
- return 0;
- }
- }
- if(CelularOcupado[playerid] != 255)
- {
- new stringdoouvinte[128];
- new idx;
- tmp = strtok(text, idx);
- format(string, sizeof(string), "%s diz(Celular): %s", NomeDoJogador(playerid), text);
- format(stringdoouvinte, sizeof(stringdoouvinte), "{FFFF00}Celular{FFFFFF}: %s", text);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- if(PlayerInfo[CelularOcupado[playerid]][pLogado] == 1)
- {
- if(CelularOcupado[CelularOcupado[playerid]] == playerid)
- {
- SCM(CelularOcupado[playerid], COR_INFO, stringdoouvinte);
- }
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}ERRO: {AFAFAF}O celular foi desligado.");
- }
- return 0;
- }
- if(PlayerInfo[playerid][pAdmin] == 0) ANTIFLOOD[playerid] ++;
- if(ANTIFLOOD[playerid] >= 1)
- {
- KillTimer(ANTIFLOODTIMER[playerid]);
- ANTIFLOODTIMER[playerid] = SetTimerEx("ResetarChat",1500,false,"i",playerid);
- }
- if(ANTIFLOOD[playerid] == 10) SCM(playerid, COR_INFO,"{33CCFF}ADMIN{A9C4E4}: Pare com o FLOOD.");
- if(ANTIFLOOD[playerid] == 30)
- {
- format(string, sizeof(string), "%s (%d), foi kickado automaticamente por floodar no chat.", NomeDoJogador(playerid), playerid);
- MensagemAdmin(COR_INFO, string, 1);
- SCM(playerid, COR_INFO, "{33CCFF}ADMIN{A9C4E4}: Você foi kickado automaticamente por floodar no chat.");
- format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s foi kickado automaticamente. Motivo: Flood no chat.",d,m,y,h,mi,s,NomeDoJogador(playerid));
- KickLog(string);
- Kick(playerid);
- KillTimer(ANTIFLOODTIMER[playerid]);
- }
- if(chatreal)
- {
- if(!IsPlayerInAnyVehicle(playerid))
- {
- if(PlayerInfo[playerid][pLogado] == 0)
- {
- return 0;
- }
- if(PlayerInfo[playerid][pATrabalhando] == 0 && PlayerInfo[playerid][pAdmin] >= 1 || (PlayerInfo[playerid][pAdmin] == 0))
- {
- ApplyAnimation(playerid,"GANGS","prtial_gngtlkH",4.0,0,0,0,1,1);
- format(string, sizeof(string), "%s diz: %s", NomeDoJogador(playerid), text);
- SetPlayerChatBubble(playerid, string, COR_BRANCA, 20.0, 8000);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- }
- else if(PlayerInfo[playerid][pATrabalhando] == 1 && PlayerInfo[playerid][pAdmin] >= 1)
- {
- ApplyAnimation(playerid,"GANGS","prtial_gngtlkH",4.0,0,0,0,1,1);
- format(string, sizeof(string), "{33CCFF}(( administrador{A9C4E4}: {33CCFF}%s {A9C4E4}diz: {FFFFFF}%s {33CCFF}))", NomeDoJogador(playerid), text);
- SetPlayerChatBubble(playerid, string, COR_BRANCA, 20.0, 8000);
- ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
- }
- }
- else
- {
- if(PlayerInfo[playerid][pLogado] == 0)
- {
- return 0;
- }
- else if(PlayerInfo[playerid][pATrabalhando] == 1 && PlayerInfo[playerid][pAdmin] >= 1)
- {
- format(string, sizeof(string), "{33CCFF}(( administrador{A9C4E4}: {33CCFF}%s {A9C4E4}diz: {FFFFFF}%s {33CCFF}))", NomeDoJogador(playerid), text);
- SetPlayerChatBubble(playerid, string, COR_BRANCA, 20.0, 8000);
- ProxDetector(20.0, playerid, string,COLOR_FADE5,COLOR_FADE5,COLOR_FADE5,COLOR_FADE5,COLOR_FADE5);
- }
- }
- }
- return 0;
- }
- //================= [ OnPlayerCommand ] =================
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new string[256], cmd[256], tmp[256], idx;
- new jogador;
- cmd = strtok(cmdtext, idx);
- //================= [ Comandos de ajuda ] ===============
- if(SemCMD[playerid] == 1) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não pode usar nenhum comando.");
- if(strcmp(cmdtext, "/creditos", true) == 0)
- {
- SCM(playerid, COR_INFO, "{FFFF00}================================================");
- SCM(playerid, COR_INFO, "{FFFFFF} FortCarson RolePlay");
- SCM(playerid, COR_INFO, "{FFFFFF} Copyright Rodney Francalim");
- SCM(playerid, COR_INFO, "Fundador: {FFFFFF}Rodney_Francalim");
- SCM(playerid, COR_INFO, "Apoio:{FFFFFF} Evolution SA:MP");
- SCM(playerid, COR_INFO, "Créditos: {FFFF00}Rodney_Francalim - Pela base do GM e a maioria dos sistemas");
- SCM(playerid, COR_INFO, " {FFFF00}Monster - Pelo sistema de registro/login");
- SCM(playerid, COR_INFO, " {FFFF00}Chainksain_666 - Pelo relógio");
- SCM(playerid, COR_INFO, " {FFFF00}Ricardo Brasil - Por alguns comandos");
- SCM(playerid, COR_INFO, "{FFFF00}================================================");
- return 1;
- }
- if(strcmp(cmdtext, "/ajuda", true) == 0)
- {
- ShowPlayerDialog(playerid, AJUDA, DIALOG_STYLE_LIST, "Escolha o seu tipo de ajuda.", "Solicitar administrador\nAjuda administrador\nAjuda jogador\nAjuda emprego\nAjuda líder", "Escolher", "Sair");
- return 1;
- }
- // [ ADMINISTRADOR ]
- if(strcmp(cmdtext, "/ajudaadmin", true) == 0 || strcmp(cmdtext, "/aa", true) == 0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é administrador.");
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- SCM(playerid, COR_INFO, "");
- SCM(playerid, COR_INFO, "{FFFF00}'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'");
- SCM(playerid, COR_INFO, "Administrador:");
- SCM(playerid, COR_INFO, "(/a)dmin /trabalhar /avisar /ir /trazer /tapa /setint");
- SCM(playerid, COR_INFO, "/matar /congelar /tempo /mudarhora /lc(/limparchat)");
- SCM(playerid, COR_INFO, "/explodir /ip /calar /dargrana /semooc /kick /blockcmd");
- }
- else if(PlayerInfo[playerid][pAdmin] == 2)
- {
- SCM(playerid, COR_INFO, "");
- SCM(playerid, COR_INFO, "{FFFF00}'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'");
- SCM(playerid, COR_INFO, "Administrador dono:");
- SCM(playerid, COR_INFO, "(/a)dmin /trabalhar /avisar /ir /trazer /tapa /setint");
- SCM(playerid, COR_INFO, "/matar /congelar /tempo /mudarhora /lc(/limparchat)");
- SCM(playerid, COR_INFO, "/explodir /ip /calar /dargrana /semooc /kick /blockcmd");
- SCM(playerid, COR_INFO, "/espiar /sairespiar (/v)eiculo /darvida /darcolete /lider");
- SCM(playerid, COR_INFO, "/daradmin /ban");
- if(strcmp("Rodney_Francalim",NomeDoJogador(jogador),true)==0)
- {
- SCM(playerid, COR_INFO, "/setpos /gmx");
- }
- }
- SCM(playerid, COR_INFO, "{FFFF00}'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'");
- return 1;
- }
- // [ LÍDER ]
- if(strcmp(cmdtext, "/ajudalider", true) == 0)
- {
- if(PlayerInfo[playerid][pLider] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é líder.");
- SCM(playerid, COR_INFO, "");
- SCM(playerid, COR_INFO, "{FFFF00}'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'");
- SCM(playerid, COR_INFO, "/convidar /promover /demitir");
- SCM(playerid, COR_INFO, "{FFFF00}'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'");
- return 1;
- }
- // [ PLAYER ]
- if(strcmp(cmdtext, "/ajudaplayer", true) == 0)
- {
- SCM(playerid, COR_INFO, "");
- SCM(playerid, COR_INFO, "{FFFF00}'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'");
- SCM(playerid, COR_INFO, "Comandos OOC:");
- SCM(playerid, COR_INFO, "/admins /b (/o)oc (/re)latorio /entrar /sair");
- SCM(playerid, COR_INFO, "Comandos IC:");
- SCM(playerid, COR_INFO, "/gps /ligar /atender /desligar /sms /agenda /comprar");
- SCM(playerid, COR_INFO, "/carteira /eu /pensar /tentar /do /carro /abastecer");
- SCM(playerid, COR_INFO, "{FFFF00}'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'");
- return 1;
- }
- if(strcmp(cmdtext, "/ajudaemprego", true) == 0)
- {
- if(PlayerInfo[playerid][pORG] == 0 && PlayerInfo[playerid][pLider] == 0 && PlayerInfo[playerid][pEmprego] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não tem um trabalho.");
- SCM(playerid, COR_INFO, "");
- SCM(playerid, COR_INFO, "{FFFF00}'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'");
- // Começando por ORGs
- if(PlayerInfo[playerid][pORG] == 1 || PlayerInfo[playerid][pLider] == 1)
- {
- if(PlayerInfo[playerid][pCargo] >= 1)
- {
- SCM(playerid, COR_INFO, "/ap /baterponto /equipar");
- return 1;
- }
- }
- SCM(playerid, COR_INFO, "{FFFF00}'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'.'");
- return 1;
- }
- //================= [ Comandos de admin ] ===============
- if(strcmp(cmdtext, "/dp", true) == 0) // TEMPORÁRIO
- {
- SetPlayerPos(playerid, -217.8412,979.1472,19.5040);
- return 1;
- }
- if(strcmp(cmdtext,"/alfa", true) == 0) // TEMPORÁRIO
- {
- PlayerInfo[playerid][pAdmin] = 2;
- AdminsOnline++;
- AtualizarJogador(playerid);
- return 1;
- }
- if(strcmp(cmdtext, "/arelogioo", true) == 0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é administrador.");
- TextDrawHideForPlayer(playerid, Textdraw0); //Horas
- TextDrawHideForPlayer(playerid, Textdraw1); //Minutos
- TextDrawHideForPlayer(playerid, Textdraw2); //Segundos
- TextDrawHideForPlayer(playerid, Textdraw3); //Dia
- TextDrawHideForPlayer(playerid, Textdraw4); //Mes
- TextDrawHideForPlayer(playerid, Textdraw5); //Ano
- TextDrawHideForPlayer(playerid, Textdraw6); //Horas(min)
- TextDrawHideForPlayer(playerid, Textdraw7); //Minutos(seg)
- TextDrawHideForPlayer(playerid, Textdraw8); //DiaDaSemana
- SCM(playerid, COR_INFO, "{33CCFF}(!) {A9C4E4}: Relógio removido.");
- return 1;
- }
- if(strcmp(cmdtext, "/arelogiom", true) == 0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é administrador.");
- TextDrawShowForPlayer(playerid, Textdraw0); //Horas
- TextDrawShowForPlayer(playerid, Textdraw1); //Minutos
- TextDrawShowForPlayer(playerid, Textdraw2); //Segundos
- TextDrawShowForPlayer(playerid, Textdraw3); //Dia
- TextDrawShowForPlayer(playerid, Textdraw4); //Mes
- TextDrawShowForPlayer(playerid, Textdraw5); //Ano
- TextDrawShowForPlayer(playerid, Textdraw6); //Horas(min)
- TextDrawShowForPlayer(playerid, Textdraw7); //Minutos(seg)
- TextDrawShowForPlayer(playerid, Textdraw8); //DiaDaSemana
- SCM(playerid, COR_INFO, "{33CCFF}(!) {A9C4E4}: Relógio adicionado.");
- return 1;
- }
- if(strcmp(cmdtext, "/trabalhar", true) ==0 || strcmp(cmd, "/jogar", true) == 0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é administrador.");
- if(PlayerInfo[playerid][pATrabalhando] == 0)
- {
- GetPlayerHealth(playerid, saudedeademir);
- GetPlayerArmour(playerid, coletedeademir);
- PlayerInfo[playerid][pATrabalhando] = 1;
- format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}: O {33CCFF}%s %s {A9C4E4}entrou no modo de trabalho.", NivelDeAdm(playerid), NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SetPlayerColor(playerid,COR_AZULCLARO);
- SetPlayerHealth(playerid,9999),SetPlayerArmour(playerid,9999);
- Texto3DAdmin[playerid] = Create3DTextLabel("Admin: Dúvidas? Ajuda?", COR_TEXTO3D,0,0,0,50,-1,1);
- Attach3DTextLabelToPlayer(Texto3DAdmin[playerid], playerid, 0,0,0);
- return 1;
- }
- else if(PlayerInfo[playerid][pATrabalhando] == 1)
- {
- SetPlayerHealth(playerid, saudedeademir);
- SetPlayerArmour(playerid, coletedeademir);
- PlayerInfo[playerid][pATrabalhando] = 0;
- format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}: O {33CCFF}%s %s {A9C4E4}entrou no modo de jogo.", NivelDeAdm(playerid), NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- SetPlayerColor(playerid,COR_BRANCA);
- Delete3DTextLabel(Texto3DAdmin[playerid]);
- Create3DTextLabel("",0xFFFFFF00,0,0,0,50,-1,1);
- return 1;
- }
- return 1;
- }
- if(strcmp(cmdtext, "/semooc", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 1 && (SemOOC == 0))
- {
- SemOOC = 1;
- format(string, sizeof(string), " {33CCFF}ADMIN{A9C4E4}: Chat Global desativado pelo administrador: %s", NomeDoJogador(playerid));
- MensagemAdmin(COR_INFO, string, 1);
- }
- else if(PlayerInfo[playerid][pAdmin] >= 2 && (SemOOC == 1))
- {
- SemOOC = 0;
- format(string, sizeof(string), " {33CCFF}ADMIN{A9C4E4}: Chat Global ativado pelo administrador: %s", NomeDoJogador(playerid));
- MensagemAdmin(COR_INFO, string, 1);
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é administrador.");
- }
- }
- return 1;
- }
- // [ KICK/BAN ]
- if(strcmp(cmd, "/kick", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 1)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /kick [ID] [MOTIVO]");
- return 1;
- }
- new motstr[128];
- new strlog[128];
- jogador = ReturnUser(tmp);
- if (PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é um administrador.");
- if(!IsPlayerConnected(jogador)) { SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Este jogador não está online"); return 1; }
- if(jogador != INVALID_PLAYER_ID)
- {
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /kick [ID] [MOTIVO]");
- return 1;
- }
- getdate(v[2], v[1], v[0]);
- gettime(v[3], v[4], v[5]);
- format(string,sizeof(string),"{FF6347}Nome{D2D2FF}: %s \n{FF6347}Motivo{D2D2FF}: %s \n{FF6347}Kickado por{D2D2FF}: %s %s \n{FF6347}Data/Hora{D2D2FF}: %02d/%02d/%02d | %02d:%02d:%02d",NomeDoJogador(jogador), (result), NivelDeAdm(playerid), NomeDoJogador(playerid) , v[0], v[1], v[2], v[3], v[4], v[5]);
- ShowPlayerDialog(jogador,KICK,DIALOG_STYLE_MSGBOX,"{FF0000}~ KICKADO ~",string,"Deslogar", "");
- format(string, sizeof(string), "{FF0000}LOG{D2D2FF}: {FF6347}O %s %s foi kickado pelo %s %s.", NivelDeAdm(jogador), NomeDoJogador(jogador), NivelDeAdm(playerid), NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- format(motstr, sizeof(motstr), "{FF0000}LOG{D2D2FF}: {FF6347}Motivo: %s." , (result));
- SendClientMessageToAll(COR_INFO, motstr);
- LimparChat(jogador, 125);
- Kick(jogador);
- format(strlog, sizeof(strlog), "LOG: %s foi kickado por: %s. Motivo: %s. Horário: %02d/%02d/%02d | %02d:%02d:%02d", NomeDoJogador(jogador), NomeDoJogador(playerid), (result), v[0], v[1], v[2], v[3], v[4], v[5]);
- KickLog(strlog);
- return 1;
- }
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está logado.");
- return 1;
- }
- return 1;
- }
- if(strcmp(cmd, "/ban", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 1)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /ban [ID] [MOTIVO]");
- return 1;
- }
- new motstr[128];
- new strlog[128];
- jogador = ReturnUser(tmp);
- if (PlayerInfo[playerid][pAdmin] < 2) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é um administrador dono.");
- if(!IsPlayerConnected(jogador)) { SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Este jogador não está online"); return 1; }
- if(jogador != INVALID_PLAYER_ID)
- {
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /ban [ID] [MOTIVO]");
- return 1;
- }
- getdate(v[2], v[1], v[0]);
- gettime(v[3], v[4], v[5]);
- format(string,sizeof(string),"{FF6347}Nome{D2D2FF}: %s \n{FF6347}Motivo{D2D2FF}: %s \n{FF6347}Banido por{D2D2FF}: %s %s \n{FF6347}Data/Hora{D2D2FF}: %02d/%02d/%02d | %02d:%02d:%02d\nPressione F8 e poste a SS no fórum caso queira queixar-se\n do banimento.",NomeDoJogador(jogador), (result), NivelDeAdm(playerid), NomeDoJogador(playerid) , v[0], v[1], v[2], v[3], v[4], v[5]);
- ShowPlayerDialog(jogador,BAN,DIALOG_STYLE_MSGBOX,"{FF0000}~ BANIDO ~",string,"Deslogar", "");
- format(string, sizeof(string), "{FF0000}LOG{D2D2FF}: {FF6347}O %s %s foi banido pelo %s %s.", NivelDeAdm(jogador), NomeDoJogador(jogador), NivelDeAdm(playerid), NomeDoJogador(playerid));
- SendClientMessageToAll(COR_INFO, string);
- format(motstr, sizeof(motstr), "{FF0000}LOG{D2D2FF}: {FF6347}Motivo: %s." , (result));
- SendClientMessageToAll(COR_INFO, motstr);
- LimparChat(jogador, 125);
- PlayerInfo[jogador][pBanido] = 1;
- AtualizarJogador(jogador);
- new tmppass[128];
- strmid(tmppass, result, 0, strlen(result), 255);
- new adminban[128];
- strmid(adminban, NomeDoJogador(playerid), 0, strlen(NomeDoJogador(playerid)), 255);
- Banido(jogador, tmppass, adminban);
- Kick(jogador);
- format(strlog, sizeof(strlog), "LOG: %s foi banido por: %s. Motivo: %s. Horário: %02d/%02d/%02d | %02d:%02d:%02d", NomeDoJogador(jogador), NomeDoJogador(playerid), (result), v[0], v[1], v[2], v[3], v[4], v[5]);
- BanLog(strlog);
- return 1;
- }
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está logado.");
- return 1;
- }
- return 1;
- }
- // [ GMX ]
- if(strcmp(cmdtext, "/gmx", true) == 0 || strcmp(cmd, "/restart", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] == 2 && (strcmp(NomeDoJogador(playerid), "Rodney_Francalim", true ) == 0))
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- AtualizarJogador(i);
- LimparChat(i, 125);
- SCM(playerid,COR_INFO,"{33CCFF}ADMIN{A9C4E4}: Por favor, não deslogue, aguarde alguns segundos até a próxima atualização...");
- SetPlayerInterior(i, 0);
- PlayerInfo[i][pLugar] = 0;
- PlayerInfo[i][pLogado] = 0;
- KillTimer(atualizacoesgeraisdoserver);
- KillTimer(TempoProd);
- KillTimer(TimerObterGas);
- //OCULTAR/DESTRUIR TODAS AS TEXTDRAWS
- TextDrawHideForPlayer(i, Textdraw0); //Horas
- TextDrawHideForPlayer(i, Textdraw1); //Minutos
- TextDrawHideForPlayer(i, Textdraw2); //Segundos
- TextDrawHideForPlayer(i, Textdraw3); //Dia
- TextDrawHideForPlayer(i, Textdraw4); //Mes
- TextDrawHideForPlayer(i, Textdraw5); //Ano
- TextDrawHideForPlayer(i, Textdraw6); //Horas(min)
- TextDrawHideForPlayer(i, Textdraw7); //Minutos(seg)
- TextDrawHideForPlayer(i, Textdraw8); //DiaDaSemana
- TextDrawDestroy(Textdraw0); //Horas
- TextDrawDestroy(Textdraw1); //Minutos
- TextDrawDestroy(Textdraw2); //Segundos
- TextDrawDestroy(Textdraw3); //Dia
- TextDrawDestroy(Textdraw4); //Mes
- TextDrawDestroy(Textdraw5); //Ano
- TextDrawDestroy(Textdraw6); //Horas(min)
- TextDrawDestroy(Textdraw7); //Minutos(seg)
- TextDrawDestroy(Textdraw8); //DiaDaSemana
- getdate(v[0], v[1], v[2]);
- gettime(v[3], v[4], v[5]);
- print("\n---------------------------------------------------------");
- printf("Server Desligado: [%02d/%02d/%d %02d:%02d:%02d]", v[2], v[1], v[0], v[3], v[4], v[5]);
- print("---------------------------------------------------------\n");
- SendRconCommand("gmx");
- }
- }
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: O comando: ''%s'' não existe, use: /ajuda ou contate um de nossos {33CCFF}administradores{AFAFAF}.");
- return 1;
- }
- }
- return 1;
- }
- // [ DarAdmin ]
- if(strcmp(cmd, "/daradmin", true) == 0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é administrador.");
- if(PlayerInfo[playerid][pAdmin] == 1) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é administrador dono.");
- if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está logado.");
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /daradmin [ID] [NIVEL]");
- return 1;
- }
- new nivel;
- jogador = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- nivel = strval(tmp);
- if(jogador == INVALID_PLAYER_ID) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Este player não está online.");
- if(nivel < 0 || nivel > 2) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: O valor não pode ser menor que 0 ou maior que 2.");
- if(nivel == 0)
- {
- if(PlayerInfo[jogador][pAdmin] == 0)
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você só pode retirar da administração quem já é administrador.");
- }
- if(PlayerInfo[jogador][pAdmin] > 0)
- {
- AdminsOnline--;
- PlayerInfo[jogador][pAdmin] = nivel;
- format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: Você foi retirado da administração pelo adminitrador %s.", NomeDoJogador(playerid));
- SCM(jogador, COR_INFO, string);
- format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: Você retirou o(a) jogador(a): %s da administração.", NomeDoJogador(playerid));
- SCM(playerid, COR_INFO, string);
- format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: O administrador: %s, retirou o(a) jogador(a): %s da administração.", NomeDoJogador(playerid), NomeDoJogador(jogador));
- MensagemAdmin(COR_INFO, string, 1);
- }
- }
- if(nivel == 1)
- {
- if(PlayerInfo[jogador][pAdmin] > 0)
- {
- PlayerInfo[jogador][pAdmin] = nivel;
- format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: Você foi promovido à administrador pelo administrador %s.", NomeDoJogador(playerid));
- SCM(jogador, COR_INFO, string);
- format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: Você promoveu o(a) jogador(a): %s para administrador.", NomeDoJogador(jogador));
- SCM(playerid, COR_INFO, string);
- format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: O administrador: %s, promoveu o(a) jogador(a): %s para administrador.", NomeDoJogador(playerid), NomeDoJogador(jogador));
- MensagemAdmin(COR_INFO, string, 1);
- }
- else
- {
- AdminsOnline++;
- PlayerInfo[jogador][pAdmin] = nivel;
- format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: Você foi promovido à administrador pelo administrador %s.", NomeDoJogador(playerid));
- SCM(jogador, COR_INFO, string);
- format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: Você promoveu o(a) jogador(a): %s para administrador.", NomeDoJogador(jogador));
- SCM(playerid, COR_INFO, string);
- format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: O administrador: %s, promoveu o(a) jogador(a): %s para administrador.", NomeDoJogador(playerid), NomeDoJogador(jogador));
- MensagemAdmin(COR_INFO, string, 1);
- }
- }
- if(nivel == 2)
- {
- if(PlayerInfo[jogador][pAdmin] != 0)
- {
- PlayerInfo[jogador][pAdmin] = nivel;
- format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: Você foi promovido à administrador pelo administrador %s.", NomeDoJogador(playerid));
- SCM(jogador, COR_INFO, string);
- format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: Você promoveu o(a) jogador(a): %s para administrador.", NomeDoJogador(jogador));
- SCM(playerid, COR_INFO, string);
- format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: O administrador: %s, promoveu o(a) jogador(a): %s para administrador.", NomeDoJogador(playerid), NomeDoJogador(jogador));
- MensagemAdmin(COR_INFO, string, 1);
- }
- else
- {
- AdminsOnline++;
- PlayerInfo[jogador][pAdmin] = nivel;
- format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: Você foi promovido à administrador pelo administrador %s.", NomeDoJogador(playerid));
- SCM(jogador, COR_INFO, string);
- format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: Você promoveu o(a) jogador(a): %s para administrador.", NomeDoJogador(jogador));
- SCM(playerid, COR_INFO, string);
- format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}/{FFFF00}(!) {A9C4E4}: O administrador: %s, promoveu o(a) jogador(a): %s para administrador.", NomeDoJogador(playerid), NomeDoJogador(jogador));
- MensagemAdmin(COR_INFO, string, 1);
- }
- }
- AtualizarJogador(jogador);
- return 1;
- }
- if(strcmp(cmd, "/lider", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 1)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /lider [ID] [ORG]");
- return 1;
- }
- new level;
- jogador = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- level = strval(tmp);
- if(level > 1 || level < 0) { SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: Organizações de: 1 ~ 3"); return 1; }
- if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Voce não é administrador.");
- if(PlayerInfo[playerid][pAdmin] == 1) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Voce não é administrador dono.");
- if(PlayerInfo[playerid][pATrabalhando] < 1 && PlayerInfo[playerid][pAdmin] != 2)
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está trabalhando. (/trabalhar)");
- return 1;
- }
- if(IsPlayerConnected(jogador))
- {
- if(jogador != INVALID_PLAYER_ID)
- {
- if(PlayerInfo[jogador][pORG] > 0)
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: O jogador já é líder de alguma organização.");
- return 1;
- }
- format(string, sizeof(string), "{FFFF00}(!) {A9C4E4}: Você virou líder pelo administrador: %s", NomeDoJogador(playerid));
- SCM(jogador, COR_INFO, string);
- if(level == 1) { PlayerInfo[jogador][pSkin] = 283; } // Fort Carson Police Department
- //else if(level == 2) { PlayerInfo[jogador][pSkin] = 279; } // Corpo de Bombeiros
- //else if(level == 3) { PlayerInfo[jogador][pSkin] = 274; } // SAMU
- //gTeam[jogador] = 11;
- //PlayerInfo[jogador][pTeam] = 11;
- PlayerInfo[jogador][pLider] = level;
- PlayerInfo[jogador][pORG] = level;
- PlayerInfo[jogador][pCargo] = 6;
- SetPlayerSkin(jogador, PlayerInfo[jogador][pSkin]);
- SpawnarJogador(jogador);
- AtualizarJogador(jogador);
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/trazer", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está logado.");
- if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é administrador.");
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /trazer [ID]");
- return 1;
- }
- new carid,Float:X,Float:Y,Float:Z, VW, INT;
- jogador = ReturnUser(tmp);
- if(jogador == INVALID_PLAYER_ID) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Este jogador não está online.");
- if(jogador == playerid) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não pode trazer a si mesmo.");
- GetPlayerPos(playerid, X, Y, Z);
- SetPlayerPos(jogador, X, Y+2, Z);
- VW = GetPlayerVirtualWorld(playerid);
- SetPlayerVirtualWorld(jogador, VW);
- INT = GetPlayerInterior(playerid);
- SetPlayerInterior(jogador, INT);
- format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}: %s puxou você.",NomeDoJogador(playerid));
- SCM(jogador, COR_INFO, string);
- format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}: Você trouxe %s até você.",NomeDoJogador(jogador));
- SCM(playerid, COR_INFO, string);
- format(string, sizeof(string), "{FF0000}LOG{A9C4E4}:{FF0000} O administrador %s trouxe %s até ele.",NomeDoJogador(playerid), NomeDoJogador(jogador));
- MensagemAdmin(COR_INFO, string, 1);
- carid = GetPlayerVehicleID(jogador);
- if(carid > 0)
- {
- SetVehiclePos(carid, X, Y+2, Z);
- PutPlayerInVehicle(jogador, carid, 0);
- }
- return 1;
- }
- if(strcmp(cmd, "/ir", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está logado.");
- if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é administradoir.");
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /ir [ID]");
- return 1;
- }
- new Float:X,Float:Y,Float:Z, VW, INT, carid;
- jogador = ReturnUser(tmp);
- if(jogador == INVALID_PLAYER_ID) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Este jogador não está online.");
- if(jogador == playerid) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não pode ir até si mesmo.");
- GetPlayerPos(jogador, X, Y, Z);
- SetPlayerPos(playerid, X, Y+2, Z);
- VW = GetPlayerVirtualWorld(jogador);
- SetPlayerVirtualWorld(playerid, VW);
- INT = GetPlayerInterior(jogador);
- SetPlayerInterior(playerid, INT);
- format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}: %s foi até você.",NomeDoJogador(playerid));
- SCM(jogador, COR_INFO, string);
- format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}: Você foi até %s.",NomeDoJogador(jogador));
- SCM(playerid, COR_INFO, string);
- format(string, sizeof(string), "{FF0000}LOG{A9C4E4}:{FF0000} O administrador %s foi até %s.",NomeDoJogador(playerid), NomeDoJogador(jogador));
- MensagemAdmin(COR_INFO, string, 1);
- carid = GetPlayerVehicleID(playerid);
- if(carid > 0)
- {
- SetVehiclePos(carid, X, Y+2, Z);
- PutPlayerInVehicle(playerid, carid, 0);
- }
- return 1;
- }
- if(strcmp(cmd, "/veiculo", true) == 0 || strcmp(cmd, "/v", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, "{FF0000}(!) {A9C4E4}: Você não é administrador.");
- if(PlayerInfo[playerid][pAdmin] == 1) return SCM(playerid, COR_INFO, "{FF0000}(!) {A9C4E4}: Você não é administrador dono.");
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você já está em um veículo.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: /veiculo [ID do veículo] [COR 1] [COR 2]");
- return 1;
- }
- new carrocriado;
- carrocriado = strval(tmp);
- if(carrocriado < 400 || carrocriado > 611)
- {
- SCM(playerid, COR_INFO, "{FF0000}(!) {A9C4E4}: O ID do veículo não pode ser menor que {00FFFF}400 {A9C4E4}ou maior que {00FFFF}611{A9C4E4}.");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: /veiculo [ID do veículo] [COR 1] [COR 2]");
- return 1;
- }
- new cor1;
- cor1 = strval(tmp);
- if(cor1 < 0 || cor1 > 126) { SCM(playerid, COR_INFO, "{FF0000}(!) {A9C4E4}: O ID da cor 1 {A9C4E4}não pode ser menor que 0 {A9C4E4}ou maior que 126{A9C4E4}."); return 1; }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: /veiculo [ID do veículo] [COR 1] [COR 2]");
- return 1;
- }
- new cor2;
- cor2 = strval(tmp);
- if(cor2 < 0 || cor2 > 126) { SCM(playerid, COR_INFO, "{FF0000}(!) {AFAFAF}: O ID da cor 1 não pode ser menor que 0 ou maior que 126."); return 1; }
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(playerid, X,Y,Z);
- veiculonovo = CreateVehicle(carrocriado, X,Y,Z, 0.0, cor1, cor2, 60000);
- PutPlayerInVehicle(playerid, veiculonovo, 0);
- GetVehicleParamsEx(veiculonovo,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(veiculonovo,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF);
- SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: Veículo criado.");
- CriouVeiculo[playerid] = 1;
- }
- return 1;
- }
- if(strcmp(cmd, "/dargrana", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 1)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /dargrana [ID] [QUANTIA]");
- return 1;
- }
- new dinheiro;
- jogador = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- dinheiro = strval(tmp);
- if (PlayerInfo[playerid][pAdmin] < 2) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Voce não é administrador");
- if(PlayerInfo[playerid][pATrabalhando] < 1 && PlayerInfo[playerid][pAdmin] != 2) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está trabalhando. (/trabalhar)");
- if(PlayerInfo[jogador][pLogado] == 0 || jogador == INVALID_PLAYER_ID) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: O jogador não está logado.");
- GivePlayerMoney(jogador, dinheiro);
- PlayerInfo[playerid][pMoney] += dinheiro;
- }
- return 1;
- }
- if(strcmp(cmd,"/setpos",true)==0)
- {
- if(PlayerInfo[playerid][pAdmin] == 2 && (strcmp("Rodney_Francalim",NomeDoJogador(jogador),true)==0))
- {
- new plid,Float:setpos[3];
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp)) return SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: /setpos [ID] [X] [Y] [Z]");
- plid = strval(tmp);
- for(new x=0;x<3;x++)
- {
- tmp = strtok(cmdtext,idx);
- if(!strlen(tmp)) return SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: /setpos [ID] [X] [Y] [Z]");
- setpos[x] = floatstr(tmp);
- }
- SetPlayerPos(plid,setpos[0],setpos[1],setpos[2]);
- SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: Posição setada.");
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: O comando: ''%s'' não existe, use: /ajuda ou contate um de nossos {33CCFF}administradores{AFAFAF}.");
- return 1;
- }
- return 1;
- }
- if(strcmp(cmd, "/calar", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está logado.");
- if(!(PlayerInfo[playerid][pAdmin] != 0)) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é administrador.");
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SCM(playerid, COR_INFO, "USE: /calar [id]");
- return 1;
- }
- jogador = ReturnUser(tmp);
- if(PlayerInfo[playerid][pATrabalhando] == 0 && PlayerInfo[playerid][pAdmin] != 2) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está em modo de trabalho. (/trabalhar)");
- if(PlayerInfo[jogador][pLogado] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Este playerid não está logado");
- if(jogador == INVALID_PLAYER_ID) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Este player não está online.");
- if(PlayerInfo[playerid][pAdmin] > 0 && (strcmp("Rodney_Francalim",NomeDoJogador(jogador),true)==0)) { SCM(playerid, COR_INFO, "{FF0000}(!) {AFAFAF}: Você não pode calar um administrador dono, por isso foi calado."); PlayerInfo[jogador][pCalado] = 1; return 1; }
- if(PlayerInfo[jogador][pCalado] == 0)
- {
- PlayerInfo[jogador][pCalado] = 1;
- printf("LOG: %s calou %s",NomeDoJogador(playerid), NomeDoJogador(jogador));
- format(string, sizeof(string), "{FF0000}LOG{A9C4E4}: {FF0000}%s foi calado por %s",NomeDoJogador(playerid), NomeDoJogador(jogador));
- MensagemAdmin(COR_INFO,string,1);
- }
- else
- {
- PlayerInfo[jogador][pCalado] = 0;
- printf("LOG: %s descalou %s",NomeDoJogador(playerid), NomeDoJogador(jogador));
- format(string, sizeof(string), "{FF0000}LOG{A9C4E4}:{FF0000} %s descalou o jogador: %s",NomeDoJogador(playerid), NomeDoJogador(jogador));
- MensagemAdmin(COR_INFO,string,1);
- }
- return 1;
- }
- if(strcmp(cmd, "/blockcmd", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está logado.");
- if(!(PlayerInfo[playerid][pAdmin] != 0)) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é administrador.");
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /blockcmd [ID]");
- return 1;
- }
- jogador = ReturnUser(tmp);
- if(PlayerInfo[playerid][pATrabalhando] == 0 && PlayerInfo[playerid][pAdmin] != 2) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está em modo de trabalho. (/trabalhar)");
- if(PlayerInfo[jogador][pLogado] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Este playerid não está logado");
- if(jogador == INVALID_PLAYER_ID) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Este player não está online.");
- if(PlayerInfo[jogador][pAdmin] > 0 && (strcmp("Rodney_Francalim",NomeDoJogador(jogador),true)==0))
- {
- SCM(playerid, COR_INFO, "{FF0000}(!) {AFAFAF}: Você não pode bloquear os comandos de um administrador dono, por isso teve seus comandos bloqueados.");
- SemCMD[playerid] = 1;
- format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}: O jogador %s tentou bloquear seus comandos.", NomeDoJogador(playerid));
- SCM(jogador, COR_INFO, string);
- return 1;
- }
- if(SemCMD[jogador] == 0)
- {
- SemCMD[jogador] = 1;
- printf("LOG: %s bloqueou os comandos de %s",NomeDoJogador(playerid), NomeDoJogador(jogador));
- format(string, sizeof(string), "{FF0000}LOG{A9C4E4}: {FF0000}%s teve os comandos bloqueados por %s",NomeDoJogador(jogador), NomeDoJogador(playerid));
- MensagemAdmin(COR_INFO,string,1);
- }
- else
- {
- SemCMD[jogador] = 0;
- printf("LOG: %s desbloqueou os comandos de %s",NomeDoJogador(playerid), NomeDoJogador(jogador));
- format(string, sizeof(string), "{FF0000}LOG{A9C4E4}:{FF0000} %s desbloqueou os comandos do jogador: %s",NomeDoJogador(playerid), NomeDoJogador(jogador));
- MensagemAdmin(COR_INFO,string,1);
- }
- return 1;
- }
- if(strcmp(cmd, "/admin", true) == 0 || strcmp(cmd, "/a", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: (/a)dmin [TEXTO]");
- return 1;
- }
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- format(string, sizeof(string), "(( %s: %s ))",NomeDoJogador(playerid),result);
- MensagemAdmin(COR_ADMINCHAT, string, 1);
- }
- return 1;
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é administrador.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/espiar", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SCM(playerid, 0xBFC0C2FF, "USE: /espiar [ID/Nome]");
- return 1;
- }
- jogador = ReturnUser(tmp);
- if (PlayerInfo[playerid][pAdmin] >=2)
- {
- if(IsPlayerConnected(jogador))
- {
- if(jogador != INVALID_PLAYER_ID)
- {
- TogglePlayerSpectating(playerid, 1);
- PlayerSpectatePlayer(playerid, jogador);
- SetPlayerInterior(playerid,GetPlayerInterior(jogador));
- Espiando[playerid] = jogador;
- Espiado[playerid] = ADMIN_OLHANDO_PLAYER;
- }
- }
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é administrador.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/sairespiar", true) == 0)
- {
- if (PlayerInfo[playerid][pAdmin] >=2)
- {
- TogglePlayerSpectating(playerid, 0);
- Espiando[playerid] = INVALID_PLAYER_ID;
- Espiado[playerid] = PAROU_DE_OLHAR_PLAYER;
- return 1;
- }
- }
- if(strcmp(cmd, "/tapa", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)){ SCM(playerid, COR_INFO, "{FFFF00}USE{AFAFAF}: /tapa [ID]"); return 1; }
- new Float:slx, Float:sly, Float:slz;
- jogador = ReturnUser(tmp);
- if (PlayerInfo[playerid][pAdmin] >=1)
- {
- if(IsPlayerConnected(jogador))
- {
- if(jogador != INVALID_PLAYER_ID)
- {
- GetPlayerPos(jogador, slx, sly, slz);
- SetPlayerPos(jogador, slx, sly, slz+5);
- PlayerPlaySound(jogador, 1130, slx, sly, slz+5);
- }
- }
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é administrador.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/setint", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está logado.");
- if (PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é um administrador.");
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) return SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /setint [ID] [INTERIOR ID]");
- jogador = ReturnUser(tmp);
- new intid;
- tmp = strtok(cmdtext, idx);
- intid = strval(tmp);
- if(IsPlayerNPC(jogador)) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não pode mudar o interior de um NPC.");
- {
- if(intid > 100) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Escolha outro interior.");
- if(jogador == playerid)
- {
- if(intid > 100) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Escolha outro interior.");
- SetPlayerInterior(jogador, intid);
- format(string, sizeof(string), "{33CCFF}(!) {A9C4E4} Você mudou o seu próprio interior para %d.", intid);
- SendClientMessage(playerid, COR_INFO, string);
- format(string, sizeof(string), "{33CCFF}(!) {A9C4E4} O %s %s mudou o seu próprio interior para %d.", NivelDeAdm(playerid), NomeDoJogador(playerid), intid);
- MensagemAdmin(COR_INFO, string, 1);
- return 1;
- }
- if(jogador != INVALID_PLAYER_ID)
- {
- if(GetPlayerState(jogador) == PLAYER_STATE_ONFOOT)
- {
- if(intid > 100) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Escolha outro interior.");
- SetPlayerInterior(jogador, intid);
- format(string, sizeof(string), "{33CCFF}(!) {A9C4E4} Você mudou o interior do %s %s para %d.", NivelDeAdm(jogador), NomeDoJogador(jogador), intid);
- SendClientMessage(playerid, COR_INFO, string);
- format(string, sizeof(string), "{33CCFF}(!) {A9C4E4} O %s %s mudou seu interior para %d.", NivelDeAdm(playerid), NomeDoJogador(playerid), intid);
- SendClientMessage(jogador, COR_INFO, string);
- format(string, sizeof(string), "{33CCFF}(!) {A9C4E4} O %s %s mudou o interior do %s %s para %d.", NivelDeAdm(playerid), NomeDoJogador(playerid), NivelDeAdm(jogador), NomeDoJogador(jogador), intid);
- MensagemAdmin(COR_INFO, string, 1);
- }
- else
- {
- if(intid > 100) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Escolha outro interior.");
- SetPlayerInterior(jogador, intid);
- new vehdkr = GetPlayerVehicleID(jogador);
- LinkVehicleToInterior(vehdkr, GetPlayerInterior(jogador));
- format(string, sizeof(string), "{33CCFF}(!) {A9C4E4} Você mudou o interior do %s %s para %d.", NivelDeAdm(jogador), NomeDoJogador(jogador), intid);
- SendClientMessage(playerid, COR_INFO, string);
- format(string, sizeof(string), "{33CCFF}(!) {A9C4E4} O %s %s mudou seu interior para %d.", NivelDeAdm(playerid), NomeDoJogador(playerid), intid);
- SendClientMessage(jogador, COR_INFO, string);
- format(string, sizeof(string), "{33CCFF}(!) {A9C4E4} O %s %s mudou o interior do %s %s para %d.", NivelDeAdm(playerid), NomeDoJogador(playerid), NivelDeAdm(jogador), NomeDoJogador(jogador), intid);
- MensagemAdmin(COR_INFO, string, 1);
- }
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/darvida", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) return SCM(playerid, COR_INFO, "{FFFF00}USE{AFAFAF}: /darvida [ID] [Quantidade]");
- new plid,vida;
- plid = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- vida = strval(tmp);
- if (PlayerInfo[playerid][pAdmin] >=2)
- {
- if(IsPlayerConnected(plid))
- {
- if(plid != INVALID_PLAYER_ID)
- {
- SetPlayerHealth(plid, vida);
- }
- }
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é administrador.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/darcolete", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)){return SCM(playerid, COR_INFO, "{FFFF00}USE{AFAFAF}: /darcolete [ID] [Quantidade]");}
- new colete;
- jogador = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- colete = strval(tmp);
- if (PlayerInfo[playerid][pAdmin] >=2)
- {
- if(IsPlayerConnected(jogador))
- {
- if(jogador != INVALID_PLAYER_ID)
- {
- SetPlayerArmour(jogador, colete);
- }
- }
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é administrador.");
- return 1;
- }
- }
- return 1;
- }
- if(strcmp(cmd,"/matar",true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está logado.");
- if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é administrador.");
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /matar [ID]");
- return 1;
- }
- jogador = ReturnUser(tmp);
- if(PlayerInfo[playerid][pATrabalhando] == 0 && PlayerInfo[playerid][pAdmin] != 2) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está em modo de trabalho. (/trabalhar)");
- if(IsPlayerConnected(jogador))
- {
- if(jogador == INVALID_PLAYER_ID) return SCM(playerid, COR_INFO, "{FF0000}(!) {A9C4E4}: Este player não está online.");
- if(PlayerInfo[playerid][pAdmin] > 0 && (strcmp("Rodney_Francalim",NomeDoJogador(jogador),true)==0)) { SCM(playerid, COR_INFO, "{FF0000}(!) {AFAFAF}: Você não pode matar um administrador dono, por isso você foi morto."); SetPlayerHealth(playerid, 0); return 1; }
- SetPlayerHealth(jogador, 0.0);
- printf("LOG: %s matou %s",NomeDoJogador(playerid) ,NomeDoJogador(jogador));
- format(string, sizeof(string), "{FF0000}LOG{A9C4E4}:{FF0000} %s ganhou uma morte de: %s",NomeDoJogador(jogador) ,NomeDoJogador(playerid));
- MensagemAdmin(COR_INFO,string,1);
- }
- return 1;
- }
- if(strcmp(cmd, "/congelar", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está logado.");
- if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é administrador.");
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /congelar [ID]");
- return 1;
- }
- jogador = ReturnUser(tmp);
- if(PlayerInfo[playerid][pATrabalhando] == 0 && PlayerInfo[playerid][pAdmin] != 2) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está em modo de trabalho. (/trabalhar)");
- if(PlayerInfo[jogador][pLogado] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Este player não está logado");
- if(jogador == INVALID_PLAYER_ID) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Este player não está online.");
- if(PlayerInfo[playerid][pAdmin] > 0 && (strcmp("Rodney_Francalim",NomeDoJogador(jogador),true)==0)) { SCM(playerid, COR_INFO, "{FF0000}(!) {AFAFAF}: Você não pode congelar um administrador dono, por isso você foi congelado."); PlayerInfo[playerid][pCongelado] = 1; TogglePlayerControllable(playerid, 0); return 1; }
- if(PlayerInfo[jogador][pCongelado] == 0)
- {
- PlayerInfo[jogador][pCongelado] = 1;
- printf("LOG: %s congelou %s",NomeDoJogador(playerid), NomeDoJogador(jogador));
- format(string, sizeof(string), "{FF0000}LOG{A9C4E4}:{FF0000} %s foi congelado por %s",NomeDoJogador(jogador), NomeDoJogador(playerid));
- MensagemAdmin(COR_INFO,string,1);
- }
- else
- {
- PlayerInfo[jogador][pCongelado] = 0;
- printf("LOG: %s descongelou %s",NomeDoJogador(playerid), NomeDoJogador(jogador));
- format(string, sizeof(string), "{FF0000}LOG{A9C4E4}:{FF0000} %s descongelou o jogador: %s",NomeDoJogador(playerid), NomeDoJogador(jogador));
- MensagemAdmin(COR_INFO,string,1);
- }
- return 1;
- }
- if(strcmp(cmd,"/avisar",true)==0 || strcmp(cmd, "/av", true)==0)
- {
- if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Logue primeiro, para poder usar o comando.");
- if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é administrador.");
- if(PlayerInfo[playerid][pATrabalhando] == 0 && PlayerInfo[playerid][pAdmin] != 2) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está em modo de trabalho. (/trabalhar)");
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SCM(playerid, COR_INFO, "{FFFF00}USE{A9C4E4}: (/av)isar [TEXTO]");
- return 1;
- }
- format(string, sizeof(string), "{FFFF00}ALFA{A9C4E4} %s: %s", NomeDoJogador(playerid), result);
- SendClientMessageToAll(COR_AMARELA, string);
- format( string, sizeof(string), "~w~O administrador ~b~%s~w~ mandou um aviso", NomeDoJogador(playerid));
- GameTextForAll( string, 5000, 3 );
- return 1;
- }
- if(strcmp(cmd, "/ip", true) == 0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, "{FF0000}(!) {A9C4E4}: Você não está autorizado à usar esse comando.");
- if(PlayerInfo[playerid][pATrabalhando] == 0 && PlayerInfo[playerid][pAdmin] != 2) return SCM(playerid, COR_INFO, "{FF0000}(!) {A9C4E4}: Você não está em modo de trabalho. (/trabalhar)");
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) return SCM(playerid, COR_INFO, "{FFFF00}USE{A9C4E4}: /ip [ID]");
- jogador = ReturnUser(tmp);
- if(!(IsPlayerConnected(jogador))) return SCM(playerid, COR_INFO, "{FF0000}(!) {A9C4E4}: Esse jogador não está online.");
- new ipe[128];
- GetPlayerIp(jogador,ipe,128);
- format(string, sizeof(string), " * ~ %s ~> IP: %d ~ * ", NomeDoJogador(jogador),ipe);
- SCM(playerid,COR_AMARELA, string);
- return 1;
- }
- if(strcmp(cmd, "/tempo", true) == 0 || strcmp(cmd, "/clima", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid,COR_INFO, " {FF0000}(!) {A9C4E4}: Você não está logado");
- if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, "{FF0000}(!) {A9C4E4}: Você não está autorizado à usar esse comando.");
- if(PlayerInfo[playerid][pATrabalhando] == 0 && PlayerInfo[playerid][pAdmin] != 2) return SCM(playerid, COR_INFO, "{FF0000}(!) {A9C4E4}: Você não está em modo de trabalho. (/trabalhar)");
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) { SCM(playerid, COR_INFO, "{FFFF00}USE{A9C4E4}: /tempo [tempo id]"); return 1; }
- new clima;
- clima = strval(tmp);
- if(clima < 0||clima > 45) { SCM(playerid, COR_INFO, " Tempo id de 0 ~ 45."); return 1; }
- SetWeather(clima);
- format(string, sizeof(string), "{FF0000}LOG{A9C4E4}:{FF0000} O jogador: %s setou o seu tempo para %d",NomeDoJogador(playerid) ,clima);
- MensagemAdmin(COR_INFO,string,1);
- SCM(playerid, COR_INFO, "Tempo mudado.");
- return 1;
- }
- if(strcmp(cmd, "/mudarhora", true) == 0 || strcmp(cmd, "/mh", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, "{FF0000}(!) {A9C4E4}: Você não está autorizado à usar esse comando.");
- if(PlayerInfo[playerid][pATrabalhando] == 0 && PlayerInfo[playerid][pAdmin] != 2) return SCM(playerid, COR_INFO, "{FF0000}(!) {A9C4E4}: Você não está em modo de trabalho. (/trabalhar)");
- if(!strlen(tmp))
- {
- SCM(playerid, COR_INFO, "{FFFF00}USE{A9C4E4}: /mudarhora [hora do dia] (0-24)");
- return 1;
- }
- new horadodia;
- horadodia = strval(tmp);
- if(horadodia < 0 || horadodia > 24) return SCM(playerid, COR_INFO, " Analfabeto, quantas horas tem um dia? 0 ~ 23");
- SetWorldTime(horadodia);
- format(string, sizeof(string), " Hora do dia mudada para %d", horadodia);
- SCM(playerid, COR_INFO, string);
- MensagemAdmin(COR_INFO, string, 1);
- }
- return 1;
- }
- if(strcmp(cmd, "/explodir", true) == 0 || strcmp(cmd, "/fogo", true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- jogador = strval(tmp);
- if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você deve estar logado.");
- if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é administrador.");
- if(PlayerInfo[jogador][pLogado] == 0) return SCM(playerid, COR_INFO, "Esse jogador não está online.");
- if(!strlen(tmp)) { SCM(playerid, COR_INFO, "{FFFF00}USE{A9C4E4}: /explodir [ID]"); return 1; }
- format(string, sizeof(string), "{FF0000}LOG{A9C4E4}:{FF0000} %s foi explodido por %s",NomeDoJogador(jogador), NomeDoJogador(playerid));
- MensagemAdmin(COR_INFO,string,1);
- SetPlayerHealth(jogador, 10);
- new Float:fogox, Float:fogoy, Float:fogoz;
- GetPlayerPos(jogador,fogox, fogoy, fogoz);
- CreateExplosion(fogox, fogoy , fogoz, 7, 10);
- printf("LOG: %s explodiu %s", NomeDoJogador(playerid), NomeDoJogador(jogador));
- return 1;
- }
- if(strcmp(cmd, "/lc", true) == 0 || strcmp(cmd, "/limparchat", true) == 0)
- {
- if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é administrador.");
- for(new i = 0; i <= MAX_PLAYERS; i++)
- {
- LimparChat(i, 125);
- format(string, sizeof(string), "{33CCFF}ADMIN{A9C4E4}: O administrador %s, limpou o chat.", NomeDoJogador(playerid));
- SCM(i, COR_AMARELA,string);
- }
- return 1;
- }
- // [ comandos de player ]
- if(strcmp(cmdtext, "/carteira", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 1)
- {
- format(string, sizeof(string), "* %s abre sua carteira.", NomeDoJogador(playerid));
- ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
- ShowPlayerDialog(playerid, DOCUMENTOS, DIALOG_STYLE_LIST, "Carteira", "Dinheiro\nIdentidade", "Escolher", "Sair"); //Faltam: Licenças, Carteira de trabalho
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está logado.");
- }
- return 1;
- }
- if(strcmp(cmdtext, "/vertuto", true) == 0)
- {
- if(!PlayerToPoint(1.0, playerid, -212.7301,1109.2706,12.2688)) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você precisa estar no ícone da primeira sala da esquerda na prefeitura.");
- if(PlayerInfo[playerid][pLevel] > 1) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você já tem bastante experiência, não precisa ver o tutorial.");
- VendoTutTemp[playerid] = 1;
- LimparChat(playerid, 125);
- PlayerInfo[playerid][pCalado] = 1;
- SemCMD[playerid] = 1;
- TempoTuto[playerid] = 1;
- VerTuto[playerid] = 1;
- SpawnarJogador(playerid);
- AtualizarJogador(playerid);
- SetPlayerPos(playerid, -210.7981,1131.9382,12.2688);
- SetPlayerCameraPos(playerid, -211.5025,1128.8004,13.4459);
- SetPlayerCameraLookAt(playerid, -211.5025,1128.8004,13.4458);
- return 1;
- }
- if(strcmp(cmdtext, "/obterdocumentoskrlmonsterviadodokctqq", true) == 0)
- {
- ShowPlayerDialog(playerid, OBTERDOC, DIALOG_STYLE_LIST, "Cartório da prefeitura", "Título de eleitor\nCarteira de trabalho\nLicenças", "Escolher", "Sair");
- return 1;
- }
- if(strcmp(cmdtext, "/entrar", true) == 0)
- {
- /*if(PlayerToPoint(1.0, playerid, 2318.8008,-88.6682,26.4844)) // entrar 24/7 ~ Palomino Creek
- {
- PlayerInfo[playerid][pLugar] = 101;
- SetPlayerPos(playerid, -25.1326,-141.0670,1003.5469);
- GameTextForPlayer(playerid, "~w~24/7 de ~b~Palomino Creek", 5000, 1);
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid,16);
- }
- if(PlayerToPoint(1.0, playerid, 2256.7087,-44.5215,26.8834)) // entrar Igreja ~ Palomino Creek
- {
- PlayerInfo[playerid][pLugar] = 102;
- SetPlayerInterior(playerid, 4);
- SetPlayerPos(playerid, 2253.9031,-92.1323,-44.1302);
- GameTextForPlayer(playerid, "~w~Igreja de ~b~Palomino Creek", 5000, 1);
- SetPlayerFacingAngle(playerid, 270);
- SetCameraBehindPlayer(playerid);
- }*/
- if(PlayerToPoint(1.0, playerid, -207.6064,1119.2050,20.4297)) // entrar Prefeitura ~ Fort Carson
- {
- PlayerInfo[playerid][pLugar] = 103;
- SetPlayerInterior(playerid, 3);
- SetPlayerPos(playerid, -207.7033,1119.5430,12.2688);
- GameTextForPlayer(playerid, "~w~Prefeitura de ~b~Fort Carson", 5000, 1);
- SetPlayerFacingAngle(playerid, 90);
- SetCameraBehindPlayer(playerid);
- }
- /*if(PlayerToPoint(1.0, playerid, -207.8791,1119.0891,20.4297)) // entrar Loja de Roupas
- {
- PlayerInfo[playerid][pLugar] = 104;
- SetPlayerInterior(playerid, 15);
- SetPlayerPos(playerid, 207.7552,-110.3319,1005.1328);
- GameTextForPlayer(playerid, "~w~Loja de Roupas", 5000, 1);
- SetPlayerFacingAngle(playerid, 10.3635);
- SetCameraBehindPlayer(playerid);
- }*/
- if(PlayerToPoint(1.0, playerid, -180.0969,1132.9612,19.7422)) // entrar Banco
- {
- PlayerInfo[playerid][pLugar] = 105;
- SetPlayerInterior(playerid, 5);
- SetPlayerPos(playerid, -176.4678,1129.9913,-14.6403);
- GameTextForPlayer(playerid, "~w~Banco de ~b~ Fort Carson", 5000, 1);
- SetPlayerFacingAngle(playerid, 180);
- SetCameraBehindPlayer(playerid);
- }
- if(PlayerToPoint(1.0, playerid, -175.5683,1115.0616,-19.4555)) // bifurcação - banco
- {
- SetPlayerPos(playerid, -177.3603,1115.9154,-24.2231);
- }
- /*if(PlayerToPoint(1.0, playerid, 627.7119,-571.8057,17.5772)) // entrar Departamento de Policia
- {
- PlayerInfo[playerid][pLugar] = 110;
- SetPlayerInterior(playerid, 10);
- SetPlayerPos(playerid, 626.2711,-575.0652,6.0387);
- GameTextForPlayer(playerid, "~w~Departamento de Policia de ~b~Fort Carson", 5000, 1);
- SetPlayerFacingAngle(playerid, 0);
- SetCameraBehindPlayer(playerid);
- }
- if(PlayerToPoint(1.0, playerid, 701.9257,-494.3564,16.3359)) // entrar 24/7 ~ Dillimore
- {
- PlayerInfo[playerid][pLugar] = 107;
- SetPlayerPos(playerid, -25.1326,-141.0670,1003.5469);
- GameTextForPlayer(playerid, "~w~24/7 de ~b~Dillimore", 5000, 1);
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid,16);
- SetPlayerVirtualWorld(playerid, 1);
- }*/
- // [ DP entradas/saídas ]
- if(PlayerToPoint(1.0, playerid, -217.8412,979.1472,19.5040)) // entrar Departamento de Policia
- {
- PlayerInfo[playerid][pLugar] = 110;
- SetPlayerInterior(playerid, 10);
- SetPlayerPos(playerid, 246.4066,107.5535,1003.2188);
- GameTextForPlayer(playerid, "~w~Departamento de Policia de ~b~Fort Carson", 5000, 1);
- SetPlayerFacingAngle(playerid, 0);
- SetCameraBehindPlayer(playerid);
- }
- //if(PlayerInfo[playerid][pORG] == 1 || PlayerInfo[playerid][pLider] == 1)
- //{
- if(PlayerToPoint(1.0, playerid, 239.9455,117.7430,1003.2257)) // Entrada Esquerda - DP - 1
- {
- PlayerInfo[playerid][pLugar] = 111;
- SetPlayerInterior(playerid, 3);
- SetPlayerPos(playerid, 210.5085,140.1983,1003.0234);
- SetPlayerFacingAngle(playerid, 0);
- SetCameraBehindPlayer(playerid);
- }
- if(PlayerToPoint(1.0, playerid, 210.5085,140.1983,1003.0234)) // Entrada Esquerda - DP - 2
- {
- PlayerInfo[playerid][pLugar] = 110;
- SetPlayerInterior(playerid, 10);
- SetPlayerPos(playerid, 239.9455,117.7430,1003.2257);
- SetPlayerFacingAngle(playerid, 270);
- SetCameraBehindPlayer(playerid);
- }
- if(PlayerToPoint(1.0, playerid, 252.1524,109.1200,1003.2188)) // Entrada direita - DP - 1
- {
- SetPlayerPos(playerid, 254.3451,109.0811,1003.2257);
- SetPlayerFacingAngle(playerid, 270);
- SetCameraBehindPlayer(playerid);
- }
- if(PlayerToPoint(1.0, playerid, 254.3451,109.0811,1003.2257)) // Entrada direita - DP - 2
- {
- SetPlayerPos(playerid, 252.1524,109.1200,1003.2188);
- SetPlayerFacingAngle(playerid, 90);
- SetCameraBehindPlayer(playerid);
- }
- if(PlayerToPoint(1.0, playerid, 252.8684,125.3000,1003.2188)) // Entrada Bancada direita ~ 1
- {
- SetPlayerPos(playerid, 253.6967,125.2000,1003.2188);
- SetPlayerFacingAngle(playerid, 270);
- SetCameraBehindPlayer(playerid);
- }
- if(PlayerToPoint(1.0, playerid, 253.6967,125.2000,1003.2188)) // EntDirB2
- {
- SetPlayerPos(playerid, 252.8684,125.3000,1003.2188);
- SetPlayerFacingAngle(playerid, 90);
- SetCameraBehindPlayer(playerid);
- }
- if(PlayerToPoint(1.0, playerid, 255.2427,115.0590,1003.2188)) // EntDirS1
- {
- SetPlayerPos(playerid, 255.1188,116.7185,1003.2188);
- SetPlayerFacingAngle(playerid, 0);
- SetCameraBehindPlayer(playerid);
- }
- if(PlayerToPoint(1.0, playerid, 255.1188,116.7185,1003.2188)) // EntDirS2
- {
- SetPlayerPos(playerid, 255.2427,115.0590,1003.2188);
- SetPlayerFacingAngle(playerid, 180);
- SetCameraBehindPlayer(playerid);
- }
- if(PlayerToPoint(1.0, playerid, 207.7065,142.4978,1003.0234)) // EntEsqS1
- {
- SetPlayerPos(playerid, 237.3459,115.0957,1003.2188);
- SetPlayerFacingAngle(playerid, 180);
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid, 10);
- PlayerInfo[playerid][pLugar] = 110;
- }
- if(PlayerToPoint(1.0, playerid, 237.3459,115.0957,1003.2188)) // EntEsqS2
- {
- SetPlayerPos(playerid, 207.7065,142.4978,1003.0234);
- SetPlayerFacingAngle(playerid, 270);
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid, 3);
- PlayerInfo[playerid][pLugar] = 111;
- }
- if(PlayerToPoint(1.0, playerid, 240.5758,125.1392,1003.2257)) // EntEsqB1
- {
- SetPlayerPos(playerid, 221.0409,140.0483,1003.0234);
- SetPlayerFacingAngle(playerid, 0);
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid, 3);
- PlayerInfo[playerid][pLugar] = 111;
- }
- if(PlayerToPoint(1.0, playerid, 221.0409,140.0483,1003.0234)) // EntEsqB2
- {
- SetPlayerPos(playerid, 240.5758,125.1392,1003.2257);
- SetPlayerFacingAngle(playerid, 270);
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid, 10);
- PlayerInfo[playerid][pLugar] = 110;
- }
- if(PlayerToPoint(1.0, playerid, 227.4080,151.1664,1003.0234)) // EntCorEsc1
- {
- SetPlayerPos(playerid, 264.5517,112.0055,1008.8203);
- SetPlayerFacingAngle(playerid, 90);
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid, 10);
- PlayerInfo[playerid][pLugar] = 110;
- }
- if(PlayerToPoint(1.0, playerid, 264.5517,112.0055,1008.8203)) // EntCorEsc2
- {
- SetPlayerPos(playerid, 227.4080,151.1664,1003.0234);
- SetPlayerFacingAngle(playerid, 90);
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid, 3);
- PlayerInfo[playerid][pLugar] = 111;
- }
- if(PlayerToPoint(1.0, playerid, 226.5256,155.1976,1003.0234)) // EntCorCel1
- {
- SetPlayerPos(playerid, 203.4983,167.9230,1003.0234);
- SetPlayerFacingAngle(playerid, 90);
- SetCameraBehindPlayer(playerid);
- }
- if(PlayerToPoint(1.0, playerid, 203.4983,167.9230,1003.0234)) // EntCorCel2
- {
- SetPlayerPos(playerid, 226.5256,155.1976,1003.0234);
- SetPlayerFacingAngle(playerid, 180);
- SetCameraBehindPlayer(playerid);
- }
- //}
- return 1;
- }
- if(strcmp(cmdtext, "/sairdoveiculokrlarromvadodemerdaqq", true) == 0)
- {
- RemovePlayerFromVehicle(playerid);
- return 1;
- }
- if(strcmp(cmdtext, "/sair", true) == 0)
- {
- /*if(PlayerToPoint(1.0, playerid, -25.1326,-141.0670,1003.5469) && PlayerInfo[playerid][pLugar] == 101) // Sair 24/7 ~ Palomino Creek
- {
- PlayerInfo[playerid][pLugar] = 0;
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 2318.8008,-88.6682,26.4844);
- GameTextForPlayer(playerid, "~b~Palomino Creek", 5000, 1);
- SetCameraBehindPlayer(playerid);
- }
- if(PlayerToPoint(1.0, playerid, -25.1326,-141.0670,1003.5469) && PlayerInfo[playerid][pLugar] == 107) // Sair 24/7 ~ Dillimore
- {
- PlayerInfo[playerid][pLugar] = 0;
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 701.9257,-494.3564,16.3359);
- GameTextForPlayer(playerid, "~b~Dillimore", 5000, 1);
- SetCameraBehindPlayer(playerid);
- }
- if(PlayerToPoint(1.0, playerid, 2253.9031,-92.1323,-44.1302)) // sair Igreja ~ Palomino Creek
- {
- PlayerInfo[playerid][pLugar] = 0;
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, 2256.7087,-44.5215,26.8834);
- GameTextForPlayer(playerid, "~b~Palomino Creek", 5000, 1);
- SetPlayerFacingAngle(playerid, 90);
- SetCameraBehindPlayer(playerid);
- }
- if(PlayerToPoint(1.0, playerid, 207.6295,-110.9538,1005.1328)) // sair Loja de Roupas ~ Palomino Creek
- {
- PlayerInfo[playerid][pLugar] = 0;
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid,-207.6322,1119.3148,20.4297);
- GameTextForPlayer(playerid, "~b~Palomino Creek", 5000, 1);
- SetPlayerFacingAngle(playerid, 277.3026);
- SetCameraBehindPlayer(playerid);
- }*/
- if(PlayerToPoint(1.0, playerid, -207.7033,1119.5430,12.2688)) // sair Prefeitura ~ Fort Carson
- {
- PlayerInfo[playerid][pLugar] = 0;
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, -207.6064,1119.2050,20.4297);
- GameTextForPlayer(playerid, "~b~Fort Carson", 5000, 1);
- SetPlayerFacingAngle(playerid, 270);
- SetCameraBehindPlayer(playerid);
- }
- if(PlayerToPoint(1.0, playerid, -176.4678,1129.9913,-14.6403)) // sair Banco ~ Palomino Creek
- {
- PlayerInfo[playerid][pLugar] = 0;
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, -180.0969,1132.9612,19.7422);
- GameTextForPlayer(playerid, "~b~Fort Carson", 5000, 1);
- SetPlayerFacingAngle(playerid, 90);
- SetCameraBehindPlayer(playerid);
- }
- if(PlayerToPoint(1.0, playerid, 246.4066,107.5535,1003.2188)) // sair Departamento de Policia
- {
- PlayerInfo[playerid][pLugar] = 0;
- SetPlayerInterior(playerid, 0);
- SetPlayerPos(playerid, -217.8412,979.1472,19.5040);
- GameTextForPlayer(playerid, "~b~Fort Carson", 5000, 1);
- SetPlayerFacingAngle(playerid, 270);
- SetCameraBehindPlayer(playerid);
- }
- return 1;
- }
- if(strcmp(cmd, "/gps", true) == 0)
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você deve estar dentro de um veículo para poder usar um GPS");
- format(string, sizeof(string), "* %s liga seu GPS.", NomeDoJogador(playerid));
- ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
- ShowPlayerDialog(playerid, GPS, DIALOG_STYLE_LIST, "{33CCFF} Sistema de GPS", "Prefeitura de Palomino Creek\nDesligar GPS", "Selecionar", "Cancelar");
- return 1;
- }
- //=======================================
- // COMANDOS PARA RP
- //=======================================
- if(strcmp(cmd, "/eu", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está logado.");
- if(PlayerInfo[playerid][pCalado] == 1) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você está calado.");
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[128];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /eu [AÇÃO]");
- return 1;
- }
- format(string, sizeof(string), "* %s %s", NomeDoJogador(playerid), result);
- SetPlayerChatBubble(playerid, string, COR_PURPLE, 15.0,7000);
- SetPlayerChatBubble(playerid, string, COR_PURPLE, 15.0,7000);
- ProxDetector(20.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
- new y, m, d;
- new h,mi,s;
- getdate(y,m,d);
- gettime(h,mi,s);
- format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] [/EU] %s: %s",d,m,y,h,mi,s, NomeDoJogador(playerid), result);
- ActionLog(string);
- }
- return 1;
- }
- if(strcmp(cmd, "/pensar", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /pensar [AÇÃO]");
- return 1;
- }
- format(string, sizeof(string), "* %s está pensando: '%s'.", NomeDoJogador(playerid), result);
- ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
- SetPlayerChatBubble(playerid, string, COR_PURPLE, 15.0, 7000);
- printf("%s", string);
- }
- return 1;
- }
- if(strcmp(cmd, "/tentar", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está logado.");
- if(PlayerInfo[playerid][pCalado] == 1) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você está calado.");
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[128];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE /tentar [AÇÃO]");
- return 1;
- }
- new randa = random(3)+1;
- if(randa == 1) format(string, sizeof(string), "* %s tenta %s e consegue.", NomeDoJogador(playerid), result);
- else format(string, sizeof(string), "* %s tenta %s, mas falha.", NomeDoJogador(playerid), result);
- ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
- new y, m, d;
- new h,mi,s;
- getdate(y,m,d);
- gettime(h,mi,s);
- format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] [/tentar] %s: %s",d,m,y,h,mi,s, NomeDoJogador(playerid), result);
- ActionLog(string);
- }
- return 1;
- }
- if(strcmp(cmd, "/do", true) == 0 || strcmp(cmd, "/fazer", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está logado.");
- if(PlayerInfo[playerid][pCalado] == 1) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você está calado.");
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[128];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /do [AÇÃO]");
- return 1;
- }
- format(string, sizeof(string), "* %s (( %s ))", result, NomeDoJogador(playerid));
- SetPlayerChatBubble(playerid, string, COR_PURPLE, 15.0,7000);
- ProxDetector(20.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
- new y, m, d;
- new h,mi,s;
- getdate(y,m,d);
- gettime(h,mi,s);
- format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] [/DO] %s: %s",d,m,y,h,mi,s,NomeDoJogador(playerid), result);
- ActionLog(string);
- }
- return 1;
- }
- // comandos do carro
- if(!strcmp(cmd, "/carro", true))
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está em um veículo.");
- if(!(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)) return SendClientMessage(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você precisa ser o motorista.");
- tmp = strtok(cmdtext, idx);
- new carroop = strval(tmp);
- if(!strlen(tmp)||carroop < 1 || carroop > 12)
- {
- SendClientMessage(playerid, COR_INFO, "{FFFF00}:: Painel ::");
- SendClientMessage(playerid, COR_INFO, " Motor: {90EE90}LIGAR{A9C4E4} (1) {FF0000}DESLIGAR {A9C4E4}(2)");
- SendClientMessage(playerid, COR_INFO, " Capota do carro: {90EE90}ABRIR{A9C4E4} (3) {FF0000}FECHAR {A9C4E4}(4)");
- SendClientMessage(playerid, COR_INFO, " Faról/Luzes traseiras: {90EE90}LIGAR{A9C4E4} (5) {FF0000}DESLIGAR {A9C4E4}(6)");
- SendClientMessage(playerid, COR_INFO, " Alarme: {90EE90}LIGAR{A9C4E4} (7) {FF0000}DESLIGAR {A9C4E4}(8)");
- SendClientMessage(playerid, COR_INFO, " Porta-malas: {90EE90}ABRIR{A9C4E4} (9) {FF0000}FECHAR {A9C4E4}(10)");
- return 1;
- }
- switch(carroop)
- {
- case 1: OnPlayerCommandText(playerid, "/motorlsoufodapacaralho-qq");
- case 2: OnPlayerCommandText(playerid, "/motordsoufodapacaralho-qq");
- case 3: GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective),
- SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
- case 4: GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective),
- SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective);
- case 5: GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective),
- SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
- case 6: GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective),
- SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
- case 7: GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective),
- SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
- case 8: GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective),
- SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,VEHICLE_PARAMS_OFF,doors,bonnet,boot,objective);
- case 9: GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective),
- SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
- case 10: GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective),
- SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective);
- }
- return 1;
- }
- if(strcmp(cmdtext, "/motorlsoufodapacaralho-qq", true) == 0)
- {
- if(!(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)) return 1;
- new veid = GetPlayerVehicleID(playerid);
- new Float:vidadoveh;
- GetVehicleHealth(veid, vidadoveh);
- new ligoi = random(5);
- GetVehicleParamsEx(veid,engine,lights,alarm,doors,bonnet,boot,objective);
- if(engine == 1) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: O motor do veículo já está ligado.");
- if(veid != INVALID_VEHICLE_ID)
- {
- if(vidadoveh >= 40)
- {
- if(ligoi > 1)
- {
- format(string, sizeof(string), "* %s gira a chave do veículo e o motor liga.", NomeDoJogador(playerid));
- ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
- TogglePlayerControllable(playerid, 1);
- SetVehicleEngineOn(veid);
- GetVehicleParamsEx(veid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(veid,VEHICLE_PARAMS_ON,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF);
- }
- else if(ligoi == 1)
- {
- format(string, sizeof(string), "* %s gira a chave do veículo e o motor não liga.", NomeDoJogador(playerid));
- ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
- }
- }
- else if(vidadoveh < 40 && vidadoveh > 31)
- {
- if(ligoi == 5)
- {
- format(string, sizeof(string), "* %s gira a chave do veículo e o motor liga.", NomeDoJogador(playerid));
- ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
- TogglePlayerControllable(playerid, 1);
- SetVehicleEngineOn(veid);
- GetVehicleParamsEx(veid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(veid,VEHICLE_PARAMS_ON,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF);
- }
- else
- {
- format(string, sizeof(string), "* %s gira a chave do veículo e o motor não liga.", NomeDoJogador(playerid));
- ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
- }
- }
- else if(vidadoveh <= 31)
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: O motor está quebrado, impossível de ligar o veículo.");
- }
- return 1;
- }
- return 1;
- }
- if(strcmp(cmdtext, "/motordsoufodapacaralho-qq", true) == 0)
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return 1;
- new veid = GetPlayerVehicleID(playerid);
- GetVehicleParamsEx(veid,engine,lights,alarm,doors,bonnet,boot,objective);
- if(engine == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: O motor do veículo já está desligado.");
- if(veid != INVALID_VEHICLE_ID)
- {
- format(string, sizeof(string), "* %s gira a chave do veículo e desliga o motor.", NomeDoJogador(playerid));
- ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
- TogglePlayerControllable(playerid, 0);
- GetVehicleParamsEx(veid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(veid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
- return 1;
- }
- return 1;
- }
- if(strcmp(cmdtext, "/abastecer", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você precisa estar logado para usar este comando.");
- if(!EUmPostoDeGas(playerid)) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está em um posto de gasolina.");
- Abastecendo[playerid] = 1;
- return 1;
- }
- if(strcmp(cmdtext, "/admins", true) == 0)
- {
- if(AdminsOnline == 0) return SCM(playerid, COR_INFO, "{33CCFF}[FC:RP]{A9C4E4}: Nenhum administrador online.");
- SCM(playerid, COR_INFO, " * ~ {33CCFF} = Administração online = {A9C4E4} ~ *");
- for(new i = 0; i <= MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) == 1 && PlayerInfo[i][pAdmin] > 0)
- {
- new niveldeadmin[21];
- if(PlayerInfo[i][pAdmin] == 1)
- {
- niveldeadmin = "Administrador";
- }
- if(PlayerInfo[i][pAdmin] == 2)
- {
- niveldeadmin = "Administrador dono";
- }
- if(AFK[playerid] == 0)
- {
- if(PlayerInfo[playerid][pATrabalhando] == 1)
- {
- format(string, sizeof(string), "{FFFF00}Nome{A9C4E4}: {33CCFF}%s {A9C4E4}[{33CCFF}%s{A9C4E4}]{A9C4E4} ~ [{FFFF00}TRABALHANDO{A9C4E4}]", NomeDoJogador(i), niveldeadmin);
- SCM(playerid, COR_INFO, string);
- }
- else
- {
- format(string, sizeof(string), "{FFFF00}Nome{A9C4E4}: {33CCFF}%s {A9C4E4}[{33CCFF}%s{A9C4E4}]{A9C4E4} ~ [{0000FF}JOGANDO{A9C4E4}]", NomeDoJogador(i), niveldeadmin);
- SCM(playerid, COR_INFO, string);
- }
- }
- else
- {
- format(string, sizeof(string), "{FFFF00}Nome{A9C4E4}: {33CCFF}%s {A9C4E4}[{33CCFF}%s{A9C4E4}]{A9C4E4} ~ [{FFA500}AFK{A9C4E4}]", NomeDoJogador(i), niveldeadmin);
- SCM(playerid, COR_INFO, string);
- }
- }
- }
- return 1;
- }
- // * chats
- if(strcmp(cmd, "/b", true) == 0)// chat ooc
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está logado.");
- if(PlayerInfo[playerid][pCalado] == 1) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você está calado.");
- new str[160];
- new strlog[160];
- GetPlayerName(playerid, str, MAX_PLAYER_NAME);
- for (new i = 0; i < MAX_PLAYER_NAME; i++)
- if (str[i] == '_')
- str[i] = ' ';
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result)) return SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /b [TEXTO OOC]");
- format(str, sizeof(str), "(( %s diz: %s ))", str, result);
- format(strlog, sizeof(strlog), "(( %s diz: %s ))", str, result);
- ProxDetector(20.0, playerid, str,COR_CHATOOC,COR_CHATOOC,COR_CHATOOC,COR_CHATOOC,COR_CHATOOC);
- printf("%s", strlog);
- }
- return 1;
- }
- if(strcmp(cmd, "/o", true) == 0) // chat global
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está logado.");
- if((SemOOC == 1) && PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COR_INFO, " {33CCFF}ADMIN{AFAFAF}: O chat global foi desativado por um administrador.");
- if(PlayerInfo[playerid][pCalado] == 1) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você está calado.");
- new str[160];
- GetPlayerName(playerid, str, MAX_PLAYER_NAME);
- for (new i = 0; i < MAX_PLAYER_NAME; i++)
- if (str[i] == '_')
- str[i] = ' ';
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result)) return SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF} USE: (/o)oc [CHAT OOC]");
- format(str, sizeof(str), "(( %s: %s ))", str, result);
- ChatOOC(COR_OOC,str);
- printf("%s", str);
- //OOCLog(string[]);
- }
- return 1;
- }
- // * Carteira de trabalho
- if(strcmp(cmd, "/pcarteiradtrabporramerdadpokrlsouvozaoqq", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está logado.");
- if(PlayerInfo[playerid][pCartTrab] == 1) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você já tem uma carteira de trabalho");
- SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: Você adquiriu a carteira de trabalho.");
- PlayerInfo[playerid][pCartTrab] = 1;
- AtualizarJogador(playerid);
- return 1;
- }
- // * celular
- if(strcmp(cmd, "/ligar", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /ligar [NÚMERO]");
- return 1;
- }
- if(PlayerInfo[playerid][pCNumero] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Voce não tem um celular.");
- new numerodocelular = strval(tmp);
- if(numerodocelular == PlayerInfo[playerid][pCNumero]) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Voce ja está em uma ligação.");
- if(CelularOcupado[playerid] != 255) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Voce ja está em uma ligação.");
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pCNumero] == numerodocelular && numerodocelular != 0)
- {
- jogador = i;
- CelularOcupado[playerid] = jogador;
- if(IsPlayerConnected(jogador))
- {
- if(jogador != INVALID_PLAYER_ID)
- {
- if(CelularLigado[jogador] > 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: O número que você ligou, está fora de área ou desligado.");
- if(CelularOcupado[jogador] == 255)
- {
- SetPlayerSpecialAction(playerid, 11);
- format(string, sizeof(string), "Seu celular está tocando (/at)ender Chamando: %s", NomeDoJogador(playerid));
- SCM(jogador, COR_INFO, string);
- //RingTone[jogador] = 10;
- format(string, sizeof(string), "* O celular de %s está tocando.", NomeDoJogador(jogador));
- SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: Use ''T'' para falar e, posteriormente, digite /des para desligar.");
- ProxDetector(30.0, i, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
- format(string, sizeof(string), "* %s pega o celular.", NomeDoJogador(jogador));
- ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
- //CellTime[playerid] = 1;
- return 1;
- }
- }
- }
- }
- }
- }
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: O número que você ligou, no momento não está recebendo ligações.");
- }
- return 1;
- }
- if(strcmp(cmd, "/atender", true) == 0 || strcmp(cmd, "/at", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 1)
- {
- if(CelularOcupado[playerid] != 255) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Voce ja está em uma ligação.");
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(CelularOcupado[i] == playerid)
- {
- CelularOcupado[playerid] = i;
- SCM(i, COR_INFO, "{FFFFOO}(!) {A9C4E4}: Chama atendida.");
- format(string, sizeof(string), "* %s atendeu o celular.", NomeDoJogador(playerid));
- ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
- //RingTone[playerid] = 0;
- }
- }
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/desligar", true) == 0 || strcmp(cmd, "/des", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 1)
- {
- jogador = CelularOcupado[playerid];
- if(IsPlayerConnected(jogador))
- {
- if(jogador != INVALID_PLAYER_ID)
- {
- if(jogador != 255)
- {
- if(jogador < 255)
- {
- SCM(jogador, COR_INFO, "{FFFF00}(!) {A9C4E4}: Desligou.");
- //CellTime[jogador] = 0;
- //CellTime[playerid] = 0;
- SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: Desligou.");
- CelularOcupado[jogador] = 255;
- }
- CelularOcupado[playerid] = 255;
- //CellTime[playerid] = 0;
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
- //RingTone[playerid] = 0;
- return 1;
- }
- }
- }
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: Você guardou o celular.");
- }
- return 1;
- }
- if(strcmp(cmd, "/sms", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está logado.");
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /sms [NÚMERO] [TEXTO]");
- return 1;
- }
- if(PlayerInfo[playerid][pCNumero] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Voce não tem um celular.");
- format(string, sizeof(string), "* %s pegou o celular.", NomeDoJogador(jogador));
- ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
- new numerodocelular = strval(tmp);
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /sms [NÚMERO] [TEXTO]");
- return 1;
- }
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(PlayerInfo[i][pLogado] == 1)
- {
- if(PlayerInfo[i][pCNumero] == numerodocelular && numerodocelular != 0)
- {
- jogador = i;
- CelularOcupado[playerid] = jogador;
- if(IsPlayerConnected(jogador))
- {
- if(jogador != INVALID_PLAYER_ID)
- {
- if(CelularLigado[jogador] > 0)
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: O número que você ligou no momento não está recebendo mensagens.");
- return 1;
- }
- format(string, sizeof(string), "{FFFF00}SMS{A9C4E4}: %s, enviou: %s (%d)", result, NomeDoJogador(jogador), PlayerInfo[playerid][pCNumero]);
- SCM(jogador, COR_INFO, string);
- SCM(playerid, COR_INFO, string);
- SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: SMS enviado");
- PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
- CelularOcupado[playerid] = 255;
- return 1;
- }
- }
- }
- }
- }
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Falha ao encaminhar a mensagem.");
- return 1;
- }
- if(strcmp(cmd, "/agenda", true) == 0 || strcmp(cmd, "/telefone", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 1)
- {
- if (PlayerInfo[playerid][pAgenda] == 1)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /agenda [ID]");
- return 1;
- }
- jogador = ReturnUser(tmp);
- if(IsPlayerConnected(jogador))
- {
- if(jogador != INVALID_PLAYER_ID)
- {
- format(string, 256, "{FFFF00}(!) {A9C4E4}: Nome: %s ~ número: {4169E1}%d{A9C4E4}.", NomeDoJogador(jogador), PlayerInfo[jogador][pCNumero]);
- SCM(playerid, COR_INFO, string);
- format(string, sizeof(string), "* %s confere sua lista telefônica.", NomeDoJogador(playerid));
- ProxDetector(30.0, playerid, string, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
- }
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: O jogador não está online.");
- }
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não tem um lista telefônica, vá comprar em uma loja de conveniências.");
- }
- }
- return 1;
- }
- // [ relatar ]
- if(strcmp(cmd, "/relatorio", true) == 0 || strcmp(cmd, "/relato", true) == 0 || strcmp(cmd, "/duvida", true) == 0 || strcmp(cmd, "/re", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está logado.");
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /relatorio {A9C4E4}[TEXTO]");
- return 1;
- }
- format(string, sizeof(string), "{FFFF00}RELATÓRIO{A9C4E4}: {33CCFF}%s{A9C4E4} [%d]: {33CCFF}%s", NomeDoJogador(playerid), playerid, (result));
- MensagemAdmin(COR_INFO,string,1);
- SCM(playerid, COR_INFO,string);
- GameTextForPlayer(playerid, "~b~relatorio ~w~enviado", 5000, 3);
- for(new i; i < MAX_PLAYERS; i ++)
- {
- if(PlayerInfo[playerid][pLogado] == 1 && PlayerInfo[playerid][pAdmin] >= 1)
- {
- GameTextForPlayer(i, "~b~relatorio ~w~recebido", 5000, 3);
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/comprar", true) == 0)
- {
- if(PlayerToPoint(1.0, playerid, -20.8855,-138.4602,1003.5469))
- {
- ShowPlayerDialog(playerid, COMPRAR247PALOMINO, DIALOG_STYLE_LIST, "{FFFF00}Lista de produtos", "{FFFFFF}Celular | {00FF00}US$ 399,90\n{FFFFFF}Agenda | {00FF00}US$ 29,90\n{FFFFFF}GPS | {00FF00}US$ 799,90\n{FFFFFF}Relógio | {00FF00}US$ 69,90", "Selecionar", "Cancelar");
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está no caixa da loja de conveniências");
- return 1;
- }
- return 1;
- }
- // [ comandos de líder ]
- // [ Convidar ]
- if(strcmp(cmd, "/convidar", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: USE: /convidar [ID]");
- return 1;
- }
- new ftext[50];
- jogador = ReturnUser(tmp);
- if (PlayerInfo[playerid][pLider] >= 1)
- {
- if(PlayerInfo[playerid][pLogado] == 1)
- {
- if(PlayerInfo[jogador][pLevel] < 2) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você só pode convidar quem tiver level 2 ou mais.");
- if(jogador != INVALID_PLAYER_ID)
- {
- if (PlayerInfo[jogador][pORG] == 0)
- {
- if(PlayerInfo[playerid][pLider] == 1) { ftext = "Fort Carson Police Department"; SetPlayerSkin(jogador, 288); }
- //else if(PlayerInfo[playerid][pLider] == 2) { ftext = "B.O.P.E."; ChosenSkin[jogador] = 285; SetPlayerSkin(jogador, 285); }
- //else if(PlayerInfo[playerid][pLider] == 3) { ftext = "Exército"; ChosenSkin[jogador] = 287; SetPlayerSkin(jogador, 287); }
- else { return 1; }
- PlayerInfo[jogador][pORG] = PlayerInfo[playerid][pLider];
- PlayerInfo[jogador][pCargo] = 1;
- printf("LOG: O lider: %s convidou: %s para entrar %s.", NomeDoJogador(playerid), NomeDoJogador(jogador), ftext);
- format(string, sizeof(string), "{FFFF00}(!) {A9C4E4}: Você foi convidado para o(a) %s, pelo Líder %s", ftext, NomeDoJogador(playerid));
- SCM(jogador, COR_INFO, string);
- format(string, sizeof(string), "{FFFF00}(!) {A9C4E4}: Você convidou o jogador %s para o(a) %s.", NomeDoJogador(jogador),ftext);
- SCM(playerid, COR_INFO, string);
- format(string, sizeof(string), "{FF0000}LOG{A9C4E4}:{FF0000} O líder: %s convidou: %s para entrar na(o) %s.", NomeDoJogador(playerid), NomeDoJogador(jogador), ftext);
- MensagemAdmin(COR_INFO, string, 1);
- SetPlayerInterior(jogador,6);
- AtualizarJogador(jogador);
- SpawnarJogador(jogador);
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Este jogador já é de uma organização.");
- return 1;
- }
- }
- }
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é líder de nenhuma organização.");
- }
- }
- return 1;
- }
- // [ promover ]
- if(strcmp(cmd, "/promover", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 1)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) return SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF} USE: /promover [ID] [CARGO]");
- new level;
- jogador = ReturnUser(tmp);
- tmp = strtok(cmdtext, idx);
- level = strval(tmp);
- if(level > 9 || level < 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Cargos de 0 a 9.");
- if (PlayerInfo[playerid][pLider] >= 1)
- {
- if(PlayerInfo[jogador][pLogado] == 1)
- {
- if(jogador != INVALID_PLAYER_ID)
- {
- PlayerInfo[jogador][pCargo] = level;
- format(string, sizeof(string), "{FFFF00}(!) {A9C4E4}: Voce foi promovido pelo líder %s para cargo %d da sua organização.", NomeDoJogador(playerid), level);
- SCM(jogador, COR_INFO, string);
- format(string, sizeof(string), "{FFFF00}(!) {A9C4E4}: Voce promoveu %s ao cargo %d.", NomeDoJogador(jogador),level);
- SCM(playerid, COR_INFO, string);
- }
- }
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Voce não é líder.");
- }
- }
- return 1;
- }
- // [ Demitir ]
- if(strcmp(cmd, "/demitir", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 1)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SCM(playerid, COR_INFO, " {FFFF00}(!) {AFAFAF}: /demitir [ID]");
- return 1;
- }
- jogador = ReturnUser(tmp);
- if (PlayerInfo[playerid][pLider] >= 1)
- {
- if(PlayerInfo[jogador][pLogado] == 1)
- {
- if(jogador != INVALID_PLAYER_ID)
- {
- if (PlayerInfo[jogador][pORG] > 0)
- {
- format(string, sizeof(string), "{FFFF00}(!) {A9C4E4}: Você foi demitido pelo líder: %s.", NomeDoJogador(playerid));
- SCM(jogador, COR_INFO, string);
- SCM(jogador, COR_INFO, "{FFFF00}(!) {A9C4E4}: Agora voce é um civíl.");
- PlayerInfo[jogador][pORG] = 0;
- PlayerInfo[jogador][pCargo] = 0;
- SetPlayerSkin(playerid, 26);
- PlayerInfo[playerid][pSkin] = 26;
- SpawnarJogador(jogador);
- format(string, sizeof(string), "{FFFF00}(!) {A9C4E4}: Voce demitiu o %s.", NomeDoJogador(jogador));
- SCM(playerid, COR_INFO, string);
- AtualizarJogador(jogador);
- }
- }
- }
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é líder.");
- }
- }
- return 1;
- }
- // [ Comandos de policial ]
- if(strcmp(cmd, "/abrirporta", true) == 0 || strcmp(cmd, "/ap", true) == 0)
- {
- if(PlayerInfo[playerid][pORG] != 1) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é um policial.");
- return 1;
- }
- if(strcmp(cmd, "/baterponto", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pORG] == 1 || PlayerInfo[playerid][pLider] == 1)
- {
- if (PlayerToPoint(3, playerid,596.4583,-557.9193,6.0387) && PlayerInfo[playerid][pLugar] != 255)
- {
- ShowPlayerDialog(playerid, BATERCARTAO, DIALOG_STYLE_LIST, "{0000FF}RC:PD","{FFFFFF}Bater cartão\nS.W.A.T.\nUniformes\nÀ paisana", "Selecionar", "Cancelar");
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está na sala de comando.");
- return 1;
- }
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é policial.");
- }
- }
- return 1;
- }
- if(strcmp(cmd, "/equipar", true) == 0)
- {
- if(PlayerInfo[playerid][pLogado] == 1)
- {
- if(PlayerInfo[playerid][pORG] == 1 || PlayerInfo[playerid][pLider] == 1)
- {
- if(PlayerInfo[playerid][pTrabalhando] == 0) return SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não bateu cartão.");
- if(PlayerToPoint(3, playerid,568.5528,-587.1313,6.0749) && PlayerInfo[playerid][pLugar] != 255)
- {
- ShowPlayerDialog(playerid, EQUIPAR, DIALOG_STYLE_LIST, "{0000FF}RC:PD ~ Faça suas escolhas.","{FFFFFF}Arma branca\nArma secundárias\nArma primárias\nUltilitários", "Selecionar", "Cancelar");
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não está na sala de comando.");
- return 1;
- }
- }
- else
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não é policial.");
- }
- }
- return 1;
- }
- format(string,sizeof(string)," {FF0000}(!) {AFAFAF}: O comando: ''%s'' não existe, use: /ajuda ou contate um de nossos {33CCFF}administradores{AFAFAF}.",cmd);
- SCM(playerid,COR_INFO,string);
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- //================== [ NomeServer ] =====================
- public NomeServer()
- {
- contagem++;
- if(contagem > 4)contagem = 0;
- new string[128];
- format(string, sizeof(string), "hostname %s", ServidorNome[contagem]);
- SendRconCommand(string);
- return 1;
- }
- //================== [ Limpar chat ] ====================
- forward LimparChat(playerid, lines);
- public LimparChat(playerid, lines)
- {
- if (IsPlayerConnected(playerid))
- {
- for(new i=0; i<lines; i++)
- {
- SCM(playerid, COR_INFO, "");
- }
- }
- return 1;
- }
- //=============== [ Sistema de registro/login ] =================
- public RegistrarJogador(playerid, senha[])
- {
- if(IsPlayerConnected(playerid))
- {
- new string3[64];
- format(string3,sizeof(string3),"Contas/%s.ini",NomeDoJogador(playerid));
- dini_Create(string3);
- dini_Set(string3,"Senha",senha);
- PlayerInfo[playerid][pReg] = 0;
- dini_IntSet(string3,"Registrado", PlayerInfo[playerid][pReg]);
- dini_IntSet(string3,"NRegistro", TotalDeRegistrados);
- dini_IntSet(string3,"RegistroGeral", PlayerInfo[playerid][pRegistroGeral]);
- dini_IntSet(string3,"Level", GetPlayerScore(playerid));
- dini_IntSet(string3,"Dinheiro", PlayerInfo[playerid][pMoney]);
- dini_IntSet(string3, "Sexo",PlayerInfo[playerid][pSexo]);
- dini_IntSet(string3, "Idade",PlayerInfo[playerid][pIdade]);
- dini_IntSet(string3,"DiaDeNascimento", PlayerInfo[playerid][pDiaNascimento]);
- dini_IntSet(string3,"MesDeNascimento", PlayerInfo[playerid][pMesNascimento]);
- dini_IntSet(string3,"AnoDeNascimento", PlayerInfo[playerid][pMesNascimento]);
- dini_IntSet(string3, "Origem",PlayerInfo[playerid][pOrigem]);
- dini_IntSet(string3, "CartTrab", PlayerInfo[playerid][pCartTrab]);
- dini_IntSet(string3, "TituloE", PlayerInfo[playerid][pTituloE]);
- dini_IntSet(string3,"Admin", PlayerInfo[playerid][pAdmin]);
- dini_IntSet(string3,"Emprego", PlayerInfo[playerid][pEmprego]);
- dini_IntSet(string3,"Banido", PlayerInfo[playerid][pBanido]);
- dini_IntSet(string3,"ORG", PlayerInfo[playerid][pORG]);
- dini_IntSet(string3, "Skin",PlayerInfo[playerid][pSkin]);
- dini_IntSet(string3,"Morreu", PlayerInfo[playerid][pMortes]);
- dini_IntSet(string3,"Matou", PlayerInfo[playerid][pKills]);
- dini_IntSet(string3,"TempoPD", PlayerInfo[playerid][pTempoPD]);
- dini_IntSet(string3,"Lider", PlayerInfo[playerid][pLider]);
- dini_IntSet(string3,"Cargo", PlayerInfo[playerid][pCargo]);
- dini_IntSet(string3,"EXP", PlayerInfo[playerid][pEXP]);
- dini_IntSet(string3,"Banco", PlayerInfo[playerid][pBanco]);
- dini_IntSet(string3,"Relógio", PlayerInfo[playerid][pRelogio]);
- dini_IntSet(string3,"GPS", PlayerInfo[playerid][pGPS]);
- dini_IntSet(string3,"Agenda", PlayerInfo[playerid][pAgenda]);
- dini_IntSet(string3,"NúmeroCelular", PlayerInfo[playerid][pCNumero]);
- dini_IntSet(string3,"Tutorial", PlayerInfo[playerid][pTut]);
- new d,m,a;
- getdate(a,m,d);
- dini_IntSet(string3,"AnoRegistrado",a);
- dini_IntSet(string3,"MesRegistrado",m);
- dini_IntSet(string3,"DiaRegistrado",d);
- dini_IntSet("Configs/NumeroDeRegistrados.ini","Registrados", TotalDeRegistrados + 1);
- CarregarJogador(playerid, senha);
- LimparChat(playerid, 125);
- SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: Conta criada com sucesso.");
- SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: Você foi logado automaticamente.");
- }
- return 1;
- }
- public ShowStats(playerid,targetid)
- {
- new mostrarrg[128];
- new orgm = PlayerInfo[playerid][pOrigem];
- SCM(playerid, COR_INFO, "");
- SCM(playerid, COR_INFO, " ESTADO DE SAN ANDREAS ");
- format(mostrarrg, sizeof(mostrarrg)," Nome: {4F754A}%s{A9C4E4} . Nº Registro{A9C4E4}: {4F754A}%d",NomeDoJogador(targetid), PlayerInfo[playerid][pNRegistro]);
- SCM(playerid, COR_INFO,mostrarrg);
- format(mostrarrg, sizeof(mostrarrg)," Nascimento: {4F754A}%d/%d/%d{A9C4E4} . País: {4F754A}United States of America{A9C4E4} . Naturalidade: {4F754A}%s, SA",
- PlayerInfo[playerid][pDiaNascimento], PlayerInfo[playerid][pMesNascimento], PlayerInfo[playerid][pAnoNascimento],(orgm == 1) ? ("Fort Carson") : (orgm == 2) ? ("Red County") : (orgm == 3) ? ("Liberty City") : ("CONTA BUGADA"));
- SCM(playerid, COR_INFO,mostrarrg);
- new meuzovoano, meuzovomes, meuzovodia;
- new string2[64];
- format(string2, sizeof(string2), "Contas/%s.ini", NomeDoJogador(playerid));
- if(dini_Exists(string2))
- {
- meuzovoano = dini_Int(string2,"AnoRegistrado");
- meuzovomes = dini_Int(string2,"MesRegistrado");
- meuzovodia = dini_Int(string2,"DiaRegistrado");
- }
- new nrg = 1000000000 + random(8999999999);
- PlayerInfo[playerid][pRegistroGeral] = nrg;
- format(mostrarrg,sizeof(mostrarrg)," Expedição: {4F754A}%d/%d/%d {A9C4E4}. Registro Geral: {4F754A}%d", meuzovodia, meuzovomes, meuzovoano -19, nrg);
- SCM(playerid, COR_INFO, mostrarrg);
- return 1;
- }
- public CarregarJogador(playerid, senha[])
- {
- new string2[64];
- format(string2, sizeof(string2), "Contas/%s.ini", NomeDoJogador(playerid));
- if(dini_Exists(string2))
- {
- if(!strcmp(dini_Get(string2, "Senha"), senha, false))
- {
- PlayerInfo[playerid][pLogado] = 1;
- PlayerInfo[playerid][pReg] = dini_Int(string2,"Registrado");
- PlayerInfo[playerid][pNRegistro] = dini_Int(string2, "NRegistro");
- PlayerInfo[playerid][pRegistroGeral] = dini_Int(string2, "RegistroGeral");
- SetPlayerScore(playerid, dini_Int(string2,"Level"));
- GivePlayerMoney(playerid, dini_Int(string2,"Dinheiro"));
- PlayerInfo[playerid][pMoney] = dini_Int(string2,"Dinheiro");
- PlayerInfo[playerid][pSexo] = dini_Int(string2,"Sexo");
- PlayerInfo[playerid][pIdade] = dini_Int(string2,"Idade");
- PlayerInfo[playerid][pDiaNascimento] = dini_Int(string2,"DiaDeNascimento");
- PlayerInfo[playerid][pMesNascimento] = dini_Int(string2,"MesDeNascimento");
- PlayerInfo[playerid][pAnoNascimento] = dini_Int(string2,"AnoDeNascimento");
- PlayerInfo[playerid][pOrigem] = dini_Int(string2,"Origem");
- PlayerInfo[playerid][pCartTrab] = dini_Int(string2, "CartTrab");
- PlayerInfo[playerid][pTituloE] = dini_Int(string2, "TituloE");
- PlayerInfo[playerid][pAdmin] = dini_Int(string2,"Admin");
- PlayerInfo[playerid][pEmprego] = dini_Int(string2,"Emprego");
- PlayerInfo[playerid][pBanido] = dini_Int(string2,"Banido");
- PlayerInfo[playerid][pORG] = dini_Int(string2,"ORG");
- PlayerInfo[playerid][pSkin] = dini_Int(string2,"Skin");
- PlayerInfo[playerid][pMortes] = dini_Int(string2,"Morreu");
- PlayerInfo[playerid][pKills] = dini_Int(string2,"Matou");
- PlayerInfo[playerid][pTempoPD] = dini_Int(string2,"TempoPD");
- PlayerInfo[playerid][pLider] = dini_Int(string2,"Lider");
- PlayerInfo[playerid][pCargo] = dini_Int(string2,"Cargo");
- PlayerInfo[playerid][pEXP] = dini_Int(string2, "EXP");
- PlayerInfo[playerid][pBanco] = dini_Int(string2, "Banco");
- PlayerInfo[playerid][pRelogio] = dini_Int(string2,"Relógio");
- PlayerInfo[playerid][pGPS] = dini_Int(string2,"GPS");
- PlayerInfo[playerid][pAgenda] = dini_Int(string2,"Agenda");
- PlayerInfo[playerid][pCNumero] = dini_Int(string2,"NúmeroCelular");
- PlayerInfo[playerid][pTut] = dini_Int(string2,"Tutorial");
- PlayerInfo[playerid][pLogou] = 1;
- if(PlayerInfo[playerid][pBanido] > 0)
- {
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Você está banido.");
- Kick(playerid);
- }
- SCM(playerid, COR_INFO, "{FFFF00}(!) {A9C4E4}: Você logou com sucesso.");
- SpawnPlayer(playerid);
- TextDrawShowForPlayer(playerid, Textdraw0); //Horas
- TextDrawShowForPlayer(playerid, Textdraw1); //Minutos
- TextDrawShowForPlayer(playerid, Textdraw2); //Segundos
- TextDrawShowForPlayer(playerid, Textdraw3); //Dia
- TextDrawShowForPlayer(playerid, Textdraw4); //Mês
- TextDrawShowForPlayer(playerid, Textdraw5); //Ano
- TextDrawShowForPlayer(playerid, Textdraw6); //Horas(min)
- TextDrawShowForPlayer(playerid, Textdraw7); //Minutos(seg)
- TextDrawShowForPlayer(playerid, Textdraw8); //DiaDaSemana
- }
- else
- {
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "{90EE90}FortCarson:RolePlay", "Você digitou uma senha incorreta", "Logar", "");
- SCM(playerid, COR_INFO, " {FF0000}(!) {AFAFAF}: Sua senha/nick não coincidem.");
- return 1;
- }
- }
- return 1;
- }
- forward AtualizarVelocimetro(playerid);
- public AtualizarVelocimetro(playerid)
- {
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
- {
- new placa[50];
- new velo[128];
- new Float:Latariadocarro;
- new keys, updown, leftright;
- GetPlayerKeys(i,keys,updown,leftright);
- new veh = GetPlayerVehicleID(i);
- GetVehicleParamsEx(GetPlayerVehicleID(i),engine,lights,alarm,doors,bonnet,boot,objective);
- GetVehicleHealth(GetPlayerVehicleID(i), Latariadocarro);
- if(VelocidadeLigada[i] == 0)
- {
- TextDrawSetString(Textdraw13, "Velocidade:");
- TextDrawSetString(Textdraw14, "Tanque:");
- TextDrawSetString(Textdraw15, "0");
- TextDrawSetString(Textdraw16, "Estado:");
- TextDrawSetString(Textdraw17, "KM/H");
- TextDrawSetString(Textdraw19, "%");
- TextDrawSetString(Textdraw22, "Marcha:");
- TextDrawSetString(Textdraw30, "Placa:");
- TextDrawSetString(Textdraw32, "Motor:");
- TextDrawShowForPlayer(i, Textdraw9);
- TextDrawShowForPlayer(i, Textdraw10);
- TextDrawShowForPlayer(i, Textdraw11);
- TextDrawShowForPlayer(i, Textdraw12);
- TextDrawShowForPlayer(i, Textdraw13);
- TextDrawShowForPlayer(i, Textdraw14);
- TextDrawShowForPlayer(i, Textdraw15);
- TextDrawShowForPlayer(i, Textdraw16);
- TextDrawShowForPlayer(i, Textdraw17);
- TextDrawShowForPlayer(i, Textdraw18);
- TextDrawShowForPlayer(i, Textdraw19);
- TextDrawShowForPlayer(i, Textdraw20);
- TextDrawShowForPlayer(i, Textdraw21);
- TextDrawShowForPlayer(i, Textdraw22);
- TextDrawShowForPlayer(i, Textdraw23);
- TextDrawShowForPlayer(i, Textdraw24);
- TextDrawShowForPlayer(i, Textdraw25);
- TextDrawShowForPlayer(i, Textdraw26);
- TextDrawShowForPlayer(i, Textdraw27);
- TextDrawShowForPlayer(i, Textdraw28);
- TextDrawShowForPlayer(i, Textdraw29);
- TextDrawShowForPlayer(i, Textdraw30);
- TextDrawShowForPlayer(i, Textdraw31);
- TextDrawShowForPlayer(i, Textdraw32);
- TextDrawShowForPlayer(i, Textdraw33);
- TextDrawSetString(Textdraw12, "0");
- format(placa, sizeof(placa), "~g~FC-%d", GetPlayerVehicleID(i) + 1000);
- TextDrawSetString(Textdraw31, placa);
- format(velo, sizeof(velo), "%s", vehName[GetVehicleModel(GetPlayerVehicleID(i))-400]);
- TextDrawSetString(Textdraw11, velo);
- VelocidadeLigada[i] = 1;
- Marcha[i] = 6;
- }
- if(Tanque[veh] > 50 && Abastecendo[i] == 0)
- {
- format(velo, sizeof(velo), "~g~%d", Tanque[veh]);
- TextDrawSetString(Textdraw15, velo);
- }
- if(Tanque[veh] > 10 && Tanque[veh] <= 50 && Abastecendo[i] == 0)
- {
- format(velo, sizeof(velo), "~y~%d", Tanque[veh]);
- TextDrawSetString(Textdraw15, velo);
- }
- if(Tanque[veh] > 0 && Tanque[veh] <= 10 && Abastecendo[i] == 0)
- {
- format(velo, sizeof(velo), "~r~%d", Tanque[veh]);
- TextDrawSetString(Textdraw15, velo);
- }
- if(Tanque[veh] == 0 && Abastecendo[i] == 0)
- {
- TextDrawSetString(Textdraw15, "Vazio");
- TextDrawColor(Textdraw15, 255);
- TextDrawSetString(Textdraw19, "");
- }
- if(engine == 1 && Latariadocarro/10 > 50) { TextDrawSetString(Textdraw33, "~g~Ligado"); }
- else if(engine == 0 && Latariadocarro/10 > 50) { TextDrawSetString(Textdraw33, "~r~Desligado"); }
- if((Marcha[i] == 7 || Marcha[i] == 1) && GetPlayerSpeed(i, true) <= 0) // marcha nula // preto
- {
- Marcha[i] = 6;
- format(velo, sizeof(velo), "%d", GetPlayerSpeed(i, true));
- TextDrawSetString(Textdraw12, velo);
- TextDrawColor(Textdraw12, 255);
- }
- if((Marcha[i] == 1 || Marcha[i] == 6) && keys == KEY_JUMP && GetPlayerSpeed(i, true) != 0) // marcha ré // varia
- {
- Marcha[i] = 7;
- format(velo, sizeof(velo), "~g~%d", GetPlayerSpeed(i, true));
- TextDrawSetString(Textdraw12, velo);
- }
- if((Marcha[i] == 7 || Marcha[i] == 6 || Marcha[i] == 2) && GetPlayerSpeed(i, true) > 0 && GetPlayerSpeed(i, true) <= 20) // marcha 1 // verde
- {
- Marcha[i] = 1;
- format(velo, sizeof(velo), "~g~%d", GetPlayerSpeed(i, true));
- TextDrawSetString(Textdraw12, velo);
- }
- if(Marcha[i] != 7 && GetPlayerSpeed(i, true) > 20 && GetPlayerSpeed(i, true) <= 39) // marcha 2 // verde
- {
- Marcha[i] = 2;
- format(velo, sizeof(velo), "~g~%d", GetPlayerSpeed(i, true));
- TextDrawSetString(Textdraw12, velo);
- }
- if(Marcha[i] != 7 && GetPlayerSpeed(i, true) > 39 && GetPlayerSpeed(i, true) <= 69) // marcha 3 // amarelo
- {
- Marcha[i] = 3;
- format(velo, sizeof(velo), "~y~%d", GetPlayerSpeed(i, true));
- TextDrawSetString(Textdraw12, velo);
- }
- if(Marcha[i] != 7 && GetPlayerSpeed(i, true) > 69 && GetPlayerSpeed(i, true) <= 100) // marcha 4 // vermelho
- {
- Marcha[i] = 4;
- format(velo, sizeof(velo), "~r~%d", GetPlayerSpeed(i, true));
- TextDrawSetString(Textdraw12, velo);
- }
- if(Marcha[i] != 7 && GetPlayerSpeed(i, true) > 100) // marcha 5 // vermelho
- {
- Marcha[i] = 5;
- format(velo, sizeof(velo), "~r~%d", GetPlayerSpeed(i, true));
- TextDrawSetString(Textdraw12, velo);
- }
- switch(Marcha[i])
- {
- case 1:
- {
- TextDrawSetString(Textdraw23, "R");
- TextDrawColor(Textdraw23, 255);
- TextDrawSetString(Textdraw24, "N");
- TextDrawColor(Textdraw24, 255);
- TextDrawSetString(Textdraw25, "~r~1");
- TextDrawSetString(Textdraw26, "2");
- TextDrawColor(Textdraw26, 255);
- TextDrawSetString(Textdraw27, "3");
- TextDrawColor(Textdraw27, 255);
- TextDrawSetString(Textdraw28, "4");
- TextDrawColor(Textdraw28, 255);
- TextDrawSetString(Textdraw29, "5");
- TextDrawColor(Textdraw29, 255);
- }
- case 2:
- {
- TextDrawSetString(Textdraw23, "R");
- TextDrawColor(Textdraw23, 255);
- TextDrawSetString(Textdraw24, "N");
- TextDrawColor(Textdraw24, 255);
- TextDrawSetString(Textdraw25, "1");
- TextDrawColor(Textdraw25, 255);
- TextDrawSetString(Textdraw26, "~r~2");
- TextDrawSetString(Textdraw27, "3");
- TextDrawColor(Textdraw27, 255);
- TextDrawSetString(Textdraw28, "4");
- TextDrawColor(Textdraw28, 255);
- TextDrawSetString(Textdraw29, "5");
- TextDrawColor(Textdraw29, 255);
- }
- case 3:
- {
- TextDrawSetString(Textdraw23, "R");
- TextDrawColor(Textdraw23, 255);
- TextDrawSetString(Textdraw24, "N");
- TextDrawColor(Textdraw24, 255);
- TextDrawSetString(Textdraw25, "1");
- TextDrawColor(Textdraw25, 255);
- TextDrawSetString(Textdraw26, "2");
- TextDrawColor(Textdraw26, 255);
- TextDrawSetString(Textdraw27, "~r~3");
- TextDrawSetString(Textdraw28, "4");
- TextDrawColor(Textdraw28, 255);
- TextDrawSetString(Textdraw29, "5");
- TextDrawColor(Textdraw29, 255);
- }
- case 4:
- {
- TextDrawSetString(Textdraw23, "R");
- TextDrawColor(Textdraw23, 255);
- TextDrawSetString(Textdraw24, "N");
- TextDrawColor(Textdraw24, 255);
- TextDrawSetString(Textdraw25, "1");
- TextDrawColor(Textdraw25, 255);
- TextDrawSetString(Textdraw26, "2");
- TextDrawColor(Textdraw26, 255);
- TextDrawSetString(Textdraw27, "3");
- TextDrawColor(Textdraw27, 255);
- TextDrawSetString(Textdraw28, "~r~4");
- TextDrawSetString(Textdraw29, "5");
- TextDrawColor(Textdraw29, 255);
- }
- case 5:
- {
- TextDrawSetString(Textdraw23, "R");
- TextDrawColor(Textdraw23, 255);
- TextDrawSetString(Textdraw24, "N");
- TextDrawColor(Textdraw24, 255);
- TextDrawSetString(Textdraw25, "1");
- TextDrawColor(Textdraw25, 255);
- TextDrawSetString(Textdraw26, "2");
- TextDrawColor(Textdraw26, 255);
- TextDrawSetString(Textdraw27, "3");
- TextDrawColor(Textdraw27, 255);
- TextDrawSetString(Textdraw28, "4");
- TextDrawColor(Textdraw28, 255);
- TextDrawSetString(Textdraw29, "~r~5");
- }
- case 6:
- {
- TextDrawSetString(Textdraw23, "R");
- TextDrawColor(Textdraw23, 255);
- TextDrawSetString(Textdraw24, "~r~N");
- TextDrawSetString(Textdraw25, "1");
- TextDrawColor(Textdraw25, 255);
- TextDrawSetString(Textdraw26, "2");
- TextDrawColor(Textdraw26, 255);
- TextDrawSetString(Textdraw27, "3");
- TextDrawColor(Textdraw27, 255);
- TextDrawSetString(Textdraw28, "4");
- TextDrawColor(Textdraw28, 255);
- TextDrawSetString(Textdraw29, "5");
- TextDrawColor(Textdraw29, 255);
- }
- case 7:
- {
- TextDrawSetString(Textdraw23, "~r~R");
- TextDrawSetString(Textdraw24, "N");
- TextDrawColor(Textdraw24, 255);
- TextDrawSetString(Textdraw25, "1");
- TextDrawColor(Textdraw25, 255);
- TextDrawSetString(Textdraw26, "2");
- TextDrawColor(Textdraw26, 255);
- TextDrawSetString(Textdraw27, "3");
- TextDrawColor(Textdraw27, 255);
- TextDrawSetString(Textdraw28, "4");
- TextDrawColor(Textdraw28, 255);
- TextDrawSetString(Textdraw29, "5");
- TextDrawColor(Textdraw29, 255);
- }
- }
- if(Latariadocarro/10 > 70)
- {
- TextDrawSetString(Textdraw20, "~g~Funcionando");
- }
- if(Latariadocarro/10 > 50 && Latariadocarro/10 <= 70)
- {
- TextDrawSetString(Textdraw20, "~y~Instavel");
- }
- if(Latariadocarro/10 > 40 && Latariadocarro/10 <= 50)
- {
- TextDrawSetString(Textdraw33, "~r~Fumacando");
- TextDrawSetString(Textdraw20, "~r~Danificado");
- }
- if(Latariadocarro/10 <= 40 && Latariadocarro/10 >= 35)
- {
- TextDrawSetString(Textdraw20, "~r~Critico");
- TextDrawSetString(Textdraw33, "~r~Fumacando");
- }
- if(Latariadocarro/10 < 35)
- {
- GameTextForPlayer(i, "~r~(!)~n~~w~Seu carro esta muito danificado para ser conduzido, chame um mecanico.", 7000, 3);
- SetVehicleHealth(GetPlayerVehicleID(i), 31);
- TogglePlayerControllable(i, 0);
- TextDrawSetString(Textdraw20, "~r~Critico");
- TextDrawSetString(Textdraw33, "~r~Quebrado");
- Marcha[i] = 6;
- TextDrawSetString(Textdraw12, "0");
- TextDrawColor(Textdraw12, 255);
- TextDrawSetString(Textdraw23, "R");
- TextDrawColor(Textdraw23, 255);
- TextDrawSetString(Textdraw24, "~r~N");
- TextDrawSetString(Textdraw25, "1");
- TextDrawColor(Textdraw25, 255);
- TextDrawSetString(Textdraw26, "2");
- TextDrawColor(Textdraw26, 255);
- TextDrawSetString(Textdraw27, "3");
- TextDrawColor(Textdraw27, 255);
- TextDrawSetString(Textdraw28, "4");
- TextDrawColor(Textdraw28, 255);
- TextDrawSetString(Textdraw29, "5");
- TextDrawColor(Textdraw29, 255);
- }
- }
- else
- {
- JanelaAberta[i] = 0;
- if(VelocidadeLigada[i] == 1)
- {
- TextDrawHideForPlayer(i, Textdraw9);
- TextDrawHideForPlayer(i, Textdraw10);
- TextDrawHideForPlayer(i, Textdraw11);
- TextDrawHideForPlayer(i, Textdraw12);
- TextDrawHideForPlayer(i, Textdraw13);
- TextDrawHideForPlayer(i, Textdraw14);
- TextDrawHideForPlayer(i, Textdraw15);
- TextDrawHideForPlayer(i, Textdraw16);
- TextDrawHideForPlayer(i, Textdraw17);
- TextDrawHideForPlayer(i, Textdraw18);
- TextDrawHideForPlayer(i, Textdraw19);
- TextDrawHideForPlayer(i, Textdraw20);
- TextDrawHideForPlayer(i, Textdraw21);
- TextDrawHideForPlayer(i, Textdraw22);
- TextDrawHideForPlayer(i, Textdraw23);
- TextDrawHideForPlayer(i, Textdraw24);
- TextDrawHideForPlayer(i, Textdraw25);
- TextDrawHideForPlayer(i, Textdraw26);
- TextDrawHideForPlayer(i, Textdraw27);
- TextDrawHideForPlayer(i, Textdraw28);
- TextDrawHideForPlayer(i, Textdraw29);
- TextDrawHideForPlayer(i, Textdraw30);
- TextDrawHideForPlayer(i, Textdraw31);
- TextDrawHideForPlayer(i, Textdraw32);
- TextDrawHideForPlayer(i, Textdraw33);
- VelocidadeLigada[i] = 0;
- Marcha[i] = 0;
- }
- }
- }
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(spawnado[i] == 1)
- {
- if(VelocidadeLigada[i] == 1)
- {
- }
- if(VelocidadeLigada[i] == 0)
- {
- }
- }
- }
- }
- }
- public AtualizarJogador(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pLogado] == 1)
- {
- new string3[128];
- format(string3, sizeof(string3), "Contas/%s.ini", NomeDoJogador(playerid));
- dini_IntSet(string3,"Registrado", PlayerInfo[playerid][pReg]);
- dini_IntSet(string3,"NRegistro", PlayerInfo[playerid][pNRegistro]);
- dini_IntSet(string3,"RegistroGeral", PlayerInfo[playerid][pRegistroGeral]);
- dini_IntSet(string3,"Level", GetPlayerScore(playerid));
- dini_IntSet(string3,"Dinheiro", PlayerInfo[playerid][pMoney]);
- dini_IntSet(string3, "Sexo",PlayerInfo[playerid][pSexo]);
- dini_IntSet(string3, "Idade",PlayerInfo[playerid][pIdade]);
- dini_IntSet(string3,"DiaDeNascimento", PlayerInfo[playerid][pDiaNascimento]);
- dini_IntSet(string3,"MesDeNascimento", PlayerInfo[playerid][pMesNascimento]);
- dini_IntSet(string3,"AnoDeNascimento", PlayerInfo[playerid][pAnoNascimento]);
- dini_IntSet(string3, "Origem",PlayerInfo[playerid][pOrigem]);
- dini_IntSet(string3, "CartTrab", PlayerInfo[playerid][pCartTrab]);
- dini_IntSet(string3, "TituloE", PlayerInfo[playerid][pTituloE]);
- dini_IntSet(string3,"Admin", PlayerInfo[playerid][pAdmin]);
- dini_IntSet(string3,"Emprego", PlayerInfo[playerid][pEmprego]);
- dini_IntSet(string3,"Banido", PlayerInfo[playerid][pBanido]);
- dini_IntSet(string3,"ORG", PlayerInfo[playerid][pORG]);
- dini_IntSet(string3, "Skin",PlayerInfo[playerid][pSkin]);
- dini_IntSet(string3,"Morreu", PlayerInfo[playerid][pMortes]);
- dini_IntSet(string3,"Matou", PlayerInfo[playerid][pKills]);
- dini_IntSet(string3,"TempoPD", PlayerInfo[playerid][pTempoPD]);
- dini_IntSet(string3,"Lider", PlayerInfo[playerid][pLider]);
- dini_IntSet(string3,"Cargo", PlayerInfo[playerid][pCargo]);
- dini_IntSet(string3,"EXP", PlayerInfo[playerid][pEXP]);
- dini_IntSet(string3,"Banco", PlayerInfo[playerid][pBanco]);
- dini_IntSet(string3,"Relógio", PlayerInfo[playerid][pRelogio]);
- dini_IntSet(string3,"GPS", PlayerInfo[playerid][pGPS]);
- dini_IntSet(string3,"Agenda", PlayerInfo[playerid][pAgenda]);
- dini_IntSet(string3,"NúmeroCelular", PlayerInfo[playerid][pCNumero]);
- dini_IntSet(string3,"Tutorial", PlayerInfo[playerid][pTut]);
- }
- }
- return 1;
- }
- // [ MensagemPraAdmin ]
- forward MensagemAdmin(COLOR,const string[],nivel);
- public MensagemAdmin(COLOR,const string[],nivel)
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if (PlayerInfo[i][pAdmin] >= nivel && PlayerInfo[i][pATrabalhando] == 1 || PlayerInfo[i][pAdmin] == 2)
- {
- SCM(i, COLOR, string);
- printf("%s", string);
- }
- }
- }
- return 1;
- }
- // [ É número ]
- stock EUmNumero(string[])
- {
- for (new i = 0, j = strlen(string); i < j; i++)
- {
- if (string[i] > '9' || string[i] < '0') return 0;
- }
- return 1;
- }
- public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
- {
- if(IsPlayerConnected(playerid))
- {
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new Float:tempposx, Float:tempposy, Float:tempposz;
- GetPlayerPos(playerid, oldposx, oldposy, oldposz);
- tempposx = (oldposx -x);
- tempposy = (oldposy -y);
- tempposz = (oldposz -z);
- //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
- if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
- {
- return 1;
- }
- }
- if(IsPlayerConnected(playerid))
- {
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new Float:tempposx, Float:tempposy, Float:tempposz;
- GetPlayerPos(playerid, oldposx, oldposy, oldposz);
- tempposx = (oldposx -x);
- tempposy = (oldposy -y);
- tempposz = (oldposz -z);
- if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
- {
- return 1;
- }
- }
- return 0;
- }
- public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
- {
- if(IsPlayerConnected(playerid))
- {
- new Float:posx, Float:posy, Float:posz;
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new Float:tempposx, Float:tempposy, Float:tempposz;
- GetPlayerPos(playerid, oldposx, oldposy, oldposz);
- //radi = 2.0; //Trigger Radius
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(!BigEar[i])
- {
- GetPlayerPos(i, posx, posy, posz);
- tempposx = (oldposx -posx);
- tempposy = (oldposy -posy);
- tempposz = (oldposz -posz);
- //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
- if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
- {
- SCM(i, col1, string);
- }
- else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
- {
- SCM(i, col2, string);
- }
- else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
- {
- SCM(i, col3, string);
- }
- else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
- {
- SCM(i, col4, string);
- }
- else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
- {
- SCM(i, col5, string);
- }
- }
- else
- {
- SCM(i, col1, string);
- }
- }
- }
- }//not connected
- return 1;
- }
- public ProxDetectorS(Float:radi, playerid, targetid)
- {
- if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
- {
- new Float:posx, Float:posy, Float:posz;
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new Float:tempposx, Float:tempposy, Float:tempposz;
- GetPlayerPos(playerid, oldposx, oldposy, oldposz);
- //radi = 2.0; //Trigger Radius
- GetPlayerPos(targetid, posx, posy, posz);
- tempposx = (oldposx -posx);
- tempposy = (oldposy -posy);
- tempposz = (oldposz -posz);
- //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
- if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
- {
- return 1;
- }
- }
- return 0;
- }
- stock Localizacoes(playerid)
- {
- new location[MAX_ZONE_NAME];
- GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
- return location;
- }
- stock GetPlayer2DZone(playerid, zone[], len)
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- for(new i = 0; i != sizeof(gSAZones); i++ )
- {
- if(x >= gSAZones[i][SAZONE_AREA][0] && x <= gSAZones[i][SAZONE_AREA][3] && y >= gSAZones[i][SAZONE_AREA][1] && y <= gSAZones[i][SAZONE_AREA][4])
- {
- return format(zone, len, gSAZones[i][SAZONE_NAME], 0);
- }
- }
- return 0;
- }
- stock ReturnPlayerZone(playerid)
- {
- new location[MAX_ZONE_NAME];
- GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
- return location;
- }
- stock GetPlayerSpeed(playerid, bool:velo)
- {
- new Float:Vx,Float:Vy,Float:Vz,Float:rtn;
- if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid),Vx,Vy,Vz); else GetPlayerVelocity(playerid,Vx,Vy,Vz);
- rtn = floatsqroot(floatabs(floatpower(Vx + Vy + Vz,2)));
- return velo?floatround(rtn * 100 * 1.61):floatround(rtn * 100);
- }
- stock MostrarAdmin(playerid)
- {
- for(new i=0;i<=MAX_PLAYERS;i++) if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pATrabalhando] == 1)
- {
- SetPlayerMarkerForPlayer(playerid,i, GetPlayerColor(i));
- }
- }
- return 1;
- }
- forward ChatOOC(cor,const string[]);
- public ChatOOC(cor,const string[])
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pSemOOC] == 0)
- {
- SCM(i, cor, string);
- }
- }
- }
- }
- // NivelDeAdm
- stock NivelDeAdm(playerid)
- {
- new niveldeadmin[21];
- if(PlayerInfo[playerid][pAdmin] == 0)
- {
- niveldeadmin = "jogador";
- }
- if(PlayerInfo[playerid][pAdmin] == 1)
- {
- niveldeadmin = "administrador";
- }
- if(PlayerInfo[playerid][pAdmin] == 2)
- {
- niveldeadmin = "administrador dono";
- }
- return niveldeadmin;
- }
- // [ ANTIFLOOD ]
- forward ResetarChat(playerid);
- public ResetarChat(playerid)
- {
- ANTIFLOOD[playerid] = 0;
- return 0x01;
- }
- //==============================================================================
- // LOGS ========================================================================
- //==============================================================================
- public ActionLog(string[])
- {
- new entry[200];
- format(entry, sizeof(entry), "%s\n",string);
- new File:hFile;
- hFile = fopen("Logs/Acoes.log", io_append);
- fwrite(hFile, entry);
- fclose(hFile);
- }
- public AdminLog(string[])
- {
- new entry[128];
- format(entry, sizeof(entry), "%s\n",string);
- new File:hFile;
- hFile = fopen("Logs/AdminLog.log", io_append);
- fwrite(hFile, entry);
- fclose(hFile);
- }
- public KickLog(string[])
- {
- new entry[128];
- format(entry, sizeof(entry), "%s\n",string);
- new File:hFile;
- hFile = fopen("Logs/kick.log", io_append);
- fwrite(hFile, entry);
- fclose(hFile);
- }
- public BanLog(string[])
- {
- new entry[128];
- format(entry, sizeof(entry), "%s\n",string);
- new File:hFile;
- hFile = fopen("Logs/ban.log", io_append);
- fwrite(hFile, entry);
- fclose(hFile);
- }
- public Banido(playerid, motivo[], admin[])
- {
- new str[64], string[64], ip[20];
- format(str,sizeof(str),"Banidos/%s.ini",NomeDoJogador(playerid));
- dini_Create(str);
- dini_IntSet(str,"Banido", 1);
- dini_Set(str,"Motivo", motivo);
- dini_Set(str,"AdminBan", admin);
- GetPlayerIp(playerid, ip, sizeof(ip));
- format(string, sizeof(string), "IPs Banidos/%s.ini",ip);
- dini_Create(string);
- dini_Set(string,"Nome",NomeDoJogador(playerid));
- dini_Set(string,"Motivo", motivo);
- dini_Set(string,"AdminBan", admin);
- return 1;
- }
- public DeleteLog(string[])
- {
- new entry[128];
- format(entry, sizeof(entry), "%s\n",string);
- new File:hFile;
- hFile = fopen("Logs/ContasDeletadas.log", io_append);
- fwrite(hFile, entry);
- fclose(hFile);
- }
- public Producao()
- {
- for(new i = 0; i <= MAX_PLAYERS; ++i)
- {
- if(PlayerInfo[i][pLogado] == 1)
- {
- if(PlayerInfo[i][pTempoPD] < 4) { SCM(i, COR_INFO, "UHU. +1 TEMPOPÊDê"); PlayerInfo[i][pTempoPD] += 1; AtualizarJogador(i); } // A cada 4 mins ganha 1 pt de PD
- }
- }
- }
- public PayDay()
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(PlayerInfo[i][pLogado] == 1)
- {
- if(!IsPlayerNPC(i))
- {
- if(PlayerInfo[i][pLevel] > 0)
- {
- //SeAlugaCasa
- //SeAlugaCarro
- //SeEstáPreso
- //SeTemCasa
- //SeTemEmpresa
- //SeTemCarro
- if(PlayerInfo[i][pTempoPD] > 3)
- {
- SCM(i, COR_INFO, "AIEW -0-QQ,, GANHO PEIDEI");
- PlayerInfo[i][pTempoPD] = 0;
- }
- }
- }
- }
- }
- return 0x01;
- }
- // RELÓGIO OOC
- public ProcessGameTime(playerid)
- {
- new string[128];
- gettime(i_ServerHours, i_ServerMinutes, i_ServerSeconds);
- getdate(i_ServerYears, i_ServerMonths, i_ServerDays);
- format(string, sizeof string, "%02d", i_ServerHours); // Horas
- TextDrawSetString(Textdraw0, string);
- format(string, sizeof string, ":%02d", i_ServerMinutes); // Minutos
- TextDrawSetString(Textdraw1, string);
- format(string, sizeof string, ":%02d", i_ServerSeconds); // Segundos
- TextDrawSetString(Textdraw2, string);
- format(string, sizeof string, "%02d", i_ServerDays); // Dias
- TextDrawSetString(Textdraw3, string);
- format(string, sizeof string, "/%02d", i_ServerMonths); // Meses
- TextDrawSetString(Textdraw4, string);
- format(string, sizeof string, "/%02d", i_ServerYears); // Anos
- TextDrawSetString(Textdraw5, string);
- }
- //RELÓGIO IC
- public RelogioDoServerEmIC()
- {
- new str[128];
- new dds[25];
- if(MinutosIC >= 59)
- {
- if(HorasIC >= 23 && MinutosIC >= 59)
- {
- DiaDaSemana += 1;
- switch(DiaDaSemana)
- {
- case 0: { format(str, sizeof str, "BUGOU"); format(dds, sizeof dds, "~w~BUGOU"); TextDrawSetString(Textdraw8, str); }
- case 1: { format(str, sizeof str, "Domingo"); format(dds, sizeof dds, "~w~Domingo"); TextDrawSetString(Textdraw8, str); }
- case 2: { format(str, sizeof str, "Segunda-feira"); format(dds, sizeof dds, "~w~Segunda-feira"); TextDrawSetString(Textdraw8, str); }
- case 3: { format(str, sizeof str, "Terca-feira"); format(dds, sizeof dds, "~w~Terca-feira"); TextDrawSetString(Textdraw8, str); }
- case 4: { format(str, sizeof str, "Quarta-feira"); format(dds, sizeof dds, "~w~Quarta-feira"); TextDrawSetString(Textdraw8, str); }
- case 5: { format(str, sizeof str, "Quinta-feira"); format(dds, sizeof dds, "~w~Quinta-feira"); TextDrawSetString(Textdraw8, str); }
- case 6: { format(str, sizeof str, "Sexta-feira"); format(dds, sizeof dds, "~w~Sexta-feira"); TextDrawSetString(Textdraw8, str); }
- case 7: { format(str, sizeof str, "Sabado"); format(dds, sizeof dds, "~w~Sabado"); TextDrawSetString(Textdraw8, str); }
- }
- GameTextForAll(dds, 5000, 3);
- SendClientMessageToAll(COR_INFO, "{FF0000}(!){A9C4E4} Carregando PayDay...");
- SendClientMessageToAll(COR_INFO, "");
- SendClientMessageToAll(COR_INFO, "");
- PayDay();
- format(str, sizeof str, "%02d", HorasIC);
- TextDrawSetString(Textdraw6, str);
- format(str, sizeof str, ":%02d", MinutosIC);
- TextDrawSetString(Textdraw7, str);
- MinutosIC = 0;
- HorasIC = 0;
- return 1;
- }
- format(str, sizeof str, "%02d", HorasIC);
- TextDrawSetString(Textdraw6, str);
- format(str, sizeof str, ":%02d", MinutosIC);
- TextDrawSetString(Textdraw7, str);
- MinutosIC = 0;
- HorasIC += 1;
- return 1;
- }
- format(str, sizeof str, "%02d", HorasIC); // Horas(Minutos)
- TextDrawSetString(Textdraw6, str);
- format(str, sizeof str, ":%02d", MinutosIC); // Minutos(Segundos)
- TextDrawSetString(Textdraw7, str);
- MinutosIC += 1;
- SetWorldTime(HorasIC);
- for(new i = 0; i < MAX_PLAYERS; i++)SetPlayerTime(i, HorasIC, MinutosIC);
- return 1;
- }
- SetVehicleEngineOn(vehicleid)
- {
- GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
- }
- // Gasolina
- public ObterGas()
- {
- new str[100];
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(PlayerInfo[i][pLogado] == 1)
- {
- new VID = GetPlayerVehicleID(i);
- if(Tanque[VID] == MaxGas)
- {
- Abastecendo[i] = 0;
- TextDrawSetString(Textdraw15, "");
- TextDrawSetString(Textdraw19, "%");
- }
- if(Abastecendo[i] == 1 && EUmPostoDeGas(i))
- {
- if(GetPlayerMoney(i) < PRECGAS) return SCM(i, COR_INFO, " {FF0000}(!) {AFAFAF}: Você não tem dinheiro suficiente para um litro."), Abastecendo[i] = 0;
- Tanque[VID]++;
- format(str, sizeof str, "~g~%d ~u~", Tanque[VID]);
- TextDrawSetString(Textdraw15, str);
- TextDrawSetString(Textdraw19, "");
- PlayerInfo[i][pMoney] -= PRECGAS;
- GivePlayerMoney(i, -PRECGAS);
- AtualizarJogador(i);
- }
- if(Abastecendo[i] == 1 && !EUmPostoDeGas(i))
- {
- Abastecendo[i] = 0;
- TextDrawSetString(Textdraw15, "");
- TextDrawSetString(Textdraw19, "%");
- }
- }
- }
- return 1;
- }
- public GastarGas()
- {
- new str[126];
- for(new veid=0; veid<MAX_VEHICLES; veid++)
- {
- GetVehicleParamsEx(veid,engine,lights,alarm,doors,bonnet,boot,objective);
- if(Tanque[veid] >= 1 && engine == 1) Tanque[veid]--;
- }
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- new veu = GetPlayerVehicleID(i);
- GetVehicleParamsEx(veu,engine,lights,alarm,doors,bonnet,boot,objective);
- if(PlayerInfo[i][pLogado] == 1)
- {
- if(GetPlayerState(i) == PLAYER_STATE_DRIVER && !IsPlayerNPC(i))
- {
- if(Tanque[veu] <= 10) PlayerPlaySound(i, 1085, 0.0, 0.0, 0.0);
- if(Tanque[veu] < 1 && engine == 1)
- {
- SetVehicleParamsEx(veu,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF);
- TogglePlayerControllable(i, 0);
- SemGas[veu] = 1;
- PlayerPlaySound(i, 1159, 0.0, 0.0, 0.0);
- format(str, sizeof(str), "* Veículo desligou, pois o tanque está vazio. (( %s ))", NomeDoJogador(i));
- ProxDetector(30.0, i, str, COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
- }
- }
- }
- }
- return 1;
- }
- public EUmPostoDeGas(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerToPoint(6.0,playerid,1004.0070,-939.3102,42.1797) || PlayerToPoint(6.0,playerid,1944.3260,-1772.9254,13.3906) || PlayerToPoint(6.0,playerid,1400.6882,-1680.5344,42.4339) || PlayerToPoint(6.0,playerid,1496.5316,-1544.0677,23.5481) || PlayerToPoint(6.0,playerid,2737.3364,-1774.2123,43.7973))
- {//LS
- return 1;
- }
- else if(PlayerToPoint(6.0,playerid,-90.5515,-1169.4578,2.4079) || PlayerToPoint(6.0,playerid,-1609.7958,-2718.2048,48.5391))
- {//LS
- return 1;
- }
- else if(PlayerToPoint(6.0,playerid,-2029.4968,156.4366,28.9498) || PlayerToPoint(8.0,playerid,-2408.7590,976.0934,45.4175))
- {//SF
- return 1;
- }
- else if(PlayerToPoint(6.0,playerid,1380.4712,462.7467,20.1107) || PlayerToPoint(8.0,playerid,1385.0475,460.5417,20.1068))
- {//PC
- return 1;
- }
- else if(PlayerToPoint(6.0,playerid,1383.5532,457.1286,19.9561) || PlayerToPoint(8.0,playerid,1379.1952,459.1295,19.9587))
- {//PC
- return 1;
- }
- else if(PlayerToPoint(5.0,playerid,-2243.9629,-2560.6477,31.8841) || PlayerToPoint(8.0,playerid,-1676.6323,414.0262,6.9484))
- {//Between LS and SF
- return 1;
- }
- else if(PlayerToPoint(6.0,playerid,2202.2349,2474.3494,10.5258) || PlayerToPoint(10.0,playerid,614.9333,1689.7418,6.6968))
- {//LV
- return 1;
- }
- else if(PlayerToPoint(8.0,playerid,-1328.8250,2677.2173,49.7665) || PlayerToPoint(6.0,playerid,70.3882,1218.6783,18.5165))
- {//LV
- return 1;
- }
- else if(PlayerToPoint(8.0,playerid,2113.7390,920.1079,10.5255) || PlayerToPoint(6.0,playerid,-1327.7218,2678.8723,50.0625))
- {//LV
- return 1;
- }
- else if(PlayerToPoint(8.0, playerid, -168.0775,1228.2975,19.7452))
- {//FC
- return 1;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement