RP
RP
new AllCarColors[256] = {
0x000000FF,0xFFFFFFFF,0x55aaa7FF,0xce575bFF,0x58685dFF,0xb06c77FF,0xf8ad38FF,0x7a96
acFF,0xdfdec9FF,0x81897aFF,
0x677776FF,0x93948eFF,0x7e9689FF,0x807c70FF,0xe8eac3FF,0xbab9a5FF,0x73996aFF,0xa545
49FF,0xc55063FF,0xd8d5b2FF,
0x86979eFF,0xa66b67FF,0x8e4556FF,0xcfc3a9FF,0x6c6d65FF,0x5b5a55FF,0xafb295FF,0x7770
5eFF,0x5a6466FF,0xa89f82FF,
0x64433aFF,0x73423dFF,0xb5bcb4FF,0xa1a58aFF,0x96947fFF,0x918a6cFF,0x5a5b53FF,0x5b66
56FF,0xa8b186FF,0x8d9389FF,
0x3f3c35FF,0x80765dFF,0x873b3bFF,0x7d3334FF,0x3b5741FF,0x71413dFF,0xaaa176FF,0x8981
5dFF,0xc2b894FF,0xd6d0b0FF,
0xa9a98fFF,0x647d67FF,0x849283FF,0x495261FF,0x565b61FF,0x9d846eFF,0xb0af90FF,0xa192
73FF,0x7a3138FF,0x5c6c69FF,
0x9e9c83FF,0x887554FF,0x803c3dFF,0x928f7cFF,0xcfcda7FF,0xd4d27fFF,0x6f534fFF,0xa7ad
a1FF,0xe1dd9eFF,0xd9b79bFF,
0xa84645FF,0x96a097FF,0x6f725dFF,0xb6bd93FF,0x764040FF,0x434842FF,0xb0ac89FF,0xb5a7
78FF,0x8a473fFF,0x375369FF,
0x9a555aFF,0xaa9c75FF,0xac5359FF,0x56665bFF,0x786151FF,0x995061FF,0x60843cFF,0x7285
8bFF,0x7c454aFF,0xa7a373FF,
0xb8b29aFF,0x585e5cFF,0x827f6eFF,0x388a85FF,0x4b6566FF,0x4c5858FF,0xc3c0a1FF,0x97a7
9aFF,0x80a999FF,0xe1c99dFF,
0x6e8c8aFF,0x57585cFF,0xd6b98dFF,0x426d80FF,0xa29368FF,0x818274FF,0x3d717fFF,0xb6ab
7eFF,0x587482FF,0x696a62FF,
0x8f7d59FF,0xa3a091FF,0x80948bFF,0x786954FF,0x72866aFF,0xaa4553FF,0x53616aFF,0x8f4f
4fFF,0xbfc1b6FF,0x938369FF,
0xb5a180FF,0x763b41FF,0x747567FF,0x846c50FF,0x914b4dFF,0x38526bFF,0xef87a2FF,0x3c3d
38FF,0x6cb85dFF,0x725a4eFF,
0x78acaaFF,0x987e59FF,0x9b675aFF,0x545d4cFF,0x706c83FF,0x7dc6bdFF,0xcb90c6FF,0x7fca
6fFF,0xf7ebc3FF,0x9697abFF,
0xc3bda3FF,0xbdaf88FF,0xcdbf67FF,0xab8e90FF,0xa28796FF,0xd2ee99FF,0xbd8a93FF,0xaa6a
85FF,0x72715cFF,0x665b45FF,
0x656952FF,0x7e926fFF,0x7398b5FF,0x7da477FF,0x6bcf79FF,0x65c8a9FF,0xe0d59dFF,0xc8c5
b4FF,0xde7c5fFF,0x77694cFF,
0x5d6d49FF,0xd17f74FF,0x6f93b3FF,0x62b79aFF,0x667264FF,0x6aa998FF,0x6daaa5FF,0xaa7f
aaFF,0x875e4aFF,0xbfb1b0FF,
0xb4a8acFF,0x987f9dFF,0x686947FF,0x80604bFF,0x8e6c50FF,0xd8685aFF,0xd294a9FF,0xbf98
99FF,0xbb839cFF,0x826168FF,
0xbd825aFF,0xba6254FF,0xd28865FF,0xcf7958FF,0xc88c84FF,0xbba899FF,0x4f5847FF,0x516b
48FF,0x6c825bFF,0x677c5bFF,
0xaa757dFF,0x8dca85FF,0xd4c7a4FF,0xc0bfaaFF,0xdfd249FF,0xbac775FF,0xbdc2a2FF,0xbabb
5eFF,0x717caaFF,0x7d7b4aFF,
0xc1aa74FF,0x536370FF,0x79936cFF,0x606f6cFF,0x798f8dFF,0x515459FF,0x4d585aFF,0x677a
76FF,0x7d99a7FF,0x5d7b7dFF,
0x6f8b8cFF,0x72668aFF,0xac6c53FF,0xd3caadFF,0x98a053FF,0x545945FF,0xcc996eFF,0xa3ca
afFF,0xd29779FF,0xcc9054FF,
0xdd888fFF,0xd6c377FF,0xd07151FF,0x596271FF,0x936556FF,0x89864fFF,0x9cd665FF,0x5a76
5dFF,0xd0b858FF,0x66b758FF,
0x83605aFF,0xb79153FF,0xc37d9fFF,0xbf6791FF,0x5b7f51FF,0x71894fFF,0x5d7166FF,0xc391
9dFF,0xcca470FF,0xaf6c52FF,
0x77c4a4FF,0x99c556FF,0x9b616fFF,0x63bd63FF,0x7c5d49FF,0x57694fFF,0x809ea8FF,0x7480
80FF,0x935d5bFF,0x90575eFF,
0xaaa184FF,0x7d7e70FF,0x716d62FF,0xc9c3a3FF,0x9b907aFF,0x838786FF
};
new AllCarColorsI[256] = {
0x00000050,0xFFFFFF50,0x55aaa750,0xce575b50,0x58685d50,0xb06c7750,0xf8ad3850,0x7a96
ac50,0xdfdec950,0x81897a50,
0x67777650,0x93948e50,0x7e968950,0x807c7050,0xe8eac350,0xbab9a550,0x73996a50,0xa545
4950,0xc5506350,0xd8d5b250,
0x86979e50,0xa66b6750,0x8e455650,0xcfc3a950,0x6c6d6550,0x5b5a5550,0xafb29550,0x7770
5e50,0x5a646650,0xa89f8250,
0x64433a50,0x73423d50,0xb5bcb450,0xa1a58a50,0x96947f50,0x918a6c50,0x5a5b5350,0x5b66
5650,0xa8b18650,0x8d938950,
0x3f3c3550,0x80765d50,0x873b3b50,0x7d333450,0x3b574150,0x71413d50,0xaaa17650,0x8981
5d50,0xc2b89450,0xd6d0b050,
0xa9a98f50,0x647d6750,0x84928350,0x49526150,0x565b6150,0x9d846e50,0xb0af9050,0xa192
7350,0x7a313850,0x5c6c6950,
0x9e9c8350,0x88755450,0x803c3d50,0x928f7c50,0xcfcda750,0xd4d27f50,0x6f534f50,0xa7ad
a150,0xe1dd9e50,0xd9b79b50,
0xa8464550,0x96a09750,0x6f725d50,0xb6bd9350,0x76404050,0x43484250,0xb0ac8950,0xb5a7
7850,0x8a473f50,0x37536950,
0x9a555a50,0xaa9c7550,0xac535950,0x56665b50,0x78615150,0x99506150,0x60843c50,0x7285
8b50,0x7c454a50,0xa7a37350,
0xb8b29a50,0x585e5c50,0x827f6e50,0x388a8550,0x4b656650,0x4c585850,0xc3c0a150,0x97a7
9a50,0x80a99950,0xe1c99d50,
0x6e8c8a50,0x57585c50,0xd6b98d50,0x426d8050,0xa2936850,0x81827450,0x3d717f50,0xb6ab
7e50,0x58748250,0x696a6250,
0x8f7d5950,0xa3a09150,0x80948b50,0x78695450,0x72866a50,0xaa455350,0x53616a50,0x8f4f
4f50,0xbfc1b650,0x93836950,
0xb5a18050,0x763b4150,0x74756750,0x846c5050,0x914b4d50,0x38526b50,0xef87a250,0x3c3d
3850,0x6cb85d50,0x725a4e50,
0x78acaa50,0x987e5950,0x9b675a50,0x545d4c50,0x706c8350,0x7dc6bd50,0xcb90c650,0x7fca
6f50,0xf7ebc350,0x9697ab50,
0xc3bda350,0xbdaf8850,0xcdbf6750,0xab8e9050,0xa2879650,0xd2ee9950,0xbd8a9350,0xaa6a
8550,0x72715c50,0x665b4550,
0x65695250,0x7e926f50,0x7398b550,0x7da47750,0x6bcf7950,0x65c8a950,0xe0d59d50,0xc8c5
b450,0xde7c5f50,0x77694c50,
0x5d6d4950,0xd17f7450,0x6f93b350,0x62b79a50,0x66726450,0x6aa99850,0x6daaa550,0xaa7f
aa50,0x875e4a50,0xbfb1b050,
0xb4a8ac50,0x987f9d50,0x68694750,0x80604b50,0x8e6c5050,0xd8685a50,0xd294a950,0xbf98
9950,0xbb839c50,0x82616850,
0xbd825a50,0xba625450,0xd2886550,0xcf795850,0xc88c8450,0xbba89950,0x4f584750,0x516b
4850,0x6c825b50,0x677c5b50,
0xaa757d50,0x8dca8550,0xd4c7a450,0xc0bfaa50,0xdfd24950,0xbac77550,0xbdc2a250,0xbabb
5e50,0x717caa50,0x7d7b4a50,
0xc1aa7450,0x53637050,0x79936c50,0x606f6c50,0x798f8d50,0x51545950,0x4d585a50,0x677a
7650,0x7d99a750,0x5d7b7d50,
0x6f8b8c50,0x72668a50,0xac6c5350,0xd3caad50,0x98a05350,0x54594550,0xcc996e50,0xa3ca
af50,0xd2977950,0xcc905450,
0xdd888f50,0xd6c37750,0xd0715150,0x59627150,0x93655650,0x89864f50,0x9cd66550,0x5a76
5d50,0xd0b85850,0x66b75850,
0x83605a50,0xb7915350,0xc37d9f50,0xbf679150,0x5b7f5150,0x71894f50,0x5d716650,0xc391
9d50,0xcca47050,0xaf6c5250,
0x77c4a450,0x99c55650,0x9b616f50,0x63bd6350,0x7c5d4950,0x57694f50,0x809ea850,0x7480
8050,0x935d5b50,0x90575e50,
0xaaa18450,0x7d7e7050,0x716d6250,0xc9c3a350,0x9b907a50,0x83878650
};
//
new celularrp = 0;
//
new BatatinhaFrita[41];
new rodapepadrao = 1; //(0) - off, (1) on
new AlteracaoMS[50][100];
//------ [ INCLUDES ] ------------//
#include <a_samp.inc>
#include <a_npc.inc>
#include <a_vehicles.inc>
#include <a_http.inc>
#include <MV_Youtube.inc>
#include <DOF2.inc>
#include <zCMD.inc>
#include <float.inc>
#include <SetVehicleAttachedObject.inc>
#include <streamer.inc>
#include <OnVehicleTakeDamage.inc>
#include <discord-connector.inc>
#include <mSelection.inc>
#include <playerprogress.inc>
#include <sscanf2.inc>
#include <ranks.inc>
#include <Pawn.RakNet.inc>
#include <fly.inc>
#include <progress.inc>
#include <times.inc>
#include <evf.inc>
#include <strlib>
#include <core>
#include <desativador-de-avisos.inc>
#include <textdraw-streamer.inc>
//opicao das cargas do vendedor de produtos
enum pHaul
{
pCapasity,
pLoad
};
new PlayerHaul[MAX_VEHICLES][pHaul];
//FIM INCLUDES
enum iInfo{
iSlot,
iUnidades,
iName[30],
iCriado,
}
new cds1[MAX_PLAYERS];
new InventarioInfo[MAX_PLAYERS][75][iInfo];
new PlayerText:invspc_p[MAX_PLAYERS][108];
//
new timerprocurar[MAX_PLAYERS];
new TempoProcurar[MAX_PLAYERS];
new PlayerText:TextProcurar[MAX_PLAYERS][1];
new UsedZenyx[MAX_PLAYERS];
//textdraw tela login
new PlayerText:PlayerRegister[MAX_PLAYERS][25];
//SPAWN MOTOS LS e sf
new Text:Motos_SLOW[9];
new SlotVeh1[MAX_PLAYERS];
new SlotVeh2[MAX_PLAYERS];
new tempocriarvp[MAX_PLAYERS];
new pegoumoto[MAX_PLAYERS];
//
new PlayerText:recebeudinsujo[MAX_PLAYERS][1];
new PlayerText:recebeudinsujo_p[MAX_PLAYERS][11];
new PlayerText:entrandoint_p[MAX_PLAYERS][2];
//aqui e new do rodape novo
new PlayerText:Text_Player[MAX_PLAYERS][18];
//AQUI E TELA CARREGAMENTO DE INTERIORES
new PlayerText:TextPos[MAX_PLAYERS][5];
//aqui news do sistema de cupom itens
new cup[55];
new admcriou[55];
new cupcriado;
new cupomitem;
new quantitem;
new resgatcupom[MAX_PLAYERS];
//SISTEMA DE LIGAR MOTOR TEXTDRAW E AREA NEUTRA
new PlayerText:newitem[MAX_PLAYERS][22];
new notifyinfo[MAX_PLAYERS];
new fechartudonotify[MAX_PLAYERS];
new timernotify[MAX_PLAYERS];
//
new InventarioConfig_SX[MAX_PLAYERS];
//tela login nova variaveis
new PlayerText:TextPcMobile[MAX_PLAYERS][20];
new PlayerText:BrasilPlayShew[MAX_PLAYERS][21];
new PlayerBar:BrasilPlayShew2[MAX_PLAYERS][1];
//NEWS PEDAGIOS
new pedagiofechar[103];
//new tempopedagio[MAX_PLAYERS];
new pedagio[MAX_PLAYERS];
new pedagiolv[15];
new pedagiols[56];
//
new PlayerVersion[MAX_PLAYERS][30];
new PlayerText:backgroundgas[MAX_PLAYERS];
new PlayerText:backgroundgas2[MAX_PLAYERS];
//
new senhaLoginString[MAX_PLAYERS];
new PlayerText:loginshox_p[MAX_PLAYERS][3];
new PlayerText:alertaionv2_p[MAX_PLAYERS][4];
new PlayerText:alertainv_new[MAX_PLAYERS][4];
new timeralertainvnew[MAX_PLAYERS];
new timeralertainvnew2[MAX_PLAYERS];
new bonusnovatop[MAX_PLAYERS];
new PlayerText:dominando_p[MAX_PLAYERS][5];
//AQUI NEW DO CUPOM
new CodigoCupom[55];
new quantiacupom;
new quantiacupomusou;
new CupomCriado;
new moedascupom;
//AQUI E AS NEWS EMPREGO CARROFORTE BY MIGUELITO
new IDCarroForte[MAX_PLAYERS];
new DinamitouForte[MAX_PLAYERS];
new DinamiteForte;
new CPForte[MAX_PLAYERS];
new DinheiroForte[MAX_PLAYERS];
new ArmazenarMotorista[MAX_PLAYERS];
new Float:ExplosaoForte[3];
new GLOBALString[328];
new CarrosForte[6];
//KKKK
new Text:RP[23];
new Text:versaotxd;
new bool:teamon = true;
//
forward RetirarAlerta(playerid);
public RetirarAlerta(playerid)
{
PlayerTextDrawHide(playerid, alertainv_new[playerid][3]);
PlayerTextDrawHide(playerid, alertainv_new[playerid][2]);
PlayerTextDrawHide(playerid, alertainv_new[playerid][1]);
PlayerTextDrawHide(playerid, alertainv_new[playerid][0]);
return 1;
}
stock AlertaInv(playerid, alert[])
{
PlayerTextDrawHide(playerid, alertainv_new[playerid][3]);
PlayerTextDrawShow(playerid, alertainv_new[playerid][2]);
PlayerTextDrawShow(playerid, alertainv_new[playerid][1]);
PTextSetString(playerid, alertainv_new[playerid][0], alert);
PlayerTextDrawShow(playerid, alertainv_new[playerid][0]);
forward RetirarAlerta2(playerid);
public RetirarAlerta2(playerid)
{
PlayerTextDrawHide(playerid, alertaionv2_p[playerid][3]);
PlayerTextDrawHide(playerid, alertaionv2_p[playerid][2]);
PlayerTextDrawHide(playerid, alertaionv2_p[playerid][1]);
PlayerTextDrawHide(playerid, alertaionv2_p[playerid][0]);
return 1;
}
new SlotINVId[MAX_PLAYERS];
new Text:Inventario_BASE[28];
new PlayerText:Inventario_BASE_p[MAX_PLAYERS][66];
new PlayerText:Inventario_SELECIONADOR_p[MAX_PLAYERS][15];
//
new PlayerText:VelocimetroNEW[MAX_PLAYERS][34];
//
new Text:compraitens[22];
new PlayerText:compraitens_p[MAX_PLAYERS][15];
new TimerInt[MAX_PLAYERS];
//Defines de mapas
#define Ts "pronto"
#define Discord "discord.gg/pronto"
#define TW "Em Breve"
#define Facebook "fb.gg/pronto"
#define Youtuber "LatinCity"
#define Instagram "@LatinCity"
//
#define versaoname "VERSION: D.1.0"
#define atualizacoes_v "ra"
#define data_v "06/08/2023"
//
#define COLOR_RED 0xAA3333AA
//
#define varGet(%0) getproperty(0,%0)
#define varSet(%0,%1) setproperty(0, %0, %1)
#define new_strcmp(%0,%1) \
(varSet(%0, 1), varGet(%1) == varSet(%0, 0))
//
#define PINTAR_CARRO 3054
#define TUNNING3 3057
//
#if defined MAX_VEHICLES
#undef MAX_VEHICLES
#define MAX_VEHICLES (2001) //1500
#endif
#define COR_KING 0xFFFF00FF
//
stock MudarAlertaTelaLogin(playerid, alertanovo[])
{
PTextSetString(playerid, loginshox_p[playerid][1], alertanovo);
PTextShow(playerid, loginshox_p[playerid][1]);
return 0;
}
//
new PlayerText:SXBolaInv[MAX_PLAYERS][5];
new enviandopix[MAX_PLAYERS];
new PlayerText:AreaNeutraTXD[MAX_PLAYERS][4];
new rouboucarro[MAX_PLAYERS];
new NoBatatinha[MAX_PLAYERS];
new PlayerText:HUD_CelularHud[MAX_PLAYERS][6];
new PlayerText:HUD_CelularBloqueio[MAX_PLAYERS][4];
new PlayerText:HUD_RP_PC[MAX_PLAYERS][15];
new Float:HUD_VidaAnt[MAX_PLAYERS];
new Float:HUD_ColeteAnt[MAX_PLAYERS];
new PlayerText:HUD_CelularHome[MAX_PLAYERS][10];
new Text:fomesedeicon[2];
new PlayerText:fomesedeicon_p[MAX_PLAYERS][4];
new Text:fomesedeesquerdo[6];
new PlayerText:fomesedeesquerdo_p[MAX_PLAYERS][6];
new Text:rodapeshox[24];
new PlayerText:SX_Posicao_p[MAX_PLAYERS][3];
new PlayerText:rodapeshox_p[MAX_PLAYERS][4];
new Text:fomesedeshox[9];
new PlayerText:fomesedeshox_p[MAX_PLAYERS][6];
//new PlayerText:Loading_HUD[MAX_PLAYERS][1];
//========[Cores Mensagens]=======//
new Cores[] =
{
0xFF9E00FF,
0xE6FFFFFF,
0x717500FF,
0x00FFDEFF,
0x24C8BFFF,
0xFF9F00FF,
0x23C3BBFF,
0xE579FFFF,
0x68CBFCFF,
0xFF0066FF,
0xFFFFFFFF
};
//========[Mensagens]=======
new Mensagens[][] =
{
"[Servidor]: Obten VIP/Socio y recibe varios beneficios, para mas informacion
escribe: /vip!",
"[Servidor]: Encontraste el servidor en internet y no sabes la IP? Agregalo a
favoritos: 51.81.57.217:28308!",
"[Servidor]: Acabas de empezar a jugar y tienes dudas? Escribe /faq o
pregunta a un Helper (/atencion)!",
"[Servidor]: Nuestro equipo siempre esta trabajando para mejorar tu
experiencia en nuestro servidor.",
"[Consejo]: Eres nuevo(a)? Necesitas ayuda? Pide asistencia a nuestra
administracion escribiendo /atencion o /n(Chat de Dudas).",
"[Nuevo]: Estas perdido? Necesitas encontrar algun lugar? Escribe: /GPS y
encuentralo!",
"[Atencion]: Registrate en nuestro foro, es esencial para el servidor!",
"[Consejo]: Comandos utiles: /menuSKN /comandos /admins /n /vip /menuvip /faq
/ajuda /rg /inventario!",
"[Servidor]: Siguenos en Facebook y enterate de las noticias: =>
www.fb.com/pronto. <=",
"[Servidor]: Tienes dudas? Necesitas ayuda? Escribe: /atencion o /duda!",
//"[TeamSpeak]: Entraste al TeamSpeak y no estas registrado? Manda un poke a
un Admin del TS o solicita un /atencion.",
"[Servidor]: Informate de todas las reglas del servidor usando: /reglas!",
"[Servidor]: Invita a tus amigos, con eso ayudaras al crecimiento de Latin
City RPG (SKN)!",
"[Servidor]: Acabas de empezar a jugar y tienes dudas? Escribe /faq o
pregunta a un Helper (/atencion)!"
};
//sistema de roleta by miguelito
#define MAX_ROLETA_ITEM 24
//=======ROLETA REFEITA POR Miguel========//
//variaveis
new PlayerText:Roleta_Mix[MAX_PLAYERS][102];
new PlayerText:Roleta_Misteriosa[MAX_PLAYERS][73];
//geral
new RoletaGirando[MAX_PLAYERS];
new TimeRoleta2[MAX_PLAYERS];
new TimeRoleta[MAX_PLAYERS];
new TimeFinal[MAX_PLAYERS];
new PaginasRoleta[MAX_PLAYERS];
enum RItens
{
RCriado,
RID,
RIDMisteriosa,
RIDPrata,
RIDOuro,
RIDVeh,
RUnidades,
RMoedas,
RDinheiro,
}
new InfoRItem[MAX_ROLETA_ITEM][RItens];
//
new Nomedosveiculos[][] =
{
"Landstalker","Bravura","Buffalo","Linerunner","Pereniel","Sentinel","Dumper"
,"Firetruck","Caminhao Lixo","Stretch","Manana","Infernus",
"Voodoo","Pony","Mule","Cheetah","Ambulancia","Leviathan","Moonbeam","Esperan
to","Taxi","Washington","Bobcat","Mr Whoopee","BF Injection",
"Hunter","Premier","Enforcer","Carro
Forte","Banshee","Predator","Onibus","Rhino","Barracks","Hotknife","Trailer","Previ
on","Coach","Aero-Willis",
"Stallion","Rumpo","RC
Bandit","Romero","Packer","Monster","Admiral","Squalo","Seasparrow","Pizzaboy","Bon
dinho","Trailer","Diablo","Speeder",
"Reefer","Tropic","Flatbed","Yankee","Caddy","Solair","Berkley's RC
Van","Skimmer","PCJ-600","Biz","Shadow","RC Baron","RC Raider",
"Glendale","Oceanic","CRF","sparrow","Patriot","Quad","Coastguard","Dinghy","
Hermes","Impala","Rustler","ZR3 50","Walton","Regina",
"Carrera","BMX","Burrito","Camper","Marquis","Baggage","Dozer","Helicoptero",
"News Chopper","Rancher","FBI Rancher","Virgo","Greenwood",
"Jetmax","Hotring","Sandking","Blista Compact","Heli
Policial","Boxville","Benson","Mesa","RC Globin","Hotring Racer","Hotring Racer",
"Bloodring Banger","Rancher","Super GT","Elegant","Journey","Bike","Mountain
Bike","eagle","Cropdust","Stunt","Tanker","RoadTrain",
"Nebula","Majestic","Buccaneer","Shamal","Hydra","Hornet","R1","HPV1000","Cem
ent Truck","Guincho","Fortune","Cadrona","FBI Truck",
"Willard","Forklift","Tractor","Combine","Feltzer","Remington","Slamvan","Bla
de","Freight","Streak","Vortex","Vincent","Ford-GT","Clover",
"Sadler","Firetruck","Hustler","Intruder","Primo","Cargobob","Tampa","Sunrise
","Merit","Utility","Nevada","Yosemite","Windsor","Monster A",
"Monster B","Uranus","MX-5","Subaru","Parati","Elegy","Raindance","RC
Tiger","Golf","Tahoma","Savanna","Bandito","Freight","Trailer",
"Kart","Mower","Duneride","Sweeper","Broadway","Tornado","AT-400","DFT-
30","Huntley","Stafford","BF-400","Newsvan","Tug","Trailer","Emperor",
"Wayfarer","Euros","Hotdog","Club","Trailer B","Trailer
C","Andromada","Dodo","RC Cam","Launch","Viatura LS","Viatura SF",
"Viatura LV","Police Ranger","Picador","S.W.A.T.
Van","Alpha","Phoenix","Glendale","Sadler","Luggage Trailer","Luggage Trailer",
"Stair Trailer","Boxville","Farm Plow","Utility Trailer"
};
forward VerificarContaSQL(playerid);
forward VerificarContaSQL2(playa, playerid, moedas);
forward InserirDadosSQL(playerid, moedas);
forward VerificarContaSQL3(playerid);
//new cheaRPamee[35];
/*enum acEnum
{
Float: acPosX,
Float: acPosY,
Float: acPosZ,
Float: acSpawnX,
Float: acSpawnY,
Float: acSpawnZ,
acImunidade
};*/
//static TPInfo[MAX_PLAYERS][acEnum];
return ((x1 * x1) + (y1 * y1) + (z1 * z1)) < (radius * radius);
}*/
new PlacaGet[MAX_VEHICLES][20];
stock IsPlayerInSafe(playerid)
{
if(PlayerToPoint(100.0, playerid, 1501.0480,-1693.9336,14.5469) ||
PlayerToPoint(100.0, playerid, 1444.9229,-1708.0803,14.0469) ||
PlayerToPoint(100.0, playerid, 1384.9041,-1728.8351,14.0858) ||
PlayerToPoint(100.0, playerid, 1278.0199,-1710.3093,13.3828) ||
PlayerToPoint(150.0, playerid, 1172.4507,-1323.4114,15.4031) ||
PlayerToPoint(100.0, playerid, -2707.4788,390.5592,4.3672) || PlayerToPoint(25.0,
playerid, 1802.9707,-1578.4380,13.6039) || PlayerToPoint(40.0, playerid, 307.0023,-
1919.8633,3.2637) || PlayerToPoint(65.0, playerid, 2482.4519,-1530.8446,24.1527) ||
PlayerToPoint(40.0, playerid, -1427.8667,-954.2949,200.9088)
/*HQ EMPREGOS*/
|| PlayerToPoint(50.0, playerid, 1657.0415,-1398.4111,13.5469)
|| PlayerToPoint(150.0, playerid, -1871.1517,-1641.4578,22.5179)
|| PlayerToPoint(25.0, playerid, 2029.6667,-1288.5397,20.9439)
|| PlayerToPoint(25.0, playerid, 1794.9659,-2355.4265,13.5309)
|| PlayerToPoint(120.0, playerid, -93.6237,-26.5389,3.1172)
|| PlayerToPoint(35.0, playerid, 2190.9661,-1982.6018,13.5514)
|| PlayerToPoint(35.0, playerid, 2216.2595,2527.0364,10.8203)
|| PlayerToPoint(50.0, playerid, 1459.4802,2362.9148,10.8203)
|| PlayerToPoint(25.0, playerid, 2105.4858,-1806.4725,13.5547)
|| PlayerToPoint(15.0, playerid, 2118.1384,-1774.0100,13.3924)
/*HQ ORGANIZACOES*/
|| PlayerToPoint(25.0, playerid, 328.7618,-1511.8379,36.0391)
|| PlayerToPoint(155.0, playerid, 2707.4656,-2446.3049,27.8331)
|| PlayerToPoint(50.0, playerid, 2768.4495,-1942.4139,13.3573)
|| PlayerToPoint(150.0, playerid, -49.7088,-299.7920,5.4297)
|| PlayerToPoint(25.0, playerid, 2328.9514,-1228.8264,22.5186)
|| PlayerToPoint(25.0, playerid, 2337.9690,-1257.2020,22.5000)
|| PlayerToPoint(50.0, playerid, 758.5597,-1353.2137,14.0281)
|| PlayerToPoint(35.0, playerid, -2455.1770,-136.0054,26.1585)
|| PlayerToPoint(35.0, playerid, 626.9655,-571.7627,17.9207)
|| PlayerToPoint(35.0, playerid, 2483.9958,-1670.1741,13.3359)
|| PlayerToPoint(105.0, playerid, 1056.3629,-324.7208,73.9851)
|| PlayerToPoint(50.0, playerid, 894.5536,-1241.0953,16.3529)
|| PlayerToPoint(50.0, playerid, 1098.3055,-1190.9678,18.2530)
|| PlayerToPoint(20.0, playerid, -1819.3185,-149.2600,9.3984)
|| PlayerToPoint(25.0, playerid, 687.4034,-1274.8488,13.5577)
|| PlayerToPoint(25.0, playerid, 689.2468,-457.5367,16.5363)
|| PlayerToPoint(25.0, playerid, 1497.0920,-687.8906,95.5633)
|| PlayerToPoint(35.0, playerid, -2488.7200,127.6314,25.8672)
|| PlayerToPoint(35.0, playerid, 205.4861,-242.1764,1.5781)
|| PlayerToPoint(100.0, playerid, -515.8712,-539.2990,25.5234)
|| PlayerToPoint(15.0, playerid, 1531.1339,-1468.4728,9.5000)
|| PlayerToPoint(15.0, playerid, 1529.7687,-1476.8344,9.5000)
|| PlayerToPoint(15.0, playerid, 1519.6278,-1471.8123,9.5000)
|| PlayerToPoint(15.0, playerid, 1517.6361,-1463.7607,9.5000)
|| PlayerToPoint(15.0, playerid, 1525.4766,-1468.1088,9.5000))
{
return 1;
}
return 0;
}
stock IsPlayerInSafe2(playerid)
{
if(PlayerToPoint(100.0, playerid, 1501.0480,-1693.9336,14.5469) ||
PlayerToPoint(100.0, playerid, 1444.9229,-1708.0803,14.0469) ||
PlayerToPoint(100.0, playerid, 1384.9041,-1728.8351,14.0858) ||
PlayerToPoint(100.0, playerid, 1278.0199,-1710.3093,13.3828) ||
PlayerToPoint(150.0, playerid, 1172.4507,-1323.4114,15.4031) ||
PlayerToPoint(100.0, playerid, -2707.4788,390.5592,4.3672) || PlayerToPoint(25.0,
playerid, 1802.9707,-1578.4380,13.6039) || PlayerToPoint(40.0, playerid, 307.0023,-
1919.8633,3.2637) || PlayerToPoint(65.0, playerid, 2482.4519,-1530.8446,24.1527) ||
PlayerToPoint(40.0, playerid, -1427.8667,-954.2949,200.9088)
/*HQ EMPREGOS*/
|| PlayerToPoint(50.0, playerid, 1657.0415,-1398.4111,13.5469)
|| PlayerToPoint(150.0, playerid, -1871.1517,-1641.4578,22.5179)
|| PlayerToPoint(25.0, playerid, 2029.6667,-1288.5397,20.9439)
|| PlayerToPoint(25.0, playerid, 1794.9659,-2355.4265,13.5309)
|| PlayerToPoint(120.0, playerid, -93.6237,-26.5389,3.1172)
|| PlayerToPoint(35.0, playerid, 2190.9661,-1982.6018,13.5514)
|| PlayerToPoint(35.0, playerid, 2216.2595,2527.0364,10.8203)
|| PlayerToPoint(50.0, playerid, 1459.4802,2362.9148,10.8203)
|| PlayerToPoint(25.0, playerid, 2105.4858,-1806.4725,13.5547)
|| PlayerToPoint(15.0, playerid, 2118.1384,-1774.0100,13.3924))
{
return 1;
}
return 0;
}
stock ConverterTexto(texto[])
{
new string[256];
for(new i = 0; texto[i]; ++i)
{
string[i] = texto[i];
switch(string[i])
{
case 0xC0 .. 0xC3: string[i] -= 0x40; case 0xC7 .. 0xC9:
string[i] -= 0x42; case 0xD2 .. 0xD5: string[i] -= 0x44; case
0xD9 .. 0xDC: string[i] -= 0x47; case 0xE0 .. 0xE3: string[i] -= 0x49;
case 0xE7 .. 0xEF: string[i] -= 0x4B; case 0xF2 .. 0xF5:
string[i] -= 0x4D; case 0xF9 .. 0xFC: string[i] -= 0x50; case
0xC4, 0xE4: string[i] = 0x83; case 0xC6, 0xE6: string[i] = 0x84;
case 0xD6, 0xF6: string[i] = 0x91; case 0xD1, 0xF1: string[i] = 0xEC;
case 0xDF: string[i] = 0x96; case 0xBF: string[i] = 0xAF;
}
}
return string;
}
#include "../gamemodes/modules/main.pwn"
#include "../gamemodes/modules/Pay2Ply/main.pwn"
enum BlackOrgg
{
blBanido,
blNick[30],
blMotivo[70],
blResponsavel[150]
};
new BlackOrg[27][MAX_BLACKLIST][BlackOrgg];
new bool:NaporraDoEvento[MAX_PLAYERS];
new EventoAcontecendo = 0;
enum IncendioInfoo
{
incendioCriado,
Float:incendioX,
Float:incendioY,
Float:incendioZ,
incendioFoco,
incendioRegiao[50],
Text3D:incendioText,
incendioVitimas,
incendioObjeto
};
new IncendioInfo[MAX_INCENDIOS][IncendioInfoo];
new IncendiandoID[MAX_PLAYERS];
RP::AnuncioGlobalt()
{
if(usaanuncio == 1)
{
new random2 = random(sizeof(Cores));
SendClientMessageToAll(Cores[random2], AnuncioGlobal);
}
return 1;
}
new havendobatatinha;
new tempobatata;
new boladabatatinha;
new timerbatatinha;
new GanhadorBatata[MAX_PLAYERS];
new boladarei;
new havendorei;
new playersmaxr;
new playersmatour;
//new ReiDoCbug[13];
RP::IniciarRCB()
{
foreach(new i: Player)
{
if(havendorei == 1 && NaporraDoEvento[i] == true)
{
TogglePlayerControllable(i, 1);
SendClientMessage(i, 0x33CCFFFF, "[Evento] {FFFFFF}El evento ha
comenzado.");
GameTextForPlayer(i, "~n~~n~~b~DALE PLOMO BRO!", 1800, 3);
}
}
return 1;
}
RP::ContagemBatatinha()
{
if(havendobatatinha == 1)
{
tempobatata --;
if(tempobatata > 0)
{
if(IsValidObject(BatatinhaFrita[32]))
{
format(stringZCMD, 10, "%s", ConvertTimee(tempobatata));
SetObjectMaterialText(BatatinhaFrita[32], stringZCMD, 0, 90,
"Arial", 60, 1, 0xFF000000, 0xFFFFFFFF, 1);
}
}
if(tempobatata <= 0)
{
KillTimer(timerbatatinha);
boladabatatinha = 0;
EventoAcontecendo = 0;
havendobatatinha = 0;
for(new i; i < 41; i++)
{
if(IsValidObject(BatatinhaFrita[i]))
DestroyObject(BatatinhaFrita[i]);
}
foreach(new i: Player)
{
NaporraDoEvento[i] = false;
if(NoBatatinha[i] == 1)
{
NoBatatinha[i] = 0;
SetPlayerSpawn(i);
SetPlayerSkin(i, PlayerInfo[i][pSkin]);
if(GanhadorBatata[i] == 1)
{
GivePlayerMoneyEx(i, boladabatatinha);
format(stringZCMD, 100, "[Evento] El jugador
%s(%03d) gano la bolada de R$%s.", PlayerName(i), i,
ConvertMoney(boladabatatinha));
SendClientMessageToAll(0xFF0059FF, stringZCMD);
}
SendClientMessage(i, 0xFF0059FF, "[Evento] El evento
ha llegado a su fin.");
}
}
}
}
return 1;
}
RP::IniciarBatatinha()
{
if(havendobatatinha == 0) return 1;
foreach(new i: Player)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i))
{
if(NoBatatinha[i] == 1)
{
GameTextForPlayer(i, "~n~~n~~w~JUEGO INICIADO, CORRE
AHORA!", 3000, 1);
GanhadorBatata[i] = 0;
}
}
}
if(IsValidObject(BatatinhaFrita[40]))
DestroyObject(BatatinhaFrita[40]);
if(IsValidObject(BatatinhaFrita[16]))
MoveObject(BatatinhaFrita[16], 1541.2727, 1377.8758, 11.9067, 6.0,
0.0000, 0.0000, 90.0000*5);
RP::IniciarBatatinha2()
{
if(havendobatatinha == 0) return 1;
foreach(new i: Player)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i))
{
if(NoBatatinha[i] == 1)
{
GameTextForPlayer(i, "~n~~n~~b~CORRE AHORA!", 1800, 3);
}
}
}
MoveObject(BatatinhaFrita[16], 1541.2727, 1377.8758, 11.9067, 6.0, 0.0000,
0.0000, 90.0000*5);
RP::PararBatatinha()
{
if(havendobatatinha == 0) return 1;
foreach(new i: Player)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i))
{
if(NoBatatinha[i] == 1)
{
GameTextForPlayer(i, "~n~~n~~r~QUEDATE QUIETO!", 1800, 3);
}
}
}
PlayerTextDrawHide(playerid, recebeudinsujo_p[playerid][9]);
PlayerTextDrawHide(playerid, recebeudinsujo_p[playerid][8]);
PlayerTextDrawHide(playerid, recebeudinsujo_p[playerid][7]);
PlayerTextDrawHide(playerid, recebeudinsujo_p[playerid][6]);
PlayerTextDrawHide(playerid, recebeudinsujo_p[playerid][5]);
PlayerTextDrawHide(playerid, recebeudinsujo_p[playerid][4]);
PlayerTextDrawHide(playerid, recebeudinsujo_p[playerid][3]);
PlayerTextDrawHide(playerid, recebeudinsujo_p[playerid][2]);
PlayerTextDrawHide(playerid, recebeudinsujo_p[playerid][1]);
PlayerTextDrawHide(playerid, recebeudinsujo_p[playerid][0]);
return 1;
}
stock DarDinheiroSujo(playerid, quantia, set=0)
{
if(PlayerInfo[playerid][pDinSujo] > 25000000 || PlayerInfo[playerid]
[pDinSujo] <= 25000000 && quantia >= 20000000 ) { if(set == 0)
{ GivePlayerMoneyEx(playerid, quantia); return 1; } }
if(set == 0) PlayerInfo[playerid][pDinSujo] += quantia;
else PlayerInfo[playerid][pDinSujo] = quantia;
if(set == 0)
{
PlayerTextDrawShow(playerid, recebeudinsujo_p[playerid][9]);
PlayerTextDrawShow(playerid, recebeudinsujo_p[playerid][8]);
PlayerTextDrawShow(playerid, recebeudinsujo_p[playerid][7]);
format(stringZCMD, 20, "+%s", ConvertMoney(quantia));
PTextSetString(playerid, recebeudinsujo_p[playerid][6], stringZCMD);
PlayerTextDrawShow(playerid, recebeudinsujo_p[playerid][6]);
PlayerTextDrawShow(playerid, recebeudinsujo_p[playerid][5]);
PlayerTextDrawShow(playerid, recebeudinsujo_p[playerid][4]);
PlayerTextDrawShow(playerid, recebeudinsujo_p[playerid][3]);
PlayerTextDrawShow(playerid, recebeudinsujo_p[playerid][2]);
PlayerTextDrawShow(playerid, recebeudinsujo_p[playerid][1]);
PlayerTextDrawShow(playerid, recebeudinsujo_p[playerid][0]);
RP::VerificarBatatinha()
{
if(havendobatatinha == 0) return 1;
foreach(new i: Player)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i))
{
new Float:posb[3];
GetPlayerPos(i, posb[0], posb[1], posb[2]);
new ganhou = 0;
if(NoBatatinha[i] == 1 && posb[1] > 1376.6638)
{
ganhou = 1;
}
if(ganhou == 1)
{
foreach(new i2: Player)
{
if(NoBatatinha[i2] == 1 && GanhadorBatata[i2] == 0)
{
format(stringZCMD, 100, "[Evento] El jugador %03d
logro llegar al objetivo del juego!", i2);
SendClientMessage(i2, 0xFF0059FF, stringZCMD);
}
}
GanhadorBatata[i] = 1;
}
new eliminado = 0;
if(NoBatatinha[i] == 1 && posb[1] >= 1340.1592 && posb[1] <=
1376.6638)
{
if(PlayerSpeed(i) > 1.0)
{
eliminado = 1;
}
}
if(eliminado == 1)
{
boladabatatinha += random(30000);
}
}
NoBatatinha[i] = 0;
NaporraDoEvento[i] = false;
SetPlayerSpawn(i);
SetPlayerSkin(i, PlayerInfo[i][pSkin]);
RP::DARGMX(playerid)
{
new gmx[250];
for(new i; i < 15; i++) { SendClientMessageToAll(-1, " "); }
SalvarMenuSistema();
GameModeExitFunc();
new segundoRPmx;
getdate(year, month, day);
gettime(hour, minute, segundoRPmx);
format(gmx, sizeof gmx, "[%02d/%02d/%04d - %02d:%02d:%02d] - [GMX] El Admin:
[%s] Reinicio el Servidor!", day, month, year, hour, minute, segundoRPmx,
PlayerName(playerid));
GmxLog(gmx);
printf("[Log's/Anti-Abusos]: El Admin [%s](%d) Reinicio el servidor!",
PlayerName(playerid), playerid);
FoiGMX = true;
#define MAX_CONTATO 6
new PlayerText:Celular1[MAX_PLAYERS][17];
new PlayerText:Celular2[MAX_PLAYERS][11];
new PlayerText:Celular3[MAX_PLAYERS][58];
new PlayerText:Celular4[MAX_PLAYERS][41];
new PlayerText:Celular5[MAX_PLAYERS][22];
new PlayerText:Celular6[MAX_PLAYERS][11];
new PlayerText:Celular7[MAX_PLAYERS][10];
new PlayerText:Celular8[MAX_PLAYERS][13];
new PlayerText:Celular9[MAX_PLAYERS][38];
new PlayerText:Celular10[MAX_PLAYERS][42];
new PlayerText:Celular11[MAX_PLAYERS][15];
new PlayerText:Celular12[MAX_PLAYERS][20];
new PlayerText:Celular13[MAX_PLAYERS][10];
new PlayerText:Celular14[MAX_PLAYERS][33];
new PlayerText:Celular15[MAX_PLAYERS][11];
new PlayerText:PortaMalas[MAX_PLAYERS][17];
new numeromsg[MAX_PLAYERS];
new MalasEdit[MAX_PLAYERS];
new editmala[MAX_PLAYERS];
new timechamada[MAX_PLAYERS];
new paginactt[MAX_PLAYERS];
new paginacel[MAX_PLAYERS];
new contatop[MAX_PLAYERS];
new NUMEROCEL[MAX_PLAYERS][7];
new contatonumber[MAX_PLAYERS][MAX_CONTATO];
//
new Float:pCamera[MAX_PLAYERS][3];
//
enum eContato
{
contatoCriado,
contatoName[25],
contatoNumber,
}
new ContatoInfo[MAX_PLAYERS][MAX_CONTATO][eContato];
RP::AbrirPortoes(playerid)
{
ShowModelSelectionMenu(playerid, PortoesList, "Elige el tipo de Puerta");
return 1;
}
RP::radarrr(playerid)
{
PTextHide(playerid, txdradar[playerid][0]);
return 1;
}
RP::voltareemp(playerid)
{
PTextHide(playerid,
textEmpresaEnt[playerid][0]);
PTextHide(playerid,
textEmpresaEnt[playerid][1]);
PTextHide(playerid,
textEmpresaEnt[playerid][2]);
return 1;
}
RP::AC_ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[],
button2[])
{
//new time1 = GetTickCount();
//printf("AC_Dialog: %s abrindo anti cheat!", PlayerName(playerid));
DialogAC[playerid] = true;
ShowPlayerDialog(playerid, dialogid, style, caption, info, button1, button2);
//printf("AC_Dialog: anti cheat de %s aberto em [%d ms]!",
PlayerName(playerid), GetTickCount() - time1);
return 1;
}
RP::PostoAbastecer(playerid)
{
PlayerGas[playerid] ++;
if(PlayerGas[playerid] >= 300)
{
PTextHide(playerid, TxdPosto[playerid][0]);
HidePlayerProgressBar(playerid, BarPosto[playerid]);
KillTimer(TimerPosto[playerid]);
Gas[vehicleid] = 100;
TogglePlayerControllable(playerid, 1);
GetVehicleParamsEx(vehicleid,engineZCMD,lightsZCMD,alarmZCMD,doorsZCMD,bonnetZCMD,b
ootZCMD,objectiveZCMD);
SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON,VEHICLE_PARAMS_ON,alarmZCMD,doorsZCM
D,bonnetZCMD,bootZCMD,objectiveZCMD);
SBizzInfo[3][sbTill] += 1000;
return 1;
}
//ShowPlayerProgressBar(playerid, BarPosto[playerid]);
SetPlayerProgressBarMaxValue(playerid, BarPosto[playerid], (300));
SetPlayerProgressBarValue(playerid, BarPosto[playerid],
(PlayerGas[playerid]));
UpdatePlayerProgressBar(playerid, BarPosto[playerid]);
return 1;
}
RP::VoltarPortaoDetran()
{
if(PortaoDetranFoi == 0) return 1;
PortaoDetranFoi = 0;
MoveDynamicObject(PortaoDetran1, 2441.801025, -
1550.054443, 22.407574, 5.0);
return 1;
}
RP::VoltarPortaoAdmin()
{
if(PortaoAdminfoi == 0) return 1;
PortaoAdminfoi = 0;
MoveDynamicObject(PortaoAdmin, 262.370514, -
1639.785522, 19.425802, 7.0);
return 1;
}
RP::EditarContato(playerid, CONTATO)
{
if(ContatoInfo[playerid][CONTATO][contatoCriado] == 0) return
SendClientMessage(playerid, COR_GREY, "* !No existe ningun contacto en este
espacio!");
new time1 = GetTickCount();
for(new i; i < 58; i++)
{
PTextHide(playerid, Celular3[playerid][i]);
}
for(new i; i < 38; i++)
{
PTextHide(playerid, Celular9[playerid][i]);
}
for(new i; i < 42; i++)
{
PTextShow(playerid, Celular10[playerid][i]);
}
new on;
foreach(new i: Player)
{
if(IsPlayerConnected(i) && gPlayerLogged[i])
{
if(strcmp(PlayerName(i), ContatoInfo[playerid]
[CONTATOEDIT][contatoName], true) == 0 || PlayerInfo[playerid][pPnumber] ==
ContatoInfo[playerid][CONTATOEDIT][contatoNumber])
{
on = 1;
}
}
}
if(on == 1)
{
PTextSetString(playerid, Celular10[playerid][1], "ONLINE");
PTextShow(playerid, Celular10[playerid][1]);
PTextColor(playerid, Celular10[playerid][1], 0x228b22ff);
PTextShow(playerid, Celular10[playerid][1]);
}
else
{
PTextSetString(playerid, Celular10[playerid][1],
"OFFLINE");
PTextShow(playerid, Celular10[playerid][1]);
PTextColor(playerid, Celular10[playerid][1], -2139062017);
PTextShow(playerid, Celular10[playerid][1]);
}
contatop[playerid] = CONTATOEDIT;
PaginaCelular[playerid] = 25; //Editar CONTATO
if(debugconsole == 1) printf("Abriendo info contacto de %s cargado en
[%d ms]", PlayerName(playerid), GetTickCount() - time1);
return 1;
}
new timeralerta[MAX_PLAYERS];
new AlertaEsta[MAX_PLAYERS];
new CorAntigo[MAX_PLAYERS];
new CorAntigo2[MAX_PLAYERS];
new TituloAntigo[MAX_PLAYERS][50];
new DescricaoAntigo[MAX_PLAYERS][50];
RP::RAlerta(playerid)
{
for(new i; i < 6; i++)
{
if(IsPlayerTextDrawVisible(playerid, SX_AlertaTela[playerid][i]))
PTextHide(playerid, SX_AlertaTela[playerid][i]);
}
AlertaEsta[playerid] = 0;
return 1;
}
stock AlertaSX(playerid, Titulo[], Descricao[], CorTitulo = 0xFF0000FF, CorFundo =
0x151311FF) //0x070707FF
{
if(AlertaEsta[playerid] == 0)
{
PTextBoxColor(playerid, SX_AlertaTela[playerid][0], CorFundo);
PTextShow(playerid, SX_AlertaTela[playerid][0]);
CorAntigo[playerid] = CorTitulo;
CorAntigo2[playerid] = CorFundo;
PTextBoxColor(playerid, SX_AlertaTela[playerid][5],
CorAntigo2[playerid]);
PTextShow(playerid, SX_AlertaTela[playerid][5]);
PTextSetString(playerid, SX_AlertaTela[playerid][4],
TituloAntigo[playerid]);
PTextShow(playerid, SX_AlertaTela[playerid][4]);
PTextSetString(playerid, SX_AlertaTela[playerid][5],
DescricaoAntigo[playerid]);
PTextShow(playerid, SX_AlertaTela[playerid][5]);
//DE AGORA
CorAntigo[playerid] = CorTitulo;
CorAntigo2[playerid] = CorFundo;
AlertaEsta[playerid] ++;
if(InventarioConfig_SX[playerid] == 0)
{
if(PlayerInfo[playerid][pInventario] == 0) status = "{FFFF90}Esquina
Derecha";
else status = "{FFFF90}Encima del item";
format(stringZCMD, 300, "{792BBB}! {FFFFFF}Selector del Inventario\t%s\
n", status);
strcat(MEGAString, stringZCMD);
if(PlayerInfo[playerid][pCorInv] == 0 || PlayerInfo[playerid][pCorInv] ==
0x00000050 || PlayerInfo[playerid][pCorInv] == 0x0000005C) status =
"{FFFFFF}Estandar";
else
{
if(PlayerInfo[playerid][pCarCorInv] == -1)
{
format(status, 49, "{FFFFFF}Estandar");
}
else
{
new cor[10];
return 0;
}
stock LojaVipa(playerid)
{
new Carro1;
new Carro2;
new monedasCarro1;
new monedasCarro2;
new DOF2[128];
format(DOF2, sizeof(DOF2), "Administrativo/Loja.ini");
if(fexist(DOF2))
{
monedasCarro1 = DOF2_GetInt(DOF2, "PrecoID1");
monedasCarro2 = DOF2_GetInt(DOF2, "PrecoID2");
Carro1 = DOF2_GetInt(DOF2, "CarroID1");
Carro2 = DOF2_GetInt(DOF2, "CarroID2");
}
MEGAString[0] = EOS;
strcat(MEGAString,"Item\tPrecio\n");
/*stock SalvarContatos(playerid)
{
if(debugconsole == 1) printf("Salvando contatos de %s",
PlayerName(playerid));
for(new i; i < MAX_CONTATO; i++)
{
format(stringZCMD, 70, "Players/Contas/Contato%s%d.ini",
PlayerName(playerid), i);
if(!DOF2_FileExists(stringZCMD)) DOF2_CreateFile(stringZCMD);
if(DOF2_FileExists(stringZCMD))
{
DOF2_SetInt(stringZCMD, "Criado", ContatoInfo[playerid][i]
[contatoCriado]);
DOF2_SetInt(stringZCMD, "Numero", ContatoInfo[playerid][i]
[contatoNumber]);
DOF2_SetString(stringZCMD, "Nome", ContatoInfo[playerid][i]
[contatoName]);
DOF2_SaveFile();
}
}
if(debugconsole == 1) printf("Contatos de %s salvo!", PlayerName(playerid));
return 0;
}*/
MEGAString[0] = EOS;
strcat(MEGAString, "Nick\tMotivo\tResponsable\n");
for(new i22; i22 < MAX_BLACKLIST; i22++)
{
format(stringZCMD, 200, "{FFFFFF}%d {AAACAE}%s\t{FFFFFF}%s\t{AAACAE}%s\n",
i22, BlackOrg[idx][i22][blNick], BlackOrg[idx][i22][blMotivo], BlackOrg[idx][i22]
[blResponsavel]);
strcat(MEGAString, stringZCMD);
}
ShowPlayerDialog(playerid, 9920, DIALOG_STYLE_TABLIST_HEADERS, "Lista de
{848484}BANEADOS de la ORG", MEGAString, "Seleccionar", "Volver");
return 0;
}
stock LimparBlackList(idx, i)
{
BlackOrg[idx][i][blBanido] = 0;
format(BlackOrg[idx][i][blNick], 29, "Nadie");
format(BlackOrg[idx][i][blMotivo], 69, "Ninguno");
format(BlackOrg[idx][i][blResponsavel], 149, "Nadie, 00/00/0000 a las
00:00:00");
return 0;
}
stock CofreOrgg(playerid)
{
new org = OrgCofre[playerid];
MEGAString[0] = EOS;
format(stringZCMD, 100, "{ffffff}Miembros\n");
strcat(MEGAString, stringZCMD);
format(stringZCMD, 100, "{ffffff}Informacion\n");
strcat(MEGAString, stringZCMD);
format(stringZCMD, 100, "{ffffff}Definiciones de Miembros\n");
strcat(MEGAString, stringZCMD);
format(stringZCMD, 100, "{ffffff}Otras Definiciones\n");
strcat(MEGAString, stringZCMD);
format(stringZCMD, 100, "{ffffff}Ultimo Login de los Miembros\n");
strcat(MEGAString, stringZCMD);
format(stringZCMD, 100, "{ffffff}Lista Negra\n");
strcat(MEGAString, stringZCMD);
format(stringZCMD, 100, "{ffffff}Equipar\n");
strcat(MEGAString, stringZCMD);
format(stringZCMD, 100, "{33CCFF}Pedir para entrar\n");
strcat(MEGAString, stringZCMD);
RP::ListaTelefonica(playerid)
{
SelectTextDraw(playerid, 0x949293FF);
for(new i; i < MAX_CONTATO; i++)
{
if(ContatoInfo[playerid][i][contatoCriado] == 0)
{
strmid(ContatoInfo[playerid][i]
[contatoName],"Ninguno",0,strlen("Ninguno"), 20);
ContatoInfo[playerid][i][contatoNumber] = 0;
}
}
RP::listarcontatos(playerid)
{
new count;
for(new i; i < MAX_CONTATO; i++)
{
if(ContatoInfo[playerid][i][contatoCriado] == 1)
{
format(stringZCMD, sizeof(stringZCMD), "Nombre: %s, Numero: %d",
ContatoInfo[playerid][i][contatoName], ContatoInfo[playerid][i][contatoNumber]);
SendClientMessage(playerid, -1, stringZCMD);
count++;
}
}
if(count == 0)
{
SendClientMessage(playerid, COR_GREY, "* No tienes ningun contacto!");
}
return 1;
}
RP::addcontato(playerid)
{
PTextHide(playerid, Celular4[playerid][40]);
return 1;
}
RP::VoltarPVerG3(playerid)
{
InterpolateCameraPos(playerid, 533.304626, 397.015777, 942.182006,
532.268798, 358.045043, 942.039428, 10000);
InterpolateCameraLookAt(playerid, 535.346374, 392.512542, 941.438964,
533.852416, 362.787536, 942.008178, 10000);
return 1;
}
RP::VoltarPVerG4(playerid)
{
InterpolateCameraPos(playerid, 1394.479248, -505.201477, 1002.758728,
1394.194580, -525.178894, 1003.108764, 5900);
InterpolateCameraLookAt(playerid, 1396.864746, -509.354400, 1001.322509,
1396.665161, -521.176330, 1001.412963, 5900);
return 1;
}
RP::VoltarPVerG42(playerid)
{
InterpolateCameraPos(playerid, 1275.556762, -657.270996, 1095.753540,
1312.640625, -630.658020, 1097.246582, 5500);
InterpolateCameraLookAt(playerid, 1275.362304, -652.330993, 1095.006347,
1309.527465, -634.507751, 1096.548461, 5500);
return 1;
}
RP::VoltarPVer5(playerid)
{
/*
GetPlayerPos(playerid, PVG[playerid][0], PVG[playerid][1],
PVG[playerid][2]);
GetPlayerVirtualWorld(playerid, PVGWORLD[playerid]);
GetPlayerInterior(playerid, PVGINT[playerid]);
*/
SetCameraBehindPlayer(playerid);
TogglePlayerControllable(playerid, 1);
TogglePlayerSpectating(playerid, 0);
RP::VoltarPVerG(playerid)
{
//VoltarPVerG4(playerid);
SetTimerEx("VoltarPVer5", 10, 0, "d", playerid);
return 1;
}
RP::VoltarPVerG222(playerid)
{
VoltarPVerG42(playerid);
SetTimerEx("VoltarPVer5", 5500, 0, "d", playerid);
return 1;
}
RP::VoltarPVerG2(playerid)
{
SetCameraBehindPlayer(playerid);
TogglePlayerControllable(playerid, 1);
TogglePlayerSpectating(playerid, 0);
RP::SetP2(playerid)
{
SetPlayerPos(playerid, pCamera[playerid][0], pCamera[playerid][1],
pCamera[playerid][2]);
SetPlayerInterior(playerid, interiorcamera[playerid]);
return 1;
}
RP::EntrarDetran(playerid, garagemid)
{
//if(garagemid == 1) return SendClientMessage(playerid, COR_KING, "ERRO:
{FFFFFF} O sistema de apreender veiculos de organizao ainda esta em
desenvolvimento.");
format(stringZCMD, 50, "* Has entrado en el Garaje %02d", garagemid+1);
SendClientMessage(playerid, COR_GRAD1, stringZCMD);
SetPlayerVirtualWorld(playerid, garagemid+1);
if(IsPlayerInAnyVehicle(playerid))
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 2320.0195,2446.3169,2.9816);
SetVehicleZAngle(tmpcar, 91.8249);
SetVehicleVirtualWorld(tmpcar, garagemid+1);
}
else
{
if(PlayerToPoint(2.0, playerid, 2461.3049,-1522.6106,32.5703))
{
SetPlayerPos(playerid, 2268.0371,2449.1174,3.5313);
}
else
{
SetPlayerPos(playerid, 2331.4194,2445.3743,5.1036);
}
}
return 1;
}
new PCE = 0;
RP::ComprarDetran(playerid, item[], valor, itemid)
{
if(debugconsole == 1) print("comprando detran");
if(playermoney[playerid] < valor) { format(stringZCMD, 150, "ERROR:{FFFFFF} !No
tienes R${33AA33}%s{FFFFFF}!", ConvertMoney(valor)); SendClientMessage(playerid,
COR_KING, stringZCMD); return 1; }
PCE += 1000;
CofreOrg[7][Dinheiro] -= 1000;
SBizzInfo[8][sbTill] += valor;
CofreOrg[14][Dinheiro] += valor;
GivePlayerMoneyEx(playerid, -valor);
Atualizar3Dtexts2();
if(debugconsole == 1) print("detran comprado");
return 1;
}
RP::TSmsOff(playerid)
{
PTextHide(playerid,
TextSMS[playerid][0]);
PTextHide(playerid,
TextSMS[playerid][1]);
PTextHide(playerid,
TextSMS[playerid][2]);
PTextHide(playerid,
TextSMS[playerid][3]);
PTextHide(playerid,
TextSMS[playerid][4]);
PTextHide(playerid,
TextSMS[playerid][5]);
PTextHide(playerid,
TextSMS[playerid][6]);
return 1;
}
RP::SetColorM(playerid, x, y, z)
{
SetPlayerPos(playerid, x, y, z);
return 1;
}
RP::TimerSegundosOFF()
{
SegundosInventario--;
if(SegundosInventario <= 0)
{
SegundosInventario = 0;
KillTimer(TimerSegundos);
}
return 1;
}
RP::ABroadCast(COLOR,string[],level)
{
foreach(new i: Player)
{
if(IsPlayerConnected(i))
{
if(level <= 3)
{
if (PlayerInfo[i][pAdmin] >= level)
{
SendClientMessage(i, COLOR, string);
}
else if (PlayerInfo[i][pHelper] >= level)
{
SendClientMessage(i, COLOR, string);
}
}
else
{
if (PlayerInfo[i][pAdmin] >= level)
{
SendClientMessage(i, COLOR, string);
}
}
}
}
GravarLog("Logs/Administracao.ini", string);
return 1;
}
RP::HelperMSG(COLOR,string[],level)
{
foreach(new i: Player)
{
if(IsPlayerConnected(i))
{
if (PlayerInfo[i][pHelper] >= level)
{
SendClientMessage(i, COLOR, string);
}
}
}
GravarLog("Logs/Administracao.ini", string);
return 1;
}
#include "../modulos/invpreview.pwn"
#include "../modulos/ele.pwn" //emprego de eletricista
//
new rankmatematica[MAX_PLAYERS];
new certomatematica[MAX_PLAYERS];
/*
new Mensagens[][] = ESTA NO MODULO mensagemglobal
{
"!"
}
*/
new Nomesdasarmas[][] =
{
"Pu�o", "Pu�o de hierro", "Palo de Golf", "Baston", "Cuchillo", "Palo de
Beisbol", "Pala", "Palo", "Katana", "Sierra electrica",
"Vibrador", "Vibrador", "Vibrador", "Vibrador", "Flores", "Pico", "Granada",
"Bomba de gas", "Coctel-Molotov", "Desconocido",
"Desconocido", "Desconocido", "Pistola 9mm", "Pistola 9mm con silenciador",
"Desert Eagle", "Escopeta", "Escopeta",
"Escopeta", "Micro Uzi", "MP5", "Ak-47", "M4", "Tec9", "Rifle-Sniper",
"Francotirador", "Bazuca", "Lanza misiles RPG",
"Lanza llamas", "Minigun", "C4 con control", "Detonador", "Spray", "Extintor",
"Camara", "Gafas de vision nocturna", "Gafas infrarrojas",
"Paracaidas", "Desconocido", "Desconocido", "Desconocido", "Desconocido",
"Desconocido", "Desconocido", "Desconocido", "Desconocido"
};
//========[Nombre Armas]=======//
new aNames[][] =
{
"Desarmado", "Pu�o de hierro", "Palo de Golf", "Baston",
"Cuchillo", "Palo de Beisbol", "Pala de alba�il", "Tubo", "Espada",
"Motocierra", "Vibrador", "Vibrador", "Vibrador", "Vibrador",
"Flores", "Pico", "Granada", "Bomba de gas", "Coctel-Molotov", "Desconocido
19", "Desconocido 20", "Jetpack", "Pistola 9mm", "Pistola 9mm con silenciador",
"Desert Eagle", "Escopeta", "Escopeta de ca�on recortado", "Escopeta de
combate", "Micro Uzi", "MP5", "Ak-47", "M4", "Tec9", "Rifle-Sniper", "Rifle-
Sniper",
"Lanza misiles", "Lanza misiles RPG", "Lanza llamas", "Minigun", "Explosivo
remoto", "Detonador", "Spray", "Extintor", "Camara", "Gafas de vision nocturna",
"Gafas infrarrojas",
"Paracaidas", "Desconocido", "Desconocido", "Desconocido", "Desconocido",
"Desconocido", "Desconocido", "Desconocido", "Desconocido"
};
new legalmods[48][22] =
{
{400,
1024,1021,1020,1019,1018,1013,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,000
0,0000},
{401,
1145,1144,1143,1142,1020,1019,1017,1013,1007,1006,1005,1004,1003,1001,0000,0000,000
0,0000},
{404,
1021,1020,1019,1017,1016,1013,1007,1002,1000,0000,0000,0000,0000,0000,0000,0000,000
0,0000},
{405,
1023,1021,1020,1019,1018,1014,1001,1000,0000,0000,0000,0000,0000,0000,0000,0000,000
0,0000},
{410,
1024,1023,1021,1020,1019,1017,1013,1007,1003,1001,0000,0000,0000,0000,0000,0000,000
0,0000},
{415,
1023,1019,1018,1017,1007,1003,1001,0000,0000,0000,0000,0000,0000,0000,0000,0000,000
0,0000},
{418,
1021,1020,1016,1006,1002,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,000
0,0000},
{420,
1021,1019,1005,1004,1003,1001,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,000
0,0000},
{421,
1023,1021,1020,1019,1018,1016,1014,1000,0000,0000,0000,0000,0000,0000,0000,0000,000
0,0000},
{422,
1021,1020,1019,1017,1013,1007,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,000
0,0000},
{426,
1021,1019,1006,1005,1004,1003,1001,0000,0000,0000,0000,0000,0000,0000,0000,0000,000
0,0000},
{436,
1022,1021,1020,1019,1017,1013,1007,1006,1003,1001,0000,0000,0000,0000,0000,0000,000
0,0000},
{439,
1145,1144,1143,1142,1023,1017,1013,1007,1003,1001,0000,0000,0000,0000,0000,0000,000
0,0000},
{477,
1021,1020,1019,1018,1017,1007,1006,0000,0000,0000,0000,0000,0000,0000,0000,0000,000
0,0000},
{478,
1024,1022,1021,1020,1013,1012,1005,1004,0000,0000,0000,0000,0000,0000,0000,0000,000
0,0000},
{489,
1024,1020,1019,1018,1016,1013,1006,1005,1004,1002,1000,0000,0000,0000,0000,0000,000
0,0000},
{491,
1145,1144,1143,1142,1023,1021,1020,1019,1018,1017,1014,1007,1003,0000,0000,0000,000
0,0000},
{492,
1016,1006,1005,1004,1000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,000
0,0000},
{496,
1143,1142,1023,1020,1019,1017,1011,1007,1006,1003,1002,1001,0000,0000,0000,0000,000
0,0000},
{500,
1024,1021,1020,1019,1013,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,000
0,0000},
{516,
1021,1020,1019,1018,1017,1016,1015,1007,1004,1002,1000,0000,0000,0000,0000,0000,000
0,0000},
{517,
1145,1144,1143,1142,1023,1020,1019,1018,1017,1016,1007,1003,1002,0000,0000,0000,000
0,0000},
{518,
1145,1144,1143,1142,1023,1020,1018,1017,1013,1007,1006,1005,1003,1001,0000,0000,000
0,0000},
{527,
1021,1020,1018,1017,1015,1014,1007,1001,0000,0000,0000,0000,0000,0000,0000,0000,000
0,0000},
{529,
1023,1020,1019,1018,1017,1012,1011,1007,1006,1003,1001,0000,0000,0000,0000,0000,000
0,0000},
{534,
1185,1180,1179,1178,1127,1126,1125,1124,1123,1122,1106,1101,1100,0000,0000,0000,000
0,0000},
{535,
1121,1120,1119,1118,1117,1116,1115,1114,1113,1110,1109,0000,0000,0000,0000,0000,000
0,0000},
{536,
1184,1183,1182,1181,1128,1108,1107,1105,1104,1103,0000,0000,0000,0000,0000,0000,000
0,0000},
{540,
1145,1144,1143,1142,1024,1023,1020,1019,1018,1017,1007,1006,1004,1001,0000,0000,000
0,0000},
{542,
1145,1144,1021,1020,1019,1018,1015,1014,0000,0000,0000,0000,0000,0000,0000,0000,000
0,0000},
{546,
1145,1144,1143,1142,1024,1023,1019,1018,1017,1007,1006,1004,1002,1001,0000,0000,000
0,0000},
{547,
1143,1142,1021,1020,1019,1018,1016,1003,1000,0000,0000,0000,0000,0000,0000,0000,000
0,0000},
{549,
1145,1144,1143,1142,1023,1020,1019,1018,1017,1012,1011,1007,1003,1001,0000,0000,000
0,0000},
{550,
1145,1144,1143,1142,1023,1020,1019,1018,1006,1005,1004,1003,1001,0000,0000,0000,000
0,0000},
{551,
1023,1021,1020,1019,1018,1016,1006,1005,1003,1002,0000,0000,0000,0000,0000,0000,000
0,0000},
{558,
1168,1167,1166,1165,1164,1163,1095,1094,1093,1092,1091,1090,1089,1088,0000,0000,000
0,0000},
{559,
1173,1162,1161,1160,1159,1158,1072,1071,1070,1069,1068,1067,1066,1065,0000,0000,000
0,0000},
{560,
1170,1169,1141,1140,1139,1138,1033,1032,1031,1030,1029,1028,1027,1026,0000,0000,000
0,0000},
{561,
1157,1156,1155,1154,1064,1063,1062,1061,1060,1059,1058,1057,1056,1055,1031,1030,102
7,1026},
{562,
1172,1171,1149,1148,1147,1146,1041,1040,1039,1038,1037,1036,1035,1034,0000,0000,000
0,0000},
{565,
1153,1152,1151,1150,1054,1053,1052,1051,1050,1049,1048,1047,1046,1045,0000,0000,000
0,0000},
{567,
1189,1188,1187,1186,1133,1132,1131,1130,1129,1102,0000,0000,0000,0000,0000,0000,000
0,0000},
{575,
1177,1176,1175,1174,1099,1044,1043,1042,0000,0000,0000,0000,0000,0000,0000,0000,000
0,0000},
{576,
1193,1192,1191,1190,1137,1136,1135,1134,0000,0000,0000,0000,0000,0000,0000,0000,000
0,0000},
{580,
1023,1020,1018,1017,1007,1006,1001,0000,0000,0000,0000,0000,0000,0000,0000,0000,000
0,0000},
{589,
1145,1144,1024,1020,1018,1017,1016,1013,1007,1006,1005,1004,1000,0000,0000,0000,000
0,0000},
{600,
1022,1020,1018,1017,1013,1007,1006,1005,1004,0000,0000,0000,0000,0000,0000,0000,000
0,0000},
{603,
1145,1144,1143,1142,1024,1023,1020,1019,1018,1017,1007,1006,1001,0000,0000,0000,000
0,0000}
};
enum enumGg
{
gCriado,
gPickup,
gPickup2,
Text3D:g3DText,
Text3D:g3DText2,
}
new CriouGaragem[MAX_WORLD_G][enumGg];
enum enumGp2
{
Float:gp1,
Float:gp2,
Float:gp3,
gInterior,
gWorld,
}
new GaragemP[MAX_PLAYERS][enumGp2];
enum enumGp332
{
Float:gp1,
Float:gp2,
Float:gp3,
gInterior,
gWorld,
}
new CofrePOrg[MAX_PLAYERS][enumGp332];
SetPlayerPos(playerid, 1783.2776,1701.5067,686.0891);
SetPlayerVirtualWorld(playerid, org);
return 0;
}
strcat(MEGAString, "Opcion\tInformacion\n");
stock SairCofre(playerid)
{
SetPlayerPos(playerid, CofrePOrg[playerid][gp1], CofrePOrg[playerid][gp2],
CofrePOrg[playerid][gp3]);
SetPlayerInterior(playerid, CofrePOrg[playerid][gInterior]);
SetPlayerVirtualWorld(playerid, CofrePOrg[playerid][gWorld]);
}
//=================================================================================
===============================================================
SetPlayerInterior(playerid, interior2);
SetPlayerVirtualWorld(playerid, world);
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
Streamer_Update(playerid); SetVehiclePos(tmpcar,
537.8206,388.6760,943.4000); SetVehicleZAngle(tmpcar, 181.7971);
LinkVehicleToInterior(tmpcar, interior2); SetVehicleVirtualWorld(tmpcar, world);
Streamer_Update(playerid);
}
else
{
SetPlayerPos(playerid, 537.5374,393.0404,941.2737);
SetPlayerFacingAngle(playerid, 179.2020);
LoadObjects(playerid);
}
Streamer_Update(playerid);
return 0;
}
stock CameraMonitoramento(playerid)
{
MEGAString[0] = EOS;
strcat(MEGAString, "{33CCFF}Camara 00 {818689}Penitenciaria LS");
strcat(MEGAString, "\n{33CCFF}Camara 01 {818689}Alcaldia");
strcat(MEGAString, "\n{33CCFF}Camara 02 {818689}Mercado 24/7 (Alcaldia)");
strcat(MEGAString, "\n{33CCFF}Camara 03 {818689}Spawn Civil");
strcat(MEGAString, "\n{33CCFF}Camara 04 {818689}Banco");
strcat(MEGAString, "\n{33CCFF}Camara 05 {818689}Casa de Apuestas LS");
strcat(MEGAString, "\n{33CCFF}Camara 06 {818689}Casa de Apuestas SF");
strcat(MEGAString, "\n{33CCFF}Camara 07 {818689}Tienda de Armas 1");
strcat(MEGAString, "\n{33CCFF}Camara 08 {818689}Tienda de Armas 2");
strcat(MEGAString, "\n{33CCFF}Camara 09 {818689}Tienda de Armas 3");
strcat(MEGAString, "\n{33CCFF}Camara 10 {818689}Motel");
strcat(MEGAString, "\n{33CCFF}Camara 11 {818689}Casa de Masajes");
strcat(MEGAString, "\n{33CCFF}Camara 12 {818689}Colina");
strcat(MEGAString, "\n{33CCFF}Camara 13 {818689}Pista de Skate");
strcat(MEGAString, "\n{33CCFF}Camara 14 {818689}Parque Gleen");
strcat(MEGAString, "\n{33CCFF}Camara 15 {818689}Mansion");
strcat(MEGAString, "\n{33CCFF}Camara 16 {818689}Estacion");
strcat(MEGAString, "\n{33CCFF}Camara 17 {818689}Selva");
strcat(MEGAString, "\n{33CCFF}Camara 18 {818689}Prision 1");
strcat(MEGAString, "\n{33CCFF}Camara 19 {818689}Prision 2");
strcat(MEGAString, "\n{33CCFF}Camara 20 {818689}Isla Pirata");
AC_ShowPlayerDialog(playerid, 1758, DIALOG_STYLE_LIST, "Central de Camaras de
Monitoreo", MEGAString, "Ver", "Cerrar");
return 0;
}
stock PlayerSpeed(playerid)
{
new Float:ST[4];
if(IsPlayerInAnyVehicle(playerid))
GetVehicleVelocity(GetPlayerVehicleID(playerid),ST[0],ST[1],ST[2]);
else GetPlayerVelocity(playerid,ST[0],ST[1],ST[2]);
ST[3] = floatsqroot(floatpower(floatabs(ST[0]), 2.0) +
floatpower(floatabs(ST[1]), 2.0) + floatpower(floatabs(ST[2]), 2.0)) * 179.28625;
return floatround(ST[3]);
}
/*stock GetPlayerSpeed(playerid)
{
new Float:ST[4];
if(IsPlayerInAnyVehicle(playerid))
GetVehicleVelocity(GetPlayerVehicleID(playerid),ST[0],ST[1],ST[2]);
else GetPlayerVelocity(playerid,ST[0],ST[1],ST[2]);
ST[3] = floatsqroot(floatpower(floatabs(ST[0]), 2.0) +
floatpower(floatabs(ST[1]), 2.0) + floatpower(floatabs(ST[2]), 2.0)) * 179.28625;
return floatround(ST[3]);
}*/
stock IsWeaponWithAmmo(weaponid)
{
switch(weaponid)
{
stock GetPlayerWeaponAmmo(playerid,weaponid)
{
new wd[2][13];
for(new i; i<13; i++) GetPlayerWeaponData(playerid,i,wd[0][i],wd[1][i]);
for(new i; i<13; i++)
{
if(weaponid == wd[0][i]) return wd[1][i];
}
return 0;
}
stock IsValidNick(nickname[])
{
for(new i; i < strlen(nickname); i ++)
if(!((nickname[i] >= '0' && nickname[i] <= '9') || (nickname[i] >= 'A' &&
nickname[i] <= 'Z') || (nickname[i] >= 'a' && nickname[i] <= 'z') || nickname[i] ==
'_' || nickname[i] == '.' || nickname[i] == '[' || nickname[i] == ']'))
return false;
return true;
}
stock NomeItemInv(idx)
{
new nomedoitem[100];
format(nomedoitem, 50, "Desconocido");
if(idx == 0) format(nomedoitem, 50, "Desconocido");
if(!ObjetoAcessorio(idx))
{
format(nomedoitem, 50, "Objeto(ID: %d)", idx);
}
if(ObjetoAcessorio(idx)) format(nomedoitem, 50, "%s", NomeDoAcessorio(idx));
if(idx == 19382) format(nomedoitem, 50, "Ningun Item");
if(idx == 19942) format(nomedoitem, 50, "Radinho");
//
if(idx > 30000 && idx < 30061 || idx == 30162 || idx == 30204)
format(nomedoitem, 50, "%s Temp", Nomedosveiculos[IDCarroTemp(idx) - 400]); //Carro
Temporario
//laser
if(idx == 18643) format(nomedoitem, 50, "Laser Rojo");
if(idx == 19080) format(nomedoitem, 50, "Laser Azul");
if(idx == 19081) format(nomedoitem, 50, "Laser Rosa");
if(idx == 19082) format(nomedoitem, 50, "Laser Naranja");
if(idx == 19083) format(nomedoitem, 50, "Laser Verde");
if(idx == 19084) format(nomedoitem, 50, "Laser Amarillo");
//geral
if(idx == 3026) format(nomedoitem, 50, "Mochila");
//if(idx == 1606) format(nomedoitem, 50, "Tiburon");
if(idx == 2805) format(nomedoitem, 50, "Saco de Carne");
if(idx == 1277) format(nomedoitem, 50, "Tarjeta de Memoria");
if(idx == 3524) format(nomedoitem, 50, "Calavera 1");
if(idx == 1313) format(nomedoitem, 50, "Calavera 2");
if(idx == 19578) format(nomedoitem, 50, "Banana");
if(idx == 1518) format(nomedoitem, 50, "TV");
if(idx == 1314) format(nomedoitem, 50, "Crear Familia");
if(idx == 2035) format(nomedoitem, 50, "M4 de Adorno");
if(idx == 18688) format(nomedoitem, 50, "Fuego");
if(idx == 1371) format(nomedoitem, 50, "Hipopotamo");
if(idx == 2034) format(nomedoitem, 50, "Coldre del NeFT");
if(idx == 18740) format(nomedoitem, 50, "Hidrante");
if(idx == 19590) format(nomedoitem, 50, "Espada Medicosrai");
if(idx == 19654) format(nomedoitem, 50, "Maleta");
if(idx == 19966) format(nomedoitem, 50, "Placa del Fagner");
//if(idx == 19801) format(nomedoitem, 50, "Gorro Ninja");
if(idx == 19133) format(nomedoitem, 50, "Flecha Roja");
if(idx == 2045) format(nomedoitem, 50, "Baston de Clavos");
if(idx == 19904) format(nomedoitem, 50, "Chaleco DETRAN");
if(idx == 19584) format(nomedoitem, 50, "Olla");
if(idx == 19065) format(nomedoitem, 50, "Gorro de Natal");
if(idx == 1240) format(nomedoitem, 50, "Corazon");
if(idx == 1276) format(nomedoitem, 50, "Osito");
if(idx == 1550) format(nomedoitem, 50, "Saco de Dinero");
if(idx == 2036) format(nomedoitem, 50, "Francotirador de Adorno");
if(idx == 18963) format(nomedoitem, 50, "Cabeza del CJ");
if(idx == 6865) format(nomedoitem, 50, "Cabeza de Buey");
if(idx == 1275) format(nomedoitem, 50, "Ropita Azul");
if(idx == 18638) format(nomedoitem, 50, "Chapeu Operario");
//Acessorios
//Basicamente pega um ID para este acessorio
new tipoacessorio = idx - 18910; //Bandana
new tipoacessorio2 = idx - 19038; //Relogio
new tipoacessorio3 = idx - 19005; //Oculos
new tipoacessorio4 = idx - 18925; //Bone
new stringacciteminv[80];
format(stringacciteminv, sizeof(stringacciteminv), "Gorra (ID: %d)",
tipoacessorio4);
new stringacciteminv2[80];
format(stringacciteminv2, sizeof(stringacciteminv2), "Gafas (ID: %d)",
tipoacessorio3);
new stringacciteminv3[80];
format(stringacciteminv3, sizeof(stringacciteminv3), "Reloj (ID: %d)",
tipoacessorio2);
new stringacciteminv4[80];
format(stringacciteminv4, sizeof(stringacciteminv4), "Bandana (ID: %d)",
tipoacessorio);
switch(idx)
{
case 18926..18934, 19160: nomedoitem = stringacciteminv;
case 19006..19035, 19138..19140, 19050..19053: nomedoitem =
stringacciteminv2;
case 19039..19048: nomedoitem = stringacciteminv3;
case 18911..18920: nomedoitem = stringacciteminv4;
}
stock NomeItemInventario(idx)
{
new nomedoitem[100];
format(nomedoitem, 50, "Desconocido");
if(idx == 0) format(nomedoitem, 50, "Desconocido");
if(idx == 19941) format(nomedoitem, 50, "Respeto");
if(idx == 1212) format(nomedoitem, 50, "Dinero");
if(idx == 1650) format(nomedoitem, 50, "Gasolina");
if(idx == 2226) format(nomedoitem, 50, "Radio Portatil");
if(idx == 18976) format(nomedoitem, 50, "Casco");
if(idx == 980) format(nomedoitem, 50, "Porton");
if(idx == 11738) format(nomedoitem, 50, "Remedio P");
if(idx == 11739) format(nomedoitem, 50, "Remedio Normal");
if(idx == 11736) format(nomedoitem, 50, "MedKit");
if(idx == 1271) format(nomedoitem, 50, "Caja de Items");
if(idx == 1484) format(nomedoitem, 50, "Botella d'Agua");
if(idx == 1581) format(nomedoitem, 50, "Titulo Personalizado");
if(idx == 19563) format(nomedoitem, 50, "Jugo");
if(idx == 2881) format(nomedoitem, 50, "Pizza");
if(idx == 2768) format(nomedoitem, 50, "Hamburguesa");
if(idx == 19562) format(nomedoitem, 50, "Cereal");
if(idx == 1654) format(nomedoitem, 50, "Explosivo");
if(idx == 2919) format(nomedoitem, 50, "Bolsa Tuneo");
if(idx == 19054) format(nomedoitem, 50, "Caja Sorpresa Pequena");
if(idx == 19055) format(nomedoitem, 50, "Caja Sorpresa Media");
if(idx == 19058) format(nomedoitem, 50, "Caja Sorpresa Diamante");
if(idx == 19056) format(nomedoitem, 50, "Caja Platina");
if(idx == 19918) format(nomedoitem, 50, "Caja STL");
if(idx == 2972) format(nomedoitem, 50, "Caja Halloween");
if(idx == 1210) format(nomedoitem, 50, "Maleta");
if(idx == 19342) format(nomedoitem, 50, "Huevo de Pascua");
if(idx == 11733) format(nomedoitem, 50, "Caballo");
if(idx == 11735) format(nomedoitem, 50, "Bota");
if(idx == 2040) format(nomedoitem, 50, "Caja de Equipos P");
if(idx == 3052) format(nomedoitem, 50, "Caja de Equipos M");
if(idx == 3014) format(nomedoitem, 50, "Caja de Equipos G");
if(idx == 441) format(nomedoitem, 50, "RC Bandit");
if(idx == 564) format(nomedoitem, 50, "RC Tiger");
if(idx == 465) format(nomedoitem, 50, "RC Raider");
if(idx == 464) format(nomedoitem, 50, "RC Baron");
if(idx == 19058) format(nomedoitem, 50, "Caja KID");
if(idx == 370) format(nomedoitem, 50, "JetPack");
if(idx == 2901) format(nomedoitem, 50, "Semilla de Marihuana");
if(idx == 1609) format(nomedoitem, 50, "Tortuga");
//itens novos
if(idx == 18632) format(nomedoitem, 50, "Cana de Pescar");
if(idx == 18637) format(nomedoitem, 50, "Escudo de Policia");
if(idx == 18638) format(nomedoitem, 50, "Casco");
if(idx == 18639) format(nomedoitem, 50, "Gorra Negra");
if(idx == 18642) format(nomedoitem, 50, "Taser");
if(idx == 18643) format(nomedoitem, 50, "Laser Rojo");
if(idx == 19080) format(nomedoitem, 50, "Laser Azul");
if(idx == 19081) format(nomedoitem, 50, "Laser Rosa");
if(idx == 19082) format(nomedoitem, 50, "Laser Naranja");
if(idx == 19083) format(nomedoitem, 50, "Laser Verde");
if(idx == 19084) format(nomedoitem, 50, "Laser Amarillo");
if(idx == 18644) format(nomedoitem, 50, "Destornillador");
if(idx == 18875) format(nomedoitem, 50, "Pager");
if(idx == 18890) format(nomedoitem, 50, "Rastrillo");
if(idx == 18921) format(nomedoitem, 50, "Boina Azul");
if(idx == 18922) format(nomedoitem, 50, "Boina Roja");
if(idx == 18923) format(nomedoitem, 50, "Boina Azul Claro");
if(idx == 18924) format(nomedoitem, 50, "Boina Ejercito");
if(idx == 18925) format(nomedoitem, 50, "Boina Roja rara");
if(idx == 18952) format(nomedoitem, 50, "Casco de Boxeo");
if(idx == 18953) format(nomedoitem, 50, "Gorro");
if(idx == 18954) format(nomedoitem, 50, "Gorro raro");
if(idx > 19064 && idx < 19066) format(nomedoitem, 50, "Gorro de Navidad");
if(idx == 19094) format(nomedoitem, 50, "Sombrero Hamburguesa");
if(idx == 19346) format(nomedoitem, 50, "Perro Caliente");
if(idx == 19347) format(nomedoitem, 50, "Estrella");
if(idx == 19515) format(nomedoitem, 50, "Chaleco Gris");
if(idx == 18693) format(nomedoitem, 50, "Efecto Blaster");
if(idx == 18729) format(nomedoitem, 50, "Efecto super raro");
if(idx == 18688) format(nomedoitem, 50, "Efecto de Fuego");
if(idx == 18635) format(nomedoitem, 50, "Martillo raro");
if(idx == 19631) format(nomedoitem, 50, "Martillo");
if(idx == 19625) format(nomedoitem, 50, "Cigarro");
if(idx == 19078) format(nomedoitem, 50, "Arara");
if(idx == 19086) format(nomedoitem, 50, "Pinto raro");
if(idx == 2499) format(nomedoitem, 50, "Pipa");
if(idx == 19528) format(nomedoitem, 50, "Sombrero de Bruja");
if(idx == 18641) format(nomedoitem, 50, "Linterna");
if(idx == 19137) format(nomedoitem, 50, "Cabeza de Pollo");
if(idx == 1240) format(nomedoitem, 50, "Corazon");
if(idx == 2469) format(nomedoitem, 50, "Avioncito");
if(idx == 321) format(nomedoitem, 50, "Pinto");
if(idx == 19317) format(nomedoitem, 50, "Guitarra");
if(idx == 19319) format(nomedoitem, 50, "Guitarra");
if(idx == 19094) format(nomedoitem, 50, "Item Raro");
if(idx == 18974) format(nomedoitem, 50, "Item Raro");
if(idx == 19142) format(nomedoitem, 50, "Chaleco");
if(idx == 19555) format(nomedoitem, 50, "Guante izquierdo");
if(idx == 19556) format(nomedoitem, 50, "Guante derecho");
if(idx == 1736) format(nomedoitem, 50, "Cabeza de toro");
if(idx == 2052) format(nomedoitem, 50, "CJ Tommy Hat");
if(idx == 2053) format(nomedoitem, 50, "CJ Jerry Hat");
if(idx == 2114) format(nomedoitem, 50, "Bola de Baloncesto");
if(idx == 6865) format(nomedoitem, 50, "Cabeza de ciervo");
if(idx == 3528) format(nomedoitem, 50, "Cabeza de dragon");
if(idx == 1262) format(nomedoitem, 50, "Cabeza de semaforo");
if(idx == 19067) format(nomedoitem, 50, "Bandana gangster");
if(idx == 19136) format(nomedoitem, 50, "Gafas y cabello");
if(idx == 19320) format(nomedoitem, 50, "Cabeza de calabaza");
if(idx == 19348) format(nomedoitem, 50, "Bengala");
if(idx == 19042) format(nomedoitem, 50, "Reloj de oro");
if(idx > 2404 && idx < 2406) format(nomedoitem, 50, "Prancha de Surf");
if(idx == 1276) format(nomedoitem, 50, "Osito");
if(idx == 18636) format(nomedoitem, 50, "Chapeu de Policia");
if(idx == 19136) format(nomedoitem, 50, "Mascara");
if(idx == 19557) format(nomedoitem, 50, "Mascara Stripp");
if(idx == 11704) format(nomedoitem, 50, "Mascara DEMON");
if(idx == 1247) format(nomedoitem, 50, "Estrella");
if(idx == 1274) format(nomedoitem, 50, "Sifrao");
if(idx == 2918) format(nomedoitem, 50, "Bola acuatica");
if(idx == 19121) format(nomedoitem, 50, "Luz Blanca");
if(idx == 19122) format(nomedoitem, 50, "Luz Azul");
if(idx == 19123) format(nomedoitem, 50, "Luz Verde");
if(idx == 19124) format(nomedoitem, 50, "Luz Roja");
if(idx == 19125) format(nomedoitem, 50, "Luz Amarela");
if(idx == 19126) format(nomedoitem, 50, "Luz Azul Bebe");
if(idx == 19127) format(nomedoitem, 50, "Luz Roxa");
//Comidas
if(idx == 19094) format(nomedoitem, 50, "Hamburguesa");
if(idx == 19570) format(nomedoitem, 50, "Leche");
if(idx == 19576) format(nomedoitem, 50, "Manzana");
if(idx == 19578) format(nomedoitem, 50, "Banana");
if(idx == 19630) format(nomedoitem, 50, "Pescado");
if(idx == 19835) format(nomedoitem, 50, "Coca Cola");
if(idx == 19811) format(nomedoitem, 50, "Lanche");
if(idx == 19580) format(nomedoitem, 50, "Pizza");
if(idx == 19574) format(nomedoitem, 50, "Naranja");
if(idx == 2647) format(nomedoitem, 50, "Refrigerante");
if(IDCarroTemp(idx)) format(nomedoitem, 50, "%s", NomedosveiculosTemp[idx -
30000]);
if(idx == 19382) format(nomedoitem, 50, "Ningun Item");
if(idx > 0 && idx < 312 ) format(nomedoitem, 50, "Skin %d", idx); // se for
skin
if(idx > 399 && idx < 612 ) format(nomedoitem, 50, "%s", Nomedosveiculos[idx -
400]); // se for veiculo
if(idx >= 331 && idx < 372) format(nomedoitem, 50, NomeArma(idx)); // se for
arma
//
#include "../modulos/compraitem.pwn"
#include "../modulos/armas.pwn"
#include "../modulos/grauscelsius.pwn" //CarrEGA A DEFINE DE
CORES
#include "../modulos/anticheat.pwn" //CarrEGA A DEFINE DE
CORES
//GERAL HAUHUHEUUEHUHEEHUHAUHSUHAUHUAUHUEHUEHUAHUEHUEHEHUEHEUHEUHEU
//Atualiza��es
/*
-> Estou fazendo
( -> Refazendo o Inventario Completamente
( -> Colocando ele no Modulo
( -> Otimizando o Inventario
*/
}
else if(AlertainvSis == 1)
{
new avisobalao[550];
strmid(avisobalao,avisobalao3,0,strlen(avisobalao3), 549);
SetTimerEx("hideAvisoInv2", 5000, 0, "i", playerid);
NaTelinha2[playerid] = 1;
PTextSetString(playerid, textNotificacao2[playerid][2],
avisobalao);
PTextShow(playerid, textNotificacao2[playerid][0]);
PTextShow(playerid, textNotificacao2[playerid][1]);
PTextShow(playerid, textNotificacao2[playerid][2]);
}
}
return 1;
}
stock IniciarCarregamento(playerid)
{
if(carregamentoinvcriado[playerid] == 0)
{
}
carregamentoinvcriado[playerid] = 1;
carregamentoinv[playerid] = 0;
PTextShow(playerid, textCarregamentoINV[playerid][0]);
PTextShow(playerid, textCarregamentoINV[playerid][1]);
PTextShow(playerid, textCarregamentoINV[playerid][2]);
PTextShow(playerid, textCarregamentoINV[playerid][3]);
PTextShow(playerid, textCarregamentoINV[playerid][4]);
PTextShow(playerid, textCarregamentoINV[playerid][5]);
PTextShow(playerid, textCarregamentoINV[playerid][6]);
PTextShow(playerid, textCarregamentoINV[playerid][7]);
timercarregamentoinv[playerid] = SetTimerEx("Atualizadorcarregamentoinv", 37,
1, "i", playerid);//35
return 0;
}
forward Atualizadorcarregamentoinv(playerid);
public Atualizadorcarregamentoinv(playerid)
{
carregamentoinv[playerid]++;
if(debugconsole == 1) printf("%s esta usando atualizador inv!",
PlayerName(playerid));
if(!IsPlayerConnected(playerid) || !gPlayerLogged[playerid])
{
PTextHide(playerid, textCarregamentoINV[playerid][0]);
PTextHide(playerid, textCarregamentoINV[playerid][1]);
PTextHide(playerid, textCarregamentoINV[playerid][2]);
PTextHide(playerid, textCarregamentoINV[playerid][3]);
PTextHide(playerid, textCarregamentoINV[playerid][4]);
PTextHide(playerid, textCarregamentoINV[playerid][5]);
PTextHide(playerid, textCarregamentoINV[playerid][6]);
PTextHide(playerid, textCarregamentoINV[playerid][7]);
quantiacarregandoinv[playerid] = 0;
carregamentoinv[playerid] = 0;
carregamentoinvcriado[playerid] = 0;
if(debugconsole == 1) printf("%s esta usando atualizador inv criado 3!",
PlayerName(playerid));
KillTimer(timercarregamentoinv[playerid]);
return 1;
}
PTextColor(playerid, textCarregamentoINV[playerid][0], -2139062202);
PTextColor(playerid, textCarregamentoINV[playerid][1], -2139062202);
PTextColor(playerid, textCarregamentoINV[playerid][2], -2139062202);
PTextColor(playerid, textCarregamentoINV[playerid][3], -2139062202);
PTextColor(playerid, textCarregamentoINV[playerid][4], -2139062202);
PTextColor(playerid, textCarregamentoINV[playerid][5], -2139062202);
PTextColor(playerid, textCarregamentoINV[playerid][6], -2139062202);
PTextColor(playerid, textCarregamentoINV[playerid][7], -2139062202);
if(quantiacarregandoinv[playerid] == 7 && carregamentoinvcriado[playerid] ==
1)
{
quantiacarregandoinv[playerid] = 0;
}
if(carregamentoinvcriado[playerid] == 1)
{
if(debugconsole == 1) printf("%s esta usando actualizador inv creado
1!", PlayerName(playerid));
new quantiaant = quantiacarregandoinv[playerid];
quantiacarregandoinv[playerid]++;
PTextColor(playerid, textCarregamentoINV[playerid][0], -2139062202);
PTextColor(playerid, textCarregamentoINV[playerid][1], -2139062202);
PTextColor(playerid, textCarregamentoINV[playerid][2], -2139062202);
PTextColor(playerid, textCarregamentoINV[playerid][3], -2139062202);
PTextColor(playerid, textCarregamentoINV[playerid][4], -2139062202);
PTextColor(playerid, textCarregamentoINV[playerid][5], -2139062202);
PTextColor(playerid, textCarregamentoINV[playerid][6], -2139062202);
PTextColor(playerid, textCarregamentoINV[playerid][7], -2139062202);
PTextColor(playerid, textCarregamentoINV[playerid][quantiaant], -
2139062202);
PTextColor(playerid, textCarregamentoINV[playerid]
[quantiacarregandoinv[playerid]], -1);
}
if(carregamentoinv[playerid] == 100)
{
KillTimer(timercarregamentoinv[playerid]);
if(debugconsole == 1) printf("%s esta usando actualizador inv creado
2!", PlayerName(playerid));
carregamentoinv[playerid] = 0;
quantiacarregandoinv[playerid] = 0;
new MS = 999;
for(new i=0; i<75; i++)
{
for(new x=0; i<75; x++)
{
if(InventarioInfo[playerid][x][iSlot] == 19382)
{
MS = x;
break;
}
}
if(InventarioInfo[playerid][i][iSlot] != 19382)
{
if(i > MS)
{
InventarioInfo[playerid][MS][iSlot] =
InventarioInfo[playerid][i][iSlot];
InventarioInfo[playerid][MS][iUnidades] =
InventarioInfo[playerid][i][iUnidades];
InventarioInfo[playerid][i][iSlot] = 19382;
InventarioInfo[playerid][i][iUnidades] = 0;
}
}
}
AtualizarInventario(playerid);
return 1;
}
PTextShow(playerid, textCarregamentoINV[playerid][0]);
PTextShow(playerid, textCarregamentoINV[playerid][1]);
PTextShow(playerid, textCarregamentoINV[playerid][2]);
PTextShow(playerid, textCarregamentoINV[playerid][3]);
PTextShow(playerid, textCarregamentoINV[playerid][4]);
PTextShow(playerid, textCarregamentoINV[playerid][5]);
PTextShow(playerid, textCarregamentoINV[playerid][6]);
PTextShow(playerid, textCarregamentoINV[playerid][7]);
return 1;
}
stock AtualizarCorInv(playerid)
{
if(PlayerInfo[playerid][pCorInv] == 0)
{
//PTextBoxColor(playerid, invText[playerid][0], 50);
//PTextBoxColor(playerid, textDoLadoInv[playerid][0], 105);
}
else
{
PTextBoxColor(playerid, invText[playerid][0], PlayerInfo[playerid]
[pCorInv]);
PTextBoxColor(playerid, textDoLadoInv[playerid][0],
PlayerInfo[playerid][pCorInv]);
}
return 0;
}
}
if(boxid == 1 || boxid == 16 || boxid == 31 || boxid == 46 || boxid == 61){
}
if(boxid == 3 || boxid == 18 || boxid == 33 || boxid == 48 || boxid == 63){
//+96.000
}
if(boxid == 6 || boxid == 21 || boxid == 36 || boxid == 51 || boxid == 66){
RP::OrganizarInventario(playerid)
{
ShowAlertaInv(playerid, "~g~Organizando Inventario:
~w~Organizacion Carregada, o seu inventario esta se organizando! Aguarde.");
AtualizarSlot(playerid, MS);
AtualizarSlot(playerid, i);
}
}
}
//AtualizarInventario(playerid);
ShowAlertaInv(playerid, "~g~Organizando Inventario: ~w~O
seu inventario foi Organizado com sucesso.");
KillTimer(TempoOrganizar[playerid]);
return 1;
}
RP::hideAvisoInv(playerid)
{
if(NaTelinha[playerid] == 1)
{
PTextHide(playerid, invAviso[playerid][0]);
PTextHide(playerid, invAviso[playerid][1]);
PTextHide(playerid, invAviso[playerid][2]);
PTextHide(playerid, invAviso[playerid][0]);
PTextHide(playerid, invAviso[playerid][1]);
PTextHide(playerid, invAviso[playerid][2]);
}
NaTelinha[playerid] = 0;
return 1;
}
RP::hideAvisoInv2(playerid)
{
PTextHide(playerid, textNotificacao2[playerid][0]);
PTextHide(playerid, textNotificacao2[playerid][1]);
PTextHide(playerid, textNotificacao2[playerid][2]);
NaTelinha2[playerid] = 0;
return 1;
}
//Config do Servidor
//Senha da administra��o
#define MSG_SENHA_ADM "{ffffff}Cuenta: {33CCFF}%s\n{ffffff}Has iniciado
sesion como Admin ({33CCFF}Nivel %d{ffffff})\n\n{ffffff}Necesitas autenticar la
contrasena de seguridad para poder\n{ffffff}iniciar sesion en tu cuenta!\n\n\
n{FF6347}OBS: {ffffff}Solo tienes %d intento(s) o seras desconectado del servidor!\
n\n\n{818689}Ingresa abajo la contrasena de administracion"
//Empresas y Mini-Empresas
#define TextEmpresaVenda "{FFFFFF}ID: {33CCFF}%d\n{33CCFF}%s\n{ffffff}Esta
empresa esta en venta\n{ffffff}Valor: R${33AA33}%s\n{ffffff}Nivel: {33CCFF}%d\n\
n{aaacae}Para comprar, escribe {33CCFF}/compraremp"
#define TextEmpresa "{FFFFFF}ID: {33CCFF}%d\n{33CCFF}%s\n\n{FFFFFF}Dueno:
{33CCFF}%s\n{ffffff}Extorsion: {33CCFF}%s\n{ffffff}Tasa de Entrada: R${33AA33}%d\
n{ffffff}Dinero en la Caja Fuerte: R${33AA33}%s\n\n{aaacae}Para entrar, presiona
'{33CCFF}F{aaacae}'."
#define TextMEmpresaVenda "{33CCFF}%s\n{ffffff}Esta empresa esta en venta\nValor:
R${33AA33}%d\n{ffffff}Nivel: {33CCFF}%d\n\n{aaacae}Para comprar escribe
{33CCFF}/compraremp"
#define TextMEmpresa "{FFFFFF}ID: {33CCFF}%d\n{33CCFF}%s\n{FFFFFF}Dueno:
{33CCFF}%s\n{FFFFFF}Saldo de la Caja Fuerte: R${33AA33}%s\n{FFFFFF}Extorsion:
{33CCFF}%s\n\n{aaacae}Empresa sin Interior."
//Fazendas
#define TextFEmpresaVenda "{33CCFF}Granja (ID: %d)\n{ffffff}Esta Granja esta en
venta\n{ffffff}Valor: R${228b22}%s\n{ffffff}Nivel: {33CCFF}%d\n{ffffff}Productos
Requeridos: {33CCFF}%d\n{ffffff}Precio por Producto: R${33CCFF}%d\n\n{33CCFF}Para
comprar escribe /comprarfazenda"
#define TextFEmpresa "{33CCFF}Granja (ID: %d)\n{ffffff}Dueno: {33CCFF}%s\
n{ffffff}Nombre de la Granja: {33CCFF}%s\n{ffffff}Tasa de Entrada: {228b22}%d\
n{ffffff}Fondos: R${228b22}%s\n{ffffff}Productos: {33CCFF}%d\n{ffffff}Productos
Requeridos: {33CCFF}%d\n{ffffff}Precio por producto: {228B22}R$%d"
//Loja VIP
//Como Adquirir moedas vip
//PIX
#define PIX_SERVER "[email protected]" //2n
#define NAME_PIX "Gutierry Alves Lopes"
//3�
#define TIPO_PIX_CHAVE "E-mail"
//1�
//Mercado Pago
#define EMAIL_MERCADOP "pronto"
//Suporte
#define NUMERO_WHATSAPP "(**) * ****-****"
//Formato: +CODIGOPAIS, (+CODIGOESTADO),
CODIGOOPERADORA(TIM E 9), NUMERO COM '-'
//Geral
//Outros
#define SCM(%0, %1, %2) SendClientMessage(%0, %1, %2)
#define SCMTA(%0, %1) SendClientMessageToAll(%0, %1)
#define SCMTAEX(%0, %1) SendClientMessageToAll(%0, %1)
native gpci(playerid, const serial[ ], maxlen);
#define HTTP_IP_API_URL "ip-api.com/csv"
#define HTTP_IP_API_END "?
fields=country,countryCode,region,regionName,city,zip,lat,lon,timezone,isp,org,as,r
everse,query,status,message"
#define HTTP_VPN_API_URL "check.getipintel.net/check.php?
[email protected]&ip="
#define CAMERA_MOVE_TIME 5000
#define SERVER_DATABASE "sqlite.db"
//PRAGMA
#pragma unused Angle
#pragma unused Interior
#pragma semicolon 0
#pragma disablerecursion
//Outros
new senhalogin[MAX_PLAYERS];
new gmxtime;
//new nickativandomv[150];
new socioonn;
new Text:socioon[1];
new tempoproxy[MAX_PLAYERS];
//new lucrototal;
new temporbug[MAX_PLAYERS];
new tempocombate[MAX_PLAYERS];
new anpers;
new AcessorioEditandobone[MAX_PLAYERS];
new boneid2[MAX_PLAYERS];
new PlayerBar:barrapayday[MAX_PLAYERS];
new PlayerText:TDspec[MAX_PLAYERS][2];
new bool:objeditando[MAX_PLAYERS];
new tempoinvtecla[MAX_PLAYERS];
new TimerGrana[MAX_PLAYERS];
new assuntoatendimento[MAX_PLAYERS][150];
new prioridadeatendimento[MAX_PLAYERS];
new pediuatendimento[MAX_PLAYERS];
new jogadoratt[MAX_PLAYERS];
new entrandoarena[MAX_PLAYERS];
new opacidadesistema;
new textorodape[250];
new killsarena[MAX_PLAYERS];
new timearena;
new Text:TDArenaAll[2];
new tentativassenhaadm[MAX_PLAYERS];
new logconsulta[MAX_PLAYERS][40];
new senhaadmin[100];
new coins2[MAX_PLAYERS];
new stringLojaMV[MAX_PLAYERS];
new bool:Logou[MAX_PLAYERS];
new tddinheirooc[MAX_PLAYERS];
//new PrecoVehC2;
new CarrosConce[86];
new bool:NaLojaDeItem[MAX_PLAYERS];
new stringPrecoAn[MAX_PLAYERS];
new ArmazenarItemAn[MAX_PLAYERS];
new UnidadeItemAn[MAX_PLAYERS];
new TempoReparar[MAX_PLAYERS];
new TempoAbastecer[MAX_PLAYERS];
new stringSenhaLogin[MAX_PLAYERS];
new bool:NickBrilhosoAtivo[MAX_PLAYERS];
new bool:NickBrilhosoAtivo2[MAX_PLAYERS];
#define SQL_HOST "localhost"
#define SQL_USER "root"
#define SQL_PASS ""
#define SQL_DB "dbShow"
new nomeserver1[50];
new nomeserver2[50];
new svrodando;
//========================= Numero de Casas e Empresas =========================
#define MAX_FBIZZES 21
new PortaCAberta[MAX_FBIZZES];
new PortaCFechada[2][MAX_FBIZZES];
new Text3D:FazendaTEXT[MAX_FBIZZES];
new FazendaDano[MAX_FBIZZES];
new ExplodindoFazenda[MAX_FBIZZES];
new TimerRoubouFazendaA[MAX_FBIZZES];
new faztime[MAX_FBIZZES];
new TimerRoubouFazenda[MAX_PLAYERS][MAX_FBIZZES];
//==============================================================================
#define DIALOG_PLATAFORMA 9854
//==============================================================================
//Variaveis
new ouvintesradio;
new bool:ouvindoradio[MAX_PLAYERS];
new TempoCombate[MAX_PLAYERS];
new TempoDeath[MAX_PLAYERS];
new TempoVeiculo[MAX_PLAYERS];
new PlayerText:TextDrawDeEstrelasPC[MAX_PLAYERS][2];
new TunningSis;
new OrgSis;
new ChatSis;
new IPmsgConnect;
enum radar {
Float:lPosX,
Float:lPosY,
Float:lPosZ,
Float:lAngulo,
lVelocidade,
};
new InfoRadar[MAX_RADAR][radar];
new VerLogsSis;
new VPNSis;
new VinculacaoSis;
new NoAlerta[MAX_PLAYERS];
new HV = 0;
new CH = 0;
new CM = 0;
//new PlayerText:invAviso[MAX_PLAYERS][3];
new StringItem[MAX_PLAYERS];
new StringUnidade[MAX_PLAYERS];
new StringSlot[MAX_PLAYERS];
new StringCarroTemp[MAX_PLAYERS];
//new bool:ComProxy[MAX_PLAYERS];
new stringCor1V[MAX_PLAYERS];
//new bool:NaConce[MAX_PLAYERS];
//new PlayerText:textAlerta2[MAX_PLAYERS][5];
new listmalas[MAX_PLAYERS];
new unidademalas[MAX_PLAYERS];
new stringIDV[MAX_PLAYERS][20];
new FreqRadio[MAX_PLAYERS];
new RadioLigado[MAX_PLAYERS];
//new bool:SenhaAdm[MAX_PLAYERS];
new TempoCmd[MAX_PLAYERS];
new TempoText[MAX_PLAYERS];
new Float:ptx[MAX_PLAYERS], Float:pty[MAX_PLAYERS], Float:ptz[MAX_PLAYERS];
new grafiteeditando[MAX_PLAYERS];
new bool:LogouAgora2[MAX_PLAYERS];
new Float:posantx[MAX_PLAYERS], Float:posanty[MAX_PLAYERS],
Float:posantz[MAX_PLAYERS];
new TimeNickB[MAX_PLAYERS];
new TimeNickB2[MAX_PLAYERS];
new PingSis;
new PodeMudarNick[MAX_PLAYERS];
//new editandoacc;
new tradeesta;
new invaberto;
new invpref;
new bool:FoiGmxAuto = false;
new GmxSis;
new RadioRPLNK[128];
//new MusicaLoginLNK[528];
new LogsSis;
new Bucetuda[MAX_PLAYERS];
new ProdutosVeh[MAX_VEHICLES];
new CarroEquipadoPD[MAX_VEHICLES];
new FazendaMechendo[MAX_PLAYERS];
new FazendaEntrou[MAX_PLAYERS];
new bool:RoubandoFazenda[MAX_PLAYERS];
new MsgSocioSis;
new DeuLogar[MAX_PLAYERS];
new DeuRegistrar[MAX_PLAYERS];
new Objedit[MAX_PLAYERS];
//new PlayerText:textDrawConcessionaria[MAX_PLAYERS][21];
//new TradeSis;
//new bool:EditandoAcessorio[MAX_PLAYERS];
//new ModoEditar[MAX_PLAYERS] = 1;
//new PlayerText:EditorMobile[MAX_PLAYERS][31]
new numeropp[MAX_PLAYERS];
//new EditandoObjeto2[MAX_PLAYERS];
//new bool:EditandoObjeto[MAX_PLAYERS];
//new IDTroca1;
//new IDTroca2;
//new TransCasa[MAX_PLAYERS];
new bool:CartaoBatidoDetran[MAX_PLAYERS];
new ModoTrabalhoDetran[MAX_PLAYERS];
//new idplayertrade;
new itemacessorio[MAX_PLAYERS];
//new discord[MAX_PLAYERS][528];
//new discord2[528];
//new blablaregistro[MAX_PLAYERS];
//new bool:ModoSavSis = false;
//new bool:LagSis = true;
new bool:TeladeLogin[MAX_PLAYERS];
new CaixasServer;
new ProcurarSis;
new DroparArmSis;
//new bool:SocioSis = true;
//new bool:DivulgSis = false;
new LoginSis = 1;
new NickSis;
new ChatvSis;
new ChatsSis;
//new bool:BackupSis = false;
new CmdsSis;
new CrashInfoSis;
//new bool:HospitalSis = true;
//new bool:FomeSedeSis = true;
new bool:ModoExibidoADM[MAX_PLAYERS];
//new bool:ReRPatouCupom[MAX_PLAYERS];
new PlayerText:balaoAvisoRP[MAX_PLAYERS][2];
new PlayerText:balaoAviso[MAX_PLAYERS];
new bool:MarcouMapa[MAX_PLAYERS];
new BloqueadoIrPosicao[MAX_PLAYERS];
//new Text:RP[18];
new Text:textDrawRelogioAndroid[3]; //relogio android
new Text:TextDrawDeDiaDaSemana;
new Text:TextDrawDeHora;
//new bool:MenuCasaAberto[MAX_PLAYERS];
new PegouCrack[MAX_PLAYERS];
new PegouMaconha[MAX_PLAYERS];
new MusicaLogin = 1;
new MedKitSis;
new bool:ChatVIP = true;
new LojaRsSis;
new AnuncioSis;
new SlotEscolhido[MAX_PLAYERS];
//new DB:Conexao;
//new DBResult:Resultado;
//_�.���`�.�_Defines Geral_�.���`�.�_//
#define ForT:%0(%1) cmd_%0(%1)// Exemplo: ForT:aviso(playerid, "Boa Tarde");
RP::celularrr(playerid)
{
//ForT:cel(playerid);
return 1;
}
//ELEVADORES
#define ELEVATOR_SPEED (5.0)
#define DOORS_SPEED (5.0)
#define ELEVATOR_WAIT_TIME (5000)
#define DIALOG_ID (877)
#define X_DOOR_R_OPENED (289.542419)
#define X_DOOR_L_OPENED (286.342407)
#define Y_DOOR_R_OPENED (-1609.640991)
#define Y_DOOR_L_OPENED (-1609.076049)
#define X_FDOOR_R_OPENED (289.492431)
#define X_FDOOR_L_OPENED (286.292419)
#define Y_FDOOR_R_OPENED (-1609.870971)
#define Y_FDOOR_L_OPENED (-1609.306030)
#define GROUND_Z_COORD (18.755348) // (33.825077)
#define X_ELEVATOR_POS (287.942413)
#define Y_ELEVATOR_POS (-1609.341064)
#define ELEVATOR_STATE_IDLE (0)
#define ELEVATOR_STATE_WAITING (1)
#define ELEVATOR_STATE_MOVING (2)
#define INVALID_FLOOR (-1)
#define Y_DOOR_CLOSED2 (-1180.535917)
#define Y_DOOR_R_OPENED2 Y_DOOR_CLOSED2 - 1.6
#define Y_DOOR_L_OPENED2 Y_DOOR_CLOSED2 + 1.6
#define ELEVATOR_OFFSET222 (20.879316)
#define ELEVATOR_OFFSET2 (0.059523)
#define X_ELEVATOR_POS2 (1181.622924)
#define Y_ELEVATOR_POS2 (-1180.554687)
//Botao Pressionado
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
//========================= Variaveis ==========================================
//Variaveis
//new CaixinhaSurpresa;
//new CaixinhaSpawn;
//new TipoSpawnCaixa = 0;
new IniciouCombate[MAX_PLAYERS];
//new TempoOnline[MAX_PLAYERS] = 0;
new VozDePrisao[MAX_PLAYERS];//persegui��o
new PutaGorda[MAX_PLAYERS];//persegui��o
//new ids[MAX_PLAYERS];// Ant-Aimbot
//Sistema Pixar Muros
new inPi[MAX_PLAYERS];
//new entrousv;
new timerx1;
new countx1;
new Playersx1[2];
new tempox1;
//CofreORG
new TipoOrg[MAX_PLAYERS];
new PediuPraEntrar[MAX_PLAYERS];
//Procurados
//new PlayerText:Estrelas[2][MAX_PLAYERS];
//Sistema de mostrar dano
new PlayerText:textinfodamage[MAX_PLAYERS][2];
new PlayerText:DamageInfo[MAX_PLAYERS][6];
new TempoMostrarLife[MAX_PLAYERS];
new MostrandoVida[MAX_PLAYERS];
//sistema de celular na tela
//ZCMD
new playerdinheiroZCMD;
new giveplayerZCMD[MAX_PLAYER_NAME];
new playernameZCMD[MAX_PLAYER_NAME];
new plnameZCMD[MAX_PLAYER_NAME];
new sscanfid, moneysZCMD;
new TaEscutando[MAX_PLAYERS];
//MARTELINHO DO BAN
static bool:UmMartelinho[MAX_PLAYERS]; //Player name array
//------------------------- Devolver Armas Territorios -------------------------
new Arma16[MAX_PLAYERS],
Arma17[MAX_PLAYERS],
Arma18[MAX_PLAYERS],
Arma35[MAX_PLAYERS],
Arma37[MAX_PLAYERS],
Arma39[MAX_PLAYERS];
new Balas16[MAX_PLAYERS],
Balas17[MAX_PLAYERS],
Balas18[MAX_PLAYERS],
Balas35[MAX_PLAYERS],
Balas37[MAX_PLAYERS],
Balas39[MAX_PLAYERS];
new SER[MAX_PLAYERS];
//------------------------- Aprimoramente dos Veiculos -------------------------
new TOTAL_CarrOS;
new CarrosAdmin[6];
new CarrosEletricista[8];
// quantidade de Carros + 1
new CarrosPm[24];
new CarrosBope[24];
new CarrosExe[24];
new CarrosMedicos[14];
new CarrosAztecas[11];
new CarrosTaliban[16];
new CarroRPov[6];
new CarrosHitmans[10];
new CarrosMexicana[12];
new CarroRPlobo[11];
new CarrosTaxista[17];
new CarrosPcc[7];
new CarrosRota[21];
new CarroRPate[19];
new CarrosDETRAN[12];
new CarroRProove[11];
new CarrosAlqaeda[16];
new CarrosPc[23];
new CarrosBallas[11];
new CarrosVagos[4];
new CarrosYakuza[12];
new CarrosSons[18];
new CarrosCn[12];
new CarrosCv[10];
new CarrosMC[15];
new CarrosPF[24];
new CaixaPla;
new ChaRPoobSis;
new CarrosTriads[10];
new CarrosAdvogados[8];
new CarrosSegurancas[7];
new CarrosLixeiros[14];
new CarrosOnibus[4];
new CarrosCaminhoneiros[14];
new CarrosFazendeiros[16];
//new CarrosPescadorP[5];
new CarroWarZone[24];
new CarrosCoveiros[5];
new CarrosProdutos[25];//aqui e o novo emprego desbugado vendedor de produtos
new CarrosCarteiros[6];
new CarrosPizzaboys[12];
new CarrosAluguel1[22];
new CarrosAluguel2[20];
new CarrosAluguel3[4];
new CarrosAluguel4[6];
new CarrosAluguelBarcos[12];
new CarrosAluguelAero[8];
new CarrosCivis[14];
//new Text3D:CarrosCivis3D[14];
//new CarrosConce[100];
new CarrosAdm[7];
new CarrosCaranga[2];
new CarrosAutoEscola[28];
new CarrosEventos[60];
//new CarrosBondinho[2];
// -- Emboscada -- //
new Float:EmboscadaMinX,Float:EmboscadaMinY, Float:EmboscadaMaxX,
Float:EmboscadaMaxY;
// -- Devolver -- //
new Float:DevolverX,Float:DevolverY, Float:DevolverZ;
new DevolverInterior[MAX_PLAYERS];
//Sistema de se Esconder No Lixeiro
//new Escondido[MAX_PLAYERS];
//new AnguloEscondido[MAX_PLAYERS];
//------------------------ Sistema De Fome E Sede ------------------------------
new retirada[MAX_PLAYERS];
new Text:SedeSede;
new Text:FomeFome;
new Text:SedeSede1;
new Text:FomeFome1;
new PlayerText:BarraFome[MAX_PLAYERS];
new PlayerText:BarraSede[MAX_PLAYERS];
new PlayerText:BarraFome1[MAX_PLAYERS];
new PlayerText:BarraSede1[MAX_PLAYERS];
//------------------------- Sistema de Avi�o Tutorial --------------------------
//new ObjetoAviao[MAX_PLAYERS];
//------------------------- Sistema de Hospital --------------------------------
new SetarHospital[MAX_PLAYERS];
new TimerHospital[MAX_PLAYERS];
new TempoRecuperandoSe[MAX_PLAYERS];
// -------------------------- Valores Multas -----------------------------------
new MultadoCM[MAX_PLAYERS], MultadoDB[MAX_PLAYERS], MultadoDP[MAX_PLAYERS],
MultadoEI[MAX_PLAYERS],
MultadoFD[MAX_PLAYERS], MultadoVD[MAX_PLAYERS], MultadoRPC[MAX_PLAYERS];
//------------------------- Textos ---------------------------------------------
new Text:TextRodape[2];
//new Text:TextRodapenovo[24];
new Text3D:HouseLabel[MAX_HOUSES];
new HousePickup[MAX_HOUSES];
new BizzPickup[MAX_BIZZES];
//new PlayerText:balaoAviso[MAX_PLAYERS];
new Text3D:BizzLabel[MAX_BIZZES];
new Text3D:SBizzLabel[MAX_SBIZZES];
new Text3D:FBizzLabel[MAX_FBIZZES];
new Text:Sprite0;
new Text:RP23, Text:AntiBug;
new Text:TextDrawdeData;
stock TrocarRodape(playerid)
{
if(PlayerInfo[playerid][pRodape2] == 0)
{
PlayerInfo[playerid][pRodape2] = 1;
ShowAlerta(playerid, ConverterTexto("Voc� alterou o tipo do
rodape para o antigo."));
TextDrawHideForPlayer(playerid, rodapeshox[i]);
}
if(PlayerMobile[playerid] == false)
{
TextDrawShowForPlayer(playerid, TextDrawdeData);
TextDrawShowForPlayer(playerid, TextDrawDeHora);
TextDrawShowForPlayer(playerid,
TextDrawDeDiaDaSemana);
}
else if(PlayerMobile[playerid] == true)
{
TextDrawShowForPlayer(playerid,
textDrawRelogioAndroid[0]);
TextDrawShowForPlayer(playerid,
textDrawRelogioAndroid[1]);
TextDrawShowForPlayer(playerid,
textDrawRelogioAndroid[2]);
}
for(new i; i < 4; i ++)
{
//TextHide(playerid, rodapeshox_p[playerid][i]);
}
}
else if(PlayerInfo[playerid][pRodape2] == 1)
{
PlayerInfo[playerid][pRodape2] = 0;
ShowAlerta(playerid, ConverterTexto("Has cambiado el tipo del pie
de pagina al predeterminado."));
ShowRodape(playerid);
for(new i; i < 4; i++){
TextDrawShowForPlayer(playerid, gsss[i]);
}
if(PlayerMobile[playerid] == false)
{
TextDrawHideForPlayer(playerid, TextDrawdeData);
TextDrawHideForPlayer(playerid, TextDrawDeHora);
TextDrawHideForPlayer(playerid,
TextDrawDeDiaDaSemana);
}
else if(PlayerMobile[playerid] == true)
{
TextDrawHideForPlayer(playerid,
textDrawRelogioAndroid[0]);
TextDrawHideForPlayer(playerid,
textDrawRelogioAndroid[1]);
TextDrawHideForPlayer(playerid,
textDrawRelogioAndroid[2]);
}
}
}
//new Text:TextDrawdeHora;
//new Text:Missions_TD[6];
// - - - - - [ TextDraws ] - - - - -
new Text:gTextdraw[7];
new PlayerText:TextPreso[MAX_PLAYERS];
new PlayerText:TextPreso2[MAX_PLAYERS];
new PlayerText:TextPreso3[MAX_PLAYERS];
//new Text:TextdrawTR;
//new Text:TextDrawCT;
//new Text:TextDrawCQ;
new Text:TextDrawGREEN;
new Text:TextDrawBLUE;
new Text:TextDrawRED;
//new PlayerText:Player_PayDay[MAX_PLAYERS];
//Mostrar Text Onibus
//new MostrarOnibus[MAX_PLAYERS];
//Drop Itens
enum dItEnum
{
Float:ObjtPos[3],
ObjtID,
droptTimer,
droptWorld,
Text3D:textt3d,
ObjtData[2]
};
new dItemData[MAX_OBJ][dItEnum];
enum iCriadoo
{
Criado,
iNomeE[30]
}
new iCriadoData[MAX_OBJ][iCriadoo];
//----------------------- Sistema de Corpo -------------------------------
enum CDATA{
cActorID,
Text3D:cLabelID,
cName[MAX_PLAYER_NAME],
cSkinID,
cInterior,
cWorld,
Float:cPos[4],
Text3D:cTexto,
};
new cActor[MAX_PLAYERS][CDATA];
//------------------------- Sistema de Roubo -----------------------------------
new PortaCofreee[11+MAX_FBIZZES];
new Roubando[MAX_PLAYERS];
new TimerRoubando[MAX_PLAYERS];
new LocalDeRoubo[MAX_PLAYERS];
//new FazendaRoubada;
new tempoinvasaosistema = 0; // invas�o sistema
new TempoRoubo_[MAX_PLAYERS];
new TempoRoubarNovamente[50];//12
new AjustRoubarNovamente[50];//12
/*
enum e_ores
{
NameOres[16],
Color,
Float: Modifier,
AmountOres, // quantos desse minerio geram um minerio
ValueOres, // valor desse minerio
Rate // taxa de minera��o bem sucedida
}
new
OreData[MAX_ORE_TYPES][e_ores] = {
// name, color, modifier, spawn amount, value, mining rate
{"Cobre", 0xB87333FF, 0.75, 8, 350, 65},
{"Ametista", 0x9B59B6FF, 0.60, 6, 450, 58},
{"Esmeralda", 0x2ECC71FF, 0.40, 4, 750, 50},
{"Rubi", 0xD10056FF, 0.35, 3, 800, 55},
{"Safira", 0x0F52BAFF, 0.30, 3, 850, 45},
{"Ouro", 0xFFD700FF, 0.25, 4, 1000, 40}
};
*/
enum e_yt
{
um[120],
dois[250],
tres[25],
}
/*new YT_Search[][e_yt] = {
{"Celular", "", "00:02"},
{"Celular", "", "00:02"}
};*/
#define MAX_MUSICAS 50
//new idytmusic[MAX_PLAYERS][10];
new tapmsc[MAX_PLAYERS];
new titulomusica[MAX_PLAYERS][100];
new autormusica[MAX_PLAYERS][100];
//ConvertTimeYT
#define MAX_PLAYLIST 20
enum enumPLYT
{
pFavorito,
pTitulo[90],
pAutor[50]
}
new PlaylistYT[MAX_PLAYERS][MAX_PLAYLIST][enumPLYT];
geRPameLocalRoubo(number)
{
new str[44];
switch(number){
case 0: str = "del Banco LS";
case 1: str = "de la Loteria SF";
case 2: str = "de la Loteria LS";
case 3: str = "de la Tienda de Armas 1";
case 4: str = "de la Tienda de Armas 2";
case 5: str = "de la Tienda de Armas 3";
case 6: str = "del Prostibulo";
case 7: str = "del Motel";
case 8: str = "de la Isla Pirata";
case 9: str = "del Barco";
case 10: str = "de la Granja";
case 11: str = "del Casino";
case 12: str = "de la Casa de la Moneda";
case 13: str = "del Banco LS";
case 14: str = "del Bar de San Fierro";
case 15: str = "de la Casa de la Moneda";
case 16: str = "del Casino Four Skaners";
case 17: str = "del Casino";
case 18: str = "de la Isla Pirata";
case 19: str = "de la Boveda SKN";
case 20: str = "del Banco LS";
default: str = "Desconocido";
}
return str;
}
static const Float:PosEscadas[][] =
{
{1835.8942, -2142.6470, 22.7896},
{1831.9639, -2107.5950, 22.1926},
{1693.2761, -2102.2747, 22.7148},
{2002.9188, -1923.2137, 21.7510},
{2088.9976, -1943.1278, 22.4687},
{2046.7550, -1662.6476, 22.7166},
{1897.4597, -1451.4524, 22.2180},
{1861.5581, -1250.4706, 23.0639},
{859.4956, -962.2527, 54.6412},
{1452.0291, -886.0794, 63.1135},
{2165.0942,-1228.3660,31.3701},
{2138.7915, -1468.1550, 32.3757},
{2171.1465, -1761.2606, 21.2516},
{2125.1714,-2034.5745,21.7820},
{1951.7476, -2155.9697, 21.6550},
{256.8868, -1337.4335, 60.2956},
{602.4565, -1173.9167, 53.3956},
{1320.2098, -912.3174, 46.5497},
{2533.2048, -1037.3602, 77.7138},
{2411.2004,-1166.0313,40.5525}
};
static const Float:PosCheck[][] =
{
{1833.7527,-2144.4927,13.5542},
{1830.6886,-2107.0327,13.5469},
{1695.3733,-2103.5762,13.5469},
{2003.1873,-1925.3151,13.5469},
{2087.4138,-1941.6461,13.5384},
{2047.0720,-1665.1880,13.5391},
{1896.9872,-1452.7964,13.5469},
{1859.1355,-1250.4576,13.6040},
{860.1441,-963.2958,42.0344},
{1451.0325,-888.0591,54.3639},
{2166.5154,-1229.3231,23.9766},
{2136.3181,-1469.1813,23.9586},
{2172.7102,-1759.4047,13.5492},
{2124.8232,-2035.7592,13.5469},
{1951.5731,-2157.6318,13.5542},
{257.4245,-1335.2190,53.0160},
{602.1302,-1172.8114,45.6091},
{1320.3951,-913.9915,37.5141},
{2532.9985,-1039.2402,69.5781},
{2411.5300,-1164.2148,30.9482}
};
new VarInfoRoubo[][] = {
//Tempo, Dinheiro
{50, 160000}, //Banco BUG
{75, 29000}, //Loterica LV
{70, 30000}, //Loterica LS
{80, 80000}, //Loja de Armas 1
{45, 20000}, //Loja de Armas 2
{120, 90000}, //Loja de Armas 3
{50, 70000}, //Puteiro
{75, 65000}, //Motel
{0, 0}, //Ilha
{190, 160000}, //Navio
{99999, 0}, //fazenda anti bug
{120, 100000}, //Casino
{220, 210000}, //Casa da moeda
{120, 80000}, //Banco(Para nao bugar)
{95, 90000}, //Bar SF
{170, 250000}, //Casa da Moeda
{120, 180000}, //Casino Four Skaners
{120, 120000}, //Casino
{200, 210000}, //Ilha Pirata
{200, 210000}, //Cofre SKN
{80, 70000} //Banco LS Novo
};
stock SocioOn(playerid)
{
new stringon[50];
TextDrawShowForAll(socioon[0]);
format(stringon, sizeof(stringon), "Socio Diamante: ~w~%s: ~g~~h~on",
PlayerName(playerid));
TextDrawSetString(socioon[0], stringon);
if(socioonn == 0)
{
SetTimerEx("sociooon", 4000, false, "d", playerid);
socioonn = 1;
}
return 0;
}
stock SocioOff(nick[])
{
new stringon[50];
TextDrawShowForAll(socioon[0]);
format(stringon, sizeof(stringon), "%s:_~r~OFF", nick);
TextDrawSetString(socioon[0], stringon);
if(socioonn == 0)
{
SetTimerEx("socioofff", 4000, false, "s[40]", nick);
socioonn = 1;
}
return 0;
}
GetAnimationName(GetPlayerAnimationIndex(playerid),animlib,32,animname,32);
}
return 0;
}
stock ZerarTrade(playerid)
{
TradeCoins[playerid] = 0;
TradeDinheiro[playerid] = 0;
TradeEmpresa[playerid] = -1;
TradeFazenda[playerid] = -1;
TradeCasa[playerid] = -1;
for(new x = 0; x<4; x++)
{
if(TrocaRealizada[playerid] == 0)
{
if(TradeItens[playerid][x] != 19382 && TradeItens[playerid]
[x] != 1580 && TradeItens[playerid][x] != 1273 && TradeItens[playerid][x] != 1272)
DarItemInv(playerid, TradeItens[playerid][x],
TradeQnt[playerid][x], 1, TradeNomeC[playerid][x]);
}
TradeItens[playerid][x] = 19382;
TradeQnt[playerid][x] = 0;
}
for(new x = 0; x<4; x++)
{
PTextHide(playerid, TradeIMG[TradeOffer[playerid]][x]); //TIRA A
TEXTDRAW DO PLAYER PRO PLAYER, NO CASO TUDO QUE EU ADICIONEI
PTextHide(TradeOffer[playerid], TradeIMG[playerid][x+4]); //TIRA
A TEXTDRAW PRO PLAYER QUE TA NEGOCIANDO, NO CASO OQ EU ADICIONEI
MEGAString[0] = EOS;
format(MEGAString, sizeof MEGAString, "Objetos de ~p~%s~n~~n~~w~
Dinero: $0~n~ Monedas VIP: 0", PlayerName(playerid));
PTextSetString(playerid, TradeText[playerid][3], MEGAString);
format(MEGAString, sizeof MEGAString, "Objetos de ~p~%s~n~~n~~w~
Dinero: $0~n~ Monedas VIP: 0", PlayerName(playerid));
PTextSetString(TradeOffer[playerid], TradeText[TradeOffer[playerid]]
[4], MEGAString);
if(TrocaRealizada[playerid] == 0)
{
PTextShow(playerid, TradeText[playerid][9]);
PTextShow(TradeOffer[playerid], TradeText[playerid][10]);
PTextShow(TradeOffer[playerid], TradeText[TradeOffer[playerid]]
[8]);
PTextShow(playerid, TradeText[playerid][7]);
}
}
stock FecharTrade2(playerid)
{
for(new x = 0; x<12; x++)
{
if(x < 8)
{
PTextHide(playerid, TextoIMG[playerid][x]);
PTextHide(playerid, TradeIMG[playerid][x]);
}
PTextHide(playerid, TradeText[playerid][x]);
}
TradeAberta[playerid] = 0;
CancelSelectTextDraw(playerid);
TradeCoins[playerid] = 0;
TradeCoins[TradeOffer[playerid]] = 0;
TradeDinheiro[playerid] = 0;
TradeDinheiro[TradeOffer[playerid]] = 0;
NoTrade[Armazenar[playerid]] = false;
NoTrade[playerid] = false;
if(TrocaRealizada[TradeOffer[playerid]] == 0)
{
if(TradeItens[TradeOffer[playerid]][x] != 19382)
DarItemInv(TradeOffer[playerid], TradeItens[playerid]
[x], TradeQnt[TradeOffer[playerid]][x], 1, TradeNomeC[TradeOffer[playerid]][x]);
}
}
PTextHide(playerid, TextoIMG[playerid][0]);
PTextHide(playerid, TradeIMG[playerid][1]);
PTextHide(playerid, TextoIMG[playerid][1]);
PTextHide(playerid, TradeIMG[playerid][2]);
PTextHide(playerid, TextoIMG[playerid][2]);
PTextHide(playerid, TradeIMG[playerid][3]);
PTextHide(playerid, TextoIMG[playerid][3]);
PTextHide(playerid, TradeIMG[playerid][4]);
PTextHide(playerid, TextoIMG[playerid][4]);
PTextHide(playerid, TradeIMG[playerid][5]);
PTextHide(playerid, TextoIMG[playerid][5]);
PTextHide(playerid, TradeIMG[playerid][6]);
PTextHide(playerid, TextoIMG[playerid][6]);
PTextHide(playerid, TradeIMG[playerid][7]);
PTextHide(playerid, TextoIMG[playerid][7]);
PTextHide(playerid, TradeText[playerid][0]);
PTextHide(playerid, TradeText[playerid][1]);
PTextHide(playerid, TradeText[playerid][2]);
PTextHide(playerid, TradeText[playerid][3]);
PTextHide(playerid, TradeText[playerid][4]);
PTextHide(playerid, TradeText[playerid][5]);
PTextHide(playerid, TradeText[playerid][6]);
PTextHide(playerid, TradeText[playerid][7]);
PTextHide(playerid, TradeText[playerid][8]);
PTextHide(playerid, TradeText[playerid][9]);
PTextHide(playerid, TradeText[playerid][10]);
}
stock FecharTrade(playerid)
{
for(new x = 0; x<12; x++)
{
PTextHide(playerid, TextoIMG[playerid][x]);
PTextHide(playerid, TradeIMG[playerid][x]);
PTextHide(playerid, TradeText[playerid][x]);
}
TradeAberta[playerid] = 0;
CancelSelectTextDraw(playerid);
TradeCoins[playerid] = 0;
TradeCoins[TradeOffer[playerid]] = 0;
TradeDinheiro[playerid] = 0;
TradeDinheiro[TradeOffer[playerid]] = 0;
NoTrade[Armazenar[playerid]] = false;
NoTrade[playerid] = false;
TradeOffer[TradeOffer[playerid]] = -1;
TradeOffer[playerid] = -1;
PTextHide(playerid, TextoIMG[playerid][0]);
PTextHide(playerid, TradeIMG[playerid][1]);
PTextHide(playerid, TextoIMG[playerid][1]);
PTextHide(playerid, TradeIMG[playerid][2]);
PTextHide(playerid, TextoIMG[playerid][2]);
PTextHide(playerid, TradeIMG[playerid][3]);
PTextHide(playerid, TextoIMG[playerid][3]);
PTextHide(playerid, TradeIMG[playerid][4]);
PTextHide(playerid, TextoIMG[playerid][4]);
PTextHide(playerid, TradeIMG[playerid][5]);
PTextHide(playerid, TextoIMG[playerid][5]);
PTextHide(playerid, TradeIMG[playerid][6]);
PTextHide(playerid, TextoIMG[playerid][6]);
PTextHide(playerid, TradeIMG[playerid][7]);
PTextHide(playerid, TextoIMG[playerid][7]);
PTextHide(playerid, TradeText[playerid][0]);
PTextHide(playerid, TradeText[playerid][1]);
PTextHide(playerid, TradeText[playerid][2]);
PTextHide(playerid, TradeText[playerid][3]);
PTextHide(playerid, TradeText[playerid][4]);
PTextHide(playerid, TradeText[playerid][5]);
PTextHide(playerid, TradeText[playerid][6]);
PTextHide(playerid, TradeText[playerid][7]);
PTextHide(playerid, TradeText[playerid][8]);
PTextHide(playerid, TradeText[playerid][9]);
PTextHide(playerid, TradeText[playerid][10]);
}
else if(TradeItens[playerid][1] == 19382)
{
tradeslot = 1;
if(criado == 1) //Itens do inventario criados
{
strmid(TradeNomeC[playerid]
[tradeslot],nomec,0,strlen(nomec), 50);
TradeCriado[playerid][tradeslot] = 1;
}
else
{
strmid(TradeNomeC[playerid]
[tradeslot],NomeItemInv(Item),0,strlen(NomeItemInv(Item)), 50);
TradeCriado[playerid][tradeslot] = 0;
}
format(MEGAString, 500, "%s(%d)",TradeNomeC[playerid]
[tradeslot], Unidades);
PTextPreviewModel(playerid, TradeIMG[playerid][1], Item);
PTextSetString(playerid, TextoIMG[playerid][1], MEGAString);
PTextShow(playerid, TextoIMG[playerid][1]);
PTextShow(playerid, TradeIMG[playerid][1]);
PTextPreviewModel(TradeOffer[playerid], TradeIMG[playerid]
[5], Item);
PTextSetString(TradeOffer[playerid], TextoIMG[playerid][5],
MEGAString);
PTextShow(TradeOffer[playerid], TextoIMG[playerid][5]);
PTextShow(TradeOffer[playerid], TradeIMG[playerid][5]);
//CMD, "[iTEM]: Voc� adicionou o item %s com %d unidades no Trade de Itens.
TradeItens[playerid][1] = Item;
TradeQnt[playerid][1] = Unidades;
InventarioInfo[playerid][listitem][iSlot] = 19382;
InventarioInfo[playerid][listitem][iUnidades] = 0;
}
else if(TradeItens[playerid][2] == 19382)
{
tradeslot = 2;
if(criado == 1) //Itens do inventario criados
{
strmid(TradeNomeC[playerid]
[tradeslot],nomec,0,strlen(nomec), 50);
TradeCriado[playerid][tradeslot] = 1;
}
else
{
strmid(TradeNomeC[playerid]
[tradeslot],NomeItemInv(Item),0,strlen(NomeItemInv(Item)), 50);
TradeCriado[playerid][tradeslot] = 0;
}
format(MEGAString, 500, "%s(%d)",TradeNomeC[playerid]
[tradeslot], Unidades);
PTextPreviewModel(playerid, TradeIMG[playerid][2], Item);
PTextSetString(playerid, TextoIMG[playerid][2], MEGAString);
PTextShow(playerid, TextoIMG[playerid][2]);
PTextShow(playerid, TradeIMG[playerid][2]);
PTextPreviewModel(TradeOffer[playerid], TradeIMG[playerid]
[6], Item);
PTextSetString(TradeOffer[playerid], TextoIMG[playerid][6],
MEGAString);
PTextShow(TradeOffer[playerid], TextoIMG[playerid][6]);
PTextShow(TradeOffer[playerid], TradeIMG[playerid][6]);
TradeItens[playerid][2] = Item;
TradeQnt[playerid][2] = Unidades;
InventarioInfo[playerid][listitem][iSlot] = 19382;
InventarioInfo[playerid][listitem][iUnidades] = 0;
}
else if(TradeItens[playerid][3] == 19382)
{
tradeslot = 3;
if(criado == 1) //Itens do inventario criados
{
strmid(TradeNomeC[playerid]
[tradeslot],nomec,0,strlen(nomec), 50);
TradeCriado[playerid][tradeslot] = 1;
}
else
{
strmid(TradeNomeC[playerid]
[tradeslot],NomeItemInv(Item),0,strlen(NomeItemInv(Item)), 50);
TradeCriado[playerid][tradeslot] = 0;
}
format(MEGAString, 500, "%s(%d)",TradeNomeC[playerid]
[tradeslot], Unidades);
PTextPreviewModel(playerid, TradeIMG[playerid][3], Item);
PTextSetString(playerid, TextoIMG[playerid][3], MEGAString);
PTextShow(playerid, TextoIMG[playerid][3]);
PTextShow(playerid, TradeIMG[playerid][3]);
PTextPreviewModel(TradeOffer[playerid], TradeIMG[playerid]
[7], Item);
PTextSetString(TradeOffer[playerid], TextoIMG[playerid][7],
MEGAString);
PTextShow(TradeOffer[playerid], TextoIMG[playerid][7]);
PTextShow(TradeOffer[playerid], TradeIMG[playerid][7]);
TradeItens[playerid][3] = Item;
TradeQnt[playerid][3] = Unidades;
InventarioInfo[playerid][listitem][iSlot] = 19382;
InventarioInfo[playerid][listitem][iUnidades] = 0;
}
else
{
SendClientMessage(playerid, COR_KING, "* �Maximo de objetos
alcanzado, haz clic en 'Resetear' para agregar mas objetos!");
return 1;
}
new stringtrade[90];
MEGAString[0] = EOS;
format(stringtrade, sizeof(stringtrade), "Nombre del Objeto\
tCantidad{ffffff}\n");
strcat(MEGAString,stringtrade);
for(new x = 0; x<75; x++)
{
if(InventarioInfo[playerid][x][iSlot] == 19382)
{
format(stringtrade, sizeof(stringtrade),
"{A4A4A4}Ninguno\t{FFFFFF}0\n");
strcat(MEGAString,stringtrade);
}
else
{
if(InventarioInfo[playerid][x][iCriado] == 1)
{
format(stringtrade, sizeof(stringtrade), "%s\t%d\
n",InventarioInfo[playerid][x][iName], InventarioInfo[playerid][x][iUnidades]);
strcat(MEGAString,stringtrade);
}
else
{
format(stringtrade, sizeof(stringtrade), "%s\t%d\
n",NomeItemInv(InventarioInfo[playerid][x][iSlot]), InventarioInfo[playerid][x]
[iUnidades]);
strcat(MEGAString,stringtrade);
}
}
}
AC_ShowPlayerDialog(playerid, 4170, DIALOG_STYLE_TABLIST_HEADERS,
"Tus Objetos - Selecciona cuales deseas agregar al intercambio", MEGAString,
"Seleccionar", "Salir");
return 0;
}
if(Show == 0)
{
if(TradeItens[playerid][0] == 19382)
{
format(MEGAString, 500, "Casa ID[%d]", Unidades);
strmid(TradeNomeC[playerid]
[0],MEGAString,0,strlen(MEGAString), 15);
PTextPreviewModel(playerid, TradeIMG[playerid][0], Item);
PTextSetString(playerid, TextoIMG[playerid][0], MEGAString);
PTextShow(playerid, TextoIMG[playerid][0]);
PTextShow(playerid, TradeIMG[playerid][0]);
PTextPreviewModel(TradeOffer[playerid], TradeIMG[playerid]
[4], Item);
PTextSetString(TradeOffer[playerid], TextoIMG[playerid][4],
MEGAString);
PTextShow(TradeOffer[playerid], TextoIMG[playerid][4]);
PTextShow(TradeOffer[playerid], TradeIMG[playerid][4]);
TradeItens[playerid][0] = Item;
TradeQnt[playerid][0] = Unidades;
}
else if(TradeItens[playerid][1] == 19382)
{
format(MEGAString, 500, "Casa ID[%d]", Unidades);
strmid(TradeNomeC[playerid]
[1],MEGAString,0,strlen(MEGAString), 15);
PTextPreviewModel(playerid, TradeIMG[playerid][1], Item);
PTextSetString(playerid, TextoIMG[playerid][1], MEGAString);
PTextShow(playerid, TextoIMG[playerid][1]);
PTextShow(playerid, TradeIMG[playerid][1]);
PTextPreviewModel(TradeOffer[playerid], TradeIMG[playerid]
[5], Item);
PTextSetString(TradeOffer[playerid], TextoIMG[playerid][5],
MEGAString);
PTextShow(TradeOffer[playerid], TextoIMG[playerid][5]);
PTextShow(TradeOffer[playerid], TradeIMG[playerid][5]);
TradeItens[playerid][1] = Item;
TradeQnt[playerid][1] = Unidades;
}
else if(TradeItens[playerid][2] == 19382)
{
format(MEGAString, 500, "Casa ID[%d]", Unidades);
PTextPreviewModel(playerid, TradeIMG[playerid][2], Item);
strmid(TradeNomeC[playerid]
[2],MEGAString,0,strlen(MEGAString), 15);
PTextSetString(playerid, TextoIMG[playerid][2], MEGAString);
PTextShow(playerid, TextoIMG[playerid][2]);
PTextShow(playerid, TradeIMG[playerid][2]);
PTextPreviewModel(TradeOffer[playerid], TradeIMG[playerid]
[6], Item);
PTextSetString(TradeOffer[playerid], TextoIMG[playerid][6],
MEGAString);
PTextShow(TradeOffer[playerid], TextoIMG[playerid][6]);
PTextShow(TradeOffer[playerid], TradeIMG[playerid][6]);
TradeItens[playerid][2] = Item;
TradeQnt[playerid][2] = Unidades;
}
else if(TradeItens[playerid][3] == 19382)
{
format(MEGAString, 500, "Casa ID[%d]", Unidades);
PTextPreviewModel(playerid, TradeIMG[playerid][3], Item);
strmid(TradeNomeC[playerid]
[3],MEGAString,0,strlen(MEGAString), 15);
PTextSetString(playerid, TextoIMG[playerid][3], MEGAString);
PTextShow(playerid, TextoIMG[playerid][3]);
PTextShow(playerid, TradeIMG[playerid][3]);
PTextShow(TradeOffer[playerid], TextoIMG[playerid][7]);
PTextShow(TradeOffer[playerid], TradeIMG[playerid][7]);
PTextPreviewModel(TradeOffer[playerid], TradeIMG[playerid]
[7], Item);
PTextSetString(TradeOffer[playerid], TextoIMG[playerid][7],
MEGAString);
TradeItens[playerid][3] = Item;
TradeQnt[playerid][3] = Unidades;
}
else
{
SendClientMessage(playerid, COR_KING, "* Maximo de itens
atingido, clique em 'Resetar' para adicionar mais itens!");
return 1;
}
}
else if(Show == 1)
{
if(TradeItens[playerid][0] == 19382)
{
format(MEGAString, 500, "Empresa ID[%d]", Unidades);
PTextPreviewModel(playerid, TradeIMG[playerid][0], Item);
strmid(TradeNomeC[playerid]
[0],MEGAString,0,strlen(MEGAString), 15);
PTextSetString(playerid, TextoIMG[playerid][0], MEGAString);
PTextShow(playerid, TextoIMG[playerid][0]);
PTextShow(playerid, TradeIMG[playerid][0]);
PTextPreviewModel(TradeOffer[playerid], TradeIMG[playerid]
[4], Item);
PTextSetString(TradeOffer[playerid], TextoIMG[playerid][4],
MEGAString);
PTextShow(TradeOffer[playerid], TextoIMG[playerid][4]);
PTextShow(TradeOffer[playerid], TradeIMG[playerid][4]);
TradeItens[playerid][0] = Item;
TradeQnt[playerid][0] = Unidades;
}
else if(TradeItens[playerid][1] == 19382)
{
format(MEGAString, 500, "Empresa ID[%d]", Unidades);
PTextPreviewModel(playerid, TradeIMG[playerid][1], Item);
strmid(TradeNomeC[playerid]
[1],MEGAString,0,strlen(MEGAString), 15);
PTextSetString(playerid, TextoIMG[playerid][1], MEGAString);
PTextShow(playerid, TextoIMG[playerid][1]);
PTextShow(playerid, TradeIMG[playerid][1]);
PTextPreviewModel(TradeOffer[playerid], TradeIMG[playerid]
[5], Item);
PTextSetString(TradeOffer[playerid], TextoIMG[playerid][5],
MEGAString);
PTextShow(TradeOffer[playerid], TextoIMG[playerid][5]);
PTextShow(TradeOffer[playerid], TradeIMG[playerid][5]);
TradeItens[playerid][1] = Item;
TradeQnt[playerid][1] = Unidades;
}
else if(TradeItens[playerid][2] == 19382)
{
format(MEGAString, 500, "Empresa ID[%d]", Unidades);
PTextPreviewModel(playerid, TradeIMG[playerid][2], Item);
strmid(TradeNomeC[playerid]
[2],MEGAString,0,strlen(MEGAString), 15);
PTextSetString(playerid, TextoIMG[playerid][2], MEGAString);
PTextShow(playerid, TextoIMG[playerid][2]);
PTextShow(playerid, TradeIMG[playerid][2]);
PTextPreviewModel(TradeOffer[playerid], TradeIMG[playerid]
[6], Item);
PTextSetString(TradeOffer[playerid], TextoIMG[playerid][6],
MEGAString);
PTextShow(TradeOffer[playerid], TextoIMG[playerid][6]);
PTextShow(TradeOffer[playerid], TradeIMG[playerid][6]);
TradeItens[playerid][2] = Item;
TradeQnt[playerid][2] = Unidades;
}
else if(TradeItens[playerid][3] == 19382)
{
format(MEGAString, 500, "Empresa ID[%d]", Unidades);
PTextPreviewModel(playerid, TradeIMG[playerid][3], Item);
PTextSetString(playerid, TextoIMG[playerid][3], MEGAString);
strmid(TradeNomeC[playerid]
[3],MEGAString,0,strlen(MEGAString), 15);
PTextShow(playerid, TextoIMG[playerid][3]);
PTextShow(playerid, TradeIMG[playerid][3]);
PTextShow(TradeOffer[playerid], TextoIMG[playerid][7]);
PTextShow(TradeOffer[playerid], TradeIMG[playerid][7]);
PTextPreviewModel(TradeOffer[playerid], TradeIMG[playerid]
[7], Item);
PTextSetString(TradeOffer[playerid], TextoIMG[playerid][7],
MEGAString);
TradeItens[playerid][3] = Item;
TradeQnt[playerid][3] = Unidades;
}
else
{
SendClientMessage(playerid, COR_KING, "* Maximo de itens
atingido, clique em 'Resetar' para adicionar mais itens!");
return 1;
}
}
else if(Show == 2)
{
if(TradeItens[playerid][0] == 19382)
{
format(MEGAString, 500, "Fazenda ID[%d]", Unidades);
PTextPreviewModel(playerid, TradeIMG[playerid][0], Item);
strmid(TradeNomeC[playerid]
[0],MEGAString,0,strlen(MEGAString), 15);
PTextSetString(playerid, TextoIMG[playerid][0], MEGAString);
PTextShow(playerid, TextoIMG[playerid][0]);
PTextShow(playerid, TradeIMG[playerid][0]);
PTextPreviewModel(TradeOffer[playerid], TradeIMG[playerid]
[4], Item);
PTextSetString(TradeOffer[playerid], TextoIMG[playerid][4],
MEGAString);
PTextShow(TradeOffer[playerid], TextoIMG[playerid][4]);
PTextShow(TradeOffer[playerid], TradeIMG[playerid][4]);
TradeItens[playerid][0] = Item;
TradeQnt[playerid][0] = Unidades;
}
else if(TradeItens[playerid][1] == 19382)
{
format(MEGAString, 500, "Fazenda ID[%d]", Unidades);
PTextPreviewModel(playerid, TradeIMG[playerid][1], Item);
strmid(TradeNomeC[playerid]
[1],MEGAString,0,strlen(MEGAString), 15);
PTextSetString(playerid, TextoIMG[playerid][1], MEGAString);
PTextShow(playerid, TextoIMG[playerid][1]);
PTextShow(playerid, TradeIMG[playerid][1]);
PTextPreviewModel(TradeOffer[playerid], TradeIMG[playerid]
[5], Item);
PTextSetString(TradeOffer[playerid], TextoIMG[playerid][5],
MEGAString);
PTextShow(TradeOffer[playerid], TextoIMG[playerid][5]);
PTextShow(TradeOffer[playerid], TradeIMG[playerid][5]);
TradeItens[playerid][1] = Item;
TradeQnt[playerid][1] = Unidades;
}
else if(TradeItens[playerid][2] == 19382)
{
format(MEGAString, 500, "Fazenda ID[%d]", Unidades);
PTextPreviewModel(playerid, TradeIMG[playerid][2], Item);
PTextSetString(playerid, TextoIMG[playerid][2], MEGAString);
strmid(TradeNomeC[playerid]
[2],MEGAString,0,strlen(MEGAString), 15);
PTextShow(playerid, TextoIMG[playerid][2]);
PTextShow(playerid, TradeIMG[playerid][2]);
PTextPreviewModel(TradeOffer[playerid], TradeIMG[playerid]
[6], Item);
PTextSetString(TradeOffer[playerid], TextoIMG[playerid][6],
MEGAString);
PTextShow(TradeOffer[playerid], TextoIMG[playerid][6]);
PTextShow(TradeOffer[playerid], TradeIMG[playerid][6]);
TradeItens[playerid][2] = Item;
TradeQnt[playerid][2] = Unidades;
}
else if(TradeItens[playerid][3] == 19382)
{
format(MEGAString, 500, "Fazenda ID[%d]", Unidades);
PTextPreviewModel(playerid, TradeIMG[playerid][3], Item);
PTextSetString(playerid, TextoIMG[playerid][3], MEGAString);
strmid(TradeNomeC[playerid]
[3],MEGAString,0,strlen(MEGAString), 15);
PTextShow(playerid, TextoIMG[playerid][3]);
PTextShow(playerid, TradeIMG[playerid][3]);
PTextShow(TradeOffer[playerid], TextoIMG[playerid][7]);
PTextShow(TradeOffer[playerid], TradeIMG[playerid][7]);
PTextPreviewModel(TradeOffer[playerid], TradeIMG[playerid]
[7], Item);
PTextSetString(TradeOffer[playerid], TextoIMG[playerid][7],
MEGAString);
TradeItens[playerid][3] = Item;
TradeQnt[playerid][3] = Unidades;
}
else
{
SendClientMessage(playerid, COR_KING, "* Maximo de itens
atingido, clique em 'Resetar' para adicionar mais itens!");
return 1;
}
}
return 0;
}
stock AbrirTrade(playerid)
{
NoTrade[playerid] = true;
PTextLetterSize(playerid, TradeText[TradeOffer[playerid]]
[7], 0.221346, 1.255832);
PTextSize(playerid, TradeText[TradeOffer[playerid]][7],
261.664276, 10.499999);
PTextAlignment(playerid, TradeText[TradeOffer[playerid]]
[7], 1);
PTextColor(playerid, TradeText[TradeOffer[playerid]][7], -
1);
PTextUseBox(playerid, TradeText[TradeOffer[playerid]][7],
1);
PTextBoxColor(playerid, TradeText[TradeOffer[playerid]][7],
8388863);
PTextShadow(playerid, TradeText[TradeOffer[playerid]][7],
0);
PTextBGColor(playerid, TradeText[TradeOffer[playerid]][7],
255);
PTextFont(playerid, TradeText[TradeOffer[playerid]][7], 1);
PTextProportional(playerid, TradeText[TradeOffer[playerid]]
[7], 1);
PTextSelectable(playerid, TradeText[TradeOffer[playerid]]
[7], true);
PTextLetterSize(playerid, TradeText[TradeOffer[playerid]]
[9], 0.168418, 1.255832);
PTextAlignment(playerid, TradeText[TradeOffer[playerid]]
[9], 1);
PTextColor(playerid, TradeText[TradeOffer[playerid]][9], -
1);
PTextShadow(playerid, TradeText[TradeOffer[playerid]][9],
0);
PTextOutline(playerid, TradeText[TradeOffer[playerid]][9],
1);
PTextBGColor(playerid, TradeText[TradeOffer[playerid]][9],
51);
PTextFont(playerid, TradeText[TradeOffer[playerid]][9], 2);
PTextProportional(playerid, TradeText[TradeOffer[playerid]]
[9], 1);
PTextLetterSize(playerid, TradeText[TradeOffer[playerid]]
[10], 0.168418, 1.255832);
PTextAlignment(playerid, TradeText[TradeOffer[playerid]]
[10], 1);
PTextColor(playerid, TradeText[TradeOffer[playerid]][10], -
1);
PTextShadow(playerid, TradeText[TradeOffer[playerid]][10],
0);
PTextOutline(playerid, TradeText[TradeOffer[playerid]][10],
1);
PTextBGColor(playerid, TradeText[TradeOffer[playerid]][10],
51);
PTextFont(playerid, TradeText[TradeOffer[playerid]][10],
2);
PTextProportional(playerid, TradeText[TradeOffer[playerid]]
[10], 1);
TradeAberta[playerid] = 1;
TrocaPronta[playerid] = 0;
TradeEmpresa[playerid] = -1;
TradeFazenda[playerid] = -1;
TradeCasa[playerid] = -1;
TradeDinheiro[playerid] = 0;
TradeDinheiro[TradeOffer[playerid]] = 0;
PTextSetString(playerid, TradeText[TradeOffer[playerid]]
[8], "Adicionando_Item...");
PTextShow(playerid, TradeText[TradeOffer[playerid]][8]);
PTextSetString(playerid, TradeText[playerid][8],
"Adicionando_Item...");
PTextShow(playerid, TradeText[playerid][8]);
//TradeItens[playerid][0] = 0;
MEGAString[0] = EOS;
format(MEGAString, sizeof MEGAString, "Itens de ~p~
%s~n~~n~~w~ Dinheiro: $0~n~ Moedas VIP: 0", PlayerName(playerid));
PTextSetString(playerid, TradeText[playerid][3],
MEGAString);
format(MEGAString, sizeof MEGAString, "Itens de ~p~
%s~n~~n~~w~ Dinheiro: $0~n~ Moedas VIP: 0", PlayerName(TradeOffer[playerid]));
PTextSetString(playerid, TradeText[playerid][4],
MEGAString);
PTextShow(playerid, TradeText[playerid][10]);
//PTextShow(playerid, TradeText[playerid][11]);
for(new x = 0; x<12; x++)
PTextShow(playerid, TradeText[playerid][x]);
SelectTextDraw(playerid, COR_GREY);
// ZerarTrade(TradeOffer[playerid]);
// ZerarTrade(playerid);
return 0;
}
}
return 1;
}
if(Show == 50)
{
EditorMobile[playerid][e_modelo] = objid2;
EditandoObjeto[playerid] = 3;
NoEditor[playerid] = true;
AcessorioEditando[playerid] = objid2;
EditandoAcessorio[playerid] = true;
EditorMobile[playerid][e_EditandoPosRotScale] = 0;
AcessorioMobile(playerid, 0, 0, 1, 0.101, -0.0, 0.0, 5.50,
84.60, 83.7);
AcessorioEditando[playerid] = 0;
EditorMobile[playerid][e_x] = 0;
EditorMobile[playerid][e_y] = 0;
EditorMobile[playerid][e_z] = 0;
EditorMobile[playerid][e_rx] = 0;
EditorMobile[playerid][e_ry] = 0;
EditorMobile[playerid][e_rz] = 0;
EditorMobile[playerid][e_sx] = 0;
EditorMobile[playerid][e_sx] = 0;
EditorMobile[playerid][e_sx] = 0;
EditorMobile[playerid][e_EditandoPosRotScale] = 0;
NoEditor[playerid] = false;
PTextHide(playerid, textEditorMobile[playerid][0]);
PTextHide(playerid, textEditorMobile[playerid][1]);
PTextHide(playerid, textEditorMobile[playerid][2]);
PTextHide(playerid, textEditorMobile[playerid][3]);
PTextHide(playerid, textEditorMobile[playerid][4]);
PTextHide(playerid, textEditorMobile[playerid][5]);
PTextHide(playerid, textEditorMobile[playerid][6]);
PTextHide(playerid, textEditorMobile[playerid][7]);
PTextHide(playerid, textEditorMobile[playerid][8]);
PTextHide(playerid, textEditorMobile[playerid][9]);
PTextHide(playerid, textEditorMobile[playerid][10]);
PTextHide(playerid, textEditorMobile[playerid][11]);
PTextHide(playerid, textEditorMobile[playerid][12]);
PTextHide(playerid, textEditorMobile[playerid][13]);
PTextHide(playerid, textEditorMobile[playerid][14]);
PTextHide(playerid, textEditorMobile[playerid][15]);
PTextHide(playerid, textEditorMobile[playerid][16]);
PTextHide(playerid, textEditorMobile[playerid][17]);
PTextHide(playerid, textEditorMobile[playerid][18]);
PTextHide(playerid, textEditorMobile[playerid][19]);
PTextHide(playerid, textEditorMobile[playerid][20]);
PTextHide(playerid, textEditorMobile[playerid][21]);
PTextHide(playerid, textEditorMobile[playerid][22]);
PTextHide(playerid, textEditorMobile[playerid][23]);
PTextHide(playerid, textEditorMobile[playerid][24]);
PTextHide(playerid, textEditorMobile[playerid][25]);
PTextHide(playerid, textEditorMobile[playerid][26]);
PTextHide(playerid, textEditorMobile[playerid][27]);
//Mais Informacoes
/*enum mob_I
{
mobCreated,
Float:mobX,
Float:mobY,
Float:mobZ,
Float:mobRX,
Float:mobRY,
Float:mobRZ,
mobObject,
mobModel,
};
new MobInfo[MAX_HOUSES][MAX_MOVEIS][mob_I];*/
//AC_ShowPlayerDialog(playerid, 999, DIALOG_STYLE_MSGBOX,
"Instru��es da Edi��o","{FF6347} * Selecione uma das setas para posicionar o
Objeto.", "Fechar", "");
return 1;
}
if(Show == 3)
{
EditorMobile[playerid][e_modelo] = objid2;
EditorMobile[playerid][e_bone] = objid;
EditandoObjeto[playerid] = 3;
NoEditor[playerid] = true;
new Float:Pos[10];
Pos[0] = SistemaCaixa[objid2][CaixaX];
Pos[1] = SistemaCaixa[objid2][CaixaY];
Pos[2] = SistemaCaixa[objid2][CaixaZ];
Pos[3] = PortaoInfo[objid2][portaoRX];
EditorMobile[playerid][e_velocidade] = 0.1;
Pos[4] = SistemaCaixa[objid2][CaixaRY];
Pos[5] = SistemaCaixa[objid2][CaixaRZ];
EditorMobile[playerid][e_x] = Pos[0];
EditorMobile[playerid][e_y] = Pos[1];
EditorMobile[playerid][e_z] = Pos[2];
EditorMobile[playerid][e_rx] = Pos[3];
EditorMobile[playerid][e_ry] = Pos[4];
EditorMobile[playerid][e_rz] = Pos[5];
AcessorioEditando[playerid] = objid2;
EditandoAcessorio[playerid] = true;
EditorMobile[playerid][e_EditandoPosRotScale] = 0;
EditorMobile[playerid][e_modelo] = objid2;
EditorMobile[playerid][e_bone] = objid;
EditandoObjeto[playerid] = 3;
AbrirEditor(playerid);
//AC_ShowPlayerDialog(playerid, 999, DIALOG_STYLE_MSGBOX,
"Instru��es da Edi��o","{FF6347} * Selecione uma das setas para posicionar o
Objeto.", "Fechar", "");
return 1;
}
if(Show == 2)
{
EditorMobile[playerid][e_modelo] = objid2;
EditorMobile[playerid][e_bone] = objid;
EditorMobile[playerid][e_bone] = objid;
AcessorioEditandobone[playerid] = objid;
EditandoObjeto[playerid] = 1;
NoEditor[playerid] = true;
new Float:Pos[10];
//GetObjectPos(PortaoInfo[objid2][portaoObject], Pos[0],
Pos[1], Pos[2]);
// GetObjectRot(PortaoInfo[objid2][portaoObject], Pos[3],
Pos[4], Pos[5]);
Pos[0] = PortaoInfo[objid2][portaoX];
Pos[1] = PortaoInfo[objid2][portaoY];
Pos[2] = PortaoInfo[objid2][portaoZ];
Pos[3] = PortaoInfo[objid2][portaoRX];
EditorMobile[playerid][e_velocidade] = 0.1;
Pos[4] = PortaoInfo[objid2][portaoRY];
Pos[5] = PortaoInfo[objid2][portaoRZ];
AcessorioEditando[playerid] = objid2;
EditandoAcessorio[playerid] = true;
EditorMobile[playerid][e_EditandoPosRotScale] = 0;
EditorMobile[playerid][e_x] = Pos[0];
EditorMobile[playerid][e_y] = Pos[1];
EditorMobile[playerid][e_z] = Pos[2];
EditorMobile[playerid][e_rx] = Pos[3];
EditorMobile[playerid][e_ry] = Pos[4];
EditorMobile[playerid][e_rz] = Pos[5];
EditorMobile[playerid][e_modelo] = objid2;
EditorMobile[playerid][e_bone] = objid;
EditorMobile[playerid][e_bone] = objid;
AcessorioEditandobone[playerid] = objid;
EditandoObjeto[playerid] = 1;
AbrirEditor(playerid);
//AC_ShowPlayerDialog(playerid, 999, DIALOG_STYLE_MSGBOX,
"Instru��es da Edi��o","{FF6347} * Selecione uma das setas para posicionar o
Objeto.", "Fechar", "");
return 1;
}
if(Show == 1)
{
NoEditor[playerid] = true;
new Float:Pos[10];
Pos[0] = ObjetoInfo[objid2][objetoX];
Pos[1] = ObjetoInfo[objid2][objetoY];
Pos[2] = ObjetoInfo[objid2][objetoZ];
Pos[3] = ObjetoInfo[objid2][objetoRX];
Pos[4] = ObjetoInfo[objid2][objetoRY];
Pos[5] = ObjetoInfo[objid2][objetoRZ];
// GetObjectPos(ObjetoInfo[objid2][objetoObject], Pos[0],
Pos[1], Pos[2]);
EditorMobile[playerid][e_velocidade] = 0.1;
// GetObjectRot(ObjetoInfo[objid2][objetoObject], Pos[3],
Pos[4], Pos[5]);
EditorMobile[playerid][e_x] = Pos[0];
EditorMobile[playerid][e_y] = Pos[1];
EditorMobile[playerid][e_z] = Pos[2];
EditorMobile[playerid][e_rx] = Pos[3];
EditorMobile[playerid][e_ry] = Pos[4];
EditorMobile[playerid][e_rz] = Pos[5];
AcessorioEditando[playerid] = objid2;
EditandoAcessorio[playerid] = true;
EditorMobile[playerid][e_EditandoPosRotScale] = 0;
EditorMobile[playerid][e_modelo] = objid2;
EditorMobile[playerid][e_bone] = objid;
EditorMobile[playerid][e_bone] = objid;
AcessorioEditandobone[playerid] = objid;
EditandoObjeto[playerid] = 2;
// SelectTextDraw(playerid, 489);
stock AbrirEditor(playerid)
{
Player_Bars[barid][pl_v] = floatround(Percent);
new Float:finalPercent;
//new nxtlevel = PlayerInfo[playerid][pLevel];
//new expquantidade = nxtlevel*levelexp;
finalPercent = (50 * Percent) / 100;
finalPercent = 114.678840 + finalPercent;
if(finalPercent < 248.5792)
{
PTextSize(playerid, barID, finalPercent, 0.0);
}
else if(finalPercent >= 248.5792)
{
PTextSize(playerid, barID, 248.5792, 0.0);
}
PTextHide(playerid, barID);
PTextShow(playerid, barID);
return 1;
}
stock DestruirTextDrawInv(playerid)
{
PTextHide(playerid, invText[playerid][0]);
PTextHide(playerid, invText[playerid][1]);
PTextHide(playerid, invText[playerid][2]);
PTextHide(playerid, invText[playerid][3]);
PTextHide(playerid, invText[playerid][4]);
PTextHide(playerid, invText[playerid][5]);
PTextHide(playerid, invText[playerid][6]);
PTextHide(playerid, invText[playerid][7]);
PTextHide(playerid, invText[playerid][8]);
PTextHide(playerid, textDoLadoInv[playerid][0]);
PTextHide(playerid, textDoLadoInv[playerid][1]);
PTextHide(playerid, textDoLadoInv[playerid][18]);
PTextHide(playerid, textDoLadoInv[playerid][3]);
PTextHide(playerid, textDoLadoInv[playerid][4]);
PTextHide(playerid, textDoLadoInv[playerid][5]);
PTextHide(playerid, textDoLadoInv[playerid][6]);
PTextHide(playerid, textDoLadoInv[playerid][7]);
PTextHide(playerid, textDoLadoInv[playerid][8]);
PTextHide(playerid, textDoLadoInv[playerid][9]);
PTextHide(playerid, textDoLadoInv[playerid][10]);
PTextHide(playerid, textDoLadoInv[playerid][11]);
PTextHide(playerid, textDoLadoInv[playerid][12]);
PTextHide(playerid, textDoLadoInv[playerid][13]);
PTextHide(playerid, textDoLadoInv[playerid][14]);
PTextHide(playerid, textDoLadoInv[playerid][15]);
PTextHide(playerid, textDoLadoInv[playerid][16]);
PTextHide(playerid, textDoLadoInv[playerid][17]);
PTextHide(playerid, SXBolaInv[playerid][0]);
PTextHide(playerid, SXBolaInv[playerid][1]);
PTextHide(playerid, SXBolaInv[playerid][2]);
PTextHide(playerid, SXBolaInv[playerid][3]);
PTextHide(playerid, SXBolaInv[playerid][4]);
PTextHide(playerid,invBox[playerid][0]);
PTextHide(playerid,invBox[playerid][1]);
PTextHide(playerid,invBox[playerid][2]);
PTextHide(playerid,invBox[playerid][3]);
PTextHide(playerid,invBox[playerid][4]);
PTextHide(playerid,invBox[playerid][5]);
PTextHide(playerid,invBox[playerid][6]);
PTextHide(playerid,invBox[playerid][7]);
return 0;
}
stock printex(text[])
{
new text2[800];
/*new ano, mes, dia;
new hora, minuto, segundo;
getdate(ano, mes, dia);
gettime(hora, minuto, segundo);*/
format(text2, sizeof text2, "%s", text);
//print(text2);
return 0;
}
stock GetCorORG(orgpishid)
{
new orgpishname[12];
switch(orgpishid)
{
case 0: orgpishname = "{ffffff}";
case 1: orgpishname = "{7491f6}";
case 2: orgpishname = "{27408B}";
case 3: orgpishname = "{006400}";
case 4: orgpishname = "{aa3333}";
case 5: orgpishname = "{0000FF}";
case 6: orgpishname = "{f4005b}";
case 7: orgpishname = "{0099FF}";
case 8: orgpishname = "{4F4F4F}";
case 9: orgpishname = "{CD9B9B}";
case 10: orgpishname = "{DD7C7C}";
case 11: orgpishname = "{8bb78b}";
case 12: orgpishname = "{ff6347}";
case 13: orgpishname = "{33aa33}";
case 14: orgpishname = "{F6AF4D}";
case 15: orgpishname = "{00d900}";
case 16: orgpishname = "{ffcc99}";
case 17: orgpishname = "{93833e}";
case 18: orgpishname = "{9900ff}";
case 19: orgpishname = "{FFFF00}";
case 20: orgpishname = "{006699}";
case 21: orgpishname = "{570000}";
case 22: orgpishname = "{00FFFF}";
case 23: orgpishname = "{FF0000}";
case 24: orgpishname = "{a774e2}";
case 25: orgpishname = "{363636}";
case 26: orgpishname = "{a0522d}";
}
return orgpishname;
}
stock GetOrgName(orgpishid)
{
new orgpishname[50];
switch(orgpishid)
{
case 0: orgpishname = "Civil";
case 1: orgpishname = "Policia Militar";
case 2: orgpishname = "B.O.P.E";
case 3: orgpishname = "Exercito";
case 4: orgpishname = "Medicos";
case 5: orgpishname = "Los Aztecas";
case 6: orgpishname = "Taliban";
case 7: orgpishname = "Governo";
case 8: orgpishname = "Hitmans";
case 9: orgpishname = "Rede Globo";
case 10: orgpishname = "Mafia Mexicana";
case 11: orgpishname = "PCC";
case 12: orgpishname = "R.O.T.A";
case 13: orgpishname = "G.A.T.E";
case 14: orgpishname = "DETRAN";
case 15: orgpishname = "Groove Street";
case 16: orgpishname = "Al'qaeda";
case 17: orgpishname = "Policia Civil";
case 18: orgpishname = "Ballas";
case 19: orgpishname = "Los Vagos";
case 20: orgpishname = "Mafia Yakuza";
case 21: orgpishname = "Sons of Anarchy";
case 22: orgpishname = "Mafia Cosa Nostra";
case 23: orgpishname = "Comando Vermelho";
case 24: orgpishname = "Mayans";
case 25: orgpishname = "Policia Federal";
case 26: orgpishname = "Triads";
}
if(orgativada[orgpishid] == 0 && orgpishid != 0)
{
strcat(orgpishname, " - Desativada");
}
return orgpishname;
}
stock GetOrgName74(orgpishid)
{
new orgpishname[50];
switch(orgpishid)
{
case 0: orgpishname = "Nenhuma";
case 1: orgpishname = "Policia Militar";
case 2: orgpishname = "B.O.P.E";
case 3: orgpishname = "Exercito";
case 4: orgpishname = "Medicos";
case 5: orgpishname = "Los Aztecas";
case 6: orgpishname = "Taliban";
case 7: orgpishname = "Governo";
case 8: orgpishname = "Hitmans";
case 9: orgpishname = "Rede Globo";
case 10: orgpishname = "Taxista";
case 11: orgpishname = "PCC";
case 12: orgpishname = "R.O.T.A";
case 13: orgpishname = "G.A.T.E";
case 14: orgpishname = "DETRAN";
case 15: orgpishname = "Groove Street";
case 16: orgpishname = "Al'qaeda";
case 17: orgpishname = "Policia Civil";
case 18: orgpishname = "Ballas";
case 19: orgpishname = "Los Vagos";
case 20: orgpishname = "Mafia Yakuza";
case 21: orgpishname = "Sons of Anarchy";
case 22: orgpishname = "Mafia Cosa Nostra";
case 23: orgpishname = "Comando Vermelho";
case 24: orgpishname = "Mayans";
case 25: orgpishname = "Policia Federal";
case 26: orgpishname = "Triads";
}
if(orgativada[orgpishid] == 0 && orgpishid != 0)
{
strcat(orgpishname, " - Desativada");
}
return orgpishname;
}
stock Carregarrichacoes()
{
/*for(new i; i < 8; i++)
{
new nickplayerpish[128];
new orgpish;
new aRPCoords[50][64];
new strFromFile2[128];
new stringpish[528];
format(stringpish, 528, "Administrativo/Pichacao_%d.ini", i);
new File: file = fopen(stringpish, io_read);
if (file)
{
fread(file, strFromFile2);
split(strFromFile2, aRPCoords, ',');
// format(nickplayerpish, sizeof nickplayerpish,
strval(aRPCoords[0]));
strmid(nickplayerpish, aRPCoords[0], 0, strlen(aRPCoords[0]),
255);
// nickplayerpish = strval(aRPCoords[0]);
orgpish = strval(aRPCoords[1]);
fclose(file);
}
else
{
strmid(nickplayerpish, "Nadie", 0, strlen("Nadie"), 255);
// nickplayerpish = strval(aRPCoords[0]);
orgpish = 0;
}
new string[128];
GetMuroPos(i);
//DestroyDynamic3DTextLabel(DonoMuro[i]);
format(string, sizeof string, "{ffffff}Picha��o de: {33CCFF}Ninguem\
n{ffffff}Organiza��o: {ffffff}Nenhuma\n\n{ffffff}Use o {33CCFF}Spray{ffffff} aqui
para pichar.");
DonoMuro[i] = CreateDynamic3DTextLabel(string, COR_LIGHTBLUE,
MuroPos2[0], MuroPos2[1], MuroPos2[2], 10);
Pichado[i][orgpish] = 1;
new timerpiscou[MAX_PLAYERS];
stock SetPlayerWantedLevelEx(playerid, level)
{
SetPlayerWantedLevel(playerid, 0);
if(level < 1){
PTextHide(playerid, TextDrawDeEstrelasPC[playerid][0]);
return true;
}
if(level > 0){
PTextShow(playerid, TextDrawDeEstrelasPC[playerid][0]);
new Str[100];
format(Str, sizeof(Str), "NIVEL_DE_PROCURADO:_%d",
WantedLevel[playerid]);
PTextSetString(playerid, TextDrawDeEstrelasPC[playerid][0], Str);
return true;
}
return 0;
}
new Piscando[MAX_PLAYERS];
new bool:Piscou[MAX_PLAYERS];
stock PiscarEstrelas(playerid)
{
SetPlayerWantedLevel(playerid, 0);
new level = WantedLevel[playerid];
if(level >= 1 && level <= 8)
{
Piscando[playerid] = 0;
if(timerpiscou[playerid] > 0) KillTimer(timerpiscou[playerid]);
timerpiscou[playerid] = SetTimerEx("PiscandoEstrelas", 280, 1, "d",
playerid);
}
return 0;
}
RP::PiscandoEstrelas(playerid)
{
if(Piscando[playerid] > 60)
{
if(timerpiscou[playerid] > 0) KillTimer(timerpiscou[playerid]);
CheckSoundProx(playerid){
static
Str[128],
id
;
for(new x; x != MAX_SOUNDS; x++){
if(!OuvindoSom[playerid]){
OuvindoSom[playerid] = true;
PlayAudioStreamForPlayer(playerid, SomInfo[x]
[somLink], SomInfo[x][somX], SomInfo[x][somY], SomInfo[x][somZ], SomInfo[id]
[somDistancia], 1);
return 1;
}
}
if(OuvindoSom[playerid]){
format(Str, sizeof Str, "{33CCFF}[Sistema de Som]: {ffffff}Agora
voc� n�o esta mais ouvindo o som do DJ {33CCFF}%s!", PlayerName(SomInfo[id]
[somID]));
SendClientMessage(playerid, -1, Str);
StopAudioStreamForPlayer(playerid);
OuvindoSom[playerid] = false;
if(TocandoSom[playerid])
{
ForT:guardarradio(playerid);
}
}
return 1;
}
static
Float:Pos[4],
string[128]
;
if(NaPraia[playerid] == false)
{
ApplyAnimation(playerid,"BOMBER","BOM_Plant_2Idle",4.1,0,1,1,0,0);
}
PlayerInfo[playerid][pComRadio] = false;
TocandoSom[playerid] = true;
if(!SomInfo[x][somCreated]){
SomInfo[x][somCreated] = true;
SomInfo[x][somDistancia] = dist;
SomInfo[x][somWorld] = GetPlayerVirtualWorld(playerid);
SomInfo[x][somVida] = 100.0;
SomInfo[x][somX] = Pos[0];
SomInfo[x][somY] = Pos[1];
SomInfo[x][somZ] = Pos[2]-0.95;
SomInfo[x][somID] = playerid;
if(NaPraia[playerid] == false)
{
SomInfo[x][somObject] = CreateDynamicObject(2226,
SomInfo[x][somX], SomInfo[x][somY], SomInfo[x][somZ], 0.0, 0.0, Pos[3], SomInfo[x]
[somWorld]);
format(string, sizeof string, "{33CCFF}Radio Portatil %d\
n{ffffff}DJ: {33CCFF}%s", x, PlayerName(playerid));
SomInfo[x][somText] =
CreateDynamic3DTextLabel(string, 0x33CCFFF9, SomInfo[x][somX], SomInfo[x][somY],
SomInfo[x][somZ]+0.3, 15.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, SomInfo[x]
[somWorld]);
}
PlayerInfo[playerid][pDeejay] += 1;
RemovePlayerAttachedObject(playerid, 9);
if(NaPraia[playerid] == false) SendClientMessage(playerid,
COR_KING, "INFO: {ffffff}Para desligar o seu radio portatil digite:
({33CCFF}/guardarradio{ffffff}).");
return 1;
}
}
SendClientMessage(playerid, COR_KING, "ERRO:{FFFFFF} O maximo de sons
no servidor foi atingido! Aguarde um player desligar um som.");
return 1;
}
stock IDCarroTemp(Carroid)
{
new Carro;
if(Carroid == 30000)
{
Carro = 400;
}
if(Carroid == 30001)
{
Carro = 401;
}
if(Carroid == 30003)
{
Carro = 403;
}
if(Carroid == 30004)
{
Carro = 404;
}
if(Carroid == 30000)
{
Carro = 400;
}
if(Carroid == 30001)
{
Carro = 401;
}
if(Carroid == 30003)
{
Carro = 403;
}
if(Carroid == 30004)
{
Carro = 404;
}
if(Carroid == 30005)
{
Carro = 405;
}
if(Carroid == 30006)
{
Carro = 406;
}
if(Carroid == 30007)
{
Carro = 407;
}
if(Carroid == 30008)
{
Carro = 408;
}
if(Carroid == 30009)
{
Carro = 409;
}
if(Carroid == 30010)
{
Carro = 410;
}
if(Carroid == 30011)
{
Carro = 411;
}
if(Carroid == 30012)
{
Carro = 412;
}
if(Carroid == 30000)
{
Carro = 400;
}
if(Carroid == 30001)
{
Carro = 401;
}
if(Carroid == 30003)
{
Carro = 403;
}
if(Carroid == 30004)
{
Carro = 404;
}
if(Carroid == 30005)
{
Carro = 405;
}
if(Carroid == 30006)
{
Carro = 406;
}
if(Carroid == 30007)
{
Carro = 407;
}
if(Carroid == 30008)
{
Carro = 408;
}
if(Carroid == 30009)
{
Carro = 409;
}
if(Carroid == 30010)
{
Carro = 410;
}
if(Carroid == 30011)
{
Carro = 411;
}
if(Carroid == 30012)
{
Carro = 412;
}
if(Carroid == 30013)
{
Carro = 413;
}
if(Carroid == 30014)
{
Carro = 414;
}
if(Carroid == 30015)
{
Carro = 415;
}
if(Carroid == 30016)
{
Carro = 416;
}
if(Carroid == 30017)
{
Carro = 417;
}
if(Carroid == 30018)
{
Carro = 418;
}
if(Carroid == 30019)
{
Carro = 419;
}
if(Carroid == 30020)
{
Carro = 420;
}
if(Carroid == 30021)
{
Carro = 421
}
if(Carroid == 30022)
{
Carro = 422;
}
if(Carroid == 30023)
{
Carro = 423;
}
if(Carroid == 30024)
{
Carro = 424;
}
if(Carroid == 30025)
{
Carro = 425;
}
if(Carroid == 30026)
{
Carro = 426;
}
if(Carroid == 30027)
{
Carro = 428;
}
if(Carroid == 30028)
{
Carro = 470;
}
if(Carroid == 30029)
{
Carro = 429;
}
if(Carroid == 30030)
{
Carro = 430;
}
if(Carroid == 30031)
{
Carro = 431;
}
if(Carroid == 30032)
{
Carro = 432;
}
if(Carroid == 30033)
{
Carro = 433;
}
if(Carroid == 30034)
{
Carro = 434;
}
if(Carroid == 30035)
{
Carro = 435;
}
if(Carroid == 30036)
{
Carro = 436;
}
if(Carroid == 30037)
{
Carro = 437;
}
if(Carroid == 30038)
{
Carro = 438;
}
if(Carroid == 30039)
{
Carro = 439;
}
if(Carroid == 30040)
{
Carro = 440;
}
if(Carroid == 30041)
{
Carro = 441;
}
if(Carroid == 30042)
{
Carro = 442;
}
if(Carroid == 30043)
{
Carro = 443;
}
if(Carroid == 30044)
{
Carro = 444;
}
if(Carroid == 30045)
{
Carro = 445;
}
if(Carroid == 30046)
{
Carro = 446;
}
if(Carroid == 30047)
{
Carro = 447;
}
if(Carroid == 30048)
{
Carro = 448;
}
if(Carroid == 30049)
{
Carro = 449;
}
if(Carroid == 30050)
{
Carro = 450;
}
if(Carroid == 30051)
{
Carro = 451;
}
if(Carroid == 30052)
{
Carro = 452;
}
if(Carroid == 30053)
{
Carro = 453;
}
if(Carroid == 30054)
{
Carro = 455;
}
if(Carroid == 30055)
{
Carro = 455;
}
if(Carroid == 30056)
{
Carro = 456;
}
if(Carroid == 30057)
{
Carro = 457;
}
if(Carroid == 30058)
{
Carro = 458;
}
if(Carroid == 30059)
{
Carro = 459;
}
if(Carroid == 30060)
{
Carro = 460;
}
if(Carroid == 30061)
{
Carro = 461;
}
if(Carroid == 30162)
{
Carro = 562;
}
if(Carroid == 30204)
{
Carro = 604;
}
return Carro;
}
#define MAX_CAIXASARM 15
#define MAX_CAIXAS 21
#define Slot_Roubo 9
#define Temporoubo (6*60000) // minutos pra roubar outro caixa
new Float:RdonPickups[][] =
{
{0.1},{0.2},{0.3},{0.4},
{0.5},{0.6},{0.7},{0.8},
{0.9},{1.0},{1.2},{1.3},
{1.4},{1.5},{1.6},{1.7},
{1.8},{1.9},{2.0},{2.1},
{2.2},{2.3},{2.4},{2.5},
{2.6},{2.7},{2.8},
//
{-0.1},{-0.2},{-0.3},{-0.4},
{-0.5},{-0.6},{-0.7},{-0.8},
{-0.9},{-1.0},{-1.2},{-1.3},
{-1.4},{-1.5},{-1.6},{-1.7},
{-1.8},{-1.9},{-2.0},{-2.1},
{-2.2},{-2.3},{-2.4},{-2.5},
{-2.6},{-2.7},{-2.8}
};
new bool:TendoRoubo;
new CP[MAX_PLAYERS];
new Float:UltimaCaixaRoubada[3];
new bool:RoubandoCaixa[MAX_PLAYERS];
Float:GetXYInFrontOfCaixa(objectid, &Float:q, &Float:w, Float:distance)
{
new Float:a, Float:rotx, Float:roty;
GetDynamicObjectPos(objectid, q, w, a);
enum caixaarmas_info
{
cMateriais,
Float:cX,
Float:cY,
Float:cZ,
Float:cRX,
Float:cRY,
Float:cRZ,
Text3D:cText[528],
cObjeto,
};
new CaixaArmasInfo[MAX_CAIXASARM][caixaarmas_info];
////////////////////////////////////////////////////////////////////////////////
//////////////////////////////// NEXT //////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
static FloorNames2[11][] =
{
"Estacionamento",
"Terreo",
"Primeiro Andar",
"Segundo Andar",
"Terceiro Andar",
"Quarto Andar",
"Quinto Andar",
"Sexto Andar",
"Setimo Andar",
"Oitavo Andar",
"Nono Andar"
};
static Float:FloorZOffsets2[11] =
{
0.0, // Car Park
13.604544, // Ground Floor
18.808519, // First Floor = 13.604544 + 5.203975
24.012494, // Second Floor = 18.808519 + 5.203975
29.216469, // Third Floor = 24.012494 + 5.203975
34.420444, // Fourth Floor = 29.216469 + 5.203975
39.624419, // Fifth Floor = 34.420444 + 5.203975
44.828394, // Sixth Floor = 39.624419 + 5.203975
50.032369, // Seventh Floor = 44.828394 + 5.203975
55.236344, // Eighth Floor = 50.032369 + 5.203975
60.440319 // Ninth Floor = 55.236344 + 5.203975
};
//ELEVADOR 1
new Obj_Elevator, Obj_ElevatorDoors[2], Obj_FloorDoors[14][2];
new Text3D:Label_Elevator, Text3D:Label_Floors[14];
new ElevatorState;
new ElevatorFloor;
new ElevatorQueue[14];
new FloorRequestedBy[14];
new ElevatorBoostTimer;
forward CallElevator(playerid, floorid); // You can use INVALID_PLAYER_ID too.
forward ShowElevatorDialog(playerid);
forward Elevator_Initialize();
forward Elevator_Destroy();
forward Elevator_OpenDoors();
forward Elevator_CloseDoors();
forward Floor_OpenDoors(floorid);
forward Floor_CloseDoors(floorid);
forward Elevator_MoveToFloor(floorid);
forward Elevator_Boost(floorid); // Increases the elevator speed until it
reaches 'floorid'.
forward Elevator_TurnToIdle();
forward ReadNextFloorInQueue();
forward RemoveFirstQueueFloor();
forward AddFloorToQueue(floorid);
forward IsFloorInQueue(floorid);
forward ResetElevatorQueue();
forward DidPlayerRequestElevator(playerid);
forward Float:GetElevatorZCoordForFloor(floorid);
forward Float:GetDoorsZCoordForFloor(floorid);
//ELEVADOR 2
/*new LSApartments1Object;
new LSApartments1CPObject;*/
new Obj_Elevator2, Obj_ElevatorDoors2[2], Obj_FloorDoors2[11][2];
new Text3D:Label_Elevator2, Text3D:Label_Floors2[11];
new ElevatorState2;
new ElevatorFloor2;
new ElevatorQueue2[11];
new FloorRequestedBy2[11];//29769
new ElevatorBoostTimer2;
forward CallElevator2(playerid, floorid);
forward ShowElevatorDialog2(playerid);
forward Elevator_Initialize2();
forward Elevator_Destroy2();
forward Elevator_OpenDoors2();
forward Elevator_CloseDoors2();
forward Floor_OpenDoors2(floorid);
forward Floor_CloseDoors2(floorid);
forward Elevator_MoveToFloor2(floorid);
forward Elevator_Boost2(floorid);
forward Elevator_TurnToIdle2();
forward ReadNextFloorInQueue2();
forward RemoveFirstQueueFloor2();
forward AddFloorToQueue2(floorid);
forward IsFloorInQueue2(floorid);
forward ResetElevatorQueue2();
forward DidPlayerRequestElevator2(playerid);
forward Float:GetElevatorZCoordForFloor2(floorid);
forward Float:GetDoorsZCoordForFloor2(floorid);
// Elevator floor names for the 3D text labels
/*static FloorNames[14][] =
{
"Estacionamento",
"Terreo",
"Primeiro Andar",
"Segundo Andar",
"Terceiro Andar",
"Quarto Andar",
"Quinto Andar",
"Sexto Andar",
"Setimo Andar",
"Oitavo Andar",
"Nono Andar",
"Decimo Andar",
"Decimo Primeiro Andar",
"Decimo Segundo Andar"
};*/
/*static FloorNames2[11][] =
{
"Estacionamento",
"Terreo",
"Primeiro Andar",
"Segundo Andar",
"Terceiro Andar",
"Quarto Andar",
"Quinto Andar",
"Sexto Andar",
"Setimo Andar",
"Oitavo Andar",
"Nono Andar"
};*/
static Float:FloorZOffsets2[11] =
{
0.0, // Car Park
13.604544, // Ground Floor
18.808519, // First Floor = 13.604544 + 5.203975
24.012494, // Second Floor = 18.808519 + 5.203975
29.216469, // Third Floor = 24.012494 + 5.203975
34.420444, // Fourth Floor = 29.216469 + 5.203975
39.624419, // Fifth Floor = 34.420444 + 5.203975
44.828394, // Sixth Floor = 39.624419 + 5.203975
50.032369, // Seventh Floor = 44.828394 + 5.203975
55.236344, // Eighth Floor = 50.032369 + 5.203975
60.440319 // Ninth Floor = 55.236344 + 5.203975
};
//Elevador
new Obj_Elevator, Obj_ElevatorDoors[2], Obj_FloorDoors[14][2];
new Text3D:Label_Elevator, Text3D:Label_Floors[14];
new ElevatorState;
new ElevatorFloor;
new ElevatorQueue[14];
new FloorRequestedBy[14];
new ElevatorBoostTimer;*/
new TempoDominando[MAX_PLAYERS];
stock DominandoStatus(playerid)
{
if(Dominando[playerid] == 1)
{
if(!IsPlayerTextDrawVisible(playerid, dominando_p[playerid][0]))
{
PlayerTextDrawShow(playerid, dominando_p[playerid][4]);
PlayerTextDrawShow(playerid, dominando_p[playerid][3]);
PlayerTextDrawShow(playerid, dominando_p[playerid][2]);
PlayerTextDrawShow(playerid, dominando_p[playerid][1]);
PlayerTextDrawShow(playerid, dominando_p[playerid][0]);
TempoDominando[playerid] = 60;
new nitro[3][0] =
{
{1008},
{1009},
{1010}
};
new BumperF[23][0] =
{
{1117},
{1152},
{1153},
{1155},
{1157},
{1160},
{1165},
{1167},
{1169},
{1170},
{1171},
{1172},
{1173},
{1174},
{1175},
{1179},
{1181},
{1182},
{1185},
{1188},
{1189},
{1192},
{1193}
};
new BumpeRP[22][0] =
{
{1140},
{1141},
{1148},
{1149},
{1150},
{1151},
{1154},
{1156},
{1159},
{1161},
{1166},
{1168},
{1176},
{1177},
{1178},
{1180},
{1183},
{1184},
{1186},
{1187},
{1190},
{1191}
};
new Nitro[28][0] =
{
{1018},
{1019},
{1020},
{1021},
{1022},
{1028},
{1029},
{1037},
{1043},
{1044},
{1045},
{1046},
{1059},
{1064},
{1065},
{1066},
{1089},
{1092},
{1104},
{1105},
{1113},
{1114},
{1126},
{1127},
{1129},
{1132},
{1135},
{1136}
};
new EntradaR[2][0] =
{
{1042},
{1044}
};
new EntradaL[2][0] =
{
{1043},
{1045}
};
new BSTeto[4][0] =
{
{1004},
{1005},
{1011},
{1012}
};
new RSTeto[13][0] =
{
{1006},
{1032},
{1033},
{1035},
{1038},
{1053},
{1054},
{1055},
{1061},
{1067},
{1068},
{1088},
{1091}
};
new LSkirt[21][0] =
{
{1007},
{1026},
{1031},
{1036},
{1039},
{1042},
{1047},
{1048},
{1056},
{1057},
{1069},
{1070},
{1090},
{1093},
{1106},
{1108},
{1118},
{1119},
{1133},
{1122},
{1134}
};
new RSkirt[21][0] =
{
{1017},
{1027},
{1030},
{1040},
{1041},
{1051},
{1052},
{1062},
{1063},
{1071},
{1072},
{1094},
{1095},
{1099},
{1101},
{1102},
{1107},
{1120},
{1121},
{1124},
{1137}
};
new Hidraulica[1][0] =
{
{1087}
};
new Base[1][0] =
{
{1086}
};
new RBBarras[2][0] =
{
{1109},{1110}
};
new FBBarras[2][0] =
{
{1115},{1116}
};
new Rodas[17][0] =
{
{1025},
{1073},
{1074},
{1075},
{1076},
{1077},
{1078},
{1079},
{1080},
{1081},
{1082},
{1083},
{1084},
{1085},
{1096},
{1097},
{1098}
};
new Luzes[2][0] =
{
{1013},
{1024}
};
new Peds[223][1] =
{
{6},{265},{267},{240},{228},{114},{120},{147},{294},{227},
{61},{171},{270},{123},{59},{102},{108},{117},{26},
{26},{100},{256},{263},{262},{261},{260},{259},{258},{257},{256},{255},
{253},{252},{251},{249},{246},{245},{244},{243},{242},{241},{240},{239},
{238},{237},{236},{235},{234},{233},{232},{231},{230},{229},
{226},{225},{173},{174},{175},{224},{223},{222},{221},{220},{219},{218},
{217},{216},{215},{214},{213},{212},{211},{210},{209},
{207},{206},{205},{204},{203},{202},{201},{200},{199},{198},{197},{196},
{195},{194},{193},{192},{191},{190},{189},{185},{184},{183},
{182},{181},{180},{179},{178},{176},{172},{170},{168},{167},{162},
{161},{160},{159},{158},{157},{156},{155},{154},{153},{152},{151},
{146},{145},{144},{143},{142},{141},{140},{139},{138},{137},{136},{135},
{134},{133},{132},{131},{130},{129},{128},{254},{99},{97},{96},{95},{94},
{92},{90},{89},{88},{87},{85},{84},{83},{82},{81},{80},{79},{78},{77},{76},
{75},{73},{72},{69},{68},{67},{66},{64},{63},{62},{58},{57},{56},{55},
{54},{53},{52},{51},{50},{49},{45},{44},{43},{41},{39},{38},{37},{36},{35},
{34},{33},{32},{31},{30},{29},{28},{27},{26},{25},{24},{23},{22},{21},{20},
{19},{18},{17},{16},{15},{14},{13},{12},{11},{10},{1},{2},{290},
{291},{292},{293},{187},{296},{297},{298},{299}
};
new Float:MotoTeste[21][3] =
{
{1560.4677,13.2436,23.7764},
{1560.7620,-36.9327,20.8891},
{1519.0648,-183.7245,12.9714},
{1335.9156,-203.0193,12.2131},
{1228.1044,-119.3333,39.0134},
{1059.9398,-65.3310,21.1299},
{882.5222,-91.7373,24.7512},
{781.4462,-132.3094,21.3523},
{720.3601,-181.0635,20.7983},
{640.9004,-197.2512,10.4846},
{546.3196,-205.4138,16.4986},
{496.0143,-242.2961,10.5759},
{420.5088,-301.8568,6.9928},
{316.2517,-362.7825,9.1974},
{239.5094,-365.4566,7.8820},
{209.6873,-325.9982,1.7630},
{193.2257,-319.3530,1.2431},
{113.3479,-259.9463,3.8264},
{86.5635,-240.3654,3.1892},
{51.6480,-288.5139,1.3810},
{51.6480,-288.5139,1.3810}
};
//spaen moto civil
new Float:SpawnCarros[][] =
{
{1712.4880,-1724.8424,13.1584,90.9611},
{1712.4880,-1724.8424,13.1584,90.9611},
{1712.4880,-1724.8424,13.1584,90.9611},
{1712.4880,-1724.8424,13.1584,90.9611},
{1712.4880,-1724.8424,13.1584,90.9611},
{1712.4880,-1724.8424,13.1584,90.9611}
};
new Float:CarroTeste[21][3] =
{
{-2046.9772,-77.9667,34.7925},
{-2060.9700,-67.6598,34.7941},
{-2153.1096,-67.6350,34.7955},
{-2358.8611,-68.4718,34.7827},
{-2476.5073,-68.3897,28.8776},
{-2498.5344,-54.6531,25.1244},
{-2499.0696,27.7759,25.0959},
{-2458.0232,37.5310,32.2684},
{-2423.2832,24.7519,34.6741},
{-2423.4658,-69.4174,34.9036},
{-2384.7136,-72.5669,34.7875},
{-2374.7224,-111.4151,34.7919},
{-2309.2896,-192.3378,34.7977},
{-2224.8447,-192.6196,34.8270},
{-2212.3220,-272.4918,34.9445},
{-2008.5969,-292.1440,34.9421},
{-2004.4407,-84.1005,34.9051},
{-2028.2327,-67.6241,34.7940},
{-2047.3967,-83.1219,34.7897},
{-2021.4834,-95.8088,34.7883},
{51.6480,-288.5139,1.3810}
};
new Float:HeliTeste[21][3] =
{
{-1140.2377,-202.6676,34.5903},
{-1197.1805,-280.7894,70.8384},
{-1318.1147,-436.5503,87.4385},
{-1532.9528,-692.0680,76.8711},
{-1466.3580,-721.4468,5.4534},
{-1359.8680,-715.3929,34.3193},
{-1249.2345,-587.7202,15.1328},
{-1235.2638,-551.5889,47.5750},
{-1207.7776,-474.9858,19.4642},
{-1185.5791,-423.2551,62.7526},
{-1125.5605,-375.5390,67.3093},
{-1040.4260,-382.8862,22.0585},
{-1001.5632,-379.9551,11.1214},
{-970.3692,-375.8177,7.9073},
{-870.0438,-350.6096,17.4316},
{-852.5836,-327.5564,25.5227},
{-901.6478,-314.1163,13.6021},
{-948.4770,-302.1930,8.8934},
{-1058.2053,-267.7317,25.4300},
{-1148.1313,-228.3088,14.1484},
{-1148.1313,-228.3088,14.1484}
};
new Float:BarcoTeste[21][3] =
{
{2589.8076,-2271.3611,-0.4046},
{2535.3735,-2286.9724,-0.4574},
{2430.7256,-2300.5454,-0.6902},
{2356.3123,-2415.5417,-0.7410},
{2348.9153,-2539.3254,-0.2581},
{2325.2671,-2676.3938,-0.0274},
{2174.1675,-2806.5137,-0.2222},
{1799.5547,-2952.1423,-0.1172},
{1481.0419,-2888.7302,-0.1687},
{1165.3700,-2638.5776,-0.6791},
{970.2130,-2391.7478,-0.5942},
{905.5760,-2111.8318,-0.3734},
{848.3631,-2058.7734,-0.6418},
{825.3781,-2046.4331,-0.3769},
{806.9658,-2025.1932,-0.4533},
{825.9057,-1991.2635,-0.3576},
{845.1941,-1976.4280,-0.5485},
{839.2659,-1950.9290,-0.5719},
{719.9696,-1703.2461,-0.5332},
{727.1500,-1588.2313,-0.5516},
{727.1500,-1588.2313,-0.5516}
};
new Float:TruckTeste[21][3] =
{
{-2134.2053,-68.2868,36.1011},
{-2170.6733,-86.0141,36.1002},
{-2239.2205,-188.1835,36.1021},
{-2260.4023,-266.8860,43.7943},
{-1998.0717,-584.3029,26.6627},
{-1820.2283,-599.0458,17.2184},
{-1553.6440,-1449.5262,41.1091},
{-1711.3805,-1090.8777,74.7628},
{-1639.9174,-819.7148,93.5173},
{-1441.1177,-1380.6744,101.9508},
{-1206.4491,-1347.6797,124.5314},
{-930.9775,-1408.9612,128.9607},
{-831.1804,-1573.1698,127.8495},
{-886.8446,-1625.6841,105.7189},
{-961.2309,-1653.7246,76.0580},
{-978.7487,-1720.8147,78.5095},
{-1033.4119,-1661.5125,78.4922},
{-1073.5095,-1647.8456,77.1647},
{-1083.7719,-1623.3540,77.3871},
{-1117.2954,-1620.1775,76.3739},
{-1117.2954,-1620.1775,76.3739}
};
new iniciarrally[MAX_PLAYERS];
new Float:CorridaRally[21][3] =
{
{-2332.8113,-2177.7463,35.4632},
{-2191.4082,-2072.0486,82.5703},
{-2102.9170,-1883.3190,110.1919},
{-2168.0442,-1992.4286,118.5164},
{-2351.7983,-2102.6990,112.2244},
{-2443.8699,-2080.5005,125.2403},
{-2524.6328,-1970.5172,174.3245},
{-2646.2297,-1728.8226,258.1936},
{-2520.8733,-1888.7463,295.5468},
{-2596.5986,-1760.4424,320.1284},
{-2588.4912,-1626.1591,344.4006},
{-2573.5410,-1763.5724,354.5500},
{-2529.8328,-1803.1650,376.0674},
{-2554.2771,-1757.4204,383.7017},
{-2548.2485,-1662.4000,400.0049},
{-2519.6604,-1736.0510,401.7220},
{-2439.4102,-1809.1182,410.1948},
{-2454.8572,-1723.6471,429.7740},
{-2299.4314,-1787.4233,445.9357},
{-2297.7397,-1677.6178,483.2710},
{-2297.7397,-1677.6178,483.2710}
};
new iniciarcross[MAX_PLAYERS];
new Float:CorridaCross[22][3] =
{
{-1397.0330,-636.9856,1051.2522},
{-1370.5189,-619.8978,1052.3101},
{-1295.2057,-648.1523,1055.8717},
{-1314.4536,-604.4545,1055.5382},
{-1399.4409,-588.9139,1059.0448},
{-1461.7655,-588.9440,1058.1681},
{-1523.5239,-601.9542,1055.7726},
{-1515.0989,-644.8655,1049.7231},
{-1517.3722,-705.1190,1055.3113},
{-1430.6594,-740.0504,1054.7261},
{-1388.4830,-743.1995,1051.3839},
{-1293.6735,-715.9785,1054.4082},
{-1381.4932,-664.5853,1055.6263},
{-1469.8199,-661.0225,1055.4686},
{-1491.2545,-625.5240,1055.1241},
{-1436.6298,-611.7345,1053.9545},
{-1426.0531,-656.5345,1052.9590},
{-1446.2487,-704.7050,1054.4702},
{-1362.0516,-720.9933,1055.4607},
{-1337.1932,-695.0269,1055.6987},
{-1404.0110,-664.1253,1051.4617},
{-1404.0110,-664.1253,1051.4617}
};
new iniciartrilha[MAX_PLAYERS];
new Float:CorridaTrilha[19][3] =
{
{-2401.8953,-1938.3655,303.2156},
{-2378.8171,-1938.8649,303.3148},
{-2348.2166,-1940.7107,298.1120},
{-2246.9595,-1933.3901,248.5024},
{-2231.5437,-1923.5916,242.0599},
{-2205.2410,-1913.8740,239.9263},
{-2180.8374,-1910.2566,234.3216},
{-2168.2603,-1896.1904,234.1313},
{-2170.9949,-1878.8323,230.1915},
{-2172.2302,-1864.6350,223.1506},
{-2172.2583,-1850.3159,219.6882},
{-2169.2063,-1816.3634,216.5713},
{-2158.1951,-1799.0916,210.4578},
{-2139.7866,-1783.0538,208.2094},
{-2131.3650,-1777.6832,208.2528},
{-2115.4011,-1763.5731,202.9935},
{-2101.4761,-1745.2028,196.6707},
{-2091.6233,-1729.9728,183.4432},
{-2091.6233,-1729.9728,183.4432}
};
new iniciarbarco[MAX_PLAYERS];
new Float:CorridaBarco[21][3] =
{
{724.9750,-1584.2784,-0.4511},
{723.9241,-1673.6671,-0.3725},
{726.0685,-1758.4683,-0.5427},
{724.6927,-1855.5675,-0.2030},
{725.7184,-1936.6401,-0.4203},
{838.6640,-2022.0723,-0.5929},
{926.4396,-2200.6108,-0.2439},
{984.3705,-2337.3752,-0.2252},
{1060.6167,-2537.5212,-0.1400},
{981.1528,-2600.5627,-0.1621},
{808.1873,-2624.3552,-0.7928},
{696.2247,-2540.3044,-0.5791},
{594.1703,-2420.7351,-0.1852},
{444.0033,-2340.1108,-0.6084},
{360.5551,-2086.5859,-0.5778},
{374.4694,-2033.8796,-0.5002},
{369.1741,-1985.2518,-0.4411},
{376.7016,-1938.1240,-0.5847},
{726.0693,-1793.6079,-0.5828},
{726.4724,-1583.2124,-0.6265},
{726.4724,-1583.2124,-0.6265}
};
new iniciarkart[MAX_PLAYERS];
new Float:CorridaKart[13][3] =
{
{-1385.0773,-270.4569,1043.5177},
{-1314.9845,-275.0501,1046.9985},
{-1263.6941,-219.1731,1050.0210},
{-1271.8175,-174.1442,1049.9476},
{-1343.0568,-131.9445,1050.0936},
{-1392.4349,-162.8618,1050.5253},
{-1401.2292,-244.7522,1050.3344},
{-1456.0933,-283.0944,1050.0254},
{-1528.9714,-228.8631,1049.9724},
{-1497.7852,-147.5820,1048.1224},
{-1431.2109,-131.5188,1044.7034},
{-1398.7017,-195.3426,1042.4214},
{-1398.7017,-195.3426,1042.4214}
};
new Corridamaluca[MAX_PLAYERS];
new Float:CorridaMaluca[15][3] =
{
{320.0641,-1713.4889,6.5563},
{353.3699,-1772.6237,5.2122},
{504.1924,-1782.9297,5.7539},
{648.9880,-1811.2009,8.0966},
{723.4193,-1847.2404,12.0748},
{976.9210,-1936.8328,4.1540},
{965.8380,-2077.3167,0.7818},
{834.6745,-2087.5837,-0.5463},
{730.1071,-2093.1335,-0.3481},
{601.1415,-2050.3245,-0.7025},
{409.0405,-1987.7889,-0.7847},
{285.1363,-1937.4760,-0.5888},
{204.3593,-1891.7798,0.8093},
{153.8080,-1943.2762,3.7734},
{153.8080,-1943.2762,3.7734}
};
new iniciartrato[MAX_PLAYERS];
new Float:Tratorrida[20][3] =
{
{-2397.9993,2499.8774,11.2287},
{-2486.9370,2495.0483,17.6278},
{-2444.6350,2435.1353,13.5738},
{-2532.9045,2451.0432,17.5686},
{-2735.6333,2352.8677,71.6127},
{-2676.4585,1257.3860,54.9925},
{-2268.9426,1071.6259,55.1411},
{-1955.4478,1170.8022,44.8693},
{-1607.8431,1155.0862,6.6109},
{-1640.0719,414.9324,6.6050},
{-1799.6077,-142.2577,5.8974},
{-1655.4313,-540.8238,10.9225},
{-1469.1261,-452.0643,5.4148},
{-1328.5122,-410.6482,13.7166},
{-1376.3972,-35.8353,13.7111},
{-1691.6223,-411.9206,14.0260},
{-1523.5083,-220.9879,13.6944},
{-1391.3827,-399.5550,5.5649},
{-1272.1011,-632.1157,13.7118},
{-1272.1011,-632.1157,13.7118}
};
new Float:gMcarga[9][4] =
{
{-185.3654,-278.3674,1.4297},//Carga 1
{-1863.3678,-1682.4806,21.7500},//Carga 2
{-940.2593,-531.2188,25.9536},//Carga 3
{1092.9843,-1874.8810,13.5469},//Carga 4
{-1686.4927,-95.4972,3.5781},//Carga 5
{-1837.8966,-11.0536,15.1172},//Carga 6
{-2408.3589,723.0823,38.2734},//Carga 7
{-2311.8320,722.5403,49.42701},//Carga 8
{-2311.8320,722.5403,49.4270}//Carga 9
};
//Sistema De Mina
#define MAX_ORE_TYPES (6)
#define MAX_VEINS (128)
#define MAX_ORES (256)
#define UPDATE_RATE (8000) // taxa de atualiza��o de minera��o em
milissegundos, maior o valor mais longo do tempo de minera��o (padr�o: 200)
#define BAR_MAX (15.0) // valor maximo da barra de progresso,
maior o valor mais longo do tempo de extra��o (padr�o: 15,0)
#define ATTACH_INDEX (9) // setplayerattachedobject index
#define REGEN_TIME (45) // quantos minutos antes das minerios de
respawning (padr�o: 45)
#define ORE_TIME (5) // quantos minutos antes de destruir uma
queda ou (padr�o: 5)
enum e_ores
{
NameOres[16],
Color,
Float: Modifier,
AmountOres, // quantos desse minerio geram um minerio
ValueOres, // valor desse minerio
Rate // taxa de minera��o bem sucedida
}
enum e_veins
{
Type,
AmountOres,
bool: BeingMined,
VeinObject,
Text3D: VeinLabel,
bool: VeinExists
}
enum e_dialogs
{
DIALOG_ORE_INFO = 18740,
DIALOG_ORE_TAKE
}
enum e_droppedores
{
Type,
OreTimer,
OreObject,
Text3D: OreLabel,
bool: OreExists
}
enum e_droppoints
{
Location[32],
Float: PointX,
Float: PointY,
Float: PointZ,
Text3D: PointLabel
}
new
OreData[MAX_ORE_TYPES][e_ores] = {
// name, color, modifier, spawn amount, value, mining rate
{"Cobre", 0xB87333FF, 0.75, 8, 350, 65},
{"Ametista", 0x9B59B6FF, 0.60, 6, 450, 58},
{"Esmeralda", 0x2ECC71FF, 0.40, 4, 750, 50},
{"Rubi", 0xD10056FF, 0.35, 3, 800, 55},
{"Safira", 0x0F52BAFF, 0.30, 3, 850, 45},
{"Ouro", 0xFFD700FF, 0.25, 4, 1000, 40}
};
new
VeinData[MAX_VEINS][e_veins],
DroppedOres[MAX_ORES][e_droppedores];
new
MiningVein[MAX_PLAYERS] = {-1, ...},
MiningTimer[MAX_PLAYERS] = {-1, ...},
CarryingOre[MAX_PLAYERS] = {-1, ...};
new DropPoints[][e_droppoints] = {
{"Las Venturas", 2489.462646, 2773.271240, 10.789896},
{"San Fierro", -1823.034057, 2.284350, 15.117187},
{"Los Santos", 2660.815673, -1433.876098, 30.050680}
};
new
PointIcons[MAX_PLAYERS][sizeof(DropPoints)];
//Sistema De Lixeiro
#define TRASH_BAG_VALUE (125) // value of a collected trash bag
(default: 125)
#define REFILL_TIME (300) // trash container refill time - in
seconds (default: 300)
#define ATTACHMENT_INDEX (9) // for setplayerattachedobject (default:
4)
#define TRASH_LIMIT (1000) // trashmaster capacity (default:
1000)
enum _:e_trashtypes
{
TYPE_BIN,
TYPE_DUMPSTER
}
enum e_gMlixo
{
TrashType,
Float: TrashX,
Float: TrashY,
Float: TrashZ,
TrashLevel,
TrashTimer
}
enum e_factorydata
{
FactoryName[32],
Float: FactoryX,
Float: FactoryY,
Float: FactoryZ,
FactoryCuRPent,
}
new Text3D:FactoryLabel[MAX_VEHICLES];
new gMlixo[][e_gMlixo] = {
{TYPE_DUMPSTER, -169.9766, 1027.1953, 19.4453},
{TYPE_DUMPSTER, -160.2656, 1122.5391, 19.5391},
{TYPE_DUMPSTER, -149.8516, 1133.7656, 19.5391},
{TYPE_DUMPSTER, -170.1719, 1169.0547, 19.5391},
{TYPE_DUMPSTER, -218.0312, 1164.9219, 19.5391},
{TYPE_DUMPSTER, -149.8203, 1164.1094, 19.5391},
{TYPE_DUMPSTER, -162.0938, 1175.1406, 19.5391},
{TYPE_DUMPSTER, -155.6953, 1234.4219, 19.4766},
{TYPE_DUMPSTER, -123.8125, 1079.3984, 19.5000},
{TYPE_DUMPSTER, -90.6016, 1128.2188, 19.4609},
{TYPE_DUMPSTER, -88.8594, 1165.3828, 19.4609},
{TYPE_DUMPSTER, -44.3047, 1179.2734, 19.2422},
{TYPE_DUMPSTER, -24.8203, 1165.4062, 19.2422},
{TYPE_DUMPSTER, 776.8281, 1866.1562, 3.8906},
{TYPE_DUMPSTER, 338.0547, 39.8438, 6.2656},
{TYPE_DUMPSTER, 339.7188, 52.9844, 3.2656},
{TYPE_DUMPSTER, 341.4219, 55.0078, 3.2656},
{TYPE_DUMPSTER, 1353.1016, 201.7578, 19.2656},
{TYPE_DUMPSTER, 1353.5781, 204.2266, 19.2656},
{TYPE_DUMPSTER, 244.1250, -313.1250, 1.2734},
{TYPE_DUMPSTER, 251.4453, -262.5469, 1.2734},
{TYPE_DUMPSTER, 254.0000, -263.2578, 1.2734},
{TYPE_DUMPSTER, 306.0625, -255.1016, 1.2578},
{TYPE_DUMPSTER, 308.6719, -255.0938, 1.2578},
{TYPE_BIN, 2317.1562, 29.2031, 26.2188},
{TYPE_DUMPSTER, 2321.1172, 14.3359, 26.1953},
{TYPE_BIN, 2317.5938, 30.4766, 26.2188},
{TYPE_DUMPSTER, 196.7109, -121.4062, 1.2734},
{TYPE_DUMPSTER, 255.1172, -161.2891, 1.3047},
{TYPE_DUMPSTER, 255.3125, -132.6250, 1.2734},
{TYPE_DUMPSTER, 259.5547, -132.7891, 1.2734},
{TYPE_DUMPSTER, 165.9219, -107.6328, 1.2734},
{TYPE_DUMPSTER, 182.9922, -93.6172, 1.2734},
{TYPE_DUMPSTER, 171.4453, -93.4453, 1.2734},
{TYPE_DUMPSTER, 657.8516, -650.0703, 16.0625},
{TYPE_DUMPSTER, 665.2266, -624.3750, 16.0625},
{TYPE_DUMPSTER, 668.2109, -624.4453, 16.0625},
{TYPE_DUMPSTER, 652.7422, -496.5156, 16.0469},
{TYPE_DUMPSTER, 652.8125, -499.3203, 16.0469},
{TYPE_DUMPSTER, 725.8750, -465.7422, 15.9375},
{TYPE_DUMPSTER, 656.0000, -439.2734, 16.2812},
{TYPE_DUMPSTER, 693.2891, -456.0156, 16.0078},
{TYPE_DUMPSTER, 830.4766, -754.6016, 84.9375},
{TYPE_BIN, 842.5156, -756.1719, 84.3047},
{TYPE_DUMPSTER, 1300.4531, 221.5078, 19.2656},
{TYPE_DUMPSTER, 1320.6328, 211.4688, 19.2656},
{TYPE_DUMPSTER, 1328.8672, 207.3438, 19.2656},
{TYPE_DUMPSTER, 1362.0391, 232.6094, 19.2656},
{TYPE_DUMPSTER, 1364.2891, 231.4844, 19.2656},
{TYPE_DUMPSTER, 1307.6875, 349.7578, 19.2812},
{TYPE_DUMPSTER, 1315.2500, 349.5625, 19.2578},
{TYPE_DUMPSTER, 1413.4141, 451.1172, 19.7344},
{TYPE_DUMPSTER, 1368.6250, 484.1406, 19.7344},
{TYPE_DUMPSTER, -2146.7344, -2462.4844, 30.5547},
{TYPE_DUMPSTER, -2105.9375, -2458.1562, 30.5547},
{TYPE_DUMPSTER, -2108.4922, -2456.1719, 30.5547},
{TYPE_DUMPSTER, -2103.7734, -2479.7344, 30.5547},
{TYPE_DUMPSTER, -2218.8828, -2336.2109, 30.4844},
{TYPE_DUMPSTER, -2213.9609, -2339.3047, 30.4844},
{TYPE_DUMPSTER, -2136.5547, -2450.5938, 30.5547},
{TYPE_DUMPSTER, -2176.3438, -2424.5781, 30.5547},
{TYPE_DUMPSTER, -2174.8594, -2365.2734, 30.7969},
{TYPE_DUMPSTER, -2136.5000, -2263.8984, 30.7266},
{TYPE_DUMPSTER, -2138.6641, -2262.1953, 30.7266},
{TYPE_DUMPSTER, -2087.9922, -2440.9453, 30.6953},
{TYPE_DUMPSTER, -2107.2109, -2423.8906, 30.7969},
{TYPE_DUMPSTER, -2085.3203, -2414.5078, 30.6406},
{TYPE_DUMPSTER, -2087.2031, -2343.1016, 30.7969},
{TYPE_DUMPSTER, -77.2188, -1188.3672, 0.8359},
{TYPE_DUMPSTER, -68.3516, -1104.9922, 0.2188},
{TYPE_DUMPSTER, -63.8125, -1106.4219, 0.2188},
{TYPE_DUMPSTER, -541.4297, -561.2266, 24.5859},
{TYPE_DUMPSTER, -513.7578, -561.0078, 24.5859},
{TYPE_DUMPSTER, -502.6094, -528.6484, 24.5859},
{TYPE_DUMPSTER, -620.4141, -490.5078, 24.5859},
{TYPE_DUMPSTER, -619.6250, -473.4531, 24.5859},
{TYPE_BIN, 788.3438, -863.3828, 59.7031},
{TYPE_BIN, 787.9766, -862.3750, 59.7109},
{TYPE_BIN, 787.9766, -862.3750, 59.7109},
{TYPE_BIN, 787.9844, -841.5234, 59.7031},
{TYPE_DUMPSTER, 792.6250, -838.8906, 60.6406},
{TYPE_BIN, 911.7031, -836.2031, 91.3594},
{TYPE_BIN, 910.8750, -836.6953, 91.1250},
{TYPE_BIN, 960.2422, -822.8594, 95.5391},
{TYPE_BIN, 974.9219, -815.5156, 96.7266},
{TYPE_BIN, 948.4922, -699.7422, 121.2969},
{TYPE_BIN, 948.0078, -698.7891, 121.3203},
{TYPE_BIN, 914.3125, -670.3594, 116.2891},
{TYPE_BIN, 1072.1406, -778.3828, 106.4453},
{TYPE_BIN, 1072.1406, -778.3828, 106.4453},
{TYPE_BIN, 1071.0547, -778.4766, 106.2891},
{TYPE_BIN, 2380.0312, -1038.0703, 52.8281},
{TYPE_BIN, 2380.8516, -1039.0547, 52.7891},
{TYPE_BIN, 2426.7266, -1016.7500, 53.4453},
{TYPE_BIN, 2436.7109, -1052.2500, 53.4297},
{TYPE_BIN, 2459.4531, -1051.6094, 58.8438},
{TYPE_BIN, 2457.3984, -1023.1719, 58.7891},
{TYPE_BIN, 2484.0859, -1053.1406, 66.6406},
{TYPE_BIN, 2489.6172, -1022.6094, 64.5156},
{TYPE_BIN, 2505.0781, -1061.0781, 69.3125},
{TYPE_BIN, 2527.9219, -1058.1406, 68.6875},
{TYPE_BIN, 2510.2891, -1029.5859, 69.1797},
{TYPE_BIN, 2528.6719, -1034.9219, 68.6719},
{TYPE_BIN, 2538.6484, -1058.6016, 68.6719},
{TYPE_BIN, 2545.1562, -1034.8984, 68.6641},
{TYPE_BIN, 2567.8203, -1035.2812, 68.6719},
{TYPE_DUMPSTER, 1420.1172, -1356.8438, 13.3828},
{TYPE_DUMPSTER, 1425.5312, -1320.5781, 13.3672},
{TYPE_DUMPSTER, 1415.6016, -1299.1875, 13.3672},
{TYPE_DUMPSTER, 1425.5703, -1317.9688, 13.3672},
{TYPE_DUMPSTER, 1439.8594, -1323.7031, 13.3828},
{TYPE_DUMPSTER, 1593.0781, -1200.3750, 19.6875},
{TYPE_DUMPSTER, 1616.5547, -1200.3750, 19.6875},
{TYPE_DUMPSTER, 1660.4688, -1200.3750, 19.6875},
{TYPE_DUMPSTER, 1435.5859, -1095.7969, 17.4141},
{TYPE_DUMPSTER, 1438.1953, -1095.8438, 17.4141},
{TYPE_DUMPSTER, 1424.5234, -1084.3047, 17.4141},
{TYPE_DUMPSTER, 1424.5781, -1080.3828, 17.4141},
{TYPE_DUMPSTER, 1520.1562, -1018.5547, 23.8438},
{TYPE_DUMPSTER, 1520.2109, -1014.6328, 23.8438},
{TYPE_DUMPSTER, 1611.6875, -993.9062, 23.8438},
{TYPE_DUMPSTER, 1659.9141, -1065.1172, 23.7969},
{TYPE_DUMPSTER, 1631.9219, -987.8281, 23.8438},
{TYPE_DUMPSTER, 1633.9375, -990.5547, 23.8438},
{TYPE_DUMPSTER, 1660.2500, -1000.4141, 23.7891},
{TYPE_DUMPSTER, 1666.3984, -997.7031, 23.7891},
{TYPE_DUMPSTER, 1786.2109, -1148.2969, 23.6797},
{TYPE_DUMPSTER, 1800.4531, -1148.2969, 23.6797},
{TYPE_DUMPSTER, 1830.5703, -1147.3828, 23.6797},
{TYPE_DUMPSTER, 1830.6172, -1143.8203, 23.6797},
{TYPE_DUMPSTER, 1789.7734, -1116.0625, 23.8906},
{TYPE_DUMPSTER, 1789.9062, -1112.6406, 23.8906},
{TYPE_DUMPSTER, 1830.5703, -1113.9297, 23.6797},
{TYPE_DUMPSTER, 1830.5703, -1097.3047, 23.6797},
{TYPE_DUMPSTER, 1830.5703, -1084.2891, 23.6797},
{TYPE_DUMPSTER, 1336.3359, -1842.8516, 12.6641},
{TYPE_DUMPSTER, 1336.7891, -1816.3047, 12.6641},
{TYPE_DUMPSTER, 1466.9453, -1847.8438, 12.6641},
{TYPE_DUMPSTER, 1419.7344, -1846.5469, 12.6641},
{TYPE_DUMPSTER, 1419.6953, -1844.2031, 12.6641},
{TYPE_DUMPSTER, 1486.2109, -1848.1250, 12.6641},
{TYPE_DUMPSTER, 1468.0625, -1847.7891, 12.6641},
{TYPE_DUMPSTER, 1516.6875, -1850.0547, 12.6641},
{TYPE_DUMPSTER, 1337.6953, -1774.7344, 12.6641},
{TYPE_DUMPSTER, 1461.4297, -1489.2188, 12.6797},
{TYPE_DUMPSTER, 1538.9453, -1849.2734, 12.6641},
{TYPE_DUMPSTER, 1534.9297, -1480.9922, 8.6094},
{TYPE_DUMPSTER, 1537.9297, -1480.6094, 8.6094},
{TYPE_DUMPSTER, 2382.0234, -1941.0391, 12.6641},
{TYPE_DUMPSTER, 1920.0547, -2122.4141, 12.6875},
{TYPE_DUMPSTER, 1920.4844, -2088.1719, 12.6875},
{TYPE_DUMPSTER, 1092.0078, -1881.2812, 13.3047},
{TYPE_DUMPSTER, 1175.3828, -1877.5625, 13.3047},
{TYPE_DUMPSTER, 1091.9844, -1876.8281, 13.3047},
{TYPE_DUMPSTER, 1101.9922, -1874.9766, 13.3047},
{TYPE_DUMPSTER, 1117.4688, -1874.9766, 13.3047},
{TYPE_DUMPSTER, 432.2422, -1747.8828, 8.3281},
{TYPE_DUMPSTER, 477.7734, -1746.4531, 8.5000},
{TYPE_DUMPSTER, 569.5078, -1765.0312, 13.5312},
{TYPE_DUMPSTER, 732.8516, -1332.8984, 12.6875},
{TYPE_DUMPSTER, 732.7266, -1341.7734, 12.6328},
{TYPE_DUMPSTER, 387.1484, -1751.5078, 7.9453},
{TYPE_DUMPSTER, 387.2266, -1747.7266, 8.3594},
{TYPE_DUMPSTER, 1322.1875, -1235.8828, 13.4375},
{TYPE_DUMPSTER, -826.2812, 495.1172, 1357.8594},
{TYPE_DUMPSTER, -827.2656, 498.1953, 1357.7656},
{TYPE_DUMPSTER, -829.0312, 498.1953, 1357.5938},
{TYPE_BIN, -800.9453, 500.8984, 1360.0312},
{TYPE_BIN, -800.9453, 501.7422, 1360.0312},
{TYPE_DUMPSTER, -2531.9062, 2295.0312, 4.7578},
{TYPE_DUMPSTER, -2526.9453, 2295.0312, 4.7578},
{TYPE_DUMPSTER, -2527.2422, 2353.1250, 4.7578},
{TYPE_DUMPSTER, -2520.7188, 2353.1250, 4.7578},
{TYPE_DUMPSTER, -2524.0625, 2353.1250, 4.7578},
{TYPE_DUMPSTER, -2480.8828, 2295.0312, 4.7578},
{TYPE_DUMPSTER, -2503.0703, 2364.2188, 4.7578},
{TYPE_DUMPSTER, -2503.0469, 2368.0469, 4.7578},
{TYPE_DUMPSTER, -2253.5391, 2372.5469, 4.7578},
{TYPE_DUMPSTER, -2455.3750, -143.8750, 26.0156},
{TYPE_DUMPSTER, -2455.3516, -138.0156, 26.0156},
{TYPE_DUMPSTER, -2753.9453, -178.3281, 6.8359},
{TYPE_DUMPSTER, -2658.9766, -168.8984, 3.9844},
{TYPE_DUMPSTER, -2657.9297, -189.0703, 3.9844},
{TYPE_DUMPSTER, -2652.7891, -188.2891, 3.9844},
{TYPE_DUMPSTER, -2653.3828, -167.3984, 3.9844},
{TYPE_DUMPSTER, -2759.2578, -136.2031, 6.8359},
{TYPE_DUMPSTER, -2753.3125, -149.8516, 6.8359},
{TYPE_DUMPSTER, -2659.2734, -125.2031, 3.9844},
{TYPE_DUMPSTER, -2753.2734, -121.6016, 6.8359},
{TYPE_DUMPSTER, -2759.2031, -120.8203, 6.8359},
{TYPE_DUMPSTER, -2653.6797, -124.7422, 3.9844},
{TYPE_DUMPSTER, -2759.9453, -96.8203, 6.8359},
{TYPE_DUMPSTER, -2763.7031, -13.7344, 6.8359},
{TYPE_DUMPSTER, -2766.0312, 25.0156, 6.8359},
{TYPE_DUMPSTER, -2760.7188, -54.3438, 6.8359},
{TYPE_DUMPSTER, -2759.4766, 7.8906, 6.8359},
{TYPE_DUMPSTER, -2754.4219, -85.3906, 6.8359},
{TYPE_DUMPSTER, -2754.8516, -56.6016, 6.8359},
{TYPE_DUMPSTER, -2755.9141, -36.3828, 6.8359},
{TYPE_DUMPSTER, -2747.3594, -8.6641, 6.0938},
{TYPE_DUMPSTER, -2766.4297, 52.0781, 6.9297},
{TYPE_DUMPSTER, -2766.2109, 86.5781, 6.9297},
{TYPE_DUMPSTER, -2760.3672, 63.8594, 6.9375},
{TYPE_DUMPSTER, -2757.9688, 95.9844, 6.9297},
{TYPE_DUMPSTER, -2756.2656, 90.3594, 6.9297},
{TYPE_DUMPSTER, -2756.4844, 93.1875, 6.9297},
{TYPE_DUMPSTER, -2763.1328, 115.3828, 6.8906},
{TYPE_DUMPSTER, -2760.3672, 144.3516, 6.8828},
{TYPE_DUMPSTER, -2658.3125, -89.6172, 3.9844},
{TYPE_DUMPSTER, -2716.9844, 74.3594, 4.0781},
{TYPE_DUMPSTER, -2717.9219, 77.9219, 4.0781},
{TYPE_DUMPSTER, -2656.5938, 71.5625, 3.9844},
{TYPE_DUMPSTER, -2651.2500, 92.4375, 3.9844},
{TYPE_DUMPSTER, -2649.8125, 52.7500, 3.9844},
{TYPE_DUMPSTER, -2651.9062, 133.3438, 3.9844},
{TYPE_DUMPSTER, -2656.7109, 115.3828, 3.9844},
{TYPE_DUMPSTER, -2657.7734, 135.6016, 3.9844},
{TYPE_DUMPSTER, 2535.3906, 1942.2500, 10.6094},
{TYPE_DUMPSTER, 2676.4531, 1665.6875, 10.6094},
{TYPE_DUMPSTER, 2676.4531, 1705.5703, 10.6094},
{TYPE_DUMPSTER, 2657.1250, 1942.2500, 10.6094},
{TYPE_DUMPSTER, 2676.4531, 1825.4062, 10.6094},
{TYPE_DUMPSTER, 2178.2188, 1418.8438, 10.6250},
{TYPE_DUMPSTER, 2181.5625, 1418.8438, 10.6250},
{TYPE_BIN, 2065.7344, 637.5781, 11.2031},
{TYPE_BIN, 2011.1328, 638.1172, 11.2031},
{TYPE_DUMPSTER, 1878.6484, 683.7734, 10.6250},
{TYPE_DUMPSTER, 1881.3828, 683.7734, 10.6250},
{TYPE_BIN, 1885.4844, 683.7500, 10.5625},
{TYPE_DUMPSTER, 1969.9453, 693.7422, 10.6250},
{TYPE_BIN, 1976.6797, 693.7109, 10.5625},
{TYPE_BIN, 1969.2109, 712.7344, 10.5625},
{TYPE_DUMPSTER, 1975.6953, 712.7031, 10.6250},
{TYPE_DUMPSTER, 2006.1953, 706.4531, 11.2500},
{TYPE_BIN, 2043.4531, 708.3672, 11.1953},
{TYPE_DUMPSTER, 1884.8359, 722.7031, 10.6250},
{TYPE_DUMPSTER, 1882.1016, 722.7031, 10.6250},
{TYPE_BIN, 1877.8828, 722.7344, 10.5625},
{TYPE_BIN, 2010.3125, 718.0391, 11.1953},
{TYPE_DUMPSTER, 2009.2812, 786.4297, 11.2500},
{TYPE_BIN, 2046.0547, 788.3906, 11.1953},
{TYPE_BIN, 2065.2812, 717.4688, 11.1953},
{TYPE_BIN, 2071.4609, 788.9609, 11.1953},
{TYPE_BIN, 2128.2500, 640.0781, 11.2031},
{TYPE_BIN, 2090.1562, 638.1016, 11.2031},
{TYPE_DUMPSTER, 2224.1328, 666.4062, 11.2500},
{TYPE_DUMPSTER, 2086.3672, 706.4531, 11.2500},
{TYPE_BIN, 2123.2734, 708.4297, 11.1953},
{TYPE_BIN, 2174.5703, 678.0625, 11.1953},
{TYPE_BIN, 2180.9531, 668.4141, 11.2031},
{TYPE_BIN, 2206.4688, 669.0078, 11.2031},
{TYPE_DUMPSTER, 2210.4766, 679.9453, 11.2500},
{TYPE_BIN, 2219.0312, 677.5234, 11.1953},
{TYPE_BIN, 2254.0859, 677.9844, 11.1953},
{TYPE_BIN, 2261.4688, 668.3828, 11.1953},
{TYPE_BIN, 2088.5156, 718.0469, 11.1953},
{TYPE_DUMPSTER, 2087.4219, 786.4297, 11.2500},
{TYPE_BIN, 2126.7969, 719.9062, 11.1953},
{TYPE_BIN, 2126.6797, 788.4062, 11.1953},
{TYPE_BIN, 2180.2188, 748.3828, 11.1953},
{TYPE_DUMPSTER, 2180.6016, 778.2266, 11.2500},
{TYPE_BIN, 2186.9219, 748.3828, 11.1953},
{TYPE_BIN, 2205.6641, 748.9141, 11.1953},
{TYPE_DUMPSTER, 2222.5234, 746.4219, 11.2500},
{TYPE_BIN, 2260.3438, 748.4219, 11.1953},
{TYPE_DUMPSTER, 2364.0781, 666.5703, 11.2500},
{TYPE_BIN, 2359.7109, 677.4844, 11.1953},
{TYPE_BIN, 2394.3906, 678.0312, 11.1953},
{TYPE_DUMPSTER, 2460.6172, 696.5859, 11.2500},
{TYPE_BIN, 2463.1250, 706.3438, 11.1953},
{TYPE_BIN, 2463.1250, 707.8203, 11.1953},
{TYPE_DUMPSTER, 2538.3125, 716.4219, 10.6172},
{TYPE_DUMPSTER, 2364.0781, 746.4219, 11.2500},
{TYPE_BIN, 2462.5859, 739.7500, 11.1953},
{TYPE_DUMPSTER, 2578.8906, 723.9531, 10.6172},
{TYPE_DUMPSTER, 2615.2578, 716.3984, 10.6172},
{TYPE_DUMPSTER, 2658.3438, 716.3984, 10.6172},
{TYPE_BIN, 2821.8750, 858.1875, 10.4844},
{TYPE_BIN, 2836.9531, 858.1953, 10.4844},
{TYPE_DUMPSTER, 2879.0859, 858.1562, 10.5391},
{TYPE_BIN, 2863.4688, 946.0156, 10.4844},
{TYPE_DUMPSTER, 2879.6484, 945.9688, 10.5391},
{TYPE_DUMPSTER, 2764.9766, 1437.9766, 10.5547},
{TYPE_DUMPSTER, 2763.0469, 1443.0781, 10.5547},
{TYPE_DUMPSTER, 2108.6562, 2650.0625, 10.5938},
{TYPE_DUMPSTER, 2120.5156, 2667.0859, 10.6172},
{TYPE_DUMPSTER, 2120.3359, 2669.8984, 10.6172},
{TYPE_DUMPSTER, 2180.9766, 2747.1484, 10.6172},
{TYPE_DUMPSTER, 2190.2500, 2792.6016, 10.6172},
{TYPE_DUMPSTER, 2203.6406, 2808.6719, 10.6172},
{TYPE_DUMPSTER, 2229.1641, 2812.1562, 10.5938},
{TYPE_DUMPSTER, 2256.7500, 2527.4922, 10.6172},
{TYPE_DUMPSTER, 2260.3516, 2563.2500, 10.6172},
{TYPE_DUMPSTER, 2264.1719, 2563.2500, 10.6172},
{TYPE_DUMPSTER, 2273.8438, 2784.4531, 10.5703},
{TYPE_DUMPSTER, 2287.7891, 2784.2891, 10.5703},
{TYPE_DUMPSTER, 2361.7969, 2793.0156, 10.6172},
{TYPE_DUMPSTER, 2361.1016, 2783.2188, 10.6172},
{TYPE_DUMPSTER, 2361.2422, 2781.7656, 10.6250},
{TYPE_DUMPSTER, 2374.3516, 2759.8750, 10.6328},
{TYPE_DUMPSTER, 2377.2109, 2759.4453, 10.6172},
{TYPE_DUMPSTER, 2379.2578, 2759.4062, 10.6328},
{TYPE_DUMPSTER, 2596.2500, 2045.4141, 10.6172},
{TYPE_DUMPSTER, 2579.4141, 2081.3516, 10.6172},
{TYPE_DUMPSTER, 2596.3203, 2053.7578, 10.6172},
{TYPE_DUMPSTER, 2596.3203, 2072.0000, 10.6172},
{TYPE_DUMPSTER, 2596.2500, 2077.6953, 10.6172},
{TYPE_DUMPSTER, 2514.1875, 2316.5938, 10.6250},
{TYPE_DUMPSTER, 2550.1094, 2245.0234, 10.6172},
{TYPE_DUMPSTER, 2542.9141, 2317.9609, 10.6328},
{TYPE_DUMPSTER, 2545.7031, 2317.8594, 10.6250},
{TYPE_DUMPSTER, 2257.9375, 2298.6797, 10.6250},
{TYPE_DUMPSTER, 2781.6250, 2544.4375, 10.6172},
{TYPE_DUMPSTER, 2809.6094, 2581.0000, 10.6172},
{TYPE_DUMPSTER, 2818.9297, 2590.2969, 10.6250},
{TYPE_DUMPSTER, 2820.3594, 2592.9375, 10.6172},
{TYPE_DUMPSTER, 2253.9062, 2336.5156, 10.6172},
{TYPE_DUMPSTER, 1004.8125, 1068.0703, 10.6250},
{TYPE_DUMPSTER, 1002.5625, 1068.0703, 10.6250},
{TYPE_DUMPSTER, 1346.2734, 1064.0781, 10.9297},
{TYPE_DUMPSTER, 1341.3516, 1064.0781, 10.9297},
{TYPE_DUMPSTER, 1339.0781, 1064.0781, 10.6250},
{TYPE_DUMPSTER, 1303.2188, 1102.7188, 10.6250},
{TYPE_DUMPSTER, 1338.8047, 1164.1562, 10.9297},
{TYPE_DUMPSTER, 1584.9297, 663.9844, 10.9297},
{TYPE_DUMPSTER, 1632.0156, 663.9844, 10.9297},
{TYPE_DUMPSTER, 1634.6797, 663.9844, 10.9297},
{TYPE_DUMPSTER, 1635.9844, 892.2109, 10.9297},
{TYPE_DUMPSTER, 1756.5781, 691.1641, 10.9297},
{TYPE_DUMPSTER, 1756.5781, 688.6250, 10.9297},
{TYPE_DUMPSTER, 1478.1250, 963.5625, 10.6250},
{TYPE_DUMPSTER, 1478.1250, 967.0703, 10.6250},
{TYPE_DUMPSTER, 1518.2500, 971.4609, 10.9297},
{TYPE_DUMPSTER, 1518.2500, 979.7656, 10.9297},
{TYPE_DUMPSTER, 1557.6562, 970.5625, 10.6250},
{TYPE_DUMPSTER, 1557.7422, 968.3125, 10.9297},
{TYPE_DUMPSTER, 1464.2188, 1081.7422, 10.6250},
{TYPE_DUMPSTER, 1598.6250, 1060.6562, 10.9297},
{TYPE_DUMPSTER, 1603.0078, 1060.6562, 10.9297},
{TYPE_DUMPSTER, 1668.0547, 911.7969, 10.9297},
{TYPE_DUMPSTER, 1732.7422, 967.8359, 10.9297},
{TYPE_DUMPSTER, 1745.3594, 1049.3906, 10.9297},
{TYPE_DUMPSTER, 1680.0547, 1168.2734, 10.9297},
{TYPE_DUMPSTER, 1680.0547, 1164.1562, 10.9297},
{TYPE_DUMPSTER, 1694.4141, 1160.8594, 9.8125},
{TYPE_DUMPSTER, 1680.2734, 1251.8594, 9.9062},
{TYPE_DUMPSTER, 1734.2578, 1249.0547, 10.9297},
{TYPE_DUMPSTER, 1947.6875, 2331.5469, 10.5625},
{TYPE_DUMPSTER, 1980.8438, 2331.5156, 10.5625},
{TYPE_DUMPSTER, 1427.1797, 1905.2578, 9.9453},
{TYPE_BIN, 1427.2422, 1891.8828, 9.9219},
{TYPE_BIN, 1427.2422, 1893.1094, 9.9219},
{TYPE_BIN, 1427.2422, 1911.9297, 9.9219},
{TYPE_BIN, 1427.2422, 1910.7031, 9.9219},
{TYPE_BIN, 1427.2422, 1915.1328, 9.9219},
{TYPE_BIN, 1430.2031, 1932.2812, 9.9219},
{TYPE_BIN, 1431.4297, 1932.2812, 9.9219},
{TYPE_BIN, 1434.6328, 1932.2812, 9.9219},
{TYPE_BIN, 1446.2656, 1884.8438, 9.9219},
{TYPE_BIN, 1446.2656, 1888.0547, 9.9219},
{TYPE_BIN, 1446.2656, 1910.7031, 9.9219},
{TYPE_BIN, 1446.2656, 1911.9297, 9.9219},
{TYPE_BIN, 1446.2656, 1915.1328, 9.9219},
{TYPE_DUMPSTER, 1446.1016, 1917.5938, 9.9453},
{TYPE_BIN, 1666.5469, 2042.2109, 9.9219},
{TYPE_BIN, 1666.5469, 2039.0078, 9.9219},
{TYPE_BIN, 1666.5469, 2037.7812, 9.9219},
{TYPE_DUMPSTER, 1666.5781, 2034.5312, 9.9453},
{TYPE_BIN, 1659.1406, 2050.9062, 9.9219},
{TYPE_BIN, 1659.1406, 2049.1406, 9.9219},
{TYPE_BIN, 1659.1406, 2046.4688, 9.9219},
{TYPE_DUMPSTER, 1666.5781, 2056.0000, 9.9453},
{TYPE_BIN, 1659.1406, 2068.9688, 9.9219},
{TYPE_BIN, 1659.1406, 2070.7344, 9.9219},
{TYPE_BIN, 1659.2109, 2086.6094, 9.9219},
{TYPE_BIN, 1659.2109, 2092.3047, 9.9219},
{TYPE_DUMPSTER, 1659.1016, 2084.4844, 9.9453},
{TYPE_BIN, 1666.6562, 2062.5312, 9.9219},
{TYPE_BIN, 1666.6562, 2064.2969, 9.9219},
{TYPE_BIN, 1666.6562, 2098.8438, 9.9219},
{TYPE_BIN, 1666.6562, 2100.6094, 9.9219},
{TYPE_BIN, 1659.2109, 2116.0156, 9.9219},
{TYPE_DUMPSTER, 1666.5781, 2109.2188, 9.9453},
{TYPE_BIN, 1659.2109, 2121.7031, 9.9219},
{TYPE_DUMPSTER, 1659.1016, 2124.2266, 9.9453},
{TYPE_BIN, 1666.9609, 2128.7344, 9.9219},
{TYPE_BIN, 1666.9609, 2134.4219, 9.9219},
{TYPE_BIN, 1659.0078, 2144.4297, 9.9219},
{TYPE_BIN, 1659.0078, 2142.6641, 9.9219},
{TYPE_DUMPSTER, 1659.1016, 2159.1094, 9.9453},
{TYPE_DUMPSTER, 1659.1016, 2161.6016, 9.9453},
{TYPE_BIN, 1047.7969, 1991.3906, 9.9531},
{TYPE_BIN, 1047.7969, 1990.1641, 9.9531},
{TYPE_BIN, 1047.7969, 1994.5938, 9.9531},
{TYPE_BIN, 1066.8203, 1991.3906, 9.9531},
{TYPE_BIN, 1066.8203, 1994.5938, 9.9531},
{TYPE_BIN, 1066.8203, 1990.1641, 9.9531},
{TYPE_DUMPSTER, 1066.6562, 1997.0547, 9.9453},
{TYPE_BIN, 1066.4766, 2017.5078, 9.9531},
{TYPE_BIN, 1048.5000, 2012.0391, 9.9531},
{TYPE_BIN, 1066.4766, 2018.7344, 9.9531},
{TYPE_BIN, 1066.4766, 2021.9375, 9.9531},
{TYPE_DUMPSTER, 1048.3359, 2017.7031, 9.9453},
{TYPE_BIN, 1567.8203, 2096.8047, 9.9219},
{TYPE_BIN, 1567.8203, 2095.5781, 9.9219},
{TYPE_BIN, 1567.8203, 2133.4844, 9.9219},
{TYPE_BIN, 1567.8203, 2134.7109, 9.9219},
{TYPE_BIN, 1567.8203, 2157.5469, 9.9219},
{TYPE_BIN, 1567.8203, 2156.3203, 9.9219},
{TYPE_BIN, 1567.8203, 2160.7500, 9.9219},
{TYPE_DUMPSTER, 1577.5859, 2161.1484, 10.2109},
{TYPE_DUMPSTER, 1577.5859, 2119.1016, 10.2109},
{TYPE_DUMPSTER, 1577.5859, 2091.5391, 10.2109},
{TYPE_BIN, 1577.7578, 2158.6875, 9.9219},
{TYPE_BIN, 1577.7578, 2155.4844, 9.9219},
{TYPE_BIN, 1577.7578, 2154.2578, 9.9219},
{TYPE_BIN, 1577.7578, 2113.4375, 9.9219},
{TYPE_BIN, 1577.7578, 2112.2109, 9.9219}
};//-------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
------------------------------------------------------
new
FactoryData[][e_factorydata] = {
// location, x, y, z
{"Los Santos", 2432.553710, -2115.611328, 13.546875},
{"Las Venturas", 981.711303, 2168.738769, 10.820312},
{"San Fierro", -1044.592895, -606.348876, 32.007812}
};
new
bool: HasTrash[MAX_PLAYERS],
TrashCP[MAX_PLAYERS],
TrashCP2[MAX_PLAYERS];
new LoadedTrash[MAX_VEHICLES];
Trash_InitPlayer(playerid)
{
HasTrash[playerid] = false;
return 1;
}
//
new Float:gMcadaver[9][4] =
{
{1978.9611,2099.5632,10.8220},//Carga 1
{1803.9292,2160.8721,10.8203},//Carga 2
{1661.2528,2107.9504,10.8203},//Carga 3
{1502.0026,1921.0685,11.0550},//Carga 4
{1637.1243,2246.5525,11.0625},//Carga 5
{1849.3125,2087.8650,11.0547},//Carga 6
{1851.5123,1961.8600,10.8203},//Carga 7
{1924.4679,1725.3805,12.7144},//Carga 8
{1924.4679,1725.3805,12.7144}//Carga
};
new Float:gMjornal[10][4] =
{
{-2869.4104,691.0087,23.4616},//Carga 1
{-2880.6602,794.7575,35.2410},//Carga 2
{-2843.2170,913.8957,44.0547},//Carga 3
{-2900.6553,1066.2029,32.1328},//Carga 4
{-2905.0337,1178.0406,13.6712},//Carga 5
{-2711.3657,968.8145,54.4609},//Carga 6
{-2655.4465,986.1461,64.9913},//Carga 7
{-2511.7666,1008.9579,78.3466},//Carga 8
{-2541.5354,975.0735,77.2344},//Carga 9
{-2541.5354,975.0735,77.2344}//Carga 9
};
new Float:PenitenciariaSpawn[][] =
{
{2256.9143, -100.7708, 1989.5424, 269.9765}, // Sela 1
{2256.3757, -100.9020, 1989.5424, 274.3361},// sela 2
{2256.7446, -103.9297, 1989.5424, 264.0413}, // sela 3
{2261.8149, -108.0677, 1989.5424, 2.4930},// sela 4
{2264.9827, -108.1592, 1989.5424, 358.3192}, // sela 5
{2268.2297, -108.0547, 1989.5424, 8.2899}, // sela 6
{2273.3196, -104.0061, 1989.5424, 91.1138}, // sela 7
{2273.5300, -100.8489, 1989.5424, 89.7684}, // sela 8
{2273.5674, -97.5005, 1989.5424, 92.6436} // sela 9
};
new Float:gChuckArena[7][4] =
{
{-973.4500,1060.6805,1345.6750},
{-969.4534,1044.8157,1345.0568},
{-977.3695,1021.3350,1345.0256},
{-1131.1207,1057.8539,1346.4141},
{-1136.2985,1076.4047,1345.8022},
{-1136.6195,1030.8734,1345.7631},
{-1136.4711,1049.5575,1345.7776}
};
new Float:FlorestaSpawn[19][4] =
{
{1525.9266,2698.9453,18.1719},
{1525.9266,2698.9453,18.1719},
{1353.4689,2771.4976,23.7075},
{1221.3684,2762.5022,10.8281},
{1410.9445,2745.6558,10.8203},
{1331.6147,2672.3540,11.2392},
{1275.2719,2698.5974,10.8203},
{1343.5304,2633.9126,10.8203},
{1387.4248,2653.2659,11.3926},
{1331.6147,2672.3540,11.2392},
{1470.8810,2653.5671,23.7359},
{1206.5686,2651.9277,11.0839},
{1466.1915,2666.0515,17.5838},
{1541.6578,2687.9880,10.6719},
{1450.6946,2775.3147,18.8203},
{1421.6222,2773.7112,10.8203},
{1414.9431,2660.9912,11.3926},
{1277.9136,2769.3069,10.8125},
{1277.9136,2769.3069,10.8125}
};
//------------------------- Spawn Arenas 1 e 2 ------------------------------
new Float:SpawnArena12[8][4] =
{
{-975.975708,1060.983032,1345.671875},
{-1019.023559,1090.851806,1342.854003},
{-1084.435668,1095.330078,1343.734008},
{-1126.965820,1095.933227,1345.760375},
{-1132.296752,1039.690795,1345.736572},
{-1083.615356,1025.457153,1342.397583},
{-1050.978027,1022.995849,1343.084106},
{-978.171264,1022.626586,1345.018798}
};
//
new Float:ArenaSpawn[7][4] =
{
{-1423.8059,932.2949,1036.4060},
{-1478.6097,1045.7917,1038.4332},
{-1470.4480,937.9967,1041.5313},
{-1467.8414,939.6113,1041.5313},
{-1478.6097,1045.7917,1038.4332},
{-1469.8282,1022.4857,1028.5208},
{-1469.8282,1022.4857,1028.5208}
};
/*new Float:SpawnArena12[8][4] =
{
{1403.6039,-20.7303,1000.9115},
{1403.1755,-40.1864,1000.9111},
{1387.1953,-41.5255,1000.9209},
{1366.0784,-43.8748,1000.9194},
{1363.5746,-18.8730,1000.9219},
{1364.7920,0.0508,1000.9219},
{1383.9292,1.4257,1000.9206},
{1415.2004,1.5771,1000.9256}
};
//
new Float:ArenaSpawn[7][4] =
{
{-1423.8059,932.2949,1036.4060},
{-1478.6097,1045.7917,1038.4332},
{-1470.4480,937.9967,1041.5313},
{-1467.8414,939.6113,1041.5313},
{-1478.6097,1045.7917,1038.4332},
{-1469.8282,1022.4857,1028.5208},
{-1469.8282,1022.4857,1028.5208}
};*/
new Float:MansaoSpawn[21][4] =
{
{1240.8942,-823.0336,1083.1563},
{1246.3584,-804.2208,1084.0078},
{1275.7397,-792.2087,1089.9375},
{1289.4202,-807.7559,1089.9375},
{1253.0438,-789.6036,1084.0078},
{1296.1429,-785.0903,1084.3906},
{1246.3584,-804.2208,1084.0078},
{1239.7383,-824.0754,1083.1563},
{1290.7281,-832.8505,1085.6328},
{1290.7881,-791.2140,1089.9375},
{1261.8964,-779.8760,1084.0078},
{1234.7560,-756.5303,1084.0150},
{1238.7175,-811.6497,1084.0078},
{1266.4714,-777.4752,1084.0078},
{1266.4714,-777.4752,1084.0078},
{1292.6130,-833.0898,1085.6328},
{1291.7189,-791.8830,1089.9375},
{1243.2913,-777.3005,1084.0078},
{1279.1656,-813.7878,1085.6328},
{1248.1259,-765.6169,1084.0156},
{1248.1259,-765.6169,1084.0156}
};
new Float:CarandiruSpawn[21][4] =
{
{299.3145,1816.6423,4.7109},
{262.7483,1872.1837,8.7578},
{287.5394,1824.0254,7.7340},
{268.8236,1877.2755,-22.2433},
{201.6337,1867.8458,13.1406},
{258.3588,1816.0448,1.0078},
{279.9804,1853.0957,8.7649},
{270.9946,1873.9884,8.7578},
{268.3129,1891.2412,-12.8618},
{282.4180,1818.9545,1.0078},
{255.0745,1802.0884,7.4576},
{211.5162,1812.2902,21.8594},
{291.5552,1818.6350,1.0078},
{245.1145,1862.2501,17.9188},
{248.1983,1859.5115,14.0840},
{280.0650,1830.2251,21.4697},
{314.3972,1847.7451,7.7266},
{254.8282,1807.8705,4.7109},
{268.6401,1884.1721,-30.0938},
{232.1577,1934.8068,25.4985},
{232.1577,1934.8068,25.4985}
};
new Float:ConstSpawn[19][4] =
{
{486.4879,938.1020,-15.6999},
{637.0853,831.7214,-42.9609},
{523.1757,980.4825,-12.2620},
{585.9389,846.4055,-33.9280},
{489.0500,810.1082,1.5483},
{485.6167,960.4558,6.1544},
{477.1761,958.4499,5.1583},
{490.6750,780.8408,-22.0443},
{477.9568,812.2974,-9.2852},
{593.9435,808.6226,-31.0242},
{677.2311,827.1121,-28.1953},
{434.5076,896.9226,2.0584},
{489.7508,810.3144,1.2662},
{709.3614,915.9427,53.6736},
{541.8309,925.7493,-38.8193},
{679.7644,945.5420,-5.8198},
{708.3387,915.1658,-14.2819},
{537.1451,838.0305,-40.1709},
{2537.1451,838.0305,-40.1709}
};
new Float:DPSpawn[11][4] =
{
{209.5451,143.0960,1003.0234},
{207.8663,178.2904,1003.0313},
{288.8350,169.9285,1007.1794},
{259.8425,191.4986,1008.1719},
{208.0656,157.3858,1003.0234},
{238.2673,139.9197,1003.0234},
{216.6250,168.4594,1003.0234},
{264.6811,177.7542,1003.0234},
{191.2464,178.7542,1003.0234},
{239.1744,183.8641,1003.0234},
{239.1744,183.8641,1003.0234}
};
new GunPrice[30][1] =
{
{124}, //parachute
{100}, //golfclub
{75}, //nightstick
{50}, //knife
{175}, //baseballbat
{75}, //shovel
{25}, //poolcue
{100}, //purpledildo
{125}, //eedildo
{125}, //longwhitedildo
{125}, //whitedildo2
{50}, //flowers
{150}, //cane
{250}, //sdpistol
{250}, //colt45
{1000}, //deagle
{500}, //Tec9
{750}, //uzi
{750}, //mp5
{750}, //shotgun
{1500}, //spas12
{1000}, //sawnoff
{800}, //ak47
{800}, //m4
{250}, //rifle
{25}, //pistolammo
{20}, //shotgunammo
{12}, //smgammo
{20}, //assaultammo
{25} //rifle
};
enum iI
{
IncomingIP[16],
IncomingVezes,
IncomingTempo
}
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}},
{"Algum Interior", {104.50,-220.10,2.30,349.60,152.20,200.00}},
{"Algum Interior", {19.60,-404.10,3.80,349.60,-220.10,200.00}},
{"Algum Interior", {-319.60,-220.10,0.00,104.50,293.30,200.00}},
{"Algum Interior", {2087.30,1543.20,-
89.00,2437.30,1703.20,110.90}},
{"Algum Interior", {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}},
{"CranbeRPy 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}},
{"Aeroporto De San Fierro", {-1499.80,-50.00,-0.00,-
1242.90,249.90,200.00}},
{"Aeroporto De San Fierro", {-1794.90,-730.10,-3.00,-1213.90,-
50.00,200.00}},
{"Aeroporto De San Fierro", {-1213.90,-730.10,0.00,-1132.80,-
50.00,200.00}},
{"Aeroporto De San Fierro", {-1242.90,-50.00,0.00,-
1213.90,578.30,200.00}},
{"Aeroporto De San Fierro", {-1213.90,-50.00,-4.50,-
947.90,578.30,200.00}},
{"Aeroporto De San Fierro", {-1315.40,-405.30,15.40,-1264.40,-
209.50,25.40}},
{"Aeroporto De San Fierro", {-1354.30,-287.30,15.40,-1315.40,-
209.50,25.40}},
{"Aeroporto De San Fierro", {-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}},
{"Algum Interior", {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}},
{"Alguma Casa", {2222.50,-1852.80,-89.00,2632.80,-
1722.30,110.90}},
{"Alguma Casa", {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}},
{"Parque Gleen", {1812.60,-1449.60,-89.00,1996.90,-
1350.70,110.90}},
{"Parque Gleen", {1812.60,-1100.80,-89.00,1994.30,-
973.30,110.90}},
{"Parque Gleen", {1812.60,-1350.70,-89.00,2056.80,-
1100.80,110.90}},
{"Alguma Casa", {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}},
{"Aeroporto De Las Venturas", {1236.60,1203.20,-
89.00,1457.30,1883.10,110.90}},
{"Aeroporto De Las Venturas", {1457.30,1203.20,-
89.00,1777.30,1883.10,110.90}},
{"Aeroporto De Las Venturas", {1457.30,1143.20,-
89.00,1777.40,1203.20,110.90}},
{"Aeroporto De Las Venturas", {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}},
{"Liberty City", {-1000.00,400.00,1300.00,-
700.00,600.00,1400.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}},
{"Aeroporto de Los Santos", {1249.60,-2394.30,-89.00,1852.00,-
2179.20,110.90}},
{"Aeroporto de Los Santos", {1852.00,-2394.30,-89.00,2089.00,-
2179.20,110.90}},
{"Aeroporto de Los Santos", {1382.70,-2730.80,-89.00,2201.80,-
2394.30,110.90}},
{"Aeroporto de Los Santos", {1974.60,-2394.30,-39.00,2089.00,-
2256.50,60.90}},
{"Aeroporto de Los Santos", {1400.90,-2669.20,-39.00,2189.80,-
2597.20,60.90}},
{"Aeroporto de Los Santos", {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}},
{"Banco Los Santos", {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 Skaners 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}},
{"Alguma Casa", {-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}},
{"Algum Interior", {-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}}
};
/*new AttachmentBones[][24] = {
{"Coluna"},
{"Cabe�a"},
{"Bra�o esquerdo"},
{"Bra�o direito"},
{"M�o esquerda"},
{"M�o direita"},
{"Coxa esquerda"},
{"Coxa direita"},
{"Pe esquerdo"},
{"Pe direito"},
{"Panturrilha direita"},
{"Panturrilha esquerda"},
{"Antebra�o esquerdo"},
{"Antebra�o direito"},
{"Clavicula esquerda"},
{"Clavicula direita"},
{"Pesco�o"},
{"Mandibula"}
};*/
stock IntLen(iNum)
return floatround(floatlog(floatabs(iNum) + 1), floatround_ceil);
enum Gmorro {
bool:gGuerra,
gDono,
gPontosDono,
gMortes,
gColor,
gDinheiro,
gTempo,
gTimer,
gCash,
};
new Guerramorro[Gmorro];
new GZmorro;
new morroPontos[MAX_ORGS];
stock HideEdPfPlayer(playerid){
for(new x; x < sizeof(j_EdObjTxtT); x++) TextDrawHideForPlayer(playerid,
j_EdObjTxtT[x]);
for(new x; x < 3; x++) PTextHide(playerid, j_EdObjTxtTPly[playerid][x]);
PTextHide(playerid, j_EdObjTxtTPly[playerid][0]);
PTextHide(playerid, j_EdObjTxtTPly[playerid][1]);
PTextHide(playerid, j_EdObjTxtTPly[playerid][2]);
PTextHide(playerid, j_EdObjTxtTPly[playerid][3]);
/*
for(new i; i < j_EdObjTxtT; i++)
{
TextDrawDestroyForPlayer;
}*/
CancelSelectTextDraw(playerid);
return 1;
}
stock jAttAtachj(playerid,jSlotj,Float:X,Float:Y,Float:Z
,Float:rX,Float:rY,Float:rZ ,Float:oX,Float:oY,Float:oZ){
jPosDefj[jSlotj][playerid][0] += X;
jPosDefj[jSlotj][playerid][1] += Y;
jPosDefj[jSlotj][playerid][2] += Z;
jPosDefj[jSlotj][playerid][3] += rX;
jPosDefj[jSlotj][playerid][4] += rY;
jPosDefj[jSlotj][playerid][5] += rZ;
jPosDefj[jSlotj][playerid][6] += oX;
jPosDefj[jSlotj][playerid][7] += oY;
jPosDefj[jSlotj][playerid][8] += oZ;
RemovePlayerAttachedObject(playerid, jSlotj);
SetPlayerAttachedObject(playerid, jSlotj, iSlotObjid[jSlotj][playerid],
iSlotOsso[jSlotj][playerid], jPosDefj[jSlotj][playerid][0],jPosDefj[jSlotj]
[playerid][1],jPosDefj[jSlotj][playerid][2], jPosDefj[jSlotj][playerid]
[3],jPosDefj[jSlotj][playerid][4],jPosDefj[jSlotj][playerid][5], jPosDefj[jSlotj]
[playerid][6],jPosDefj[jSlotj][playerid][7],jPosDefj[jSlotj][playerid][8]);
new arquivo[64];
format(arquivo, sizeof(arquivo), Pasta_CAcessorio,PlayerName(playerid));
new string[20];
new index = jSlotj;
if(fexist(arquivo))
{
DOF2_SetInt(arquivo, "index", jSlotj);
format(string, sizeof(string), "modelid%d", index);
DOF2_SetInt(arquivo, string, iSlotObjid[jSlotj][playerid]);
format(string, sizeof(string), "boneid%d", index);
DOF2_SetInt(arquivo, string, iSlotOsso[jSlotj][playerid]);
format(string, sizeof(string), "fOffsetX%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][0]);
format(string, sizeof(string), "fOffsetY%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][1]);
format(string, sizeof(string), "fOffsetZ%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][2]);
format(string, sizeof(string), "fRotX%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][3]);
format(string, sizeof(string), "fRotY%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][4]);
format(string, sizeof(string), "fRotZ%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][5]);
format(string, sizeof(string), "fScaleX%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][6]);
format(string, sizeof(string), "fScaleY%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][7]);
format(string, sizeof(string), "fScaleZ%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][8]);
format(string, sizeof(string), "modelid%d", index);
DOF2_SetFloat(arquivo, string, iSlotObjid[jSlotj][playerid]);
DOF2_SaveFile();
SendClientMessage(playerid, 0x00e7c6FF, "{00e7c6}�{FFFFFF} Has
colocado un accesorio, para editarlo o guardarlo escribe: {00e7c6}/acessorios.");
}
else
{
DOF2_CreateFile(arquivo);
DOF2_SetInt(arquivo, "index", jSlotj);
format(string, sizeof(string), "modelid%d", index);
DOF2_SetInt(arquivo, string, iSlotObjid[jSlotj][playerid]);
format(string, sizeof(string), "boneid%d", index);
DOF2_SetInt(arquivo, string, iSlotOsso[jSlotj][playerid]);
format(string, sizeof(string), "fOffsetX%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][0]);
format(string, sizeof(string), "fOffsetY%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][1]);
format(string, sizeof(string), "fOffsetZ%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][2]);
format(string, sizeof(string), "fRotX%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][3]);
format(string, sizeof(string), "fRotY%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][4]);
format(string, sizeof(string), "fRotZ%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][5]);
format(string, sizeof(string), "fScaleX%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][6]);
format(string, sizeof(string), "fScaleY%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][7]);
format(string, sizeof(string), "fScaleZ%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][8]);
format(string, sizeof(string), "modelid%d", index);
DOF2_SetFloat(arquivo, string, iSlotObjid[jSlotj][playerid]);
DOF2_SaveFile();
SendClientMessage(playerid, 0x00e7c6FF, "{00e7c6}�{FFFFFF} Has
colocado un accesorio, para editarlo o guardarlo escribe: {00e7c6}/acessorios.");
}
return 1;
}
stock jSetAtachj(playerid,jSlotj,Float:X,Float:Y,Float:Z
,Float:rX,Float:rY,Float:rZ ,Float:oX,Float:oY,Float:oZ){
jPosDefj[jSlotj][playerid][0] = X;
jPosDefj[jSlotj][playerid][1] = Y;
jPosDefj[jSlotj][playerid][2] = Z;
jPosDefj[jSlotj][playerid][3] = rX;
jPosDefj[jSlotj][playerid][4] = rY;
jPosDefj[jSlotj][playerid][5] = rZ;
jPosDefj[jSlotj][playerid][6] = oX;
jPosDefj[jSlotj][playerid][7] = oY;
jPosDefj[jSlotj][playerid][8] = oZ;
RemovePlayerAttachedObject(playerid, jSlotj);
SetPlayerAttachedObject(playerid, jSlotj, iSlotObjid[jSlotj][playerid],
iSlotOsso[jSlotj][playerid], X,Y,Z ,rX,rY,rZ ,oX,oY,oZ);
return 1;
}
/*stock jAttAtachj(playerid,jSlotj,Float:X,Float:Y,Float:Z
,Float:rX,Float:rY,Float:rZ ,Float:oX,Float:oY,Float:oZ){
jPosDefj[jSlotj][playerid][0] += X;
jPosDefj[jSlotj][playerid][1] += Y;
jPosDefj[jSlotj][playerid][2] += Z;
jPosDefj[jSlotj][playerid][3] += rX;
jPosDefj[jSlotj][playerid][4] += rY;
jPosDefj[jSlotj][playerid][5] += rZ;
jPosDefj[jSlotj][playerid][6] += oX;
jPosDefj[jSlotj][playerid][7] += oY;
jPosDefj[jSlotj][playerid][8] += oZ;
RemovePlayerAttachedObject(playerid, jSlotj);
SetPlayerAttachedObject(playerid, jSlotj, iSlotObjid[jSlotj][playerid],
iSlotOsso[jSlotj][playerid], jPosDefj[jSlotj][playerid][0],jPosDefj[jSlotj]
[playerid][1],jPosDefj[jSlotj][playerid][2], jPosDefj[jSlotj][playerid]
[3],jPosDefj[jSlotj][playerid][4],jPosDefj[jSlotj][playerid][5], jPosDefj[jSlotj]
[playerid][6],jPosDefj[jSlotj][playerid][7],jPosDefj[jSlotj][playerid][8]);
new arquivo[64];
format(arquivo, sizeof(arquivo), Pasta_CAcessorio,PlayerName(playerid));
new string[20];
new index = jSlotj;
if(fexist(arquivo))
{
DOF2_SetInt(arquivo, "index", jSlotj);
format(string, sizeof(string), "modelid%d", index);
DOF2_SetInt(arquivo, string, iSlotObjid[jSlotj][playerid]);
format(string, sizeof(string), "boneid%d", index);
DOF2_SetInt(arquivo, string, iSlotOsso[jSlotj][playerid]);
format(string, sizeof(string), "fOffsetX%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][0]);
format(string, sizeof(string), "fOffsetY%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][1]);
format(string, sizeof(string), "fOffsetZ%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][2]);
format(string, sizeof(string), "fRotX%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][3]);
format(string, sizeof(string), "fRotY%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][4]);
format(string, sizeof(string), "fRotZ%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][5]);
format(string, sizeof(string), "fScaleX%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][6]);
format(string, sizeof(string), "fScaleY%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][7]);
format(string, sizeof(string), "fScaleZ%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][8]);
format(string, sizeof(string), "modelid%d", index);
DOF2_SetFloat(arquivo, string, iSlotObjid[jSlotj][playerid]);
// SendClientMessage(playerid, 0x00e7c6FF, "{00e7c6}�{FFFFFF} Voce
colocou um acessorio, para edita-lo ou guarda-lo digite: {00e7c6}/acessorios.");
}
else
{
DOF2_CreateFile(arquivo);
DOF2_SetInt(arquivo, "index", jSlotj);
format(string, sizeof(string), "modelid%d", index);
DOF2_SetInt(arquivo, string, iSlotObjid[jSlotj][playerid]);
format(string, sizeof(string), "boneid%d", index);
DOF2_SetInt(arquivo, string, iSlotOsso[jSlotj][playerid]);
format(string, sizeof(string), "fOffsetX%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][0]);
format(string, sizeof(string), "fOffsetY%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][1]);
format(string, sizeof(string), "fOffsetZ%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][2]);
format(string, sizeof(string), "fRotX%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][3]);
format(string, sizeof(string), "fRotY%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][4]);
format(string, sizeof(string), "fRotZ%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][5]);
format(string, sizeof(string), "fScaleX%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][6]);
format(string, sizeof(string), "fScaleY%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][7]);
format(string, sizeof(string), "fScaleZ%d", index);
DOF2_SetFloat(arquivo, string, jPosDefj[jSlotj][playerid][8]);
format(string, sizeof(string), "modelid%d", index);
DOF2_SetFloat(arquivo, string, iSlotObjid[jSlotj][playerid]);
// SendClientMessage(playerid, 0x00e7c6FF, "{00e7c6}�{FFFFFF} Voce
colocou um acessorio, para edita-lo ou guarda-lo digite: {00e7c6}/acessorios.");
}
return 1;
}*/
//Guerra morro
stock Orgmorro(orgid){
switch(orgid)
{
case 1,2,5,11,15,18,19,23,17:return 1;
}
return 0;
}
stock gPlayerInGuerra(playerid)
{
if(!Guerramorro[gGuerra])return 0;
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
if(x >= 2058.892089 && y >= -1149.080200 && x <= 2492.892089 && y <= -
827.080200) return 1;
else return 0;
}
//------------------------- Sistema de grafites personalizados
-----------------------
#define MAX_GRAFTEXT (64)
enum grafite_Info
{
bool: grafiteCreated,
Float: grafiteX,
Float: grafiteY,
Float: grafiteZ,
Float: grafiteRX,
Float: grafiteRY,
Float: grafiteRZ,
Text3D: grafiteText,
grafiteTexto[120],
grafiteCor,
grafiteFonte,
grafiteObject,
grafiteNick [MAX_PLAYER_NAME + 1],
};
enum obj_info
{
bool: objCreated,
Float: objX,
Float: objY,
Float: objZ,
Float: objRX,
Float: objRY,
Float: objRZ,
objTexto[50],
objCor,
objFonte,
objCorF,
objObject,
objNick [MAX_PLAYER_NAME + 1],
};
enum concecionaria_info
{
};
new GrafiteInfo[MAX_GRAFTEXT][grafite_Info];
new EditandoGrafite[MAX_PLAYERS];
new graf[MAX_PLAYERS];
//new objInfo[MAX_GRAFTEXT][obj_info];
//new EditandoObj[MAX_PLAYERS];
//new obj[MAX_PLAYERS];
//------------------------- Sistema de port�o individual -----------------------
/*enum editor_Info
{
Float: editorXANT,
Float: editorYANT,
Float: editorZANT,
Float: editoRPXANT,
Float: editoRPYANT,
Float: editoRPZANT,
Float: editorX,
Float: editorY,
Float: editorZ,
Float: editoRPX,
Float: editoRPY,
Float: editoRPZ,
editorObject,
editorNick [MAX_PLAYER_NAME + 1],
};
new EditorMobile[MAX_PLAYERS][editor_Info];*/
/*enum caixass
{
CaixaDono[40],
CaixaText[300],
Text3D:Caixa3d,
CaixaObj,
CaixaInterior,
CaixaMundo,
Float:CaixaX,
Float:CaixaY,
Float:CaixaZ,
Float:CaixaRX,
Float:CaixaRY,
Float:CaixaRZ,
CaixaItem[50],
CaixaUnidades[50]
}
new SistemaCaixa[221][caixass];*/
/*#define MAX_GBOX 50
enum gunbox_Info
{
bool: gbCreated,
Float: gbX,
Float: gbY,
Float: gbZ,
Float: gbRX,
Float: gbRY,
Float: gbRZ,
Text3D: gbText,
gbObject,
gbNick [MAX_PLAYER_NAME + 1],
};
new GBInfo[MAX_GBOX][gunbox_Info];*/
//------------------------- Sistema de C�mera ----------------------------------
enum Camrea
{
bool:air,
cameraman,
audience,
Float:campostion[4],
tup
};
new bool:player_viewer[200];
new CameraInfo[Camrea];
new CPU[200];
new BizzEntred[MAX_PLAYERS];
//------------------------- Sistema de Fazendas Sem Interior -------------------
enum fbInfo
{
fbOwned,
fbOwner[64],
fbDate,
fbMessage[255],
fbExtortion[MAX_PLAYER_NAME],
Float:fbEntranceX,
Float:fbEntranceY,
Float:fbEntranceZ,
fbDiscription[128],
fbLevelNeeded,
fbBuyPrice,
fbEntranceCost,
fbTill,
fbTakings,
fbLocked,
fbFundos,
fbNome[528],
fbProducts,
fbMaxProducts,
fbProductsReq,
fbPriceProd,
};
new FBizzInfo[MAX_FBIZZES][fbInfo];
/*enum e2Info3
{
Float:ePos1,
Float:ePos2,
Float:ePos3,
Float:eRot1,
Float:eRot2,
Float:eRot3,
Float:eACCPos1,
Float:eACCPos2,
Float:eACCPos3,
Float:eACCRot1,
Float:eACCRot2,
Float:eACCRot3,
eVelocidade,
eEditando,
}
new EditorMobile[MAX_PLAYERS][e2Info3];*/
enum fInfo{
fID,
fName[24],
fLeader[24],
fSubLeader[24],
Float:fSpawnX,
Float:fSpawnY,
Float:fSpawnZ,
fInt,
fWorld,
fMoney,
fTime,
fVIP,
fPickup,
Text3D:fText,
fVehicle[5],
Float:fVehicleX[5],
Float:fVehicleY[5],
Float:fVehicleZ[5],
Float:fVehicleA[5],
fVehicleInt[5],
fVehicleWorld[5],
fVehicleID[5],
fVehicleColor1[5],
fVehicleColor2[5],
fIntVIP,
fGaragemUS,
fGaragemCriada,
Float:fGaragemX,
Float:fGaragemY,
Float:fGaragemZ,
Text3D:fGaragem3D,
fGaragemPickup
};
new FamiliaInfo[MAX_FAMILIAS][fInfo];
new MemberList[MAX_FAMILIAS][MAX_MEMBERS][25];
new FamiliaSel[MAX_PLAYERS][MAX_FAMILIAS];
//new bool:acontecendotrade;
new VeiculoPessoal[MAX_PLAYERS];
print("~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~");
}
static stock CreateCaixa(objectid, Float:x, Float:y, Float:z, Float:rotx,
Float:roty, Float:rotz)
{
if(caixaid >= MAX_CAIXAS)return 0;
CaixaInfo[caixaid][Caixa_Object] = CreateDynamicObject(objectid, x, y, z, rotx,
roty, rotz);
CaixaInfo[caixaid][Caixa_Dinheiro] = 0;
CaixaInfo[caixaid][Caixa_Roubada] = false;
new Float:pX, Float:pY, Float:pZ;
GetDynamicObjectPos(CaixaInfo[caixaid][Caixa_Object], pX, pY, pZ);
GetXYInFrontOfCaixa(CaixaInfo[caixaid][Caixa_Object], pX, pY, 1.0);
CaixaInfo[caixaid][Caixa_Pickup] = CreatePickup(1274 , 1, pX,pY,pZ);
CaixaInfo[caixaid][Caixa_Text] = Create3DTextLabel("{FFFF00}Caixa Eletr�nico\
n{FFFF00}Aperte '{0000FF}ENTER{FFFF00}' para acessar", 0xFFFF00F4, pX, pY, pZ,
15.0, 0);
caixaid ++;
return true;
}
static stock GetPlayerCaixa(playerid)
{
new Float:px, Float:py, Float:pz;
//Sistema de Port�es
createPortao(playerid, modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry,
Float:rz, nick[], senha[]){
SetPVarInt(playerid, "editPortao", -1);
for(new p; p != MAX_PORTAO; p++){
if(!PortaoInfo[p][portaoCreated]){
static Str[240];
PortaoInfo[p][portaoCreated] = true;
PortaoInfo[p][portaoX] = x;
PortaoInfo[p][portaoY] = y;
PortaoInfo[p][portaoZ] = z;
PortaoInfo[p][portaoRX] = rx;
PortaoInfo[p][portaoRY] = ry;
PortaoInfo[p][portaoRZ] = rz;
PortaoInfo[p][portaoID] = modelid;
format(PortaoInfo[p][portaoNick], MAX_PLAYER_NAME, nick);
// format(PortaoInfo[p][portaoSenha], MAX_PLAYER_NAME, senha);
strmid(PortaoInfo[p][portaoSenha],senha,0,strlen(senha), 24);
//SendClientMessage(playerid, COR_KING, "INFO: {ffffff}O seu Port�o
abrira com qualquer senha! Para criar uma senha digite: /portaosenha [Nova
Senha].");
// format(stringZCMD,sizeof(stringZCMD),"%s",senha);
//ForT:portaosenha(playerid, senha);
PortaoInfo[p][portaoObject] = CreateDynamicObject(modelid, x, y,
z, rx, ry, rz); //980
format(Str, sizeof Str, "{ffffff}ID do Port�o: {33CCFF}%d\
n{FFFFFF}Dono do Port�o: {33CCFF}%s\n{FFFFFF}Use: {33CCFF}/abrirportao{FFFFFF} para
abrir!", p,nick);
PortaoInfo[p][portaoText] = CreateDynamic3DTextLabel(Str,
COR_LIGHTBLUE, x, y, z, 25.0);
//strmid(PortaoInfo[p][portaoSenha],senha,0,strlen(senha),
MAX_PLAYER_NAME);
SetPVarInt(playerid, "editPortao", p);
return p;
}
}
return 0;
}
//58785
portaoAbrir(playerid, senha[], p)
{
if(strcmp(senha, PortaoInfo[p][portaoSenha], true) == 0)
{
if(PortaoInfo[p][portaoVelocidade] <= 0.0)
{
MoveDynamicObject(PortaoInfo[p][portaoObject], PortaoInfo[p]
[portaoX], PortaoInfo[p][portaoY], PortaoInfo[p][portaoZ]-10.0, 5.0);
}
else
{
MoveDynamicObject(PortaoInfo[p][portaoObject], PortaoInfo[p]
[portaoX], PortaoInfo[p][portaoY], PortaoInfo[p][portaoZ]-10.0, PortaoInfo[p]
[portaoVelocidade]);
}
SetTimerEx("voltarPortao", 5000, 0, "i", p);
SendClientMessage(playerid, COR_LIGHTBLUE, "* Has abierto el porton.");
//ShowAlertaInv(playerid, "Senha correta: Voce abriu um portao, ele
fechara em 5 segundos!");
}
else{
SendClientMessage(playerid, COR_KING, "ERROR:{FFFFFF} La contrase�a del
porton es incorrecta.!");
}
}
salvarObjetos(){
static file[78];
/* //new Query[200];
format(Query, sizeof(Query), "SELECT * FROM `objetos` WHERE `id`='%d'",
x);
Resultado = db_query(Conexao,Query);
if(db_num_rows(Resultado) > 0 && !ObjetoInfo[x][objetoCreated])
{
format(Query, sizeof(Query), "DELETE FROM `objetos` WHERE
`id`='%d'", x);
Resultado = db_query(Conexao,Query);
}*/
if(ObjetoInfo[x][objetoCreated]){
/* new StRP2[180];
format(StRP2, sizeof StRP2, "SELECT * FROM objetos WHERE
Dono='%s'", ObjetoInfo[x][objetoNick]);
//mysql_query(sqlconn, StRP2);
if(!fexist(file)){
DOF2_CreateFile(file);
}
CarregarObjetos(){
static
file[78],
Str[210],
count = 0;
for(new x; x != MAX_OBJETOS; x++){
ObjetoInfo[x][objetoCreated] = false;
ObjetoInfo[x][objetoCreated] = true;
ObjetoInfo[x][objetoX] = DOF2_GetFloat(file, "objetoX");
ObjetoInfo[x][objetoY] = DOF2_GetFloat(file, "objetoY");
ObjetoInfo[x][objetoZ] = DOF2_GetFloat(file, "objetoZ");
ObjetoInfo[x][objetoRX] = DOF2_GetFloat(file, "objetoRX");
ObjetoInfo[x][objetoRY] = DOF2_GetFloat(file, "objetoRY");
ObjetoInfo[x][objetoRZ] = DOF2_GetFloat(file, "objetoRZ");
format(ObjetoInfo[x][objetoNick], 30, DOF2_GetString(file,
"objetoNick"));
format(ObjetoInfo[x][materialNome], 127, DOF2_GetString(file,
"materialNome"));
ObjetoInfo[x][objetoID] = DOF2_GetInt(file, "objetoID");
ObjetoInfo[x][materialTamanho] = DOF2_GetInt(file,
"materialTamanho");
ObjetoInfo[x][materialCORTexto] = DOF2_GetInt(file,
"materialCORTexto");
ObjetoInfo[x][materialCORFundo] = DOF2_GetInt(file,
"materialCORFundo");
ObjetoInfo[x][materialNegrito] = DOF2_GetInt(file,
"materialNegrito");
ObjetoInfo[x][materialAling] = DOF2_GetInt(file,
"materialAling");
ObjetoInfo[x][materialFonte] = DOF2_GetInt(file,
"materialFonte");
ObjetoInfo[x][objetoObject] = CreateObject(ObjetoInfo[x][objetoID],
ObjetoInfo[x][objetoX],
ObjetoInfo[x][objetoY],
ObjetoInfo[x][objetoZ],
ObjetoInfo[x][objetoRX],
ObjetoInfo[x][objetoRY],
ObjetoInfo[x][objetoRZ]);
CarregarFamilias(){
new
file[78],
Str[200],
idx = 0
;
while(idx < MAX_FAMILIAS){
if(FamiliaInfo[idx][fSpawnX] != 0.0)
{
FamiliaInfo[idx][fPickup] = CreateDynamicPickup(1314, 23,
FamiliaInfo[idx][fSpawnX], FamiliaInfo[idx][fSpawnY], FamiliaInfo[idx][fSpawnZ]);
if(FamiliaInfo[f][fGaragemCriada] == 1)
{
FamiliaInfo[idx][fGaragemPickup] = CreateDynamicPickup(19133, 23,
FamiliaInfo[idx][fGaragemX], FamiliaInfo[idx][fGaragemY], FamiliaInfo[idx]
[fGaragemZ]);
LinkVehicleToInterior(FamiliaInfo[idx][fVehicleID][veh],
FamiliaInfo[idx][fVehicleInt][veh]);
SetVehicleVirtualWorld(FamiliaInfo[idx][fVehicleID][veh],
FamiliaInfo[idx][fVehicleWorld][veh]);
CarregarFamilia(idx)
{
new file[80], Str[200];
format(file, sizeof file, "Players/Familias/Familia%d.ini", idx);
if(fexist(file))
{
FamiliaInfo[idx][fID] = DOF2_GetInt(file, "ID");
FamiliaInfo[idx][fPickup] = -1;
format(FamiliaInfo[idx][fName], 24, DOF2_GetString(file, "Name"));
format(FamiliaInfo[idx][fLeader], 24, DOF2_GetString(file, "Leader"));
format(FamiliaInfo[idx][fSubLeader], 24, DOF2_GetString(file,
"SubLeader"));
if(FamiliaInfo[idx][fSpawnX] != 0.0)
{
FamiliaInfo[idx][fPickup] = CreateDynamicPickup(1314, 23,
FamiliaInfo[idx][fSpawnX], FamiliaInfo[idx][fSpawnY], FamiliaInfo[idx][fSpawnZ]);
new f = idx;
FamiliaInfo[f][fGaragemCriada] = DOF2_GetInt(file, "fGaragemCriada");
FamiliaInfo[f][fIntVIP] = DOF2_GetInt(file, "fIntVIP");
FamiliaInfo[f][fGaragemUS] = DOF2_GetInt(file, "fGaragemUS");
FamiliaInfo[f][fGaragemX] = DOF2_GetFloat(file, "fGaragemX");
FamiliaInfo[f][fGaragemY] = DOF2_GetFloat(file, "fGaragemY");
FamiliaInfo[f][fGaragemZ] = DOF2_GetFloat(file, "fGaragemZ");
if(FamiliaInfo[f][fGaragemCriada] == 1)
{
FamiliaInfo[idx][fGaragemPickup] = CreateDynamicPickup(19133, 23,
FamiliaInfo[idx][fSpawnX], FamiliaInfo[idx][fSpawnY], FamiliaInfo[idx][fSpawnZ]);
LinkVehicleToInterior(FamiliaInfo[idx][fVehicleID][veh],
FamiliaInfo[idx][fVehicleInt][veh]);
SetVehicleVirtualWorld(FamiliaInfo[idx][fVehicleID][veh],
FamiliaInfo[idx][fVehicleWorld][veh]);
salvarFamilias(){
if(fexist(file)){
DOF2_SaveFile();
//SFT_Monitoramento("[Soft de Monitoramento] Uma familia do servidor
foi salva no banco de dados.", 2);
}
}
}
salvarFamilia(f){
if(fexist(file)){
new stringfml[100];
format(stringfml, sizeof(stringfml), "O Jogador %s fundou a familia %s",
PlayerName(playerid), familianame);
GravarLog("Logs/criacaofamilia.ini", stringfml);
new
file[78],
Str[528],
f = 1
;
while(f < MAX_FAMILIAS)
{
format(file, sizeof file, "Players/Familias/Familia%d.ini", f);
if(!fexist(file))
{
DOF2_CreateFile(file);
PlayerInfo[playerid][pFamiliaID] = f;
PlayerInfo[playerid][pFamiliaLeader] = f;
DOF2_SaveFile();
FamiliaInfo[f][fMoney] = 5000;
FamiliaInfo[f][fVIP] = 1;
ComponemtesBHC(componentid)
{
new i;
for(i = 0; i < 20; ++i)
{
if(spoiler[i][0] == componentid) { return 1; }
}
for(i = 0; i < 3; ++i)
{
if(nitro[i][0] == componentid) { return 2; }
}
for(i = 0; i < 22; ++i)
{
if(BumperF[i][0] == componentid) { return 3; }
}
for(i = 0; i < 22; ++i)
{
if(BumpeRP[i][0] == componentid) { return 4; }
}
for(i = 0; i < 28; ++i)
{
if(Nitro[i][0] == componentid) { return 5; }
}
for(i = 0; i < 2; ++i)
{
if(EntradaR[i][0] == componentid) { return 6; }
}
for(i = 0; i < 2; ++i)
{
if(EntradaL[i][0] == componentid) { return 7; }
}
for(i = 0; i < 4; ++i)
{
if(BSTeto[i][0] == componentid) { return 8; }
}
for(i = 0; i < 13; ++i)
{
if(RSTeto[i][0] == componentid) { return 9; }
}
for(i = 0; i < 21; ++i)
{
if(LSkirt[i][0] == componentid) { return 10; }
}
for(i = 0; i < 21; ++i)
{
if(RSkirt[i][0] == componentid) { return 11; }
}
if(Hidraulica[0][0] == componentid) { return 12; }
if(Base[0][0] == componentid) { return 13; }
for(i = 0; i < 2; ++i)
{
if(RBBarras[i][0] == componentid) { return 14; }
}
for(i = 0; i < 2; ++i)
{
if(FBBarras[i][0] == componentid) { return 15; }
}
for(i = 0; i < 17; ++i)
{
if(Rodas[i][0] == componentid) { return 16; }
}
for(i = 0; i < 2; ++i)
{
if(Luzes[i][0] == componentid) { return 17; }
}
return 0;
}
/*RP::InvalidPlayer(playerid, playerid2)
{
if(playerid2 == INVALID_PLAYER_ID)
{
SendClientMessage(playerid, COR_KING, "ERRO:{FFFFFF} N�o foi encontrado
nenhum Jogador ON-Line com este ID/Nick!");
return 1;
}
return 0;
}*/
RP::Atualizarrank()
{
//print("RANK: Informacion del rank(Top Player) esta siendo actualizada...");
SendClientMessageToAll(0xFF6347FF, "RANK: Informacion del rank(Top Player)
esta siendo actualizada...");
foreach(new i: Player)
{
if(gPlayerLogged[i])
{
new Drogas, Drogas2, Drogas3, Drogas4;
for(new inv=0; inv<75; inv++) // Inventario
{
if(InventarioInfo[i][inv][iSlot] == 1578)
{
Drogas += InventarioInfo[i][inv][iUnidades];
}
if(InventarioInfo[i][inv][iSlot] == 1279)
{
Drogas2 += InventarioInfo[i][inv][iUnidades];
}
if(InventarioInfo[i][inv][iSlot] == 1575)
{
Drogas3 += InventarioInfo[i][inv][iUnidades];
}
if(InventarioInfo[i][inv][iSlot] == 1576)
{
Drogas4 += InventarioInfo[i][inv][iUnidades];
}
}
checkrank("nivel", PlayerName(i), PlayerInfo[i]
[pLevel]);
checkrank("horasjogadas", PlayerName(i), PlayerInfo[i]
[pConnectTime]);
checkrank("kills", PlayerName(i), PlayerInfo[i]
[pKills]);
checkrank("mortes", PlayerName(i), PlayerInfo[i]
[pDeaths]);
checkrank("banco", PlayerName(i), PlayerInfo[i]
[pConta]);
checkrank("crimes", PlayerName(i), PlayerInfo[i]
[pCrimes]);
// checkrank("materiais", PlayerName(i), PlayerInfo[i]
[pMats]+PlayerInfo[i][psMats]);
checkrank("maconha", PlayerName(i), Drogas+PlayerInfo[i]
[pSafeDrogas]);
checkrank("cocaina", PlayerName(i),
Drogas2+PlayerInfo[i][pSafeDrogas2]);
checkrank("crack", PlayerName(i),
Drogas3+PlayerInfo[i][pSafeDrogas3]);
checkrank("lsd", PlayerName(i), Drogas4+PlayerInfo[i]
[pSafeDrogas4]);
// checkrank("maisativo", PlayerName(i), TempoOnline[i]);
checkrank("contratos", PlayerName(i), PlayerInfo[i]
[pCacador]);
}
}
//print("[Ranking]: Rank actualizado, para ver la lista escribe: (/rank)!");
SendClientMessageToAll(0xFF6347FF, "[Ranking]:{B4B5B7} Rank actualizado, para
ver la lista escribe: ({04B404}/rank{B4B5B7})!");
return 1;
}
RP::InviteFamilia(invited[], familiaid)
{
new gArchive[64], iString[64];
format(gArchive, 64, "Players/Familias/Familia%d.ini", familiaid);
for(new i; i < MAX_MEMBERS; ++i)
{
if(strcmp(MemberList[familiaid][i], "Nadie", true) == 0)
{
format(MemberList[familiaid][i], 25, invited);
format(iString, 64, "Member%d", i);
DOF2_SetString(gArchive, iString, invited);
DOF2_SaveFile();
salvarFamilias();
return 1; //break;
}
}
return 1;
}
RP::ClearMember(expulsed, familiaid)
{
new iString[128];
for(new i; i < MAX_MEMBERS; ++i)
{
if(strcmp(PlayerName(expulsed), MemberList[familiaid][i], true) == 0)
{
if(PlayerInfo[expulsed][pFamiliaSubLeader] == -
1){
format(iString, 64, "Member%d", i);
format(MemberList[familiaid][i], 500,
"Nadie");
}
}
}
if(PlayerInfo[expulsed][pFamiliaSubLeader] != -1)
{
format(FamiliaInfo[PlayerInfo[expulsed][pFamiliaSubLeader]]
[fSubLeader], 500, "Nadie");
}
PlayerInfo[expulsed][pFamiliaID] = -1;
PlayerInfo[expulsed][pFamiliaSubLeader] = -1;
PlayerInfo[expulsed][pFamiliaLeader] = -1;
PlayerInfo[expulsed][pSpawnCasa] = 0;
salvarFamilias();
return 1;
}
RP::ClearMemberSub2(expulsed, familiaid)
{
new iString[128];
for(new i; i < MAX_MEMBERS; ++i)
{
if(strcmp(PlayerName(expulsed), MemberList[familiaid][i], true) == 0)
{
if(PlayerInfo[expulsed][pFamiliaSubLeader] == -
1){
format(iString, 64, "Member%d", i);
format(MemberList[familiaid][i], 500,
"Nadie");
}
}
}
salvarFamilias();
return 1;
}
new garagemname[20];
if(FamiliaInfo[familiaid][fGaragemCriada] == 1) format(garagemname,
sizeof(garagemname), "{ffffff}SIM");
else if(FamiliaInfo[familiaid][fGaragemCriada] == 0) format(garagemname,
sizeof(garagemname), "{ffffff}N�o");
format(fString, 128, "{aaacae}Interior: {FFFFFF}%s\n", interiorname);
strcat(MEGAString, fString);
format(fString, 128, "{aaacae}Garagem: {FFFFFF}%s\n", garagemname);
strcat(MEGAString, fString);
format(fString, 128, "{aaacae}Coordenadas: {FFFFFF}X:%f, Y:%f, Z:%f\n\n\n",
FamiliaInfo[familiaid][fSpawnX], FamiliaInfo[familiaid][fSpawnY],
FamiliaInfo[familiaid][fSpawnZ]);
strcat(MEGAString, fString);
if(FamiliaInfo[familiaid][fVehicle][i] == 0)
format(text, 25, "Nenhum");
//Nomedosveiculos[FamiliaInfo[familiaid][fVehicle][i] - 400]
else
format(text, 25, Nomedosveiculos[FamiliaInfo[familiaid][fVehicle]
[i] - 400]); //Nomedosveiculos[FamiliaInfo[familiaid][fVehicle][i] - 400]
strcat(MEGAString, "\n{ffffff}Membros:\n");
for(new i; i < MAX_MEMBERS; i++){
/*stock CountFamilias()
{
new count = 0, file[78];
for(new f; f != MAX_FAMILIAS; f++){
format(file, sizeof file, "Players/Familias/Familia%d.ini", f);
if(fexist(file)){
count++;
}
}
return count;
}
stock CountBaus()
{
new count = 0, file[78];
for(new f; f != 1000; f++){
format(file, sizeof file, "Players/Baus/Caixa_%d.ini", f);
if(fexist(file)){
count++;
}
}
return count;
}
stock CountPortoes()
{
new count = 0, file[78];
for(new f; f != MAX_PORTAO; f++){
format(file, sizeof file, "Players/SistemaPortoes/Portao_%d.ini", f);
if(fexist(file)){
count++;
}
}
return count;
}
*/
RP::TempoNickB2(playerid)
{
new random2 = random(21);
new random3;
if(random2 == 0) { random3 = 0xffff00ff; }
else if(random2 == 1) { random3 = 0x00ffffff; }
else if(random2 == 2) { random3 = 0xff00ffff; }
else if(random2 == 3) { random3 = 0x00ff00ff; }
else if(random2 == 4) { random3 = 0x33CCFFff; }
else if(random2 == 5) { random3 = 0x33CCFFff; }
else if(random2 == 6) { random3 = 0x228b22ff; }
else if(random2 == 7) { random3 = 0x8fd5fcff; }
else if(random2 == 8) { random3 = 0x00ff00ff; }
else if(random2 == 9) { random3 = 0x00ffffff; }
else if(random2 == 10) { random3 = 0x4B0082FF; }
else if(random2 == 11) { random3 = 0xFF1493FF; }
else if(random2 == 12) { random3 = 0xB22222FF; }
else if(random2 == 13) { random3 = 0xFFFF00FF; }
else if(random2 == 14) { random3 = 0xFF4500FF; }
else if(random2 == 15) { random3 = 0xDC143CFF; }
else if(random2 == 16) { random3 = 0xA020F0FF; }
else if(random2 == 17) { random3 = 0x8B4513FF; }
else if(random2 == 18) { random3 = 0x7FFF00FF; }
else if(random2 == 19) { random3 = 0x00FF7FFF; }
else if(random2 == 20) { random3 = 0x008080FF; }
else if(random2 == 21) { random3 = 0x1C1C1CFF; }
SetPlayerColor(playerid, random3);
return 1;
}
RP::TempoNickB22(playerid)
{
new vid = GetPlayerVehicleID(playerid);
if(GetPlayerState(playerid) == 2 && IsPlayerInAnyVehicle(playerid))
{
new ramdoncorv1 = random(255);
new ramdoncorv2 = random(255);
ChangeVehicleColor(vid, ramdoncorv1, ramdoncorv2);
}
return 1;
}
RP::AtivarCarroB(playerid)
{
TimeNickB2[playerid] = SetTimerEx("TempoNickB22", 100, 1, "i", playerid);
NickBrilhosoAtivo2[playerid] = true;
// return 1;
}
RP::DesativarCarroB(playerid)
{
if(NickBrilhosoAtivo2[playerid] == true)
{
NickBrilhosoAtivo2[playerid] = false;
KillTimer(TimeNickB2[playerid]);
}
// return 1;
}
RP::AtivarNickB(playerid)
{
TimeNickB[playerid] = SetTimerEx("TempoNickB2", 100, 1, "i", playerid);
NickBrilhosoAtivo[playerid] = true;
// return 1;
}
RP::DesativarNickB(playerid)
{
if(NickBrilhosoAtivo[playerid] == true)
{
NickBrilhosoAtivo[playerid] = false;
KillTimer(TimeNickB[playerid]);
}
// return 1;
}
stock SalvarVeiculosConce(playerid)
{
if(gPlayerLogged[playerid])
{
if(VeiculoInfo[playerid][vDono] == 1)
{
new DOF2[200];
format(DOF2, sizeof(DOF2), "Players/Carros/%s.ini",
PlayerName(playerid));
if(!fexist(DOF2)) DOF2_CreateFile(DOF2);
//DOF2_SetInt(DOF2, "Dono", VeiculoInfo[playerid][vDono]);
DOF2_SetInt(DOF2, "Id", VeiculoInfo[playerid][vId]);
DOF2_SetInt(DOF2, "ComTexto", VeiculoInfo[playerid]
[vContexto]);
DOF2_SetString(DOF2, "TextoLadoCarro", VeiculoInfo[playerid]
[vTextoVehicle]);
DOF2_SetInt(DOF2, "Slot1", VeiculoInfo[playerid][vSlot1]);
DOF2_SetInt(DOF2, "Slot2", VeiculoInfo[playerid][vSlot2]);
DOF2_SetInt(DOF2, "Slot3", VeiculoInfo[playerid][vSlot3]);
DOF2_SetInt(DOF2, "Slot4", VeiculoInfo[playerid][vSlot4]);
DOF2_SetInt(DOF2, "Unidade1", VeiculoInfo[playerid]
[vUnidade1]);
DOF2_SetInt(DOF2, "Unidade2", VeiculoInfo[playerid]
[vUnidade2]);
DOF2_SetInt(DOF2, "Unidade3", VeiculoInfo[playerid]
[vUnidade3]);
DOF2_SetInt(DOF2, "Unidade4", VeiculoInfo[playerid]
[vUnidade4]);
DOF2_SetInt(DOF2, "PaintJob", VeiculoInfo[playerid][vPaint]);
DOF2_SetInt(DOF2, "Nitros", VeiculoInfo[playerid][vNitro]);
DOF2_SetInt(DOF2, "Spolier", VeiculoInfo[playerid]
[vSpolier]);
DOF2_SetInt(DOF2, "Roda", VeiculoInfo[playerid][vRoda]);
DOF2_SetInt(DOF2, "Preco", VeiculoInfo[playerid][vPreco]);
DOF2_SetInt(DOF2, "BumperF", VeiculoInfo[playerid]
[vBumperF]);
DOF2_SetInt(DOF2, "BumpeRP", VeiculoInfo[playerid]
[vBumperR]);
DOF2_SetInt(DOF2, "EntradaR", VeiculoInfo[playerid]
[vEntradaR]);
DOF2_SetInt(DOF2, "EntradaL", VeiculoInfo[playerid]
[vEntradaL]);
DOF2_SetInt(DOF2, "BSTeto", VeiculoInfo[playerid][vBSTeto]);
DOF2_SetInt(DOF2, "RSTeto", VeiculoInfo[playerid][vRSTeto]);
DOF2_SetInt(DOF2, "LSkirt", VeiculoInfo[playerid][vLSkirt]);
DOF2_SetInt(DOF2, "RSkirt", VeiculoInfo[playerid][vRSkirt]);
DOF2_SetInt(DOF2, "Hidraulica", VeiculoInfo[playerid]
[vHidraulica]);
DOF2_SetInt(DOF2, "RBBarras", VeiculoInfo[playerid]
[vRBBarras]);
DOF2_SetInt(DOF2, "FBBarras", VeiculoInfo[playerid]
[vFBBarras]);
DOF2_SetInt(DOF2, "Cor1", VeiculoInfo[playerid][vCor1]);
DOF2_SetString(DOF2, "Placa", VeiculoInfo[playerid][vPlaca]);
DOF2_SetInt(DOF2, "Cor2", VeiculoInfo[playerid][vCor2]);
DOF2_SetInt(DOF2, "Gasolina", VeiculoInfo[playerid][vGas]);
DOF2_SetInt(DOF2, "Modelo", VeiculoInfo[playerid][vModelo]);
DOF2_SetFloat(DOF2, "Pos1", VeiculoInfo[playerid][vPos1]);
DOF2_SetFloat(DOF2, "Pos2", VeiculoInfo[playerid][vPos2]);
DOF2_SetFloat(DOF2, "Pos3", VeiculoInfo[playerid][vPos3]);
DOF2_SetInt(DOF2, "Trancado", VeiculoInfo[playerid]
[vTrancado]);
DOF2_SetInt(DOF2, "Estacionou", VeiculoInfo[playerid]
[vEstacionou]);
DOF2_SetFloat(DOF2, "Rot", VeiculoInfo[playerid][vRot]);
DOF2_SetInt(DOF2, "Preso", VeiculoInfo[playerid][vPreso]);
DOF2_SetInt(DOF2, "Multas", VeiculoInfo[playerid][vMultas]);
DOF2_SaveFile();
}
else if(VeiculoInfo[playerid][vDono] == 0)
{
new DOF2[200];
format(DOF2, sizeof(DOF2), "Players/Carros/%s.ini",
PlayerName(playerid));
if(fexist(DOF2)) fremove(DOF2);
}
}
return 0;
}
stock VenderVeiculo(playerid)
{
/* if(PlayerToPoint(5.0, playerid, Pos[0], Pos[1], Pos[2]))
{*/
if(VeiculoInfo[playerid][vDono] == 1 && PlayerToPoint(5.0, playerid,
960.9919,2098.9656,1011.0243))
{
if(VeiculoInfo[playerid][vPreso] == 1)
{
SendClientMessage(playerid, COR_KING, "ERRO:{FFFFFF} O seu
Veiculo esta preso no Patio DETRAN! Retire antes de Vender.");
return 1;
}
if(VeiculoInfo[playerid][vMultas] != 0)
{
format(stringZCMD, sizeof stringZCMD, "ERRO:{FFFFFF} O seu
Veiculo possui %d multas pendentes, pague no DETRAN antes de vender ou
transferir.", VeiculoInfo[playerid][vMultas]);
SendClientMessage(playerid, COR_KING, stringZCMD);
return 1;
}
if(VeiculoInfo[playerid][vSlot2] != 0)
{
DarItemInv(playerid, VeiculoInfo[playerid][vSlot2],
VeiculoInfo[playerid][vUnidade2]);
VeiculoInfo[playerid][vSlot2] = 0;
VeiculoInfo[playerid][vUnidade2] = 0;
//BPS_SalvarConce(playerid);
}
if(VeiculoInfo[playerid][vSlot3] != 0)
{
DarItemInv(playerid, VeiculoInfo[playerid][vSlot3],
VeiculoInfo[playerid][vUnidade3]);
VeiculoInfo[playerid][vSlot3] = 0;
VeiculoInfo[playerid][vUnidade3] = 0;
//BPS_SalvarConce(playerid);
}
if(VeiculoInfo[playerid][vSlot4] != 0)
{
DarItemInv(playerid, VeiculoInfo[playerid][vSlot4],
VeiculoInfo[playerid][vUnidade4]);
VeiculoInfo[playerid][vSlot4] = 0;
VeiculoInfo[playerid][vUnidade4] = 0;
//BPS_SalvarConce(playerid);
}
//FIM Backup Porta Malas
DestruirVeiculoConce(playerid);
VeiculoInfo[playerid][vDono] = 0;
/* VeiculoInfo[playerid][vCor1] = 1;
// VeiculoInfo[playerid][vPlaca] = 0;
VeiculoInfo[playerid][vCor2] = 1;
VeiculoInfo[playerid][vGas] = 0;
VeiculoInfo[playerid][vModelo] = 0;
VeiculoInfo[playerid][vPos1] = 0;
VeiculoInfo[playerid][vPos2] = 0;
VeiculoInfo[playerid][vPos3] = 0;
VeiculoInfo[playerid][vTrancado] = 0;
VeiculoInfo[playerid][vEstacionou] = 0;
VeiculoInfo[playerid][vRot] = 0;*/
memset(VeiculoInfo[playerid], vInfo, 0);
format(stringZCMD, sizeof(stringZCMD), "[Concessionaria]:
{ffffff}Voc� revendeu seu %s por R${228b22}%s{ffffff}!",
Nomedosveiculos[VeiculoInfo[playerid][vModelo] - 400],
ConvertMoney(VeiculoInfo[playerid][vPreco]));
SendClientMessage(playerid, COR_KING, stringZCMD);
new DOF2[200];
format(DOF2, sizeof(DOF2), "Players/Carros/%s.ini",
PlayerName(playerid));
VeiculoInfo[playerid][vDono] = 0;
if(fexist(DOF2))
{
fremove(DOF2);
}
format(stringZCMD, sizeof stringZCMD, "O Jogador %s vendeu o seu
veiculo e recebeu %s pela venda dele!", PlayerName(playerid),
ConvertMoney(VeiculoInfo[playerid][vPreco]));
GravarLog("Logs/Concessionaria.ini", stringZCMD);
if(VeiculoInfo[playerid][vPreco] != 0)
{
GivePlayerMoneyEx(playerid, VeiculoInfo[playerid][vPreco]);
SBizzInfo[5][sbTill] += VeiculoInfo[playerid][vPreco];
ExtortionSBiz(5, VeiculoInfo[playerid][vPreco]);
}
/* //new Query[200];
format(Query, sizeof(Query), "SELECT * FROM `veiculos_registros`
WHERE `id`='%d'", VeiculoInfo[playerid][vId]);
Resultado = db_query(Conexao,Query);
if(db_num_rows(Resultado) > 0)
{
format(Query, sizeof(Query), "DELETE FROM
`veiculos_registros` WHERE `id`='%d'", VeiculoInfo[playerid][vId]);
Resultado = db_query(Conexao,Query);
}
new str2[128];
new ano, mes, dia;
new hora, minuto, segundo;
getdate(ano, mes, dia);
gettime(hora, minuto, segundo);
format(str2, 128, "%02d/%02d/%04d �s %02d:%02d:%02d", dia, mes,
ano, hora, minuto, segundo);
/* format(stringZCMD, sizeof stringZCMD, "INSERT INTO
veiculos_vendidos (`id`, `placa`, `registro`, `responsavel`, `data`) VALUES('%d',
'%s', '%d', '%s', '%s')", VeiculoInfo[playerid][vId],
DB_Escape(VeiculoInfo[playerid][vPlaca]), VeiculoInfo[playerid][vId],
DB_Escape(PlayerName(playerid)), DB_Escape(str2));
db_free_result(db_query(Conexao, stringZCMD));*/
// new str2[128];
format(stringZCMD, sizeof(stringZCMD), "ANTI-ABUSOS: %s[%d]
vendeu seu veiculo proprio, fique de olho!", PlayerName(playerid), playerid);
ABroadCast(COR_LIGHTRED,stringZCMD,1);
GravarLog("Logs/Revendedora.ini", stringZCMD);
BizzInfo[14][bTill] += 30000;
ExtortionBiz(14, 30000);
//BPS_SalvarConce(playerid);
return 1;
}
SendClientMessage(playerid, COR_KING, "ERRO:{FFFFFF} Voc� n�o esta na empresa
'Revendedora' ou n�o tem um Veiculo.");
return 0;
}
stock DestruirVeiculoConce(playerid)
{
if(VeiculoInfo[playerid][vDono] == 1)
{
if(VeiculoInfo[playerid][vEstacionou] == 0)
{
new idveh = VeiculoPessoal[playerid];
new Float:Pos[5], Cor1, Cor2;
//new PosPlayer[3];
//GetPlayerPos(playerid, PosPlayer[0], PosPlayer[1],
PosPlayer[2]-1);
//SetPlayerPos(playerid, PosPlayer[0], PosPlayer[1],
PosPlayer[2]+2);
GetVehiclePos(idveh, Pos[0], Pos[1], Pos[2]);
GetPlayerFacingAngle(playerid, Pos[3]);
GetVehicleColor(idveh, Cor1, Cor2);
VeiculoInfo[playerid][vPos1] = Pos[0];
VeiculoInfo[playerid][vPos2] = Pos[1];
VeiculoInfo[playerid][vPos3] = Pos[2];
VeiculoInfo[playerid][vRot] = Pos[3];
VeiculoInfo[playerid][vCor1] = Cor1;
VeiculoInfo[playerid][vCor2] = Cor2;
}
if(VeiculoInfo[playerid][vContexto] == 1)
{
DestroyObject(VeiculoInfo[playerid][vIdObjetoAttCreado]);
DestroyObject(VeiculoInfo[playerid][vIdObjetoAttCreado2]);
}
else if(VeiculoInfo[playerid][vContexto] == 0)
{
}
DestroyVehicle(VeiculoPessoal[playerid]);
//BPS_SalvarConce(playerid);
}
return 0;
}
stock CarregarVeiculosConce(playerid)
{
new StringHH[250];
format(StringHH, sizeof(StringHH), "Players/Carros/%s.ini",
PlayerName(playerid));
if(DOF2_FileExists(StringHH))
{
VeiculoInfo[playerid][vDono] = 1;
format(StringHH, sizeof(StringHH), "Players/Carros/%s.ini",
PlayerName(playerid));
VeiculoInfo[playerid][vId] = DOF2_GetInt(StringHH, "Id");
VeiculoInfo[playerid][vCor1] = DOF2_GetInt(StringHH, "Cor1");
VeiculoInfo[playerid][vCor2] = DOF2_GetInt(StringHH, "Cor2");
// VeiculoInfo[playerid][vPlaca] = DOF2_GetString(StringHH,
"Placa");
strmid(VeiculoInfo[playerid][vPlaca],DOF2_GetString(StringHH,
"Placa"),0,strlen(DOF2_GetString(StringHH, "Placa")), 50);
VeiculoInfo[playerid][vGas] = DOF2_GetInt(StringHH, "Gasolina");
VeiculoInfo[playerid][vPos1] = DOF2_GetFloat(StringHH, "Pos1");
VeiculoInfo[playerid][vPos2] = DOF2_GetFloat(StringHH, "Pos2");
VeiculoInfo[playerid][vPos3] = DOF2_GetFloat(StringHH, "Pos3");
VeiculoInfo[playerid][vRot] = DOF2_GetFloat(StringHH, "Rot");
VeiculoInfo[playerid][vTrancado] = DOF2_GetInt(StringHH,
"Trancado");
VeiculoInfo[playerid][vPreco] = DOF2_GetInt(StringHH, "Preco");
VeiculoInfo[playerid][vEstacionou] = DOF2_GetInt(StringHH,
"Estacionou");
VeiculoInfo[playerid][vModelo] = DOF2_GetInt(StringHH, "Modelo");
VeiculoInfo[playerid][vPreso] = DOF2_GetInt(StringHH, "Preso");
VeiculoInfo[playerid][vMultas] = DOF2_GetInt(StringHH, "Multas");
VeiculoInfo[playerid][vUnidade1] = DOF2_GetInt(StringHH,
"Unidade1");
VeiculoInfo[playerid][vUnidade2] = DOF2_GetInt(StringHH,
"Unidade2");
VeiculoInfo[playerid][vUnidade3] = DOF2_GetInt(StringHH,
"Unidade3");
VeiculoInfo[playerid][vUnidade4] = DOF2_GetInt(StringHH,
"Unidade4");
VeiculoInfo[playerid][vPaint] = DOF2_GetInt(StringHH,
"PaintJob");
VeiculoInfo[playerid][vNitro] = DOF2_GetInt(StringHH, "Nitros");
VeiculoInfo[playerid][vSpolier] = DOF2_GetInt(StringHH,
"Spolier");
VeiculoInfo[playerid][vBumperF] = DOF2_GetInt(StringHH,
"BumperF");
VeiculoInfo[playerid][vEntradaR] = DOF2_GetInt(StringHH,
"EntradaR");
VeiculoInfo[playerid][vEntradaL] = DOF2_GetInt(StringHH,
"EntradaL");
VeiculoInfo[playerid][vBSTeto] = DOF2_GetInt(StringHH, "BSTeto");
VeiculoInfo[playerid][vRSTeto] = DOF2_GetInt(StringHH, "RSTeto");
VeiculoInfo[playerid][vLSkirt] = DOF2_GetInt(StringHH, "LSkirt");
VeiculoInfo[playerid][vRSkirt] = DOF2_GetInt(StringHH, "RSkirt");
VeiculoInfo[playerid][vHidraulica] = DOF2_GetInt(StringHH,
"Hidraulica");
VeiculoInfo[playerid][vRBBarras] = DOF2_GetInt(StringHH,
"RBBarras");
VeiculoInfo[playerid][vFBBarras] = DOF2_GetInt(StringHH,
"FBBarras");
VeiculoInfo[playerid][vContexto] = DOF2_GetInt(StringHH,
"ComTexto");
strmid(VeiculoInfo[playerid][vTextoVehicle], DOF2_GetString(StringHH,
"TextoLadoCarro"), 0, strlen(DOF2_GetString(StringHH, "TextoLadoCarro")), 255);
}
return 1;
}
GetVehID(playerid)
{
new ID = VeiculoPessoal[playerid];
return ID;
}
TrancarCarroConce(playerid)
{
new count, count2;
for(new i; i < MAX_VEHICLES_P; i++)
{
new idveh = BPS_VeiculoPessoal[playerid][i];
new Str[80];
new Float:Pos[5];
GetVehiclePos(BPS_VeiculoPessoal[playerid][i], Pos[0], Pos[1], Pos[2]);
if(!PlayerToPoint(5.0, playerid, Pos[0], Pos[1], Pos[2]))
{
GetVehiclePos(BPS_VeiculoPessoal[playerid][i], Pos[0], Pos[1],
Pos[2]);
if(PlayerToPoint(5.0, playerid, Pos[0], Pos[1], Pos[2]))
{
if(Fixado[BPS_VeiculoPessoal[playerid][i]] == 1) return
SendClientMessage(playerid, COR_KING, "ERRO:{FFFFFF} Voc� n�o pode trancar um
veiculo que esta fixado no patio do detran!");
if(debugconsole == 1) print("trancaaa");
if(VeiculoP[playerid][i][vTrancado] == 0)
{
// foreach(new i: Player)
// {
LockCar(idveh);
// }
format(Str, sizeof(Str), "~w~Veiculo~r~ Fechado");
GameTextForPlayer(playerid, Str, 3000, 3);
VeiculoP[playerid][i][vTrancado] = 1;
}
else if(VeiculoP[playerid][i][vTrancado] == 1)
{
// foreach(new i: Player)
// {
UnlockCar(idveh);
// }
format(Str, sizeof(Str), "~w~Veiculo~g~ Aberto");
GameTextForPlayer(playerid, Str, 3000, 3);
VeiculoP[playerid][i][vTrancado] = 0;
}
}
else
{
count++;
}
}
else
{
if(Fixado[BPS_VeiculoPessoal[playerid][i]] == 1) return
SendClientMessage(playerid, COR_KING, "ERRO:{FFFFFF} Voc� n�o pode trancar um
veiculo que esta fixado no patio do detran!");
if(VeiculoP[playerid][i][vTrancado] == 0)
{
// foreach(new i: Player)
// {
LockCar(idveh);
// }
format(Str, sizeof(Str), "~w~Veiculo~r~ Fechado");
GameTextForPlayer(playerid, Str, 3000, 3);
VeiculoP[playerid][i][vTrancado] = 1;
}
else if(VeiculoP[playerid][i][vTrancado] == 1)
{
// foreach(new i: Player)
// {
UnlockCar(idveh);
// }
format(Str, sizeof(Str), "~w~Veiculo~g~ Aberto");
GameTextForPlayer(playerid, Str, 3000, 3);
VeiculoP[playerid][i][vTrancado] = 0;
}
}
}
if(count == MAX_VEHICLES_P) return SendClientMessage(playerid, COR_KING,
"ERRO:{FFFFFF} Voc� n�o tem a chave deste veiculo ou n�o esta perto de nenhum
veiculo!");
if(count2 == MAX_VEHICLES_P) return SendClientMessage(playerid, COR_KING,
"ERRO:{FFFFFF} Voc� n�o tem a Chave desse veiculo!");
return 1;
}
stock TrancarCarroConce2(playerid)
{
for(new i; i < MAX_VEHICLES_P; i++)
{
new idveh = BPS_VeiculoPessoal[playerid][i];
if(VeiculoP[playerid][i][vDono] == 1)
{
if(VeiculoP[playerid][i][vTrancado] == 0)
{
UnlockCar(idveh);
}
else if(VeiculoP[playerid][i][vTrancado] == 1)
{
LockCar(idveh);
}
}
}
return 0;
}
EstacionarVeh(playerid)
{
//if(PlayerToPoint(70.0, playerid, 537.5374,393.0404, 941.2737)) return
SendClientMessage(playerid, COR_GREY, "* A garagem de veiculos sera habilitada na
proxima atualiza��o!");
if(gettime() - estacionouv[playerid] < 10) return SendClientMessage(playerid,
COR_GREY, "* Voc� so pode estacionar o seu veiculo a cada 10 segundos!");
new idveh = GetPlayerVehicleID(playerid);
for(new i; i < MAX_VEHICLES_P; i++)
{
if(BPS_VeiculoPessoal[playerid][i] == idveh)
{
new Float:Pos[5], Cor1, Cor2;
new Float:pPos[5];
//Cor1 = VeiculoP[playerid][i][vCor1];
//Cor2 = VeiculoP[playerid][i][vCor2];
GetPlayerPos(playerid, pPos[0], pPos[1], pPos[2]);
SetPlayerPos(playerid, pPos[0], pPos[1], pPos[2]+6);
GetVehiclePos(idveh, Pos[0], Pos[1], Pos[2]);
GetVehicleZAngle(idveh, Pos[3]);
GetVehicleColor(idveh, Cor1, Cor2);
VeiculoP[playerid][i][vEstacionou] = 1;
VeiculoP[playerid][i][vPos1] = Pos[0];
VeiculoP[playerid][i][vPos2] = Pos[1];
VeiculoP[playerid][i][vPos3] = Pos[2];
VeiculoP[playerid][i][vRot] = Pos[3];
VeiculoP[playerid][i][vInt] = GetVehicleInterior(idveh);
VeiculoP[playerid][i][vWorld] = GetVehicleVirtualWorld(idveh);
//VeiculoP[playerid][i][vCor1] = Cor1;
//VeiculoP[playerid][i][vCor2] = Cor2;
estacionouv[playerid] = gettime();
//BPS_SalvarConce(playerid);
SendClientMessage(playerid, COR_KING, "Veiculo: {ffffff}O Seu
veiculo foi estacionado nesse local. As tunagens efetuadas foram salvas.");
format(stringZCMD, sizeof(stringZCMD), "ANTI-ABUSOS: %s[%d]
estacionou seu veiculo proprio, fique de olho!", PlayerName(playerid), playerid);
ABroadCast(COR_LIGHTRED,stringZCMD,1);
format(stringZCMD, sizeof(stringZCMD), "ANTI-ABUSOS: %s[%d]
estacionou seu veiculo proprio!", PlayerName(playerid), playerid);
// printf(stringZCMD);
if(VeiculoP[playerid][i][vPaint2] != -1)
{
VeiculoP[playerid][i][vPaint] = VeiculoP[playerid][i]
[vPaint2];
}
else
{
VeiculoP[playerid][i][vPaint] = -1;
}
if(VeiculoP[playerid][i][vNitro2] != 0)
{
VeiculoP[playerid][i][vNitro] = VeiculoP[playerid][i]
[vNitro2];
}
if(VeiculoP[playerid][i][vSpolier2] != 0)
{
VeiculoP[playerid][i][vSpolier] = VeiculoP[playerid][i]
[vSpolier2];
}
if(VeiculoP[playerid][i][vRoda2] != 0)
{
VeiculoP[playerid][i][vRoda] = VeiculoP[playerid][i]
[vRoda2];
}
if(VeiculoP[playerid][i][vBumperF2] != 0)
{
VeiculoP[playerid][i][vBumperF] = VeiculoP[playerid][i]
[vBumperF2];
}
if(VeiculoP[playerid][i][vBumperR2] != 0)
{
VeiculoP[playerid][i][vBumperR] = VeiculoP[playerid][i]
[vBumperR2];
}
if(VeiculoP[playerid][i][vEntradaR2] != 0)
{
VeiculoP[playerid][i][vEntradaR] = VeiculoP[playerid][i]
[vEntradaR2];
}
if(VeiculoP[playerid][i][vEntradaL2] != 0)
{
VeiculoP[playerid][i][vEntradaL] = VeiculoP[playerid][i]
[vEntradaL2];
}
if(VeiculoP[playerid][i][vBSTeto2] != 0)
{
VeiculoP[playerid][i][vBSTeto] = VeiculoP[playerid][i]
[vBSTeto2];
}
if(VeiculoP[playerid][i][vRSTeto2] != 0)
{
VeiculoP[playerid][i][vRSTeto] = VeiculoP[playerid][i]
[vRSTeto2];
}
if(VeiculoP[playerid][i][vLSkirt2] != 0)
{
VeiculoP[playerid][i][vLSkirt] = VeiculoP[playerid][i]
[vLSkirt2];
}
if(VeiculoP[playerid][i][vRSkirt2] != 0)
{
VeiculoP[playerid][i][vRSkirt] = VeiculoP[playerid][i]
[vRSkirt2];
}
if(VeiculoP[playerid][i][vHidraulica2] != 0)
{
VeiculoP[playerid][i][vHidraulica] = VeiculoP[playerid][i]
[vHidraulica2];
}
if(VeiculoP[playerid][i][vBase2] != 0)
{
VeiculoP[playerid][i][vBase] = VeiculoP[playerid][i]
[vBase2];
}
if(VeiculoP[playerid][i][vRBBarras2] != 0)
{
VeiculoP[playerid][i][vRBBarras] = VeiculoP[playerid][i]
[vRBBarras2];
}
if(VeiculoP[playerid][i][vFBBarras2] != 0)
{
VeiculoP[playerid][i][vFBBarras] = VeiculoP[playerid][i]
[vFBBarras2];
}
BPS_DestruirVeiculo(playerid, i);
BPS_CriarVeiculo(playerid, i);
PutPlayerInVehicle(playerid, BPS_VeiculoPessoal[playerid][i], 0);
}
}
////BPS_SalvarConce(playerid);
return 1;
}
CriarVeiculo(playerid)
{
if(VeiculoInfo[playerid][vDono] == 1)
{
/* DOF2_SetInt(DOF2, "vBumperF", VeiculoP[playerid][i][vBumperF]);
DOF2_SetInt(DOF2, "vBumperR", VeiculoInfo[playerid]
[vBumperR]);
DOF2_SetInt(DOF2, "vEntradaR", VeiculoInfo[playerid]
[vEntradaR]);
DOF2_SetInt(DOF2, "vEntradaL", VeiculoInfo[playerid]
[vEntradaL]);
DOF2_SetInt(DOF2, "vBSTeto", VeiculoInfo[playerid][vBSTeto]);
DOF2_SetInt(DOF2, "vRSTeto", VeiculoInfo[playerid][vRSTeto]);
DOF2_SetInt(DOF2, "vLSkirt", VeiculoInfo[playerid][vLSkirt]);
DOF2_SetInt(DOF2, "vRSkirt", VeiculoInfo[playerid][vRSkirt]);
DOF2_SetInt(DOF2, "vHidraulica", VeiculoInfo[playerid]
[vHidraulica]);
DOF2_SetInt(DOF2, "vRBBarras", VeiculoInfo[playerid]
[vRBBarras]);
DOF2_SetInt(DOF2, "vFBBarras", VeiculoInfo[playerid]
[vFBBarras]);*/
// new str[100];
//DestroyVehicle(VeiculoPessoal[playerid]);
VeiculoPessoal[playerid] = AddStaticVehicleEx(VeiculoInfo[playerid]
[vModelo], VeiculoInfo[playerid][vPos1], VeiculoInfo[playerid][vPos2],
VeiculoInfo[playerid][vPos3], VeiculoInfo[playerid][vRot], VeiculoInfo[playerid]
[vCor1], VeiculoInfo[playerid][vCor2], -1); //Veiculo Pessoal
Gas[VeiculoPessoal[playerid]] = VeiculoInfo[playerid][vGas];
SetVehicleZAngle(VeiculoPessoal[playerid], VeiculoInfo[playerid][vRot]);
// format(str, sizeof str, "DET-%04d", VeiculoPessoal[playerid]);
SetVehicleNumberPlate(VeiculoPessoal[playerid], VeiculoInfo[playerid]
[vPlaca]);
// format(stringZCMD, sizeof stringZCMD, "DET-%04d",
VeiculoPessoal[playerid]);
// strmid(VeiculoInfo[playerid][vPlaca],stringZCMD,0,strlen(stringZCMD),
528);
TrancarCarroConce2(playerid);
if(VeiculoInfo[playerid][vPaint] != -1)
{
ChangeVehiclePaintjob(VeiculoPessoal[playerid],
VeiculoInfo[playerid][vPaint]);
}
if(VeiculoInfo[playerid][vContexto] == 1)
{
VeiculoInfo[playerid][vIdObjetoAttCreado] = CreateObject(19327,
1776.2971, -2113.9782, 14.5789, 0.0000, 0.0000, 0.0000); //7_11_sign02
SetObjectMaterialText(VeiculoInfo[playerid][vIdObjetoAttCreado],
VeiculoInfo[playerid][vTextoVehicle], 0, 90, "Arial", 24, 1, 0xFFFFFFFF, 0x0, 0);
VeiculoInfo[playerid][vIdObjetoAttCreado2] = CreateObject(19327,
1776.2971, -2113.9782, 14.5789, 0.0000, 0.0000, 0.0000); //7_11_sign02
SetObjectMaterialText(VeiculoInfo[playerid][vIdObjetoAttCreado2],
VeiculoInfo[playerid][vTextoVehicle], 0, 90, "Arial", 24, 1, 0xFFFFFFFF, 0x0, 0);
AttachObjectToVehicle(VeiculoInfo[playerid][vIdObjetoAttCreado],
GetVehID(playerid), -1.0699, -0.5399, -0.4699, 0.0000, 0.0000, 270.8999);
AttachObjectToVehicle(VeiculoInfo[playerid][vIdObjetoAttCreado2],
GetVehID(playerid), 1.0600, 0.2000, -0.4699, 0.0000, 0.0000, 90.2000);
}
else if(VeiculoInfo[playerid][vContexto] == 0)
{
}
if(VeiculoInfo[playerid][vRBBarras] != 0)
{
AddVehicleComponent(VeiculoPessoal[playerid],
VeiculoInfo[playerid][vRBBarras]);
}
if(VeiculoInfo[playerid][vFBBarras] != 0)
{
AddVehicleComponent(VeiculoPessoal[playerid],
VeiculoInfo[playerid][vFBBarras]);
}
if(VeiculoInfo[playerid][vHidraulica] != 0)
{
AddVehicleComponent(VeiculoPessoal[playerid],
VeiculoInfo[playerid][vHidraulica]);
}
if(VeiculoInfo[playerid][vRSkirt] != 0)
{
AddVehicleComponent(VeiculoPessoal[playerid],
VeiculoInfo[playerid][vRSkirt]);
}
if(VeiculoInfo[playerid][vLSkirt] != 0)
{
AddVehicleComponent(VeiculoPessoal[playerid],
VeiculoInfo[playerid][vLSkirt]);
}
if(VeiculoInfo[playerid][vRSTeto] != 0)
{
AddVehicleComponent(VeiculoPessoal[playerid],
VeiculoInfo[playerid][vRSTeto]);
}
if(VeiculoInfo[playerid][vBSTeto] != 0)
{
AddVehicleComponent(VeiculoPessoal[playerid],
VeiculoInfo[playerid][vBSTeto]);
}
if(VeiculoInfo[playerid][vEntradaL] != 0)
{
AddVehicleComponent(VeiculoPessoal[playerid],
VeiculoInfo[playerid][vEntradaL]);
}
if(VeiculoInfo[playerid][vEntradaL] != 0)
{
AddVehicleComponent(VeiculoPessoal[playerid],
VeiculoInfo[playerid][vEntradaL]);
}
if(VeiculoInfo[playerid][vNitro] != 0)
{
AddVehicleComponent(VeiculoPessoal[playerid],
VeiculoInfo[playerid][vNitro]);
}
if(VeiculoInfo[playerid][vBumperF] != 0)
{
AddVehicleComponent(VeiculoPessoal[playerid],
VeiculoInfo[playerid][vBumperF]);
}
if(VeiculoInfo[playerid][vBumperR] != 0)
{
AddVehicleComponent(VeiculoPessoal[playerid],
VeiculoInfo[playerid][vBumperR]);
}
if(VeiculoInfo[playerid][vSpolier] != 0)
{
AddVehicleComponent(VeiculoPessoal[playerid],
VeiculoInfo[playerid][vSpolier]);
}
if(VeiculoInfo[playerid][vRoda] != 0)
{
AddVehicleComponent(VeiculoPessoal[playerid],
VeiculoInfo[playerid][vRoda]);
}
}
return 1;
}
RP::EfetuarBackup()
{
foreach(new i: Player)
{
new File[56],Float:pPosX[MAX_PLAYERS], Float:pPosY[MAX_PLAYERS],
Float:pPosZ[MAX_PLAYERS], Float:pPosA[MAX_PLAYERS],pInterior[MAX_PLAYERS];
format(File, 56, "Players/Posicoes/%s.ini", PlayerName(i)); //
Cria o "caminho" ate o local onde sera salvo o Arquivo com a posi��o do Player
GetPlayerPos(i, pPosX[i], pPosY[i], pPosZ[i]); // Pega a Posi��o
do Player em X, Y e Z, e converte para "pPosX", "pPosY" e "pPosZ", respectivamente.
GetPlayerFacingAngle(i, pPosA[i]); // Pega o �ngulo do Player em
A e converte para pPosA, logo pPosA = �ngulo do Player
pInterior[i] = GetPlayerInterior(i); // Pega o interior do
Player, que fica armazenado em pInterior.
if(!fexist(File)) // Checa se a File existe
{
DOF2_CreateFile(File); // Se n�o existir, cria
}
DOF2_SetFloat(File, "PosX", pPosX[i]); // Escreve dentro do
Arquivo: "PosX = pPosX (posi��o que pegamos antes, lembra ?)
DOF2_SetFloat(File, "PosY", pPosY[i]); // Escreve dentro do
Arquivo: "PosY = pPosY (posi��o que pegamos antes, lembra ?)
DOF2_SetFloat(File, "PosZ", pPosZ[i]); // Escreve dentro do
Arquivo: "PosZ = pPosZ (posi��o que pegamos antes, lembra ?)
DOF2_SetFloat(File, "PosA", pPosA[i]); // Escreve dentro do
Arquivo: "PosA = pPosA (posi��o que pegamos antes, lembra ?)
DOF2_SetInt(File, "Interior", pInterior[i]); // Escreve dentro do
Arquivo: "Interior = pInterior (interior que pegamos antes, lembra ?)
DOF2_SetInt(File, "World", GetPlayerVirtualWorld(i));
DOF2_SaveFile(); // Salva o arquivo.
/*SalvarInventario(i);
OnPlayerSave(i);
//BPS_SalvarConce(i);*/
}
salvarGrafites();
SalvarPlantacao();
SalvarEmpresas();
SalvarSEmpresas();
salvarPortoes();
SalvarCofreOrg();
FinalizarBackup();
return 1;
}
RP::FinalizarBackup()
{
SendClientMessageToAll(COR_VERDE, "{33ff00}[Backup Diario Conluido] Todos os
dados de contas, orgs, fazendas, empresas, foram salvos na MySQL.");
SendClientMessageToAll(COR_VERDE, "{33ff00}[Backup Diario Conluido] E os
backups na DOF2 para entrar em analise e ver oque/quem perdeu dados depois da
GMX.");
return 1;
}
RP:: voltarPortao(p){
if(PortaoInfo[p][portaoVelocidade] <= 0.0)
{
MoveDynamicObject(PortaoInfo[p][portaoObject], PortaoInfo[p][portaoX],
PortaoInfo[p][portaoY], PortaoInfo[p][portaoZ], 5.0);
}
else
{
MoveDynamicObject(PortaoInfo[p][portaoObject], PortaoInfo[p][portaoX],
PortaoInfo[p][portaoY], PortaoInfo[p][portaoZ], PortaoInfo[p][portaoVelocidade]);
}
//MoveDynamicObject(PortaoInfo[p][portaoObject], PortaoInfo[p][portaoX],
PortaoInfo[p][portaoY], PortaoInfo[p][portaoZ], 5.0, PortaoInfo[p][portaoRX],
PortaoInfo[p][portaoRY], PortaoInfo[p][portaoRZ]);
return 1;
}
/*CarregarGrafites(){
static
file[78],
Str[105+MAX_PLAYER_NAME];
for(new x; x != MAX_GRAFTEXT; x++){
GrafiteInfo[x][grafiteCreated] = false;
GrafiteInfo[x][grafiteCreated] = true;
GrafiteInfo[x][grafiteX] = DOF2_GetFloat(file, "GrafiteX");
GrafiteInfo[x][grafiteY] = DOF2_GetFloat(file, "GrafiteY");
GrafiteInfo[x][grafiteZ] = DOF2_GetFloat(file, "GrafiteZ");
GrafiteInfo[x][grafiteRX] = DOF2_GetFloat(file, "GrafiteRX");
GrafiteInfo[x][grafiteRY] = DOF2_GetFloat(file, "GrafiteRY");
GrafiteInfo[x][grafiteRZ] = DOF2_GetFloat(file, "GrafiteRZ");
GrafiteInfo[x][grafiteCor] = DOF2_GetInt(file, "GrafiteCor");
GrafiteInfo[x][grafiteFonte] = DOF2_GetInt(file, "GrafiteFonte");
format(GrafiteInfo[x][grafiteNick], MAX_PLAYER_NAME,
DOF2_GetString(file, "GrafiteNick"));
format(GrafiteInfo[x][grafiteTexto],MAX_PLAYER_NAME,
DOF2_GetString(file, "GrafiteTexto"));
GrafiteInfo[x][grafiteObject] = CreateObject(19482,
GrafiteInfo[x][grafiteX],
GrafiteInfo[x][grafiteY],
GrafiteInfo[x][grafiteZ],
GrafiteInfo[x][grafiteRX],
GrafiteInfo[x][grafiteRY],
GrafiteInfo[x][grafiteRZ]);
format(Str, sizeof Str, "{ffffff}ID do Grafite: {33CCFF}%d\
n{ffffff}Dono do Grafite: {33CCFF}%s", x,GrafiteInfo[x][grafiteNick]);
GrafiteInfo[x][grafiteText] = CreateDynamic3DTextLabel(Str,
COR_LIGHTBLUE, GrafiteInfo[x][grafiteX], GrafiteInfo[x][grafiteY], GrafiteInfo[x]
[grafiteZ], 25.0);
SetObjectMaterialText(GrafiteInfo[x]
[grafiteObject],GrafiteInfo[x][grafiteTexto],0, OBJECT_MATERIAL_SIZE_256x256,"Comic
Sans MS",24,1,0xffffffff, 0, ObjetoInfo[Objedit[playerid]][materialAling]);
}
}
}*/
salvarGrafites(){
/* static file[78];
for(new x; x != MAX_GRAFTEXT; x++){
if(GrafiteInfo[x][grafiteCreated]){
format(file, sizeof file, "Grafites/Grafite%d.ini", x);
if(!fexist(file)){
DOF2_CreateFile(file);
}
DOF2_SetFloat(file, "GrafiteX", GrafiteInfo[x][grafiteX]);
DOF2_SetFloat(file, "GrafiteY", GrafiteInfo[x][grafiteY]);
DOF2_SetFloat(file, "GrafiteZ", GrafiteInfo[x][grafiteZ]);
DOF2_SetFloat(file, "GrafiteRX", GrafiteInfo[x][grafiteRX]);
DOF2_SetFloat(file, "GrafiteRY", GrafiteInfo[x][grafiteRY]);
DOF2_SetFloat(file, "GrafiteRZ", GrafiteInfo[x][grafiteRZ]);
DOF2_SetInt(file, "GrafiteCor", GrafiteInfo[x][grafiteCor]);
DOF2_SetInt(file, "GrafiteFonte", GrafiteInfo[x][grafiteFonte]);
DOF2_SetString(file, "GrafiteNick", GrafiteInfo[x][grafiteNick]);
DOF2_SetString(file, "GrafiteTexto", GrafiteInfo[x][grafiteTexto]);
DOF2_SaveFile();
}
}*/
}
portaoDestruir(p){
if(PortaoInfo[p][portaoCreated]){
static
file[78]
;
format(file, sizeof file, "Players/SistemaPortoes/Portao%d.ini", p);
if(fexist(file)){
fremove(file);
}
PortaoInfo[p][portaoCreated] = false;
DestroyDynamicObject(PortaoInfo[p][portaoObject]);
DestroyDynamic3DTextLabel(PortaoInfo[p][portaoText]);
}
}
objetoDestruir(p){
if(ObjetoInfo[p][objetoCreated]){
static
file[78]
;
format(file, sizeof file, "Players/Objetos/Objeto%d.ini", p);
if(fexist(file)){
fremove(file);
}
ObjetoInfo[p][objetoCreated] = false;
DestroyObject(ObjetoInfo[p][objetoObject]);
DestroyDynamic3DTextLabel(ObjetoInfo[p][objetoText]);
}
}
salvarPortoes(){
static file[78];
/*
//new Query[200];
format(Query, sizeof(Query), "SELECT * FROM `portoes` WHERE `id`='%d'",
x);
Resultado = db_query(Conexao,Query);
if(db_num_rows(Resultado) > 0 && !PortaoInfo[x][portaoCreated])
{
format(Query, sizeof(Query), "DELETE FROM `portoes` WHERE
`id`='%d'", x);
Resultado = db_query(Conexao,Query);
}*/
if(PortaoInfo[x][portaoCreated]){
if(!fexist(file)){
DOF2_CreateFile(file);
}
DOF2_SetFloat(file, "PortaoX", PortaoInfo[x][portaoX]);
DOF2_SetFloat(file, "PortaoY", PortaoInfo[x][portaoY]);
DOF2_SetFloat(file, "PortaoZ", PortaoInfo[x][portaoZ]);
DOF2_SetFloat(file, "PortaoRX", PortaoInfo[x][portaoRX]);
DOF2_SetFloat(file, "PortaoRY", PortaoInfo[x][portaoRY]);
DOF2_SetFloat(file, "PortaoRZ", PortaoInfo[x][portaoRZ]);
DOF2_SetFloat(file, "portaoVelocidade", PortaoInfo[x]
[portaoVelocidade]);
DOF2_SetInt(file, "portaoID", PortaoInfo[x][portaoID]);
DOF2_SetString(file, "PortaoNick", PortaoInfo[x][portaoNick]);
DOF2_SetString(file, "PortaoSenha", PortaoInfo[x][portaoSenha]);
/* new string233[528];
format(stringZCMD, sizeof stringZCMD, "'%d', '%s', '%s'", x,
DB_Escape(PortaoInfo[x][portaoNick]), DB_Escape(PortaoInfo[x][portaoSenha]));
format(string233, sizeof(string233), "INSERT INTO portoes (`id`,
`dono`, `senha`) VALUES(%s)", stringZCMD);
db_free_result(db_query(Conexao, string233));*/
DOF2_SaveFile();
CarregarPortoes(){
static
file[78],
Str[240],
count = 0;
for(new x; x != MAX_PORTAO; x++){
PortaoInfo[x][portaoCreated] = false;
PortaoInfo[x][portaoCreated] = true;
PortaoInfo[x][portaoVelocidade] = DOF2_GetFloat(file,
"portaoVelocidade");
format(PortaoInfo[x][portaoNick], MAX_PLAYER_NAME,
DOF2_GetString(file, "PortaoNick"));
format(PortaoInfo[x][portaoSenha],MAX_PLAYER_NAME, DOF2_GetString(file,
"PortaoSenha"));
if(PortaoInfo[x][portaoID] == 0)
{
PortaoInfo[x][portaoObject] = CreateDynamicObject(980,
PortaoInfo[x][portaoX],
PortaoInfo[x][portaoY],
PortaoInfo[x][portaoZ],
PortaoInfo[x][portaoRX],
PortaoInfo[x][portaoRY],
PortaoInfo[x][portaoRZ]);
}
else
{
PortaoInfo[x][portaoObject] =
CreateDynamicObject(PortaoInfo[x][portaoID], PortaoInfo[x][portaoX],
PortaoInfo[x][portaoY],
PortaoInfo[x][portaoZ],
PortaoInfo[x][portaoRX],
PortaoInfo[x][portaoRY],
PortaoInfo[x][portaoRZ]);
}
/* //new Query[200];
format(Query, sizeof(Query), "SELECT * FROM `portoes` WHERE `id` =
'%d'", x);
Resultado = db_query(Conexao,Query);
if(db_num_rows(Resultado) == 0)
{
new Query2[528];
// format(stringZCMD, sizeof stringZCMD, "'%d', '%s', '%s',
'%s', '%s', '%s', '%s', '%s', '0'", x, DB_Escape(PortaoInfo[x][portaoNick]),
DB_Escape(PortaoInfo[x][portaoSenha]), DB_Escape(PortaoInfo[x][portaoX]),
DB_Escape(PortaoInfo[x][portaoY]), DB_Escape(PortaoInfo[x][portaoZ]),
DB_Escape(PortaoInfo[x][portaoRX]), DB_Escape(PortaoInfo[x][portaoRY]),
DB_Escape(PortaoInfo[x][portaoRZ]));
format(Query2, 528, "INSERT INTO `portoes` (`id`, `dono`,
`senha`, `pos1`, `pos2`, `pos3`, `rot1`, `rot2`, `rot3`, `reserva`) VALUES('%d',
'%s', '%s', '%s', '%s', '%s', '%s', '%s', '0')", x, DB_Escape(PortaoInfo[x]
[portaoNick]), DB_Escape(PortaoInfo[x][portaoSenha]), PortaoInfo[x][portaoX],
PortaoInfo[x][portaoY], PortaoInfo[x][portaoZ], PortaoInfo[x][portaoRX],
PortaoInfo[x][portaoRY], PortaoInfo[x][portaoRZ]);
db_query(Conexao, Query2);
}*/
format(Str, sizeof Str, "{ffffff}ID do Port�o: {33CCFF}%d\n{FFFFFF}Dono
do Port�o: {33CCFF}%s\n{FFFFFF}Use: {33CCFF}/abrirportao{FFFFFF} para abrir!",
x,PortaoInfo[x][portaoNick]);
PortaoInfo[x][portaoText] = CreateDynamic3DTextLabel(Str,
COR_LIGHTBLUE, PortaoInfo[x][portaoX], PortaoInfo[x][portaoY], PortaoInfo[x]
[portaoZ], 25.0);
count++;
//casa PROX
stock PegarCasaProximo(playerid)
{
new cid = -1, Float:dis = 999999.999;
new Float:x, Float:y, Float:z;
for (new h = 0; h < sizeof(HouseInfo); h++)
{
if (HouseInfo[h][hOwned] == 0)
{
x = HouseInfo[h][hEntrancex];
y = HouseInfo[h][hEntrancey];
z = HouseInfo[h][hEntrancez];
if(GetPlayerDistanceFromPoint(playerid, x, y, z) < dis)
{
dis = GetPlayerDistanceFromPoint(playerid, x, y, z);
cid = h;
}
}
}
return cid;
}
//casa PROX
stock PegarCasaProximoFree(playerid)
{
new cid = -1, Float:dis = 999999.999;
new Float:x, Float:y, Float:z;
for (new h = 0; h < sizeof(HouseInfo); h++)
{
if (HouseInfo[h][hOwned] == 0 && strfind(HouseInfo[h][hType],
"Free", true) != -1)
{
x = HouseInfo[h][hEntrancex];
y = HouseInfo[h][hEntrancey];
z = HouseInfo[h][hEntrancez];
if(GetPlayerDistanceFromPoint(playerid, x, y, z) < dis)
{
dis = GetPlayerDistanceFromPoint(playerid, x, y, z);
cid = h;
}
}
}
return cid;
}
// Mobilia Casa
stock GetPlayerFPS(playerid) //pode dar merda
{
return PlayerInfo[playerid][e_iFrames];
}
new znes[128];
for(new i = 0; i != sizeof(gSAZones); i++)
{
if(pointx >= gSAZones[i][SAZONE_AREA][0] && pointx <= gSAZones[i]
[SAZONE_AREA][3] && pointy >= gSAZones[i][SAZONE_AREA][1] && pointy <= gSAZones[i]
[SAZONE_AREA][4])
{
format(znes, sizeof(znes), (gSAZones[i][SAZONE_NAME]));
return znes;
}
}
return znes;
}
ShowBalao(playerid, avisobalao[], tempo)
{
if(tempobalao[playerid] != -1)
{
KillTimer(tempobalao[playerid]);
}
tempobalao[playerid] = SetTimerEx("hideBalao", tempo, 0, "i", playerid);
PTextSetString(playerid, balaoAviso[playerid], avisobalao);
PTextShow(playerid, balaoAviso[playerid]);
}
ShowAlerta(playerid, avisobalao2[])
{
if(NoAlerta[playerid] == 0)
{
}
new avisobalaoo[150];
format(avisobalaoo, sizeof(avisobalaoo), "~n~%s", avisobalao2);
NoAlerta[playerid] = 1;
tempobalao[playerid] = SetTimerEx("hideAlerta", 5000, 0, "i", playerid);
PTextSetString(playerid, balaoAvisoRP[playerid][1], avisobalaoo);
PTextShow(playerid, balaoAvisoRP[playerid][0]);
PTextShow(playerid, balaoAvisoRP[playerid][1]);
//PTextShow(playerid, balaoAvisoRP[playerid][2]);
}
/*ShowAvisoInv(playerid, avisobalao3[])
{
if(NaTelinha[playerid] == 0)
{
if(PlayerInfo[playerid][pInventario] == 0)
{
invAviso[playerid][0] = CreatePTextdraw(playerid, 558.659484,
136.515380, "Carregando_Texto...");
PTextLetterSize(playerid, invAviso[playerid][0], 0.210234,
1.049165);
PTextSize(playerid, invAviso[playerid][0], 2.019999, 139.629638);
PTextAlignment(playerid, invAviso[playerid][0], 2);
PTextColor(playerid, invAviso[playerid][0], 255);
PTextUseBox(playerid, invAviso[playerid][0], 1);
PTextBoxColor(playerid, invAviso[playerid][0], -1061109505);
PTextShadow(playerid, invAviso[playerid][0], 0);
PTextBGColor(playerid, invAviso[playerid][0], 255);
PTextFont(playerid, invAviso[playerid][0], 1);
PTextProportional(playerid, invAviso[playerid][0], 1);
NaTelinha[playerid] = 1;
/*ShowAlerta2(playerid, avisobalao3[])
{
CriarTextDrawAlerta(playerid);
SetTimerEx("hideAlerta2", 7000, 0, "i", playerid);
PTextSetString(playerid, textAlerta2[playerid][2], avisobalao3);
PTextShow(playerid, textAlerta2[playerid][0]);
PTextShow(playerid, textAlerta2[playerid][1]);
PTextShow(playerid, textAlerta2[playerid][2]);
}
*/
/*ShowConq(playerid, conq[])
{
if(tempoconq[playerid] != -1)
{
KillTimer(tempoconq[playerid]);
}
tempoconq[playerid] = SetTimerEx("hideConq", 3500, 0, "i", playerid);
PTextSetString(playerid, ConquistasP[playerid], conq);
PTextShow(playerid, ConquistasP[playerid]);
TextDrawShowForPlayer(playerid, Conquistas[0]);
TextDrawShowForPlayer(playerid, Conquistas[1]);
TextDrawShowForPlayer(playerid, Conquistas[2]);
TextDrawShowForPlayer(playerid, Conquistas[4]);
TextDrawShowForPlayer(playerid, Conquistas[5]);
}*/
GetWeekDay()
{
new WeekDay[80];
switch(((gettime()+334800)/86400-(gettime()+334800)/86400/7*7))
{
case 0: WeekDay = "Domingo";
case 1: WeekDay = "Segunda-Feira";
case 2: WeekDay = "Terca-Feira";
case 3: WeekDay = "Quarta-Feira";
case 4: WeekDay = "Quinta-Feira";
case 5: WeekDay = "Sexta-Feira";
case 6: WeekDay = "Sabado";
}
return WeekDay;
}
/*timec(timestamp)
{
timestamp -= 10800;
new year2=1970, day2=0, month2=0, hour2=0, mins2=0;
while(timestamp>31622400){
timestamp -= 31536000;
if ( ((year2 % 4 == 0) && (year2 % 100 != 0)) || (year2 % 400 == 0) )
timestamp -= 86400;
year2++;
}
while(timestamp>60){
timestamp -= 60, mins2++;
if( mins2 == 60) mins2=0, hour2++;
}
if(PlayerInfo[playerid][pVelocimetro] == 3)
{
new playervehicle = GetPlayerVehicleID(playerid);
PTextPreviewModel(playerid, VelocimetroNEW[playerid][9],
GetVehicleModel(playervehicle));
PTextShow(playerid, VelocimetroNEW[playerid][9]);
PTextShow(playerid, VelocimetroNEW[playerid][33]);
PTextShow(playerid, VelocimetroNEW[playerid][32]);
PTextShow(playerid, VelocimetroNEW[playerid][31]);
PTextShow(playerid, VelocimetroNEW[playerid][30]);
PTextShow(playerid, VelocimetroNEW[playerid][29]);
PTextShow(playerid, VelocimetroNEW[playerid][28]);
PTextShow(playerid, VelocimetroNEW[playerid][27]);
PTextShow(playerid, VelocimetroNEW[playerid][9]);
PTextShow(playerid, VelocimetroNEW[playerid][19]);
PTextShow(playerid, VelocimetroNEW[playerid][18]);
//31 29 28 27
VELO_UltimoGas[playerid] = 500;
PTextShow(playerid, VelocimetroNEW[playerid][8]);
PTextShow(playerid, VelocimetroNEW[playerid][7]);
PTextShow(playerid, VelocimetroNEW[playerid][6]);
PTextShow(playerid, VelocimetroNEW[playerid][5]);
PTextShow(playerid, VelocimetroNEW[playerid][4]);
PTextShow(playerid, VelocimetroNEW[playerid][3]);
PTextShow(playerid, VelocimetroNEW[playerid][0]);
VELO_UltimoLuz[playerid] = luz[playerid];
if(VELO_UltimoLuz[playerid] == 0)
{
PTextColor(playerid, VelocimetroNEW[playerid][26], -1);
PTextShow(playerid, VelocimetroNEW[playerid][26]);
PTextColor(playerid, VelocimetroNEW[playerid][25], -1);
PTextShow(playerid, VelocimetroNEW[playerid][25]);
PTextColor(playerid, VelocimetroNEW[playerid][24], -1);
PTextShow(playerid, VelocimetroNEW[playerid][24]);
PTextColor(playerid, VelocimetroNEW[playerid][23], -1);
PTextShow(playerid, VelocimetroNEW[playerid][23]);
}
else if(VELO_UltimoLuz[playerid] == 1)
{
PTextColor(playerid, VelocimetroNEW[playerid][26],
0x33CC33FF);
PTextShow(playerid, VelocimetroNEW[playerid][26]);
PTextColor(playerid, VelocimetroNEW[playerid][25],
0x33CC33FF);
PTextShow(playerid, VelocimetroNEW[playerid][25]);
PTextColor(playerid, VelocimetroNEW[playerid][24],
0x33CC33FF);
PTextShow(playerid, VelocimetroNEW[playerid][24]);
PTextColor(playerid, VelocimetroNEW[playerid][23],
0x33CC33FF);
PTextShow(playerid, VelocimetroNEW[playerid][23]);
}
UpdatePlayerVelocimetro(playerid);
if(IsPlayerTextDrawVisible(playerid,
VelocimetroRP[playerid][4]))
{
for(new i; i < 9; i ++)
{
PTextHide(playerid, VelocimetroRP[playerid]
[i]);
}
}
else if(IsPlayerTextDrawVisible(playerid,
textvelo2[playerid][3]))
{
for(new i; i < 4; i ++)
{
PTextHide(playerid, textvelo2[playerid][i]);
}
}
else if(IsPlayerTextDrawVisible(playerid,
textPlayerVelocimetro[2][playerid]))
{
for( new text; text != 6; text++)
TextDrawHideForPlayer(playerid, textVelocimetro[text]);
for( new text; text != 5; text++) PTextHide(playerid,
textPlayerVelocimetro[text][playerid]);
}
}
else if(PlayerInfo[playerid][pVelocimetro] == 2)
{
new playervehicle = GetPlayerVehicleID(playerid);
PTextPreviewModel(playerid, VelocimetroRP[playerid][4],
GetVehicleModel(playervehicle));
PTextShow(playerid, VelocimetroRP[playerid][4]);
PTextShow(playerid, VelocimetroRP[playerid][1]);
PTextShow(playerid, VelocimetroRP[playerid][2]);
PTextShow(playerid, VelocimetroRP[playerid][3]);
PTextShow(playerid, VelocimetroRP[playerid][5]);
PTextShow(playerid, VelocimetroRP[playerid][6]);
PTextShow(playerid, VelocimetroRP[playerid][7]);
PTextShow(playerid, VelocimetroRP[playerid][8]);
UpdatePlayerVelocimetro(playerid);
}
else if(PlayerInfo[playerid][pVelocimetro] == 1)
{
for( new text; text != 4; text++) PTextShow(playerid,
textvelo2[playerid][text]);
UpdatePlayerVelocimetro(playerid);
}
else if(PlayerInfo[playerid][pVelocimetro] == 0)
{
for( new text; text != 6; text++) TextDrawShowForPlayer(playerid,
textVelocimetro[text]);
for( new text; text != 5; text++) PTextShow(playerid,
textPlayerVelocimetro[text][playerid]);
UpdatePlayerVelocimetro(playerid);
}
PlayerVelocimetro[playerid] = true ;
if(PlayerMobile[playerid] == false)
{
PlayerVelocimetroTimer[playerid] =
SetTimerEx("UpdatePlayerVelocimetro", 90, true, "i", playerid);
}
else
PlayerVelocimetroTimer[playerid] =
SetTimerEx("UpdatePlayerVelocimetro", 650, true, "i", playerid);
}
return 0;
}
RP::UpdatePlayerVelocimetro(playerid) {
new playervehicle;
if ( (playervehicle = GetPlayerVehicleID(playerid)) != INVALID_VEHICLE_ID)
{
//ShowPlayerProgressBar(playerid, velo_gas[playerid]);
//SetPlayerProgressBarMaxValue(playerid, velo_gas[playerid],
(100));
//SetPlayerProgressBarValue(playerid, velo_gas[playerid],
(Gas[vehicleid]));
//UpdatePlayerProgressBar(playerid, velo_gas[playerid]);
if(VELO_UltimoGas[playerid] != Gas[vehicleid])
{
VELO_UltimoGas[playerid] = Gas[vehicleid];
format(string_velo, sizeof(string_velo), "%d%",
Gas[vehicleid]);
PTextSetString(playerid, VelocimetroNEW[playerid][1],
string_velo); //gasolina
PTextShow(playerid, VelocimetroNEW[playerid][1]);
if(PlayerMobile[playerid] == false)
{
PTextShow(playerid, backgroundgas[playerid]);
PTextShow(playerid, backgroundgas2[playerid]);
if(VELO_UltimoLock[playerid] != gCarLock[vehicleid])
{
VELO_UltimoLock[playerid] = gCarLock[vehicleid];
if(VELO_UltimoLock[playerid] == 0)
{
PTextColor(playerid, VelocimetroNEW[playerid]
[21], -1);
PTextShow(playerid, VelocimetroNEW[playerid]
[21]);
PTextColor(playerid, VelocimetroNEW[playerid]
[20], -1);
PTextShow(playerid, VelocimetroNEW[playerid]
[20]);
}
else
{
PTextColor(playerid, VelocimetroNEW[playerid]
[21], 0x33CC33FF);
PTextShow(playerid, VelocimetroNEW[playerid]
[21]);
PTextColor(playerid, VelocimetroNEW[playerid]
[20], 0x33CC33FF);
PTextShow(playerid, VelocimetroNEW[playerid]
[20]);
}
}
if(VELO_UltimoLuz[playerid] != luz[playerid])
{
VELO_UltimoLuz[playerid] = luz[playerid];
if(VELO_UltimoLuz[playerid] == 0)
{
PTextColor(playerid, VelocimetroNEW[playerid]
[26], -1);
PTextShow(playerid, VelocimetroNEW[playerid]
[26]);
PTextColor(playerid, VelocimetroNEW[playerid]
[25], -1);
PTextShow(playerid, VelocimetroNEW[playerid]
[25]);
PTextColor(playerid, VelocimetroNEW[playerid]
[24], -1);
PTextShow(playerid, VelocimetroNEW[playerid]
[24]);
PTextColor(playerid, VelocimetroNEW[playerid]
[23], -1);
PTextShow(playerid, VelocimetroNEW[playerid]
[23]);
}
else if(VELO_UltimoLuz[playerid] == 1)
{
PTextColor(playerid, VelocimetroNEW[playerid]
[26], 0x33CC33FF);
PTextShow(playerid, VelocimetroNEW[playerid]
[26]);
PTextColor(playerid, VelocimetroNEW[playerid]
[25], 0x33CC33FF);
PTextShow(playerid, VelocimetroNEW[playerid]
[25]);
PTextColor(playerid, VelocimetroNEW[playerid]
[24], 0x33CC33FF);
PTextShow(playerid, VelocimetroNEW[playerid]
[24]);
PTextColor(playerid, VelocimetroNEW[playerid]
[23], 0x33CC33FF);
PTextShow(playerid, VelocimetroNEW[playerid]
[23]);
}
}
}
else if(PlayerInfo[playerid][pVelocimetro] == 2)
{
format(string_velo, sizeof(string_velo), "%d",
GetVehicleSpeed(playervehicle));
PTextSetString(playerid, VelocimetroRP[playerid][5],
string_velo); //velocidade
if(count == 75)
{
new stringinv[200];
format(stringinv, sizeof stringinv, "* Inventario: Voc�
iria receber o Item: %s com %d Unidades, porem n�o recebeu pois o Inventario estava
cheio!", NomeItemInv(item), quantia);
SendClientMessage(playerid, COR_LIGHTBLUE, stringinv);
format(stringinv, sizeof stringinv, "%s iria receber o
Item: %s com %d Unidades, porem nao recebeu pois o Inventario estava cheio! O item
foi dropado no chao com as unidades.", PlayerName(playerid), NomeItemInv(item),
quantia);
GravarLog("Logs/Invcheio.ini", stringinv);
format(stringinv, sizeof stringinv, "OBS: {ffffff}O item
foi dropado no ch�o!");
SendClientMessage(playerid, COR_KING, stringinv);
new Float: X, Float: Y, Float: Z;
GetPlayerPos(playerid, X, Y, Z);
CreateDroppedItem(item, quantia, X, Y, Z);
GameTextForPlayer(playerid, "ITEM DROPADO, LEIA O CHAT!", 50000,
3);
/* format(stringZCMD, sizeof stringZCMD, "* Inventario: Voc�
iria receber o Item: %s com %d Unidades, porem n�o recebeu pois o Inventario estava
cheio", NomeItemInv(item), quantia);
SendClientMessage(playerid, COR_LIGHTBLUE, stringZCMD);
format(stringZCMD, sizeof stringZCMD, "OBS: {ffffff}Tire
uma PRINT[F8] disso, caso senha um erRo ou um item perdido, basta abrir um Ticket
no Discord!");
SendClientMessage(playerid, COR_KING, stringZCMD);*/
}
return 1;
}
if(count == 75)
{
new stringinv[200];
format(stringinv, sizeof stringinv, "* Inventario: Voc�
iria receber o Item: %s com %d Unidades, porem n�o recebeu pois o Inventario estava
cheio!", NomeItemInv(item), quantia);
SendClientMessage(playerid, COR_LIGHTBLUE, stringinv);
format(stringinv, sizeof stringinv, "%s iria receber o
Item: %s com %d Unidades, porem nao recebeu pois o Inventario estava cheio! O item
foi dropado no chao com as unidades.", PlayerName(playerid), NomeItemInv(item),
quantia);
GravarLog("Logs/Invcheio.ini", stringinv);
format(stringinv, sizeof stringinv, "OBS: {ffffff}O item
foi dropado no ch�o!");
SendClientMessage(playerid, COR_KING, stringinv);
new Float: X, Float: Y, Float: Z;
GetPlayerPos(playerid, X, Y, Z);
CreateDroppedItem(item, quantia, X, Y, Z);
GameTextForPlayer(playerid, "ITEM DROPADO, LEIA O CHAT!", 50000,
3);
/* format(stringZCMD, sizeof stringZCMD, "* Inventario: Voc�
iria receber o Item: %s com %d Unidades, porem n�o recebeu pois o Inventario estava
cheio", NomeItemInv(item), quantia);
SendClientMessage(playerid, COR_LIGHTBLUE, stringZCMD);
format(stringZCMD, sizeof stringZCMD, "OBS: {ffffff}Tire
uma PRINT[F8] disso, caso senha um erRo ou um item perdido, basta abrir um Ticket
no Discord!");
SendClientMessage(playerid, COR_KING, stringZCMD);*/
}
return 1;
}
stock DarItemCAIXINHA(playerid, item, quantia, criado = 0, nome[] = "")
{
new count;
for(new i=0; i<75; i++)
{
if(InventarioInfo[playerid][i][iSlot] == item &&
InventarioInfo[playerid][i][iUnidades] >= 1 && InventarioInfo[playerid][i]
[iUnidades] < 5 && item != IdDaArma(item) && item != 365)
{
InventarioInfo[playerid][i][iSlot] = item;
InventarioInfo[playerid][i][iUnidades] += quantia;
if(criado == 1)
{
strmid(InventarioInfo[playerid][i]
[iName],nome,0,strlen(nome), 30);
InventarioInfo[playerid][i][iCriado] = 1;
}
else
{
InventarioInfo[playerid][i][iCriado] = 0;
}
return 1;
}
if(InventarioInfo[playerid][i][iSlot] == item &&
InventarioInfo[playerid][i][iUnidades] >= 1 && item == IdDaArma(item) && item !=
365)
{
InventarioInfo[playerid][i][iSlot] = item;
InventarioInfo[playerid][i][iUnidades] += quantia;
if(criado == 1)
{
strmid(InventarioInfo[playerid][i]
[iName],nome,0,strlen(nome), 30);
InventarioInfo[playerid][i][iCriado] = 1;
}
else
{
InventarioInfo[playerid][i][iCriado] = 0;
}
return 1;
}
if(InventarioInfo[playerid][i][iSlot] == 19382)
{
InventarioInfo[playerid][i][iSlot] = item;
InventarioInfo[playerid][i][iUnidades] = quantia;
if(criado == 1)
{
strmid(InventarioInfo[playerid][i]
[iName],nome,0,strlen(nome), 30);
InventarioInfo[playerid][i][iCriado] = 1;
}
else
{
InventarioInfo[playerid][i][iCriado] = 0;
}
return 1;
}
count++;
}
if(count == 75)
{
new stringinv[200];
format(stringinv, sizeof stringinv, "* Inventario: Voc�
iria receber o Item: %s com %d Unidades, porem n�o recebeu pois o Inventario estava
cheio!", NomeItemInv(item), quantia);
SendClientMessage(playerid, COR_LIGHTBLUE, stringinv);
format(stringinv, sizeof stringinv, "%s iria receber o
Item: %s com %d Unidades, porem nao recebeu pois o Inventario estava cheio! O item
foi dropado no chao com as unidades.", PlayerName(playerid), NomeItemInv(item),
quantia);
GravarLog("Logs/Invcheio.ini", stringinv);
format(stringinv, sizeof stringinv, "OBS: {ffffff}O item
foi dropado no ch�o!");
SendClientMessage(playerid, COR_KING, stringinv);
new Float: X, Float: Y, Float: Z;
GetPlayerPos(playerid, X, Y, Z);
CreateDroppedItem(item, quantia, X, Y, Z);
GameTextForPlayer(playerid, "ITEM DROPADO, LEIA O CHAT!", 50000,
3);
/* format(stringZCMD, sizeof stringZCMD, "* Inventario: Voc�
iria receber o Item: %s com %d Unidades, porem n�o recebeu pois o Inventario estava
cheio", NomeItemInv(item), quantia);
SendClientMessage(playerid, COR_LIGHTBLUE, stringZCMD);
format(stringZCMD, sizeof stringZCMD, "OBS: {ffffff}Tire
uma PRINT[F8] disso, caso senha um erRo ou um item perdido, basta abrir um Ticket
no Discord!");
SendClientMessage(playerid, COR_KING, stringZCMD);*/
}
return 1;
}
if(count == 75)
{
new stringinv[200];
format(stringinv, sizeof stringinv, "* Inventario: Voc�
iria receber o Item: %s com %d Unidades, porem n�o recebeu pois o Inventario estava
cheio!", NomeItemInv(item), quantia);
SendClientMessage(playerid, COR_LIGHTBLUE, stringinv);
format(stringinv, sizeof stringinv, "%s iria receber o
Item: %s com %d Unidades, porem nao recebeu pois o Inventario estava cheio! O item
foi dropado no chao com as unidades.", PlayerName(playerid), NomeItemInv(item),
quantia);
GravarLog("Logs/Invcheio.ini", stringinv);
format(stringinv, sizeof stringinv, "OBS: {ffffff}O item
foi dropado no ch�o!");
SendClientMessage(playerid, COR_KING, stringinv);
new Float: X, Float: Y, Float: Z;
GetPlayerPos(playerid, X, Y, Z);
CreateDroppedItem(item, quantia, X, Y, Z);
GameTextForPlayer(playerid, "ITEM DROPADO, LEIA O CHAT!", 5000, 6);
/* format(stringZCMD, sizeof stringZCMD, "* Inventario: Voc�
iria receber o Item: %s com %d Unidades, porem n�o recebeu pois o Inventario estava
cheio", NomeItemInv(item), quantia);
SendClientMessage(playerid, COR_LIGHTBLUE, stringZCMD);
format(stringZCMD, sizeof stringZCMD, "OBS: {ffffff}Tire
uma PRINT[F8] disso, caso senha um erRo ou um item perdido, basta abrir um Ticket
no Discord!");
SendClientMessage(playerid, COR_KING, stringZCMD);*/
}
return 1;
}
stock HidePlayerVelocimetro(playerid) {
if ( !PlayerVelocimetro[playerid] ) {
return 0;
}
if(PlayerInfo[playerid][pVelocimetro] == 3)
{
for(new i; i < 9; i++)
{
PTextHide(playerid, VelocimetroNEW[playerid][i]);
}
for(new i = 9; i < 34; i++)
{
PTextHide(playerid, VelocimetroNEW[playerid][i]);
}
PTextHide(playerid, backgroundgas[playerid]);
PTextHide(playerid, backgroundgas2[playerid]);
//HidePlayerProgressBar(playerid, velo_gas[playerid]);
}
else if(PlayerInfo[playerid][pVelocimetro] == 2)
{
PTextHide(playerid, VelocimetroRP[playerid][0]);
PTextHide(playerid, VelocimetroRP[playerid][1]);
PTextHide(playerid, VelocimetroRP[playerid][2]);
PTextHide(playerid, VelocimetroRP[playerid][3]);
PTextHide(playerid, VelocimetroRP[playerid][4]);
PTextHide(playerid, VelocimetroRP[playerid][5]);
PTextHide(playerid, VelocimetroRP[playerid][6]);
PTextHide(playerid, VelocimetroRP[playerid][7]);
PTextHide(playerid, VelocimetroRP[playerid][8]);
}
else if(PlayerInfo[playerid][pVelocimetro] == 1)
{
for( new text; text != 4; text++) PTextHide(playerid,
textvelo2[playerid][text]);
PTextHide(playerid, textvelo2[playerid][0]);
PTextHide(playerid, textvelo2[playerid][1]);
PTextHide(playerid, textvelo2[playerid][2]);
PTextHide(playerid, textvelo2[playerid][3]);
}
else if(PlayerInfo[playerid][pVelocimetro] == 0)
{
for( new text; text != 6; text++) TextDrawHideForPlayer(playerid,
textVelocimetro[text]);
for( new text; text != 5; text++) PTextHide(playerid,
textPlayerVelocimetro[text][playerid]);
PTextHide(playerid, textPlayerVelocimetro[0][playerid]);
PTextHide(playerid, textPlayerVelocimetro[1][playerid]);
PTextHide(playerid, textPlayerVelocimetro[2][playerid]);
PTextHide(playerid, textPlayerVelocimetro[3][playerid]);
PTextHide(playerid, textPlayerVelocimetro[4][playerid]);
}
PlayerVelocimetro[playerid] = false;
KillTimer(PlayerVelocimetroTimer[playerid]);
return 0;
}
static s_AnimationLibraries[][] = {
!"AIRPORT", !"ATTRACTORS", !"BAR", !"BASEBALL",
!"BD_FIRE", !"BEACH", !"BENCHPRESS", !"BF_INJECTION",
!"BIKED", !"BIKEH", !"BIKELEAP", !"BIKES",
!"BIKEV", !"BIKE_DBZ", !"BMX", !"BOMBER",
!"BOX", !"BSKTBALL", !"BUDDY", !"BUS",
!"CAMERA", !"CAR", !"CarrY", !"CAR_CHAT",
!"Casino", !"CHAINSAW", !"CHOPPA", !"CLOTHES",
!"COACH", !"COLT45", !"COP_AMBIENT", !"COP_DVBYZ",
!"CRACK", !"CRIB", !"DAM_JUMP", !"DANCING",
!"DEALER", !"DILDO", !"DODGE", !"DOZER",
!"DRIVEBYS", !"FAT", !"FIGHT_B", !"FIGHT_C",
!"FIGHT_D", !"FIGHT_E", !"FINALE", !"FINALE2",
!"FLAME", !"FLOWERS", !"FOOD", !"FREEWEIGHTS",
!"GANGS", !"GHANDS", !"GHETTO_DB", !"GOGGLES",
!"GRAFFITI", !"GRAVEYARD", !"GRENADE", !"GYMNASIUM",
!"HAIRCUTS", !"HEIST9", !"INT_HOUSE", !"INT_OFFICE",
!"INT_SHOP", !"JST_BUISNESS", !"KART", !"KISSING",
!"KNIFE", !"LAPDAN1", !"LAPDAN2", !"LAPDAN3",
!"LOWRIDER", !"MD_CHASE", !"MD_END", !"MEDIC",
!"MISC", !"MTB", !"MUSCULAR", !"NEVADA",
!"ON_LOOKERS", !"OTB", !"PARACHUTE", !"PARK",
!"PAULNMAC", !"PED", !"PLAYER_DVBYS", !"PLAYIDLES",
!"POLICE", !"POOL", !"POOR", !"PYTHON",
!"QUAD", !"QUAD_DBZ", !"RAPPING", !"RIFLE",
!"RIOT", !"ROB_BANK", !"ROCKET", !"RUSTLER",
!"RYDER", !"SCRATCHING", !"SHAMAL", !"SHOP",
!"SHOTGUN", !"SILENCED", !"SKATE", !"SMOKING",
!"SNIPER", !"SPRAYCAN", !"STRIP", !"SUNBATHE",
!"SWAT", !"MIGUEL_", !"SWIM", !"SWORD"
,
!"TANK", !"TATTOOS", !"TEC", !"TRAIN",
!"TRUCK", !"UZI", !"VAN", !"VENDING"
,
!"VORTEX", !"WAYFARER", !"WEAPONS", !"WUZI",
!"WOP", !"GFUNK", !"RUNNINGMAN"
};
stock IniciarTutorial(playerid)
{
SetPVarInt(playerid, "VarTutorial", gettime()+3);
NumeroTutorial[playerid] = 1;
STuto(playerid, NumeroTutorial[playerid]);
/*format(stringZCMD, sizeof stringZCMD, "{ffffff}Seja bem-vindo(a) ao Latin
City RPG! Voce esta prestes a jogar no\n{ffffff}3� Servidor mais revolucionario do
SA-MP Brasileiro. Todos os detalhes foram pensados e repensados antes de serem
criados\n{ffffff}divididas em 25 por toda Los Santos e cada uma delas tem funcoes
especificas.");
AC_ShowPlayerDialog(playerid, 31000,DIALOG_STYLE_MSGBOX, "Tutorial",
stringZCMD, "Proximo", "");*/
tempotutorial[playerid] = SetTimerEx("TempoTut", 3000, 1, "i", playerid);
ClearChatbox(playerid, 100);
//SendClientMessage(playerid, COR_BRANCO, "{00FFFF}� {FFFFFF}Ligue o som");
// SendClientMessage(playerid, COR_BRANCO, "{00FFFF}� {FFFFFF}Clique em proximo
quando acabar de ler, ou ent�o digite /passartutorial.");
return true;
}
stock STuto(playerid, numero)
{
MEGAString[0] = EOS;
if(numero == 0)
{
NumeroTutorial[playerid] = 1;
STuto(playerid, NumeroTutorial[playerid]);
}
if(numero == 1)
{
SIntro(playerid, 1);
SelectTextDraw(playerid, 0x0080FFC8);
PulaTuto[playerid] = 1;
NoTuto[playerid] = 1;
PTextSetString(playerid,TituloTuto[playerid], "O SERVIDOR");
PTextShow(playerid, TituloTuto[playerid]);
TextDrawShowForPlayer(playerid, BTTUTO[0]);
TextDrawShowForPlayer(playerid, BaseTuto[0]);
SelectTextDraw(playerid, 0x00FF00FF);
strcat(MEGAString, " ~w~�Bienvenido(a) a Latin City RPG! Estas a
punto de jugar en el~n~");
strcat(MEGAString, " ~w~3� servidor mas revolucionario de Ecuador.
Todos los detalles fueron pensados~n~");
strcat(MEGAString, " ~w~para que tengas una experiencia unica de
jugabilidad. Las organizaciones fueron~n~");
strcat(MEGAString, " ~w~divididas en 25 por todo Los Santos y cada
una tiene funciones especificas.~n~");
BalaoTuto(playerid, MEGAString);
if(TaEscutando[playerid] == 0) StopAudioStreamForPlayer(playerid);
////if(TaEscutando[playerid] == 0)
PlayAudioStreamForPlayer(playerid,"http://brasilperfectlife.com/tutorial/
tutorialparte1.mp3");
/* format(stringZCMD, sizeof stringZCMD, "{ffffff}Seja bem-vindo(a) ao Latin
City RPG! Voce esta prestes a jogar no\n{ffffff}3� Servidor mais revolucionario do
SA-MP Brasileiro. Todos os detalhes foram pensados e repensados antes de serem
criados\n{ffffff}divididas em 25 por toda Los Santos e cada uma delas tem funcoes
especificas.");
AC_ShowPlayerDialog(playerid, 31000,DIALOG_STYLE_MSGBOX, "Tutorial",
stringZCMD, "Proximo", "");*/
tempotutorial[playerid] = SetTimerEx("TempoTut", 3000, 1, "i",
playerid);
ClearChatbox(playerid, 100);
}
else if(numero == 2)
{
SIntro(playerid, 2);
SelectTextDraw(playerid, 0x0080FFC8);
PulaTuto[playerid] = 1;
NoTuto[playerid] = 1;
PTextSetString(playerid,TituloTuto[playerid], "O SERVIDOR");
PTextShow(playerid, TituloTuto[playerid]);
TextDrawShowForPlayer(playerid, BTTUTO[0]);
TextDrawShowForPlayer(playerid, BTTUTO[1]);
TextDrawShowForPlayer(playerid, BaseTuto[0]);
SelectTextDraw(playerid, 0x00FF00FF);
strcat(MEGAString, " ~w~Todas as cidades terao jogabilidades
independentes: Territorios e Guerras para serem~n~");
strcat(MEGAString, " ~w~dominados, alem de todo comercio: Banco, 24/7,
Loterica, Binco, Loja de Armas e etc...~n~");
strcat(MEGAString, " ~w~ocorrerao Varias Guerras Terroristas no RP:
El'Quebrados, Las Barrancas,~n~");
strcat(MEGAString, " ~w~Fort Carson, e 1 no Aeroporto Abandonado,
entao por favor seja ao jogar.~n~");
BalaoTuto(playerid, MEGAString);
if(TaEscutando[playerid] == 0) StopAudioStreamForPlayer(playerid);
////if(TaEscutando[playerid] == 0)
PlayAudioStreamForPlayer(playerid,"http://brasilperfectlife.com/tutorial/
tutorialparte2.mp3");
/*format(stringZCMD, sizeof stringZCMD, "{ffffff}Todas as cidades terao
jogabilidades independentes: Territorios e Guerras para serem\n{ffffff}dominados,
alem de todo comercio: Banco, 24/7, Loterica, Binco, Loja de Armas e etc.\
n{ffffff}ocorrerao Varias Guerras Terroristas no RP: El'Quebrados, Las Barrancas,\
n{ffffff}Fort Carson e 1 no Aeroporto Abandonado, entao por favor seja ao jogar.");
AC_ShowPlayerDialog(playerid, 32000,DIALOG_STYLE_MSGBOX, "Tutorial",
stringZCMD, "Proximo", "Voltar");*/
tempotutorial[playerid] = SetTimerEx("TempoTut", 3000, 1, "i",
playerid);
ClearChatbox(playerid, 100);
}
else if(numero == 3)
{
SIntro(playerid, 3);
SelectTextDraw(playerid, 0x0080FFC8);
PulaTuto[playerid] = 1;
NoTuto[playerid] = 1;
PTextSetString(playerid,TituloTuto[playerid], "BANCO");
PTextShow(playerid, TituloTuto[playerid]);
TextDrawShowForPlayer(playerid, BTTUTO[0]);
TextDrawShowForPlayer(playerid, BTTUTO[1]);
TextDrawShowForPlayer(playerid, BaseTuto[0]);
SelectTextDraw(playerid, 0x00FF00FF);
strcat(MEGAString, " ~w~Lugar donde ocurre la gran mayoria de las
transacciones financieras del servidor: Compra~n~");
strcat(MEGAString, " ~w~y Venta de Monedas, Retiros, Transferencias,
Depositos. Tambi�n tenemos Cajeros~n~");
strcat(MEGAString, " ~w~Electronicos en varios puntos de las
ciudades para agilizar algunas transacciones~n~");
strcat(MEGAString, " ~w~financieras mas simples. El Banco es uno de
los mas importantes del servidor.~n~");
BalaoTuto(playerid, MEGAString);
if(TaEscutando[playerid] == 0) StopAudioStreamForPlayer(playerid);
////if(TaEscutando[playerid] == 0)
PlayAudioStreamForPlayer(playerid,"http://brasilperfectlife.com/tutorial/
tutorialparte3.mp3");
/*format(stringZCMD, sizeof stringZCMD, "{ffffff}Local onde ocorre a grande
maioria das transacoes financeiras do servidor: Compra\n{ffffff}e Venda de Moedas,
Saques, Transferencias e Depositos. Tambem temos Caixas\n{ffffff}Eletronicos em
varios pontos das cidades para agilizarem algumas transacoes\n{ffffff}financeiras
mais simples. O banco e uma das mais importantes do servidor.");
AC_ShowPlayerDialog(playerid, 33000,DIALOG_STYLE_MSGBOX, "Tutorial",
stringZCMD, "Proximo", "Voltar");*/
tempotutorial[playerid] = SetTimerEx("TempoTut", 3000, 1, "i", playerid);
ClearChatbox(playerid, 100);
}
else if(numero == 4)
{
SIntro(playerid, 4);
SelectTextDraw(playerid, 0x0080FFC8);
PulaTuto[playerid] = 1;
NoTuto[playerid] = 1;
PTextSetString(playerid,TituloTuto[playerid], "GOBIERNO DE
SAN~n~ANDREAS");
PTextShow(playerid, TituloTuto[playerid]);
TextDrawShowForPlayer(playerid, BTTUTO[0]);
TextDrawShowForPlayer(playerid, BTTUTO[1]);
TextDrawShowForPlayer(playerid, BaseTuto[0]);
SelectTextDraw(playerid, 0x00FF00FF);
strcat(MEGAString, " ~w~Diferente dos outros servidor, no RP nos
teremos um(a) Governador(a) que~n~");
strcat(MEGAString, " ~w~sera responsavel por administrar as 3 cidades,
tendo Sub-Prefeituras em cada uma~n~");
strcat(MEGAString, " ~w~delas. Com certeza sera mais interessante se
candidatar a Governador e~n~");
strcat(MEGAString, " ~w~ter o(a) Vice-Governador(a), Sub-Prefeitos e
Vereadores para ajudarem na gestao~n~");
strcat(MEGAString, " ~w~das 3
cidades.");
BalaoTuto(playerid, MEGAString);
if(TaEscutando[playerid] == 0) StopAudioStreamForPlayer(playerid);
////if(TaEscutando[playerid] == 0)
PlayAudioStreamForPlayer(playerid,"http://brasilperfectlife.com/tutorial/
tutorialparte4.mp3");
/* format(stringZCMD, sizeof stringZCMD, "{ffffff}Diferente dos outros
servidor, no RP nos teremos um(a) Governador(a) que\n{ffffff}sera responsavel por
administrar as 3 cidades, tendo Sub-Prefeituras em cada uma\n{ffffff}delas. Com
certeza sera mais interessante se candidatar a Governador e\n{ffffff}ter o(a) Vice-
Governador(a), Sub-Prefeitos e Vereadores para ajudarem na gestao\n{ffffff}das 3
Cidades.");
AC_ShowPlayerDialog(playerid, 34000,DIALOG_STYLE_MSGBOX, "Tutorial",
stringZCMD, "Proximo", "Voltar");*/
tempotutorial[playerid] = SetTimerEx("TempoTut", 3000, 1, "i",
playerid);
ClearChatbox(playerid, 100);
}
else if(numero == 5)
{
SIntro(playerid, 5);
SelectTextDraw(playerid, 0x0080FFC8);
PulaTuto[playerid] = 1;
NoTuto[playerid] = 1;
PTextSetString(playerid,TituloTuto[playerid], "DEPARTAMENTO
DE~n~POLICIA");
PTextShow(playerid, TituloTuto[playerid]);
TextDrawShowForPlayer(playerid, BTTUTO[0]);
TextDrawShowForPlayer(playerid, BTTUTO[1]);
TextDrawShowForPlayer(playerid, BaseTuto[0]);
SelectTextDraw(playerid, 0x00FF00FF);
strcat(MEGAString, " ~w~Pertencente a Organizacao que tera funcao
especial no SKN, agora bem melhorada~n~");
strcat(MEGAString, " ~w~Sera responsavel por manter a seguranca e
bem-estar de toda San Andreas,~n~");
strcat(MEGAString, " ~w~evitando roubos e assaltos, podendo prender
qualquer tipo de procurado,~n~");
strcat(MEGAString, " ~w~e podendo fazer
Operacoes(OP's) nas 3 cidades.");
BalaoTuto(playerid, MEGAString);
if(TaEscutando[playerid] == 0) StopAudioStreamForPlayer(playerid);
////if(TaEscutando[playerid] == 0)
PlayAudioStreamForPlayer(playerid,"http://brasilperfectlife.com/tutorial/
tutorialparte5.mp3");
/* format(stringZCMD, sizeof stringZCMD, "{ffffff}Pertencente a Organizacao
que tera funcao especial no SKN, agora bem melhorada\n{ffffff}Sera responsavel por
manter a seguranca e bem-estar de toda San Andreas,\n{ffffff}evitando roubos e
assaltos, podendo prender qualquer tipo de procurado,\n{ffffff}e podendo fazer
Opera��o(OP) nas 3 cidades.");
AC_ShowPlayerDialog(playerid, 35000,DIALOG_STYLE_MSGBOX, "Tutorial",
stringZCMD, "Proximo", "Voltar");*/
tempotutorial[playerid] = SetTimerEx("TempoTut", 3000, 1, "i", playerid);
ClearChatbox(playerid, 100);
}
else if(numero == 6)
{
SIntro(playerid, 6);
SelectTextDraw(playerid, 0x0080FFC8);
PulaTuto[playerid] = 1;
NoTuto[playerid] = 1;
PTextSetString(playerid,TituloTuto[playerid], "LOTERICA");
PTextShow(playerid, TituloTuto[playerid]);
TextDrawShowForPlayer(playerid, BTTUTO[0]);
TextDrawShowForPlayer(playerid, BTTUTO[1]);
TextDrawShowForPlayer(playerid, BaseTuto[0]);
SelectTextDraw(playerid, 0x00FF00FF);
strcat(MEGAString, " ~w~Exclusivo, atendiendo los pedidos de los
jugadores: En la loteria podras cambiar de~n~");
strcat(MEGAString, " ~w~sexo instantaneamente, sin burocracia. Podras
divorciarte a cualquier hora. Y~n~");
strcat(MEGAString, " ~w~principalmente, podras cambiar tu nick (esta
opcion tendra un costo de 5.000 Monedas),~n~");
strcat(MEGAString, " ~w~al cambiarlo, no sera mas obligatorio usar el
formato Nombre Apellido, podras~n~");
strcat(MEGAString, " ~w~dejar solo el Nombre
como nick.~n~");
BalaoTuto(playerid, MEGAString);
if(TaEscutando[playerid] == 0) StopAudioStreamForPlayer(playerid);
//////if(TaEscutando[playerid] == 0)
PlayAudioStreamForPlayer(playerid,"http://brasilperfectlife.com/tutorial/
tutorialparte6.mp3");
/* format(stringZCMD, sizeof stringZCMD, "{ffffff}Exclusivo, atendendo os
pedidos dos players: No cartorio voce podera trocar de\n{ffffff}sexo
instantaneamente, sem burocracia. Podera se divdorciar a qualquer hora. E\
n{ffffff}principalmente, podera trocar o seu nick (essa opcao tera um custo de
5.000 Moedas VIP)\n{ffffff}na troca, nao sera mais obrigatorio usar o padrao Nome
Sobrenome, voce podera\n{ffffff}deixar so o Nome como nick.");
AC_ShowPlayerDialog(playerid, 36000,DIALOG_STYLE_MSGBOX, "Tutorial",
stringZCMD, "Proximo", "Voltar");*/
tempotutorial[playerid] = SetTimerEx("TempoTut", 3000, 1, "i", playerid);
ClearChatbox(playerid, 100);
}
else if(numero == 7)
{
SIntro(playerid, 7);
SelectTextDraw(playerid, 0x0080FFC8);
PulaTuto[playerid] = 1;
NoTuto[playerid] = 1;
PTextSetString(playerid,TituloTuto[playerid], "HOSPITAL");
PTextShow(playerid, TituloTuto[playerid]);
TextDrawShowForPlayer(playerid, BTTUTO[0]);
TextDrawShowForPlayer(playerid, BTTUTO[1]);
TextDrawShowForPlayer(playerid, BaseTuto[0]);
SelectTextDraw(playerid, 0x00FF00FF);
strcat(MEGAString, " ~w~El S.A.M.U (Servicio de Atencion Movil de
Urgencia) tiene una nueva sede que,~n~");
strcat(MEGAString, " ~w~facilitara la atencion para casos de
incendios y tambien en casos de~n~");
strcat(MEGAString, " ~w~tambien en casos de llamadas del /servico
medico. Sera una Organizacion mas~n~");
strcat(MEGAString, " ~w~con sede en Los Santos responsable por todo
San Andreas, cuando el jugador~n~");
strcat(MEGAString, " ~w~muera, ira al Hospital de Los
Santos.~n~");
BalaoTuto(playerid, MEGAString);
if(TaEscutando[playerid] == 0) StopAudioStreamForPlayer(playerid);
////if(TaEscutando[playerid] == 0)
PlayAudioStreamForPlayer(playerid,"http://brasilperfectlife.com/tutorial/
tutorialparte7.mp3");
/*format(stringZCMD, sizeof stringZCMD, "{ffffff}O S.A.M.U (Servico de
Atendimento Movel de Urgencia) tem uma nova HQ que\n{ffffff}facilitara o
atendimento para casos de incendios e tambem de mortes(Desativado, somente cadaver
pode pegar os mortos!)\n{ffffff}tambem em casos de chamadas do /servico medico.
Sera mais uma Organizacao\n{ffffff}com Sede em Los Santos responsavel por toda San
Andreas, quando o player\n{ffffff}morrer ele ira para o Hospital de Los Santos.");
AC_ShowPlayerDialog(playerid, 37000,DIALOG_STYLE_MSGBOX, "Tutorial",
stringZCMD, "Proximo", "Voltar");*/
tempotutorial[playerid] = SetTimerEx("TempoTut", 3000, 1, "i", playerid);
ClearChatbox(playerid, 100);
}
else if(numero == 8)
{
SIntro(playerid, 8);
SelectTextDraw(playerid, 0x0080FFC8);
PulaTuto[playerid] = 1;
NoTuto[playerid] = 1;
PTextSetString(playerid,TituloTuto[playerid], "ESTACIONES DE GASOLINA");
PTextShow(playerid, TituloTuto[playerid]);
TextDrawShowForPlayer(playerid, BTTUTO[0]);
TextDrawShowForPlayer(playerid, BTTUTO[1]);
TextDrawShowForPlayer(playerid, BaseTuto[0]);
SelectTextDraw(playerid, 0x00FF00FF);
strcat(MEGAString, " ~w~Habra varias estaciones de gasolina
repartidas por todo San Andreas~n~");
strcat(MEGAString, " ~w~Podras abastecer tu vehiculo en cualquier
momento, en caso de no haber~n~");
strcat(MEGAString, " ~w~DETRAN online, les aconsejamos que usen el
/servico mecanico, pues ademas~n~");
strcat(MEGAString, " ~w~de abastecer su vehiculo, ellos tambien
pueden reparar la carroceria.~n~");
BalaoTuto(playerid, MEGAString);
if(TaEscutando[playerid] == 0) StopAudioStreamForPlayer(playerid);
////if(TaEscutando[playerid] == 0)
PlayAudioStreamForPlayer(playerid,"http://brasilperfectlife.com/tutorial/
tutorialparte8.mp3");
/* format(stringZCMD, sizeof stringZCMD, "{ffffff}Ter�o varios Postos de
Gasolinas espalhados por todo San Andreas\n{ffffff}Voc� podera abastecer o seu
veiculo a qualquer momento, caso nao tenha\n{ffffff}DETRAN online, nos aconselhamos
voces a usarem o /servico mecanico, pois alem\n{ffffff}deles abastecerem seu
veiculo, eles tambem podem reparar a lataria.");
AC_ShowPlayerDialog(playerid, 38000,DIALOG_STYLE_MSGBOX, "Tutorial",
stringZCMD, "Proximo", "Voltar");*/
tempotutorial[playerid] = SetTimerEx("TempoTut", 3000, 1, "i", playerid);
ClearChatbox(playerid, 100);
}
else if(numero == 9)
{
SIntro(playerid, 9);
SelectTextDraw(playerid, 0x0080FFC8);
PulaTuto[playerid] = 1;
NoTuto[playerid] = 1;
PTextSetString(playerid,TituloTuto[playerid], "TIENDA DE
�TILES~n~[24/7]");
PTextShow(playerid, TituloTuto[playerid]);
TextDrawShowForPlayer(playerid, BTTUTO[0]);
TextDrawShowForPlayer(playerid, BTTUTO[1]);
TextDrawShowForPlayer(playerid, BaseTuto[0]);
SelectTextDraw(playerid, 0x00FF00FF);
strcat(MEGAString, " ~w~Cada una de las 3 ciudades: Los Santos, San
Fierro y Las Venturas tendran dos 24/7,~n~");
strcat(MEGAString, " ~w~esta es la tienda de comercio mas importante
del servidor, por eso, tendra~n~");
strcat(MEGAString, " ~w~2 en cada ciudad. Todo jugador novato debe ir a
un 24/7 usando el /gps para comprar~n~");
strcat(MEGAString, " ~w~su Agenda Telefonica, Telefono Celular, Credito
y muchas otras cosas necesarias.~n~");
BalaoTuto(playerid, MEGAString);
if(TaEscutando[playerid] == 0) StopAudioStreamForPlayer(playerid);
////if(TaEscutando[playerid] == 0)
PlayAudioStreamForPlayer(playerid,"http://brasilperfectlife.com/tutorial/
tutorialparte9.mp3");
/*format(stringZCMD, sizeof stringZCMD, "{ffffff}Cada uma das 3 Cidades:
L.S, S.Fe L.V tera duas 24/7, essa e a loja\n{ffffff}de comercio das mais
importantes que no servidor, por isso, tera\n{ffffff}1 em cada cidade. Todo player
novato deve ir ate � 24/7 localizando pelo /gps\n{ffffff}para comprar sua Agenda
Telef�nica, Telefone Celular, Creditos e muito mais.");
AC_ShowPlayerDialog(playerid, 39000,DIALOG_STYLE_MSGBOX, "Tutorial",
stringZCMD, "Proximo", "Voltar");*/
tempotutorial[playerid] = SetTimerEx("TempoTut", 3000, 1, "i", playerid);
ClearChatbox(playerid, 100);
}
else if(numero == 10)
{
SIntro(playerid, 10);
SelectTextDraw(playerid, 0x0080FFC8);
PulaTuto[playerid] = 1;
NoTuto[playerid] = 1;
PTextSetString(playerid,TituloTuto[playerid], "TIENDA DE ROPAS");
PTextShow(playerid, TituloTuto[playerid]);
TextDrawShowForPlayer(playerid, BTTUTO[0]);
TextDrawSetString(BTTUTO[0], "Terminar ~>~");
TextDrawShowForPlayer(playerid, BTTUTO[1]);
TextDrawShowForPlayer(playerid, BaseTuto[0]);
SelectTextDraw(playerid, 0x00FF00FF);
SelectTextDraw(playerid, 0x00FF00FF);
strcat(MEGAString, " ~w~Tambien siendo una de las mas importantes
del servidor, habra 2 Binco en~n~");
strcat(MEGAString, " ~w~cada una de las 3 ciudades. Para ti, que eres
nuevo, Binco es la tienda donde podras~n~");
strcat(MEGAString, " ~w~cambiar tu ropa (SKIN), puedes localizar la
mas cercana por el /gps, y no~n~");
strcat(MEGAString, " ~w~necesitas saber el numero, con nuestro nuevo
sistema, veras las ropas en un~n~");
strcat(MEGAString, " ~w~panel exclusivo muy
genial para elegir tu Skin.~n~");
BalaoTuto(playerid, MEGAString);
if(TaEscutando[playerid] == 0) StopAudioStreamForPlayer(playerid);
////if(TaEscutando[playerid] == 0)
PlayAudioStreamForPlayer(playerid,"http://brasilperfectlife.com/tutorial/
tutorialparte10.mp3");
/*format(stringZCMD, sizeof stringZCMD, "{ffffff}Por tambem ser um dos mais
importantes do Servidor, ter�o 2 bincos em\n{ffffff}casa uma das 2 Cidades mais
Expandidas(LS & SF). Para voc� que e novo, a Binco e a loja onde voc� podera");
strcat(stringZCMD, "\n{ffffff}trocar a sua roupa(Skin), voc� pode localizar
a mais proxima pelo /GPS, e n�o\n{ffffff}precisa saber o numero(Id da Skin), com o
nosso belo sistema, voc� escolhera as roupas por um\n{ffffff}painel bem bonito para
escolher a sua.");
AC_ShowPlayerDialog(playerid, 40000,DIALOG_STYLE_MSGBOX, "Tutorial",
stringZCMD, "Finalizar", "Voltar");*/
tempotutorial[playerid] = SetTimerEx("TempoTut", 3000, 1, "i", playerid);
ClearChatbox(playerid, 100);
}
if(numero == 11)
{
SIntro(playerid, 11);
if(TaEscutando[playerid] == 0)
StopAudioStreamForPlayer(playerid);
TogglePlayerControllable(playerid, 1);
NoTuto[playerid] = 0;
ClearChatbox(playerid, 100);
WantedLevel[playerid] = 0;
gNews[playerid] = 0;
gFam[playerid] = 0;
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pCaixinha] = char;
MedicBill[playerid] = 0;
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][pConta] = 100;
PlayerPlayMusic(playerid);
new randphone = random(2000) + 1000;
PlayerInfo[playerid][pPnumber] = randphone;
PlayerInfo[playerid][pCreditos] = 50;
RegistrationStep[playerid] = 2;
ResetPlayerMoneyEx(playerid);
PlayerInfo[playerid][pCoins] = 0;
MudarNick[playerid] = 0;
PlayerInfo[playerid][pDiaVIP] = 0;
PlayerInfo[playerid][pReceberCoins] = 0;
TogglePlayerSpectating(playerid, 0);
CancelSelectTextDraw(playerid);
PlayerInfo[playerid][pTutorial] = 1;
MEGAString[0] = EOS;
PlayerInfo[playerid][pSpawnCasa] = 0;
strcat(MEGAString, "{FF6347}Alerta: {818689}Deseas dejar el
sistema de Hambre y Sed {33AA33}ACTIVO {ffffff}?\n\n{1D49F5}Obs: {FFFFFF}Con el
sistema activo recibiras mas experiencias por cada salario (Pay Day).\nPodras
invertir esta configuracion posteriormente utilizando el
comando\n(/configuraciones).\n\n{818689}Elige una opcion a continuacion:");
AC_ShowPlayerDialog(playerid, 170, DIALOG_STYLE_MSGBOX,
"Sistema de Hambre y Sed:", MEGAString, "Activado","Desactivado");
SalvarDados(playerid);
if(PlayerInfo[playerid][pSpawnCity] == 0)
{
SetPlayerPos(playerid,401.101257, -
1534.538574, 32.273437); //nascimento civil LS
SetPlayerFacingAngle(playerid, 85.2640);
SetPlayerInterior(playerid,0);
SetPlayerHealth(playerid, 100);
SetPlayerVirtualWorld(playerid,0);
InteriorAtual[playerid] = 0;
}
else if(PlayerInfo[playerid][pSpawnCity] == 1)
{
SetPlayerPos(playerid,-
2651.0117,376.2788,6.0019); //nascimento civil LS
SetPlayerFacingAngle(playerid, 266.9954);
SetPlayerInterior(playerid,0);
SetPlayerHealth(playerid, 100);
SetPlayerVirtualWorld(playerid,0);
InteriorAtual[playerid] = 0;
}
//IrAviao(playerid);
return true;
}
return true;
}
stock SIntro(playerid, numero)
{
//STuto(playerid, numero);
if(numero == 1)
{
BalaoIntro(playerid, 3000);
InterpolateCameraPos(playerid, 1373.140991, -1538.602783, 71.347488,
355.787139, -2071.047363, 33.855346, 2000);
InterpolateCameraLookAt(playerid, 1375.748168, -1542.764160, 70.406265,
357.989105, -2066.841552, 32.285888, 2000);
}
else if(numero == 2)
{
BalaoIntro(playerid, 3000);
InterpolateCameraPos(playerid, 356.278991, -2070.790039, 33.873474,
416.227844, -2064.998291, 34.081260, 2000);
InterpolateCameraLookAt(playerid, 358.518554, -2066.568847, 32.401844,
413.841278, -2060.867675, 32.583518, 2000);
}
else if(numero == 3)
{
BalaoIntro(playerid, 3000);
InterpolateCameraPos(playerid, 417.467346, -2066.077392, 33.593154,
629.644836, -1194.573120, 41.695526, 2000);
InterpolateCameraLookAt(playerid, 415.093231, -2061.912109, 32.173877,
627.121154, -1198.732055, 40.540431, 2000);
}
else if(numero == 4)
{
BalaoIntro(playerid, 3000);
InterpolateCameraPos(playerid, 629.569458, -1194.882690, 41.692649,
1472.384765, -1662.491333, 94.100547, 2000);
InterpolateCameraLookAt(playerid, 627.119506, -1199.021484, 40.325893,
1472.501098, -1666.528564, 91.153190, 2000);
}
else if(numero == 5)
{
BalaoIntro(playerid, 3000);
InterpolateCameraPos(playerid, 1474.141357, -1657.624023, 93.588981,
1483.662353, -1675.891967, 56.222351, 2000);
InterpolateCameraLookAt(playerid, 1474.197021, -1661.968994, 91.115432,
1488.123535, -1675.960693, 53.965579, 2000);
}
else if(numero == 6)
{
BalaoIntro(playerid, 3000);
InterpolateCameraPos(playerid, 1485.420288, -1677.946289, 54.545982,
1495.827392, -1047.616943, 51.008617, 2000);
InterpolateCameraLookAt(playerid, 1489.987548, -1677.918579, 52.511463,
1491.996704, -1045.214477, 48.874679, 2000);
}
else if(numero == 7)
{
BalaoIntro(playerid, 3000);
InterpolateCameraPos(playerid, 1495.896728, -1054.219970, 42.066879,
1216.954711, -1321.030883, 29.771400, 2000);
InterpolateCameraLookAt(playerid, 1492.540161, -1050.927001, 40.367076,
1212.237670, -1321.213134, 28.123128, 2000);
}
else if(numero == 8)
{
BalaoIntro(playerid, 3000);
InterpolateCameraPos(playerid, 1971.058593, -1472.343750, 38.582046,
1977.998168, -1740.813964, 26.365934, 2000);
InterpolateCameraLookAt(playerid, 1974.753173, -1469.053833, 37.856494,
1974.047119, -1743.641235, 25.184249, 2000);
}
else if(numero == 9)
{
BalaoIntro(playerid, 3000);
InterpolateCameraPos(playerid, 1977.995239, -1740.702026, 26.371028,
1351.317382, -1730.533569, 32.327655, 2000);
InterpolateCameraLookAt(playerid, 1974.014892, -1743.550292, 25.349369,
1351.232666, -1734.765625, 29.666429, 2000);
}
else if(numero == 10)
{
BalaoIntro(playerid, 3000);
InterpolateCameraPos(playerid, 1351.317382, -1730.533569, 32.327655,
2257.402587, -1658.045776, 20.899621, 2000);
InterpolateCameraLookAt(playerid, 1351.232666, -1734.765625, 29.666429,
2253.029785, -1659.992065, 19.454145, 2000);
}
else if(numero > 10)
{
KillTimer(tempobalao[playerid]);
SetCameraBehindPlayer(playerid);
return true;
}
return true;
}
stock ConvertMoney(number)
{
new real,mil,milhao,milhaor,bilhao,bilhaor,string[100];
if(number > 999999999)
{
bilhao = number / 1000000000;
bilhaor = number % 1000000000;
milhao = bilhaor / 1000000;
milhaor = bilhaor % 1000000;
mil = milhaor / 1000;
real = milhaor % 1000;
}
else if(number > 999999)
{
milhao = number / 1000000;
milhaor = number % 1000000;
mil = milhaor / 1000;
real = milhaor % 1000;
}
else if(number > 999)
{
mil = number / 1000;
real = number % 1000;
}
if(number > 999999999)
{
format(string, 100, "%d.%03d.%03d.%03d", bilhao, milhao, mil, real);
}
else if(number > 999999)
{
format(string, 100, "%d.%03d.%03d", milhao, mil, real);
}
else if(number > 999)
{
format(string, 100, "%d.%03d", mil, real);
}
else
{
format(string, 100, "%d", number);
}
return string;
}
stock ConvertMoneyPix(number)
{
new real,mil,milhao,milhaor,bilhao,bilhaor,string[100];
if(number > 999999999)
{
bilhao = number / 1000000000;
bilhaor = number % 1000000000;
milhao = bilhaor / 1000000;
milhaor = bilhaor % 1000000;
mil = milhaor / 1000;
real = milhaor % 1000;
}
else if(number > 999999)
{
milhao = number / 1000000;
milhaor = number % 1000000;
mil = milhaor / 1000;
real = milhaor % 1000;
}
else if(number > 999)
{
mil = number / 1000;
real = number % 1000;
}
if(number > 999999999)
{
format(string, 100, "%02d.%03d.%03d-%03d", bilhao, milhao, mil, real);
}
else if(number > 999999)
{
format(string, 100, "00.%d.%03d-%03d", milhao, mil, real);
}
else if(number > 999)
{
format(string, 100, "00.000.%d-%03d", mil, real);
}
else
{
format(string, 100, "00.000.000-%03d", number);
}
return string;
}
stock ConvertTimeRG(number)
{
new hours = 0, mins = 0, string[100];
hours = floatround(number / 3600);
mins = floatround((number / 60) - (hours * 60));
new days = 0;
if(hours >= 24)
{
days = floatround((hours/24), floatround_floor);
hours = hours % 24;
}
if(days > 0)
{
format(string, 100, "%d", days);
}
else if(hours > 0)
{
format(string, 100, "%02d horas", hours);
}
else
{
format(string, 100, "%02d minutos", mins);
}
return string;
}
stock ConvertTime(number)
{
new hours = 0, mins = 0, secs = 0, string[100];
hours = floatround(number / 3600);
mins = floatround((number / 60) - (hours * 60));
secs = floatround(number - ((hours * 3600) + (mins * 60)));
new days = 0;
if(hours >= 24)
{
days = floatround((hours/24), floatround_floor);
hours = hours % 24;
}
if(days > 0)
{
format(string, 100, "%d dias, %02d:%02d:%02d", days, hours, mins, secs);
}
else if(hours > 0)
{
format(string, 100, "%02d:%02d:%02d", hours, mins, secs);
}
else
{
format(string, 100, "%02d:%02d:%02d", hours, mins, secs);
}
return string;
}
stock ConvertTimee(number)
{
new hours = 0, mins = 0, secs = 0, string[100];
hours = floatround(number / 3600);
mins = floatround((number / 60) - (hours * 60));
secs = floatround(number - ((hours * 3600) + (mins * 60)));
new days = 0;
if(hours >= 24)
{
days = floatround((hours/24), floatround_floor);
hours = hours % 24;
}
if(days > 0)
{
format(string, 100, "%d dias, %02d:%02d:%02d", days, hours, mins, secs);
}
else if(hours > 0)
{
format(string, 100, "%02d:%02d:%02d", hours, mins, secs);
}
else
{
format(string, 100, "%02d:%02d", mins, secs);
}
return string;
}
stock ConvertTimeYT(number)
{
new hours = 0, mins = 0, secs = 0, string[100];
hours = floatround(number / 3600);
mins = floatround((number / 60) - (hours * 60));
secs = floatround(number - ((hours * 3600) + (mins * 60)));
new days = 0;
if(hours >= 24)
{
days = floatround((hours/24), floatround_floor);
hours = hours % 24;
}
if(days > 0)
{
format(string, 100, "%d dias, %02d:%02d:%02d", days, hours, mins, secs);
}
else if(hours > 0)
{
format(string, 100, "%02d:%02d:%02d", hours, mins, secs);
}
else
{
format(string, 100, "%02d:%02d:%02d", hours, mins, secs);
}
return string;
}
stock ConvertTimePayDay(number)
{
new hours = 0, mins = 0, secs = 0, string[100];
hours = floatround(number / 3600);
mins = floatround((number / 60) - (hours * 60));
secs = floatround(number - ((hours * 3600) + (mins * 60)));
// new days = 0;
format(string, 100, "%d:%d", mins, secs);
return string;
}
if(SBizzInfo[idx][sbOwned] == 0)
{
SBizzInfo[idx][sbPickup] = CreatePickup(1273, 23,SBizzInfo[idx]
[sbEntranceX], SBizzInfo[idx][sbEntranceY], SBizzInfo[idx][sbEntranceZ], 0);
format(gstring, sizeof(gstring), "%s\nEsta empresa esta a venda\
nValor: R$%d Nivel: %d\nPara comprar digite /compraremp",SBizzInfo[idx]
[sbMessage],SBizzInfo[idx][sbBuyPrice],SBizzInfo[idx][sbLevelNeeded]);
SBizzLabel[idx] =
Create3DTextLabel(gstring,0x00FF00FF,SBizzInfo[idx][sbEntranceX], SBizzInfo[idx]
[sbEntranceY], SBizzInfo[idx][sbEntranceZ]+0.5,20.0,0);
}
if(SBizzInfo[idx][sbOwned] == 1)
{
SBizzInfo[idx][sbPickup] = CreatePickup(19523, 23,SBizzInfo[idx]
[sbEntranceX], SBizzInfo[idx][sbEntranceY], SBizzInfo[idx][sbEntranceZ], 0);
format(gstring, sizeof(gstring), TextMEmpresa, idx,
SBizzInfo[idx][sbMessage],SBizzInfo[idx][sbOwner],ConvertMoney(SBizzInfo[idx]
[sbTill]),SBizzInfo[idx][sbExtortion]);
SBizzLabel[idx] =
Create3DTextLabel(gstring,0x00FF00FF,SBizzInfo[idx][sbEntranceX], SBizzInfo[idx]
[sbEntranceY], SBizzInfo[idx][sbEntranceZ]+0.5,20.0,0);
}
}
idx++;
}
return idx;
}
AddStaticPickup(1579, 1, FBizzInfo[idx][fbEntranceX],
FBizzInfo[idx][fbEntranceY], FBizzInfo[idx][fbEntranceZ]);
format(string, sizeof(string),
TextFEmpresaVenda,idx,ConvertMoney(FBizzInfo[idx][fbBuyPrice]),FBizzInfo[idx]
[fbLevelNeeded],FBizzInfo[idx][fbMaxProducts]-FBizzInfo[idx]
[fbProducts],FBizzInfo[idx][fbPriceProd]);
FBizzLabel[idx] =
Create3DTextLabel(string,COR_AZULBB,FBizzInfo[idx][fbEntranceX], FBizzInfo[idx]
[fbEntranceY], FBizzInfo[idx][fbEntranceZ]+0.5,20.0,0);
}
if(FBizzInfo[idx][fbOwned] == 1)
{//#define "{33CCFF}Fazenda (ID: %d)\n{ffffff}Dono: {33CCFF}%s\
n{ffffff}Nome da Fazenda: {33CCFF}%s\n{ffffff}Taxa de Entrada: {228b22}%d\
n{ffffff}Fundos: {228b22}%d\n{ffffff}Produtos: {33CCFF}%d\n{ffffff}Produtos
Requerido: {33CCFF}%d\n{ffffff}Pre�o por produto: {228B22}R$%d"
"{ffffff}Fazenda (ID: %d)\nDono: {00ff00}%s\n{ffffff}Nome: {228B22}%s\
n{ffffff}Fundos: {228B22}%d\n{ffffff}Produtos: {00ffff}%d\n{ffffff}Produtos
Requerido: {00ffff}%s\n{ffffff}Pre�o por produto: {228B22}R$%d"
AddStaticPickup(1580, 1, FBizzInfo[idx][fbEntranceX],
FBizzInfo[idx][fbEntranceY], FBizzInfo[idx][fbEntranceZ]);
format(string, sizeof(string),
TextFEmpresa,idx,FBizzInfo[idx][fbOwner], FBizzInfo[idx][fbNome], FBizzInfo[idx]
[fbEntranceCost], ConvertMoney(FBizzInfo[idx][fbTill]),FBizzInfo[idx][fbProducts],
FBizzInfo[idx][fbMaxProducts], FBizzInfo[idx][fbPriceProd]);
FBizzLabel[idx] =
Create3DTextLabel(string,COR_AZULBB,FBizzInfo[idx][fbEntranceX], FBizzInfo[idx]
[fbEntranceY], FBizzInfo[idx][fbEntranceZ]+0.5,20.0,0);
}
new i = idx;
//COFRE ABERTO
//PortaCAberta[i] = CreateDynamicObject(1829, 279.98291,
321.94641, 1003.31512, 0.00000, 0.00000, 91.16900, i);
//COFRE FECHADO
PortaCFechada[0][i] = CreateDynamicObject(19618, 279.67471,
321.94131, 1003.33228, 0.00000, 0.00000, 91.05600, i);
PortaCFechada[1][i] = CreateDynamicObject(19619, 279.92319,
321.52979, 1003.33502, 0.00000, 0.00000, 91.26000, i);
//TEXTO DO COFRE
format(stringZCMD, 200, "{aaacae}O Cofre Possui R${ffffff}%s
{aaacae}de grana\n{aaacae}Dano: 200\n{aaacae}Para arrombar, digite:
{ffffff}/dinamitar", ConvertMoney(FBizzInfo[i][fbTill]));
FazendaTEXT[i] = Create3DTextLabel(stringZCMD, 0xAAACAEFF,
280.3570,321.9892,1003.8513, 7.5, i);
//DEFINIR DANO DA FAZENDA
FazendaDano[i] = 200;
faztime[i] = SetTimerEx("Lucrofaz", 60000*5, 0, "d", i);
idx2++;
}
}
return idx2;
}
if(BizzInfo[idx][bOwned] == 0)
{
BizzPickup[idx] = CreatePickup(1273, 23,BizzInfo[idx]
[bEntranceX], BizzInfo[idx][bEntranceY], BizzInfo[idx][bEntranceZ], 0);
format(gstring, sizeof(gstring), "{00ff00}%s\nEsta empresa esta a
venda\nValor: R$%d Nivel: %d\nPara comprar digite: /compraremp",BizzInfo[idx]
[bMessage],BizzInfo[idx][bBuyPrice],BizzInfo[idx][bLevelNeeded]);
BizzLabel[idx] =
Create3DTextLabel(gstring,0x00FF00FF,BizzInfo[idx][bEntranceX], BizzInfo[idx]
[bEntranceY], BizzInfo[idx][bEntranceZ]+0.5,20.0, 0);
}
if(BizzInfo[idx][bOwned] == 1)
{
format(gstring, sizeof(gstring), TextEmpresa, idx, BizzInfo[idx]
[bMessage],BizzInfo[idx][bOwner],BizzInfo[idx][bExtortion],BizzInfo[idx]
[bEntranceCost], BizzInfo[idx][bTill]);
BizzLabel[idx] =
Create3DTextLabel(gstring,0x00FF00FF,BizzInfo[idx][bEntranceX], BizzInfo[idx]
[bEntranceY], BizzInfo[idx][bEntranceZ]+0.5,20.0, 0);
}
}
idx2++;
}
if(BizzInfo[0][bOwned] == 1)
{
BizzPickup[0] = CreatePickup(19523, 23, BizzInfo[0][bEntranceX],
BizzInfo[0][bEntranceY], BizzInfo[0][bEntranceZ]);
}
if(BizzInfo[1][bOwned] == 1)
{
BizzPickup[1] = CreatePickup(19523, 23, BizzInfo[1][bEntranceX],
BizzInfo[1][bEntranceY], BizzInfo[1][bEntranceZ]);
}
if(BizzInfo[2][bOwned] == 1)
{
BizzPickup[2] = CreatePickup(19523, 23, BizzInfo[2][bEntranceX],
BizzInfo[2][bEntranceY], BizzInfo[2][bEntranceZ]);
}
if(BizzInfo[3][bOwned] == 1)
{
BizzPickup[3] = CreatePickup(19523, 23, BizzInfo[3][bEntranceX],
BizzInfo[3][bEntranceY], BizzInfo[3][bEntranceZ]);
}
if(BizzInfo[4][bOwned] == 1)
{
BizzPickup[4] = CreatePickup(19523, 23, BizzInfo[4][bEntranceX],
BizzInfo[4][bEntranceY], BizzInfo[4][bEntranceZ]);
}
if(BizzInfo[5][bOwned] == 1)
{
BizzPickup[5] = CreatePickup(19523, 23, BizzInfo[5][bEntranceX],
BizzInfo[5][bEntranceY], BizzInfo[5][bEntranceZ]);
}
if(BizzInfo[6][bOwned] == 1)
{
BizzPickup[6] = CreatePickup(19523, 23, BizzInfo[6][bEntranceX],
BizzInfo[6][bEntranceY], BizzInfo[6][bEntranceZ]);
}
if(BizzInfo[7][bOwned] == 1)
{
BizzPickup[7] = CreatePickup(19523, 23, BizzInfo[7][bEntranceX],
BizzInfo[7][bEntranceY], BizzInfo[7][bEntranceZ]);
}
if(BizzInfo[8][bOwned] == 1)
{
BizzPickup[8] = CreatePickup(19523, 23, BizzInfo[8][bEntranceX],
BizzInfo[8][bEntranceY], BizzInfo[8][bEntranceZ]);
}
if(BizzInfo[9][bOwned] == 1)
{
BizzPickup[9] = CreatePickup(19523, 23, BizzInfo[9][bEntranceX],
BizzInfo[9][bEntranceY], BizzInfo[9][bEntranceZ]);
}
if(BizzInfo[10][bOwned] == 1)
{
BizzPickup[10] = CreatePickup(19523, 23, BizzInfo[10][bEntranceX],
BizzInfo[10][bEntranceY], BizzInfo[10][bEntranceZ]);
}
if(BizzInfo[11][bOwned] == 1)
{
BizzPickup[11] = CreatePickup(19523, 23, BizzInfo[11][bEntranceX],
BizzInfo[11][bEntranceY], BizzInfo[11][bEntranceZ]);
}
if(BizzInfo[12][bOwned] == 1)
{
BizzPickup[12] = CreatePickup(19523, 23, BizzInfo[12][bEntranceX],
BizzInfo[12][bEntranceY], BizzInfo[12][bEntranceZ]);
}
if(BizzInfo[14][bOwned] == 1)
{
BizzPickup[14] = CreatePickup(19523, 23, BizzInfo[14][bEntranceX],
BizzInfo[14][bEntranceY], BizzInfo[14][bEntranceZ]);
}
if(BizzInfo[15][bOwned] == 1)
{
BizzPickup[15] = CreatePickup(19523, 23, BizzInfo[15][bEntranceX],
BizzInfo[15][bEntranceY], BizzInfo[15][bEntranceZ]);
}
if(BizzInfo[16][bOwned] == 1)
{
BizzPickup[16] = CreatePickup(19523, 23, BizzInfo[16][bEntranceX],
BizzInfo[16][bEntranceY], BizzInfo[16][bEntranceZ]);
}
if(BizzInfo[17][bOwned] == 1)
{
BizzPickup[17] = CreatePickup(19523, 23, BizzInfo[17][bEntranceX],
BizzInfo[17][bEntranceY], BizzInfo[17][bEntranceZ]);
}
return idx2;
}
if(fexist(files))
{
HouseInfo[idx][hCriada] = true;
HouseInfo[idx][hEntrancex] = DOF2_GetFloat(files, "EntradaX");
HouseInfo[idx][hEntrancey] = DOF2_GetFloat(files, "EntradaY");
HouseInfo[idx][hEntrancez] = DOF2_GetFloat(files, "EntradaZ");
strmid(HouseInfo[idx][hOwner],DOF2_GetString(files, "Dono"),
0 ,strlen(DOF2_GetString(files, "Dono")), 255);
strmid(HouseInfo[idx][hDescricao], DOF2_GetString(files,
"Descricao"), 0 , strlen(DOF2_GetString(files, "Descricao")), 255);
strmid(HouseInfo[idx][hType], DOF2_GetString(files, "Tipo"), 0 ,
strlen(DOF2_GetString(files, "Tipo")), 255);
if(HouseInfo[idx][hOwned] == 0)
{
HousePickup[idx] = CreatePickup(1273, 23,HouseInfo[idx]
[hEntrancex], HouseInfo[idx][hEntrancey], HouseInfo[idx][hEntrancez]);
format(stringZCMD, 450, TextCasaVenda,idx,HouseInfo[idx]
[hValue],HouseInfo[idx][hLevel]);
HouseLabel[idx] =
Create3DTextLabel(stringZCMD,0x00FF00FF,HouseInfo[idx][hEntrancex], HouseInfo[idx]
[hEntrancey], HouseInfo[idx][hEntrancez]+0.5,13.0, 0);
}
else if(HouseInfo[idx][hOwned] == 1)
{
HousePickup[idx] = CreatePickup(19522, 23, HouseInfo[idx]
[hEntrancex], HouseInfo[idx][hEntrancey], HouseInfo[idx][hEntrancez]);
if(HouseInfo[idx][hRentabil] == 0)
{
format(stringZCMD, 450, TextCasa,idx,HouseInfo[idx]
[hOwner],HouseInfo[idx][hRent],HouseInfo[idx][hLevel],HouseInfo[idx][hType],
HouseInfo[idx][hDescricao]);
HouseLabel[idx] =
Create3DTextLabel(stringZCMD,0x00FF00FF,HouseInfo[idx][hEntrancex], HouseInfo[idx]
[hEntrancey], HouseInfo[idx][hEntrancez]+0.5,13.0, 0);
}
else
{
format(stringZCMD, 450, TextCasaAlug,idx,HouseInfo[idx]
[hOwner],HouseInfo[idx][hRent],HouseInfo[idx][hLevel], HouseInfo[idx][hType],
HouseInfo[idx][hDescricao]);
HouseLabel[idx] =
Create3DTextLabel(stringZCMD,0x00FF00FF,HouseInfo[idx][hEntrancex], HouseInfo[idx]
[hEntrancey], HouseInfo[idx][hEntrancez]+0.5,13.0, 0);
}
}
CarregarMoveis(idx);
//SFT_Monitoramento("[Soft de Monitoramento] Uma casa acaba de ser
carregada no servidor.", 2);
}
idx2++;
}
return idx2;
}
stock GetPlayerSerial(playerid)
{
new serial[512];
gpci(playerid,serial,sizeof(serial));
return serial;
}
stock GetPlayerSerialINI(playerid)
{
new serialini[512];
format(serialini,sizeof(serialini),"Banimento/BanidosSerial/%s",GetPlayerSerial(pla
yerid));
return serialini;
}
forward GivePlayerHealth(playerid, Float:Vida);
new wheelmodels[17] =
{1025,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1096,1097,10
98};
for(new I = 0, b = sizeof(wheelmodels); I != b; ++I)
{
if (modelid == wheelmodels[I])
{
return true;
}
}
return false;
}
stock IllegalCarNitroIde(carmodel)
{
new illegalvehs[29] = { 581, 523, 462, 521, 463, 522, 461, 448, 468, 586, 509,
481, 510, 472, 473, 493, 595, 484, 430, 453, 452, 446, 454, 590, 569, 537, 538,
570, 449 };
for(new I = 0, b = sizeof(illegalvehs); I != b; ++I)
{
if (carmodel == illegalvehs[I])
{
return true;
}
}
return false;
}
// assumes player is in a car - make sure it is.
stock illegal_nos_vehicle(playerid)
{
}
stock islegalcarmod(vehicleide, componentid) {
}
else
{
// check if the specified model CAN use this particular mod.
for(new I = 0, b = sizeof(legalmods); I != b; ++I)
{
if (legalmods[I][0] == vehicleide)
{ // first is car IDE
if(X > MINX && X < MAXX && Y > MINY && Y < MAXY)
{
return 1; // if player is in that area , the stock will return 1 or true
}
return 0; // if not then 0 or false
}
stock GeRPumberOfPlayersOnThisIP(test_ip[])
{
new against_ip[32+1];
new ip_count = 0;
foreach(new x: Player)
{
if(IsPlayerConnected(x))
{
GetPlayerIp(x,against_ip,32);
if(!strcmp(against_ip,test_ip))
{
ip_count++;
}
}
}
return ip_count;
}
stock IsPlayerInAirPlane(vehicleid)
{
switch(GetVehicleModel(vehicleid))
{
case
460,464,476,511,512,513,519,520,553,577,592,593,//flying vehicle
models
417,425,447,465,469,487,488,497,501,548,563:
return true;
}
return false;
}
stock Float:GetPlayerMoveCount(Float:oldd,Float:neww)
{
new Float:ret;
if(oldd < neww)
{
ret = neww - oldd;//tag mismatch
}
else if(neww > oldd)
{
ret = oldd - neww;//tag mismatch
}
else if(neww == oldd)
{
ret = 0;
}
return ret;
}
stock GetWeaponSlot(weaponid)
{
new slot;
switch(weaponid)
{
case 0,1: slot = 0;
case 2 .. 9: slot = 1;
case 10 .. 15: slot = 10;
case 16 .. 18, 39: slot = 8;
case 22 .. 24: slot =2;
case 25 .. 27: slot = 3;
case 28, 29, 32: slot = 4;
case 30, 31: slot = 5;
case 33, 34: slot = 6;
case 35 .. 38: slot = 7;
case 40: slot = 12;
case 41 .. 43: slot = 9;
case 44 .. 46: slot = 11;
}
return slot;
}
stock GetWeaponModel(weaponid)
{
switch(weaponid)
{
case 1:
return 331;
case 2..8:
return weaponid+331;
case 9:
return 341;
case 10..15:
return weaponid+311;
case 16..18:
return weaponid+326;
case 22..29:
return weaponid+324;
case 30,31:
return weaponid+325;
case 32:
return 372;
case 33..45:
return weaponid+324;
case 46:
return 371;
}
return 0;
}
stock AngleInRangeOfAngle(Float:a1, Float:a2, Float:range)
{
a1 -= a2;
if((a1 < range) && (a1 > -range)) return true;
return false;
}
stock IsPlayerFacingPlayer(playerid, targetid, Float:dOffset)
{
new Float:pX,Float:pY,Float:pZ,Float:pA,Float:X,Float:Y,Float:Z,Float:ang;
if(!IsPlayerConnected(playerid) || !IsPlayerConnected(targetid))
{
return 0;
}
GetPlayerPos(targetid, pX, pY, pZ);
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, pA);
if( Y > pY ) ang = (-acos((X - pX) / floatsqroot((X - pX)*(X - pX) + (Y -
pY)*(Y - pY))) - 90.0);
else if( Y < pY && X < pX ) ang = (acos((X - pX) / floatsqroot((X - pX)*(X -
pX) + (Y - pY)*(Y - pY))) - 450.0);
else if( Y < pY ) ang = (acos((X - pX) / floatsqroot((X - pX)*(X - pX) + (Y -
pY)*(Y - pY))) - 90.0);
stock GetMuro(playerid,muroid)
{
if(muroid == 0)
{
MuroPos[playerid][0] = 2196.0759;
MuroPos[playerid][1] = -1741.0487;
MuroPos[playerid][2] = 13.2835;
}
else if(muroid == 1)
{
MuroPos[playerid][0] = 1811.0255;
MuroPos[playerid][1] = -1749.3859;
MuroPos[playerid][2] = 13.5464;
}
else if(muroid == 2)
{
MuroPos[playerid][0] = 1674.8973;
MuroPos[playerid][1] = -1719.5397;
MuroPos[playerid][2] = 13.5469;
}
else if(muroid == 3)
{
MuroPos[playerid][0] = 1278.5701;
MuroPos[playerid][1] = -1738.5083;
MuroPos[playerid][2] = 13.6017;
}
else if(muroid == 4)
{
MuroPos[playerid][0] = 1070.0283;
MuroPos[playerid][1] = -1864.0562;
MuroPos[playerid][2] = 13.5469;
}
else if(muroid == 5)
{
MuroPos[playerid][0] = 1836.5292;
MuroPos[playerid][1] = -1673.3462;
MuroPos[playerid][2] = 13.3441;
}
else if(muroid == 6)
{
MuroPos[playerid][0] = 1832.4529;
MuroPos[playerid][1] = -1289.3695;
MuroPos[playerid][2] = 13.5768;
}
else if(muroid == 7)
{
MuroPos[playerid][0] = 1254.0901;
MuroPos[playerid][1] = -1124.2345;
MuroPos[playerid][2] = 24.1698;
}
else if(muroid == 8)
{
MuroPos[playerid][0] = 2371.0710;
MuroPos[playerid][1] = -1393.4617;
MuroPos[playerid][2] = 24.0067;
}
}
stock GetMuroPos(muroid)
{
if(muroid == 0)
{
MuroPos2[0] = 2196.0759;
MuroPos2[1] = -1741.0487;
MuroPos2[2] = 13.2835;
}
else if(muroid == 1)
{
MuroPos2[0] = 1811.0255;
MuroPos2[1] = -1749.3859;
MuroPos2[2] = 13.5464;
}
else if(muroid == 2)
{
MuroPos2[0] = 1674.8973;
MuroPos2[1] = -1719.5397;
MuroPos2[2] = 13.5469;
}
else if(muroid == 3)
{
MuroPos2[0] = 1278.5701;
MuroPos2[1] = -1738.5083;
MuroPos2[2] = 13.6017;
}
else if(muroid == 4)
{
MuroPos2[0] = 1070.0283;
MuroPos2[1] = -1864.0562;
MuroPos2[2] = 13.5469;
}
else if(muroid == 5)
{
MuroPos2[0] = 1836.5292;
MuroPos2[1] = -1673.3462;
MuroPos2[2] = 13.3441;
}
else if(muroid == 6)
{
MuroPos2[0] = 1832.4529;
MuroPos2[1] = -1289.3695;
MuroPos2[2] = 13.5768;
}
else if(muroid == 7)
{
MuroPos2[0] = 1254.0901;
MuroPos2[1] = -1124.2345;
MuroPos2[2] = 24.1698;
}
else if(muroid == 8)
{
MuroPos2[0] = 2371.0710;
MuroPos2[1] = -1393.4617;
MuroPos2[2] = 24.0067;
}
}
stock PegarMuroProximo(playerid)
{
new cid = -1, Float:dis = 999999.999;
new Float:x, Float:y, Float:z;
for(new i; i < MAX_MUROS; i++)
{
GetMuro(playerid,i);
x = MuroPos[playerid][0];
y = MuroPos[playerid][1];
z = MuroPos[playerid][2];
if(GetPlayerDistanceFromPoint(playerid, x, y, z) < dis)
{
return value;
}
stock getLoginUlt(Nick[])
{
new Login[128], dia, mes, ano, hora, minuto, segundo;
new DOF2[64];
format(DOF2, sizeof(DOF2), "Players/Contas/%s2.ini", Nick);
if(fexist(DOF2))
{
dia = DOF2_GetInt(DOF2, "DiaLogin");
mes = DOF2_GetInt(DOF2, "MesLogin");
ano = DOF2_GetInt(DOF2, "AnoLogin");
hora = DOF2_GetInt(DOF2, "HoraLogin");
minuto = DOF2_GetInt(DOF2, "MinutoLogin");
segundo = DOF2_GetInt(DOF2, "SegundoLogin");
format(Login, sizeof Login, "%02d/%02d/%04d �s %02d:%02d:%02d", dia,
mes, ano, hora, minuto, segundo);
}
else
{
format(Login, sizeof Login, "00/00/00 �s 00:00:00");
}
return Login;
}
stock getLoginUlt22(Nick[])
{
new Login[128], dia, mes, ano, hora, minuto, segundo;
new DOF2[64];
format(DOF2, sizeof(DOF2), "Players/Contas/%s2.ini", Nick);
if(fexist(DOF2))
{
dia = DOF2_GetInt(DOF2, "DiaLogin");
mes = DOF2_GetInt(DOF2, "MesLogin");
ano = DOF2_GetInt(DOF2, "AnoLogin");
hora = DOF2_GetInt(DOF2, "HoraLogin");
minuto = DOF2_GetInt(DOF2, "MinutoLogin");
segundo = DOF2_GetInt(DOF2, "SegundoLogin");
format(Login, sizeof Login, "%02d/%02d/%04d �s %02d:%02d:%02d", dia,
mes, ano, hora, minuto, segundo);
}
else
{
format(Login, sizeof Login, "Nunca");
}
return Login;
}
stock getLoginUlt2(Nick[])
{
new Login[128], dia, mes, ano;
new DOF2[64];
format(DOF2, sizeof(DOF2), "Players/Contas/%s2.ini", Nick);
if(fexist(DOF2))
{
dia = DOF2_GetInt(DOF2, "DiaLogin22");
mes = DOF2_GetInt(DOF2, "MesLogin22");
ano = DOF2_GetInt(DOF2, "AnoLogin22");
format(Login, sizeof Login, "%02d/%02d/%04d", dia, mes, ano);
}
else
{
format(Login, sizeof Login, "00/00/0000");
}
return Login;
}
stock getOnline(Nick[])
{
new str[25];
foreach(new x: Player)
{
if(IsPlayerConnected(x) == 1)
{
if(IsPlayerConnected(x) == 1)
{
tddinheirooc[playerid] = 1;
}
if(playermoney[playerid] < dinantigo)
{
tddinheirooc[playerid] = 0;
PTextColor(playerid, tddinheiro[playerid][0], 0xff0000ff);
PTextShow(playerid, tddinheiro[playerid][0]);
tddinheirooc[playerid] = 1;
format(stringZCMD, sizeof(stringZCMD), "R$%s",
ConvertMoney(ammount));
PTextSetString(playerid, tddinheiro[playerid][0], stringZCMD);
}
else
{
PTextShow(playerid, tddinheiro[playerid][0]);
format(stringZCMD, sizeof(stringZCMD), "+R$%s",
ConvertMoney(ammount));
PTextSetString(playerid, tddinheiro[playerid][0], stringZCMD);
}
SetTimerEx("DestruirTDDinheiro", 5*1000, 0, "d", playerid);
}*/
return 0;
}
stock BlackListOrg(playerid, org)
{
for(new i22; i22 < MAX_BLACKLIST; i22++)
{
if(BlackOrg[org][i22][blBanido] == 1)
{
if(strcmp(BlackOrg[org][i22][blNick], PlayerName(playerid), true)
== 0)
{
return true;
}
}
}
return false;
}
stock GetPlayerMoneyEx(playerid)
{
return playermoney[playerid];
}
stock ResetPlayerMoneyEx(playerid)
{
return playermoney[playerid] = 0;
}
// EVENTO COLOR MATCH
#define CM_EVENT_TIME (120) // event time, in seconds (default: 120)
#define CM_MIN_PLAYERS (2) // players required to Latin City RPG the
event (default: 2)
#define CM_MAX_PLAYERS (16) // max players allowed to join (default:
16)
#define CM_SETUP_TIME (15) // setup time where players can join, in
seconds (default: 15)
#define CM_REWARD (50000) // how much money the winner will get
(default: 5000)
#define CM_SEPERATE // prevents player following by moving
every player to a different virtual world, comment or remove this line if you don't
want it
#define CM_USEFENCES // creates fences around the arena, comment
or remove this line if you don't want it
enum _:E_OBJECTID
{
OBJ_LARANJA,
OBJ_VERMELHO,
OBJ_VERDE,
OBJ_AMARELO,
OBJ_ROXO,
OBJ_ROSA,
OBJ_MARPOM,
OBJ_AZUL,
OBJ_BRANCO
}
enum _:E_GAMESTAGE
{
STAGE_NONE,
STAGE_SETUP,
STAGE_PLAYING
}
new
ColorMatchObjects[9] = {INVALID_OBJECT_ID, ...},
ColorMatchNames[9][10] = {"LARANJA", "VERMELHO", "VERDE", "AMARELO", "ROXO",
"ROSA", "MARROM", "AZUL", "BRANCO"},
ColorMatchColors[9] = {0xFF7F00FF, 0xEE0000FF, 0x00EE00FF, 0xFFFF00FF,
0x9B30FFFF, 0xFF1493FF, 0x8B1A1AFF, 0x1E90FFFF, 0xFFFFFFFF};
new
ColorMatchCuRPent = -1,
ColorMatchPlayers,
ColorMatchTimer = -1,
ColorMatchFallTimer = -1,
ColorMatchEventTimer = -1,
ColorMatchStage = STAGE_NONE,
Text: ColorMatchTD;
new
bool: InCMEvent[MAX_PLAYERS],
PlayerText: ColorText[MAX_PLAYERS] = {PlayerText: INVALID_TEXT_DRAW, ...};
// http://discord.sa-mp.com/ShowPost.php?p=3117531&postcount=5
RGBAToARGB(rgba)
return rgba >>> 8 | rgba << 24;
// http://discord.sa-mp.com/ShowPost.php?p=1120652&postcount=3
Float: frandom(Float:max, Float:min = 0.0, dp = 4)
{
new
Float:mul = floatpower(10.0, dp),
imin = floatround(min * mul),
imax = floatround(max * mul);
return float(random(imax - imin) + imin) / mul;
}
// http://discord.sa-mp.com/ShowPost.php?p=3223897&postcount=11
ConvertToMinutes(time)
{
new string[15];//-2000000000:00 could happen, so make the string 15 chars to
avoid any erRors
format(string, sizeof(string), "%02d:%02d", time / 60, time % 60);
return string;
}
ColorMatch_Arena()
{
for(new i; i < sizeof(ColorMatchObjects); i++)
DestroyObject(ColorMatchObjects[i]);
ColorMatch_CleanUp(players = 0)
{
KillTimer(ColorMatchTimer);
KillTimer(ColorMatchFallTimer);
KillTimer(ColorMatchEventTimer);
ColorMatchStage = STAGE_NONE;
ColorMatchPlayers = 0;
ColorMatchTimer = -1;
ColorMatchFallTimer = -1;
ColorMatchEventTimer = -1;
if(players)
{
for(new i, mp = GetPlayerPoolSize(); i <= mp; i++)
{
if(!IsPlayerConnected(i) || !InCMEvent[i]) continue;
InCMEvent[i] = false;
PTextHide(i, ColorText[i]);
TextDrawHideForPlayer(i, ColorMatchTD);
SetPlayerVirtualWorld(i, 0);
SpawnPlayer(i);
}
}
return 1;
}
ColorMatch_InitPlayer(playerid)
{
InCMEvent[playerid] = false;
return 1;
}
ColorMatch_Eliminate(playerid)
{
if(!InCMEvent[playerid]) return 1;
TextDrawHideForPlayer(playerid, ColorMatchTD);
PTextHide(playerid, ColorText[playerid]);
SetPlayerVirtualWorld(playerid, 0);
SpawnPlayer(playerid);
ColorMatchPlayers--;
InCMEvent[playerid] = false;
if(ColorMatchStage == STAGE_PLAYING)
{
if(ColorMatchPlayers < 2)
{
new winner = INVALID_PLAYER_ID;
for(new i, mp = GetPlayerPoolSize(); i <= mp; i++)
{
if(!IsPlayerConnected(i) || !InCMEvent[i]) continue;
winner = i;
break;
}
if(IsPlayerConnected(winner))
{
GetPlayerName(winner, name, MAX_PLAYER_NAME);
format(string, sizeof(string), "[COLORMATCH] {FFFFFF}%s[ID:
%d] Venceu o evento de Color Match!", name, winner);
SendClientMessageToAll(0x3498DBFF, string);
GivePlayerMoneyEx(winner, CM_REWARD);
NaporraDoEvento[playerid] = false;
}
return 1;
}
//--------------- Hay evento ---------------------------------------------------
//------------------------------------------------------------------------------
//news
new JoinedHay[MAX_PLAYERS] = -1;
new Matrix[HAY_X][HAY_Y][HAY_Z];
new Speed_xy;
new Speed_z;
new Center_x;
new Center_y;
new Hays[HAY_B];
new TimerHay;
new hayObject;
new hayiniciado;
new pickHay;
new moneyHay;
//------------------------------------------------------------------------------
stock DestroyHay()
{
for (new Number=0 ; Number<HAY_B ; Number++)
{
if(IsValidDynamicObject(Hays[Number]))
DestroyDynamicObject(Hays[Number]);
}
KillTimer(TimerHay);
DestroyDynamicObject(hayObject);
DestroyDynamicPickup(pickHay);
foreach(new i: Player)
{
if(JoinedHay[i])
{
JoinedHay[i] = 0;
NaporraDoEvento[i] = false;
SetPlayerSpawn(i);
SetPlayerVirtualWorld(i, 0);
SetPlayerHealth(i, 100.0);
}
}
}
stock SetPlayerHay(playerid)
{
JoinedHay[playerid] = 1;
SetPlayerPos(playerid, 0, 6.5, 3.2);
SetPlayerFacingAngle( playerid, 135 );
SetPlayerVirtualWorld(playerid, 50);
SetPlayerHealth(playerid, 100.0);
ResetPlayerWeapons(playerid);
}
stock winHay(playerid)
{
new Str[238];
format(Str, sizeof Str, "[HAY]: %s chegou no topo e ganhou R$%d como
pr�mio!", PlayerName(playerid), moneyHay);
SendClientMessageToAll(COR_AMARELO, Str);
GivePlayerMoneyEx(playerid, moneyHay);
DestroyHay();
}
//------------------------------------------------------------------------------
RerreveryThing ()
{
new xq, yq, zq;
new Number;
CALLBACK::TimerMove ()
{
new rand;
new Hay;
new Move = -1;
new xq, yq, zq;
new Float:x2, Float:y2, Float:z2;
new Timez;
new Float:Speeed;
enum fallobj
{
flobject,
status,
};
new fallo[totalo][fallobj];
new fallCount;
new fallTimer;
new falliniciado = 0;
new fallRP = 0;
stock SetPlayerFall(playerid)
{
SetPlayerPos(playerid, Fall_x+10.0, Fall_y+10.0, ZFall+5.0);
SetPlayerInterior(playerid, 0);
SetPlayerHealth(playerid, 100.0);
ResetPlayerWeapons(playerid);
SetPlayerVirtualWorld(playerid, 0);
}
loadFall(){
new objectscount;
fallo[objectscount][status] = 0;
objectscount++;
}
}
}
/*public OnVehicleSpawn(vehicleid)
{
return 1;
}*/
public fallfunc()
{
}
return 1;
}
stock fallEnd(pid)
{
new string[148];
if(pid)
{
foreach(new p: Player)
{
if(fallIsPlayerIn(p))
{
format(string, sizeof string, "[FallOut]: %s[%d] conseguiu ficar
ate o final e ganhou R$100.000!", PlayerName(p), p);
SendClientMessageToAll(0xFFFF00FF, string);
GivePlayerMoneyEx(p, 100000);
SendClientMessage(p, COR_KING, "ALERTA: {FFFFFF}Voc� Ganhou R$ 100K
por ficar ate o final do Evento FallOut!");
NaporraDoEvento[p] = false;
SetPlayerSpawn(p);
}
}
}
else
{
KillTimer(fallTimer);
SendClientMessageToAll(0xFFFF00FF, "[FallOut]:{ffffff} Ninguem conseguiu
ficar ate o final!");
foreach(new p: Player)
{
if(fallIsPlayerIn(p))
{
NaporraDoEvento[p] = false;
SetPlayerSpawn(p);
}
}
}
return 1;
}
stock fallDestroy()
{
KillTimer(fallTimer);
falliniciado = 0;
fallRP = 0;
foreach(new i: Player)
{
if(fallIsPlayerIn(i))
{
SpawnPlayer(i);
NaporraDoEvento[i] = false;
SetPlayerSpawn(i);
}
}
for(new f; f != totalo; f++){
DestroyDynamicObject(fallo[f][flobject]);
fallo[f][flobject] = -1;
}
return 1;
}
public fallObjectMove(fallid)
{
new Float:pos[3];
GetDynamicObjectPos(fallo[fallid][flobject], pos[0], pos[1], pos[2]);
switch(fallo[fallid][status])
{
case 1:
{
fallo[fallid][status]=2;
SetDynamicObjectRot(fallo[fallid][flobject], 32.000, 3.000, 0);
return SetTimerEx("fallObjectMove", 300, 0, "d", fallid);
}
case 2:
{
fallo[fallid][status]=3;
SetDynamicObjectRot(fallo[fallid][flobject], 32.000, -3.000, 0);
return SetTimerEx("fallObjectMove", 300, 0, "d", fallid);
}
case 3:
{
fallo[fallid][status]=4;
SetDynamicObjectRot(fallo[fallid][flobject], 32.000, 3.000, 0);
return SetTimerEx("fallObjectMove", 300, 0, "d", fallid);
}
case 4:
{
fallo[fallid][status]=5;
SetDynamicObjectRot(fallo[fallid][flobject], 32.000, -3.000, 0);
return SetTimerEx("fallObjectMove", 300, 0, "d", fallid);
}
case 5:
{
fallo[fallid][status]=6;
SetDynamicObjectRot(fallo[fallid][flobject], 32.000, 3.000, 0);
return SetTimerEx("fallObjectMove", 300, 0, "d", fallid);
}
case 6:
{
fallo[fallid][status]=7;
SetDynamicObjectRot(fallo[fallid][flobject], 32.000, -3.000, 0);
return SetTimerEx("fallObjectMove", 300, 0, "d", fallid);
}
case 7://final
{
fallo[fallid][status]=8;
MoveDynamicObject(fallo[fallid][flobject], pos[0], pos[1], 0.0, 8.8);
fallCount--;
return 1;
}
}
return 0;
}
stock fallIsPlayerIn(playerid)
{
new Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
if(IsPlayerInRangeOfPoint(playerid, 100.0, Fall_x, Fall_y, ZFall) && ZFall <
pos[2])
{
return 1;
}
return 0;
}
stock fallCountObjects()
{
new fallC;
fallC++;
}
}
return fallC;
}
stock fallGetPlayer()
{
foreach(new i: Player)
{
if(fallIsPlayerIn(i))
{
return i;
}
}
return INVALID_PLAYER_ID;
}
stock fallGetPlayers()
{
new Count=0;
foreach(new i: Player)
{
if(fallIsPlayerIn(i))
{
Count++;
}
else
{
if(GetPVarInt(i, "inFall"))
{
fallResetPlayer(i);
}
}
}
return Count;
}
stock fallRandom()
{
new
z = 0,
w,
y = totalo;
static fallObjectRandom[totalo];
if(fallo[z][status] == 0){
fallObjectRandom[w] = z;
w++;
}
z++;
}
return !w ? -1 : fallObjectRandom[random(w)];
}
public fallObjectDestroy(objectid)
{
return DestroyDynamicObject(objectid);
}
stock fallResetPlayer(playerid)
{
SpawnPlayer(playerid);
SetPVarInt(playerid, "inFall", 0);
SetPlayerHealth(playerid, 100.0);
}
//---------- Fallout--------------//
forward fallfunc();
forward fallObjectMove(fallid);
forward fallObjectDestroy(objectid);
//====================[Sistema Admin]===================//
/*RP::ChecarAdmin(playerid)
{
new idx = 0;
while(idx < sizeof(AdmInfo))
{
if(strcmp(AdmInfo[idx][AdminNick],PlayerName(playerid), true ) == 0 )
{
return 1;
}
idx++;
}
return 0;
}*/
RP::VagaAdmins()
{
for(new idx=0; idx<sizeof(AdmInfo); idx++)
{
if(strcmp(AdmInfo[idx][AdminNick],"Vazio", true ) == 0 )
{
// VagasLivresAdm = 1;
return 1;
}
}
// VagasLivresAdm = 0;
return 0;
}
/*RP:: SalvarAdmins()
{
new idx;
new File: file2;
while (idx < sizeof(AdmInfo))
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%s,%d\n", AdmInfo[idx]
[AdminNick], AdmInfo[idx][AdminVaga]);
if (idx == 0)
{
file2 = fopen("Administrativo/Configs/Admins.cfg", io_write);
}
else
{
file2 = fopen("Administrativo/Configs/Admins.cfg", io_append);
}
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}
return true;
}*/
RP::CarregarAdmins()
{
new aRPCoords[2][64];
new strFromFile2[254];
new File: file = fopen("Administrativo/Configs/Admins.cfg", io_read);
if (file)
{
new idx = 0;
while (idx < sizeof(AdmInfo))
{
fread(file, strFromFile2);
split(strFromFile2, aRPCoords, ',');
strmid(AdmInfo[idx][AdminNick], aRPCoords[0], 0,
strlen(aRPCoords[0]), 255);
AdmInfo[idx][AdminVaga] = strval(aRPCoords[1]);
idx++;
}
}
fclose(file);
return true;
}
RP::VoltarPortaCasino(porta)
{
if(porta == 1)
{
CasinoPorta[0] = CreateDynamicObject(2634, 2147.74707, 1604.66064,
1006.55695, 0.00000, 0.00000, 0.00000, 15);
dinamitoucasino[porta] = 0;
}
if(porta == 2)
{
CasinoPorta[1] = CreateDynamicObject(2634, 2148.23877, 1604.59290,
1002.41333, 0.00000, 0.00000, 180.00000, 15);
dinamitoucasino[porta] = 0;
}
return 1;
}
RP::VoltarPortaBanco(porta)
{
if(porta == 1)
{
PortaBancoLS[0] = CreateDynamicObject(2634, 1408.18969726,
1329.26538085, 1501.29357910, 0.0, 0.0, -178.82650756, 1555);
}
else if(porta == 2)
{
PortaBancoLS[1] = CreateDynamicObject(2634, 2144.19409, 1626.77612,
994.25458, 0.00000, 0.00000, 180.00000, 1555);
}
DinamitouLS[porta] = 0;
return 1;
}
RP::ExplodirPortaBanco(playerid, porta)
{
if(porta == 1)
{
format(stringZCMD, sizeof(stringZCMD), "[DINAMITE] %s[%d] Explodiu a 1�
Porta do (Banco LS) (Organiza��o Criminosa: %s)", PlayerName(playerid), playerid,
NomeORG(playerid));
SendClientMessageToAll(COR_KING, stringZCMD);
if(IsValidDynamicObject(PortaBancoLS[0]))
DestroyDynamicObject(PortaBancoLS[0]);
foreach(new i: Player)
{
if(GetPlayerVirtualWorld(i) == 1555)
{
CreateExplosionForPlayer(i, 1408.1934,1329.0631,1501.0840,
12, 1); //7
}
}
}
else if(porta == 2)
{
format(stringZCMD, sizeof(stringZCMD), "[DINAMITE] %s[%d] Explodiu a 2�
Porta do (Banco LS) (Organiza��o Criminosa: %s)", PlayerName(playerid), playerid,
NomeORG(playerid));
SendClientMessageToAll(COR_KING, stringZCMD);
if(IsValidDynamicObject(PortaBancoLS[1]))
DestroyDynamicObject(PortaBancoLS[1]);
if(IsValidDynamicObject(DinamiteBanco[0]))
DestroyDynamicObject(DinamiteBanco[0]);
if(IsValidDynamicObject(DinamiteBanco[1]))
DestroyDynamicObject(DinamiteBanco[1]);
foreach(new i: Player)
{
if(GetPlayerVirtualWorld(i) == 1555)
{
CreateExplosionForPlayer(i, 2144.1978,1627.0105,993.7676,
12, 1); //7
}
}
}
return 1;
}
RP::ExplodirPortaBanco2(playerid, porta)
{
if(porta == 1)
{
if(IsValidDynamicObject(PortaBancoLS[0]))
DestroyDynamicObject(PortaBancoLS[0]);
RP::ExplodirPortaCasino(playerid, porta)
{
if(porta == 1)
{
format(stringZCMD, sizeof(stringZCMD), "[DINAMITE] %s[%d] Explodiu a 1�
Porta do Casino (Organiza��o Criminosa: %s)", PlayerName(playerid), playerid,
NomeORG(playerid));
SendClientMessageToAll(COR_KING, stringZCMD);
if(IsValidDynamicObject(CasinoPorta[0]))
DestroyDynamicObject(CasinoPorta[0]);
if(IsValidDynamicObject(CasinoPorta[1]))
DestroyDynamicObject(CasinoPorta[1]);
foreach(new i: Player)
{
if(GetPlayerVirtualWorld(i) == 15)
{
CreateExplosionForPlayer(i, 2148.2666,1604.6877,1001.9677,
12, 1); //7
}
}
}
return 1;
}
RP::ExplodirPortaCasino2(playerid, porta)
{
if(porta == 1)
{
if(IsValidDynamicObject(CasinoPorta[0]))
DestroyDynamicObject(CasinoPorta[0]);
RP::VoltarPorta(porta)
{
if(porta == 1)
{
//Porta 1
PortaCasaMoeda[0] = CreateDynamicObject(19303, 2527.033936, -
1316.174683, 1031.661743, 0.000000, 0.000000, -0.200000, 155);
SetDynamicObjectMaterial(PortaCasaMoeda[0], 0, 14407, "carter_block",
"mp_carter_bars", 0);
}
if(porta == 2)
{
//Porta 2
PortaCasaMoeda[1] = CreateDynamicObject(19303, 2527.084473, -
1300.091919, 1031.661743, 0.000000, 0.000000, -0.200000, 155);
SetDynamicObjectMaterial(PortaCasaMoeda[1], 0, 14407, "carter_block",
"mp_carter_bars", 0);
}
if(porta == 3)
{
//Porta 3
PortaCasaMoeda[2] = CreateDynamicObject(1508, 2565.647705, -
1301.864868, 1032.042969, 0.000000, 0.000000, -0.099999, 155);
SetDynamicObjectMaterial(PortaCasaMoeda[2], 0, 16646, "a51_alpha",
"stanwind_nt", -16777216);
}
if(porta == 4)
{
//Porta 4
PortaCasaMoeda[3] = CreateDynamicObject(19303, 2573.067139, -1284.744385,
1031.752563, 0.000000, 0.000000, 90.000000, 155);
SetDynamicObjectMaterial(PortaCasaMoeda[3], 0, 13659, "8bars",
"Upt_Fence_Mesh", 0);
}
dinamitoumoeda[porta] = 0;
return 1;
}
RP::VoltarPortaIlha()
{
PortaIlha = CreateDynamicObject(900, -2167.084961, -3547.226318, -2.300000,
80.000000, -25.000000, 255.190002, -1, -1, -1, 400.000000, 400.000000);
dinamitouilha = 0;
return 1;
}
RP::VoltarPortaCofre()
{
PortaCofre = CreateDynamicObject(2634, 657.31115722, -3678.29418945,
9.15464591, 0.0, 0.0, 86.46190643);
dinamitoucofre = 0;
return 1;
}
RP::ExplodirPortaCofre(playerid)
{
format(stringZCMD, sizeof(stringZCMD), "[DINAMITE] %s[%d] Explodiu a
Porta do (Cofre SKN) (Organiza��o Criminosa: %s)", PlayerName(playerid), playerid,
NomeORG(playerid));
SendClientMessageToAll(COR_KING, stringZCMD);
if(IsValidDynamicObject(PortaCofre))
DestroyDynamicObject(PortaCofre);
if(IsValidDynamicObject(PortaIlha))
DestroyDynamicObject(PortaIlha);
foreach(new i: Player)
{
if(GetPlayerVirtualWorld(i) == 0)
{
CreateExplosionForPlayer(i, -2173.1582,-3551.2153,1.6817,
12, 1); //7
CreateExplosionForPlayer(i, -2165.8462,-3553.2244,1.6196,
12, 1); //7
}
}
return 1;
}
RP::ExplodirPortaIlha2(playerid)
{
if(IsValidDynamicObject(PortaIlha))
DestroyDynamicObject(PortaIlha);
if(IsValidDynamicObject(PortaCasaMoeda[0]))
DestroyDynamicObject(PortaCasaMoeda[0]);
foreach(new i: Player)
{
if(GetPlayerVirtualWorld(i) == 155)
{
CreateExplosionForPlayer(i, 2526.9937,-1315.7914,1031.4219,
12, 1); //7
}
}
}
else if(porta == 2)
{
format(stringZCMD, sizeof(stringZCMD), "[DINAMITE] %s[%d] Explodiu a 2�
Porta da Central (Casa da Moeda) (Organiza��o Criminosa: %s)",
PlayerName(playerid), playerid, NomeORG(playerid));
SendClientMessageToAll(COR_KING, stringZCMD);
if(IsValidDynamicObject(PortaCasaMoeda[1]))
DestroyDynamicObject(PortaCasaMoeda[1]);
foreach(new i: Player)
{
if(GetPlayerVirtualWorld(i) == 155)
{
CreateExplosionForPlayer(i, 2527.084473, -1300.091919,
1031.661743, 12, 1); //7
}
}
}
else if(porta == 3)
{
format(stringZCMD, sizeof(stringZCMD), "[DINAMITE] %s[%d] Explodiu a 3�
Porta da Central (Casa da Moeda) (Organiza��o Criminosa: %s)",
PlayerName(playerid), playerid, NomeORG(playerid));
SendClientMessageToAll(COR_KING, stringZCMD);
if(IsValidDynamicObject(PortaCasaMoeda[2]))
DestroyDynamicObject(PortaCasaMoeda[2]);
foreach(new i: Player)
{
if(GetPlayerVirtualWorld(i) == 155)
{
CreateExplosionForPlayer(i, 2565.647705, -1301.864868,
1032.042969, 12, 1); //7
}
}
}
else if(porta == 4)
{
format(stringZCMD, sizeof(stringZCMD), "[DINAMITE] %s[%d] Explodiu a 4�
Porta da Central (Casa da Moeda) (Organiza��o Criminosa: %s)",
PlayerName(playerid), playerid, NomeORG(playerid));
SendClientMessageToAll(COR_KING, stringZCMD);
if(IsValidDynamicObject(PortaCasaMoeda[3]))
DestroyDynamicObject(PortaCasaMoeda[3]);
foreach(new i: Player)
{
if(GetPlayerVirtualWorld(i) == 155)
{
CreateExplosionForPlayer(i, 2573.067139, -1284.744385,
1031.752563, 12, 1); //7
}
}
}
return 1;
}
RP::ExplodirPortaMoeda2(playerid, porta)
{
if(porta == 1)
{
if(IsValidDynamicObject(PortaCasaMoeda[0]))
DestroyDynamicObject(PortaCasaMoeda[0]);
static
Str[78]
;
//Burger Shot
if(IsPlayerInRangeOfPoint(playerid, 2.0, 375.5736,-68.2086,1001.5151))
{
GivePlayerMoney(playerid, - 10);
format(Str, 78, "* Voc� esta comendo algo no Burger Shot, -%.0f de
fome !", change);
SendClientMessage(playerid, COR_LIGHTBLUE, Str);
//Grana para a empresa Burger Shot
SBizzInfo[2][sbProducts] -= 5;
SBizzInfo[2][sbTill] += 500;
ExtortionSBiz(11, 250);
Atualizar3Dtexts();
SalvarSEmpresa(2);
PlayerInfo[playerid][pFome] += change;
}
//Cluckin'Bell
else if(IsPlayerInRangeOfPoint(playerid, 2.0, 368.7890,-6.8570,1001.8516))
{
GivePlayerMoney(playerid, - 10);
format(Str, 78, "* Voc� esta comendo algo no Cluckin'Bell, -%.0f de
fome !", change);
SendClientMessage(playerid, COR_LIGHTBLUE, Str);
PlayerInfo[playerid][pFome] += change;
}
//Pizza Stack
else if(IsPlayerInRangeOfPoint(playerid, 2.0, 374.0000,-119.6410,1001.4922))
{
GivePlayerMoney(playerid, - 10);
format(Str, 78, "* Voc� esta comendo algo no Pizza Stack, -%.0f de
fome !", change);
SendClientMessage(playerid, COR_LIGHTBLUE, Str);
PlayerInfo[playerid][pFome] += change;
}
return 1;
}
/*RP::Procurado(playerid,give)
{
new string[140];
if(!IsPlayerConnected(give))
{
KillTimer(TempoProcurar);
DisablePlayerCheckpoint(playerid);
ProcuraOffer[playerid] = 999;
format(string, sizeof(string), "* O jogador que voc� estava procurando
saiu do jogo, a busca foi cancelada.");
SendClientMessage(playerid, COR_AMARELO, string);
return 1;
}
new Float:X,Float:Y,Float:Z;
GetPlayerPos(give,X,Y,Z);
SetPlayerCheckpointEx(playerid, X,Y,Z, 6);
return 1;
}*/
RP::Float:GetDistanceBetweenPlayers(p1,p2)
{
new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
if(!IsPlayerConnected(p1) || !IsPlayerConnected(p2))
{
return -1.00;
}
GetPlayerPos(p1,x1,y1,z1);
GetPlayerPos(p2,x2,y2,z2);
return
floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2
,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
}
RP::ProcurandoHit(playerid)
{
new searchhit = 0;
foreach(new i: Player)
{
if(IsPlayerConnected(i))
{
if(searchhit == 0)
{
if(PlayerInfo[i][pHeadValue] > 0 && GotHit[i] == 0 && PlayerInfo[i]
[pMembro] != 8)
{
searchhit = 1;
hitfound = 1;
hitmanid = i;
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMembro] == 8 ||
PlayerInfo[playerid][pLider] == 8)
{
SendClientMessage(playerid, COR_VERDE, "Contratos
Online:");
format(gstring, sizeof(gstring), "[%s] %s[%d] - R$
[%d]", NomeORG(i), PlayerName(i), i, PlayerInfo[i][pHeadValue]);
SendClientMessage(playerid, GetPlayerColor(i),
gstring);
}
}
}
}
}
}
if(searchhit == 0)
{
SendClientMessage(playerid, COR_VERDE, "Contratos Online:");
}
return 0;
}
RP::ProcurandoAss(playerid)
{
new searchass = 0;
foreach(new i: Player)
{
if(IsPlayerConnected(i))
{
if(searchass == 0)
{
if(PlayerInfo[i][pHeadValue] > 0 && GotAss[i] == 0 && PlayerInfo[i]
[pMembro] != 26)
{
searchass = 1;
assfound = 1;
assid = i;
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMembro] == 26 ||
PlayerInfo[playerid][pLider] == 26)
{
SendClientMessage(playerid, COR_VERDE, "Contratos
Online:");
format(gstring, sizeof(gstring), "[%s] %s[%d] - R$
[%d]", NomeORG(i), PlayerName(i), i, PlayerInfo[i][pHeadValue]);
SendClientMessage(playerid, GetPlayerColor(i),
gstring);
}
}
}
}
}
}
if(searchass == 0)
{
SendClientMessage(playerid, COR_VERDE, "Contratos Online:");
}
return 0;
}
RP::ExtortionBiz(bizid, money)
{
new time1 = GetTickCount();
format(gstring, sizeof(gstring), "Nenhum");
BizzInfo[bizid][bTill] += money;
for(new h = 0; h < sizeof(BizzInfo); h++)
{
Delete3DTextLabel(BizzLabel[h]);
if(BizzInfo[h][bOwned] == 0)
{
format(gstring, sizeof(gstring), TextEmpresaVenda,h,BizzInfo[h]
[bMessage],ConvertMoney(BizzInfo[h][bBuyPrice]),BizzInfo[h][bLevelNeeded]);
BizzLabel[h] = Create3DTextLabel(gstring,Verde3D,BizzInfo[h]
[bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,20.0,0);
}
if(BizzInfo[h][bOwned] == 1)
{
format(gstring, sizeof(gstring), TextEmpresa,h,BizzInfo[h]
[bMessage],BizzInfo[h][bOwner],BizzInfo[h][bExtortion],BizzInfo[h][bEntranceCost],
ConvertMoney(BizzInfo[h][bTill]));
BizzLabel[h] = Create3DTextLabel(gstring,Verde3D,BizzInfo[h]
[bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,20.0,0);
}
}
if(debugconsole == 1) printf("ExtortionBiz(bizid: %d, money: %d): Foi em [%d
ms]", bizid, money, GetTickCount() - time1);
//BizzInfo[bizid][bTill] += money;
/*if(strcmp(BizzInfo[bizid][bExtortion],gstring, true ) == 0 )
{
return 0;
}
foreach(new i: Player)
{
if(IsPlayerConnected(i))
{
new wstring[MAX_PLAYER_NAME];
format(gstring, sizeof(gstring), "%s", PlayerName(i));
strmid(wstring, gstring, 0, strlen(gstring), 255);
if(strcmp(BizzInfo[bizid][bExtortion] ,wstring, true ) == 0 )
{
new value = money;
GivePlayerMoneyEx(i, value);
BizzInfo[bizid][bTill] -= value;
PLE += value;
DepositarOrgGrana(7,value);
format(stringZCMD, sizeof stringZCMD, "[Extorc�o Empresa]:
{ffffff}Voc� recebeu dinheiro da Empresa(ID: %d) por esta na Extor��o. |
{ffff00}+{228b22}R$%s", bizid, ConvertMoney(value));
SendClientMessage(i, COR_KING, stringZCMD);
}
}
}*/
return 1;
}
RP::ExtortionSBiz(bizid, money)
{
return 1;
}
RP::ExtortionFBiz(bizid, money)
{
new time1 = GetTickCount();
//FBizzInfo[bizid][fbTill] += money;
new FormatPerigoso[600];
for(new h = 0; h < sizeof(FBizzInfo); h++)
{
/* if(FBizzInfo[idx][fbOwned] == 0)
{
//#define TextFEmpresaVenda "{aaacae}%s\nEsta Fazenda esta a
venda\nValor: R$%s\nNivel: %d\nProdutos Requeridos: %d\nPre�o por Produto:R$ %d\
nPara comprar digite /comprarfazenda"
AddStaticPickup(1579, 1, FBizzInfo[idx][fbEntranceX],
FBizzInfo[idx][fbEntranceY], FBizzInfo[idx][fbEntranceZ]);
format(string, sizeof(string),
TextFEmpresaVenda,ConvertMoney(idx),ConvertMoney(FBizzInfo[idx]
[fbBuyPrice]),FBizzInfo[idx][fbLevelNeeded],FBizzInfo[idx][fbMaxProducts]-
FBizzInfo[idx][fbProducts], FBizzInfo[idx][fbPriceProd]);
FBizzLabel[idx] =
Create3DTextLabel(string,COR_AZULBB,FBizzInfo[idx][fbEntranceX], FBizzInfo[idx]
[fbEntranceY], FBizzInfo[idx][fbEntranceZ]+0.5,20.0,0);
}
if(FBizzInfo[idx][fbOwned] == 1)
{//#define "{33CCFF}Fazenda (ID: %d)\n{ffffff}Dono: {33CCFF}%s\
n{ffffff}Nome da Fazenda: {33CCFF}%s\n{ffffff}Taxa de Entrada: {228b22}%d\
n{ffffff}Fundos: {228b22}%d\n{ffffff}Produtos: {33CCFF}%d\n{ffffff}Produtos
Requerido: {33CCFF}%d\n{ffffff}Pre�o por produto: {228B22}R$%d"
"{ffffff}Fazenda (ID: %d)\nDono: {00ff00}%s\n{ffffff}Nome: {228B22}%s\
n{ffffff}Fundos: {228B22}%d\n{ffffff}Produtos: {00ffff}%d\n{ffffff}Produtos
Requerido: {00ffff}%s\n{ffffff}Pre�o por produto: {228B22}R$%d"
AddStaticPickup(1580, 1, FBizzInfo[idx][fbEntranceX],
FBizzInfo[idx][fbEntranceY], FBizzInfo[idx][fbEntranceZ]);
format(string, sizeof(string), "{33CCFF}Fazenda (ID: %d)\
n{ffffff}Dono: {33CCFF}%s\n{ffffff}Nome da Fazenda: {33CCFF}%s\n{ffffff}Taxa de
Entrada: {228b22}%d\n{ffffff}Fundos: {228b22}%d\n{ffffff}Produtos: {33CCFF}%d\
n{ffffff}Produtos Requerido: {33CCFF}%d\n{ffffff}Pre�o por produto: {228B22}R$
%d",idx,FBizzInfo[idx][fbOwner], FBizzInfo[idx][fbNome], FBizzInfo[idx]
[fbFundos],FBizzInfo[idx][fbProducts], FBizzInfo[idx][fbPriceProd]);
FBizzLabel[idx] =
Create3DTextLabel(string,COR_AZULBB,FBizzInfo[idx][fbEntranceX], FBizzInfo[idx]
[fbEntranceY], FBizzInfo[idx][fbEntranceZ]+0.5,20.0,0);
}*/
if(FBizzInfo[h][fbOwned] == 0)
{
format(FormatPerigoso, sizeof(FormatPerigoso),
TextFEmpresaVenda, h,ConvertMoney(FBizzInfo[h][fbBuyPrice]),FBizzInfo[h]
[fbLevelNeeded],(FBizzInfo[h][fbMaxProducts]-FBizzInfo[h][fbProducts]),FBizzInfo[h]
[fbPriceProd]);
Update3DTextLabelText(FBizzLabel[h], Verde3D, FormatPerigoso);
}
if(FBizzInfo[h][fbOwned] == 1)
{
//"{33CCFF}Fazenda (ID: %d)\n{ffffff}Dono: {33CCFF}%s\
n{ffffff}Nome da Fazenda: {33CCFF}%s\n{ffffff}Taxa de Entrada: {228b22}%d\
n{ffffff}Fundos: {228b22}%d\n{ffffff}Produtos: {33CCFF}%d\n{ffffff}Produtos
Requerido: {33CCFF}%d\n{ffffff}Pre�o por produto: {228B22}R$%d",
format(FormatPerigoso, sizeof(FormatPerigoso),
TextFEmpresa, h,FBizzInfo[h][fbOwner], FBizzInfo[h][fbNome], FBizzInfo[h]
[fbEntranceCost],ConvertMoney(FBizzInfo[h][fbTill]),FBizzInfo[h][fbProducts],
FBizzInfo[h][fbMaxProducts], FBizzInfo[h][fbPriceProd]);
Update3DTextLabelText(FBizzLabel[h], COR_AZULBB,
FormatPerigoso);
}
}
if(debugconsole == 1) printf("ExtortionFBiz(bizid: %d, money: %d): Foi em [%d
ms]", bizid, money, GetTickCount() - time1);
/*new string[MAX_PLAYER_NAME+4];
format(string, sizeof(string), "Ninguem");
if(strcmp(FBizzInfo[bizid][fbExtortion],string, true ) == 0 )
{
return 0;
}
foreach(new i: Player)
{
if(IsPlayerConnected(i))
{
new wstring[MAX_PLAYER_NAME];
format(string, sizeof(string), "%s", PlayerName(i));
strmid(wstring, string, 0, strlen(string), 255);
if(strcmp(FBizzInfo[bizid][fbExtortion] ,wstring, true ) == 0 )
{
new value = money / 100;
value = value * 10;
GivePlayerMoneyEx(i, value);
FBizzInfo[bizid][fbTill] -= value;
PLE += value;
DepositarOrgGrana(7,value);
format(stringZCMD, sizeof stringZCMD, "[Extorc�o Fazenda]:
{ffffff}Voc� recebeu dinheiro da Fazenda(ID: %d/%d) por esta na Extor��o. |
{ffff00}+{228b22}R$%s", bizid, bizid-100, ConvertMoney(value));
SendClientMessage(i, COR_KING, stringZCMD);
}
}
}*/
return 1;
}
RP::SendVIPMessage(color, string[])
{
foreach(new i: Player)
{
if(IsPlayerConnected(i))
{
if (PlayerInfo[i][pVIP] > 0 || PlayerInfo[i][pSocio] >= 1)
{
if(PlayerInfo[i][pChatVipDesativado] == 0)
{
SendClientMessage(i, color, string);
}
}
}
}
}
RP::SendSocioMessage(color, string[])
{
foreach(new i: Player)
{
if(IsPlayerConnected(i))
{
if (PlayerInfo[i][pSocio] > 0)
{
if(PlayerInfo[i][pChatSocioDesativado] == 0)
{
SendClientMessage(i, color, string);
}
}
}
}
}
RP::MensagemRadinho(playerid, freq, mRP[])
{
foreach(new i: Player)
{
if(IsPlayerConnected(i) && gPlayerLogged[i])
{
if(FreqRadio[i] == freq && RadioLigado[i] == 1)
{
format(stringZCMD, sizeof stringZCMD, "[RD %dMhz] %s diz:
%s", freq, PlayerName(playerid), mRP);
SendClientMessage(i, COR_LIGHTBLUE, stringZCMD);
}
}
}
}
stock Equipando(playerid)
{
if(PlayerInfo[playerid][pGunLic] == 0)
return SendClientMessage(playerid, COR_KING, "ERRO:{FFFFFF} Voc� n�o
possui licen�a de armas!");
new string[128];
// new org = GetPlayerOrg(playerid);
GetPlayerName(playerid, sendername,sizeof(sendername));
if(Orgassa(playerid))
{
ResetPlayerWeapons(playerid);
//TempDropArmasBody[playerid] = 0;
new arquivo[100];
format(arquivo, sizeof(arquivo), "Organizacoes/ORG VIPS/Org
%d.ini",GetPlayerOrg(playerid));
if(fexist(arquivo) && DOF2_GetInt(arquivo, "Tipo") >= 1)
{
SendClientMessage(playerid, COR_LIGHTBLUE, "* Voc� pegou os
Equipamentos VIP de sua organiza��o.");
format(string, sizeof(string), "*** %s[ORG VIP %s]: {ffffff}%s
Pegou seu Kit ORGVIP.", GetCorORG(GetPlayerOrg(playerid)), NomeORG(playerid),
sendername);
ProxDetector(30.0, playerid, string, -1, -1, -1, -1, -1);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 4, 1);
GivePlayerWeaponEx(playerid, 24, 500);
GivePlayerWeaponEx(playerid, 25, 500);
GivePlayerWeaponEx(playerid, 29, 500);
GivePlayerWeaponEx(playerid, 31, 500);
GivePlayerWeaponEx(playerid, 34, 50);
return 1;
}
else
{
SendClientMessage(playerid, COR_LIGHTBLUE, "* Voc� pegou os
Equipamentos VIP de sua organiza��o.");
format(string, sizeof(string), "*** %s[ORG VIP %s]: {ffffff}%s
Pegou seu Kit ORGVIP.", GetCorORG(GetPlayerOrg(playerid)), NomeORG(playerid),
sendername);
ProxDetector(30.0, playerid, string, -1, -1, -1, -1, -1);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 4, 1);
GivePlayerWeaponEx(playerid, 24, 500);
GivePlayerWeaponEx(playerid, 25, 500);
GivePlayerWeaponEx(playerid, 29, 500);
GivePlayerWeaponEx(playerid, 31, 500);
GivePlayerWeaponEx(playerid, 34, 50);
//SendClientMessage(playerid, COR_GRAD1, "Voce so pode se Equipar
Aqui se Sua Org for VIP!");
return 1;
}
}
if(Orgneutra(playerid))
{
ResetPlayerWeapons(playerid);
//TempDropArmasBody[playerid] = 0;
new arquivo[100];
format(arquivo, sizeof(arquivo), "Organizacoes/ORG VIPS/Org
%d.ini",GetPlayerOrg(playerid));
if(fexist(arquivo) && DOF2_GetInt(arquivo, "Tipo") >= 1)
{
format(string, sizeof(string), "*** %s[ORG VIP %s]: {ffffff}%s
Pegou seu Kit ORGVIP.", GetCorORG(GetPlayerOrg(playerid)), NomeORG(playerid),
sendername);
ProxDetector(30.0, playerid, string, -1, -1, -1, -1, -1);
ResetPlayerWeapons(playerid);
//TempDropArmasBody[playerid] = 0;
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 29, 500);
GivePlayerWeaponEx(playerid, 31, 500);
GivePlayerWeaponEx(playerid, 24, 150);
GivePlayerWeaponEx(playerid, 43, 200);
return 1;
}
else
{
format(string, sizeof(string), "*** %s[ORG VIP %s]: {ffffff}%s
Pegou seu Kit ORGVIP.", GetCorORG(GetPlayerOrg(playerid)), NomeORG(playerid),
sendername);
ProxDetector(30.0, playerid, string, -1, -1, -1, -1, -1);
ResetPlayerWeapons(playerid);
//TempDropArmasBody[playerid] = 0;
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 29, 500);
GivePlayerWeaponEx(playerid, 31, 500);
GivePlayerWeaponEx(playerid, 24, 150);
GivePlayerWeaponEx(playerid, 43, 200);
return 1;
}
}
if(GetPlayerOrg(playerid) == 3)
{
ResetPlayerWeapons(playerid);
//TempDropArmasBody[playerid] = 0;
new arquivo[100];
format(arquivo, sizeof(arquivo), "Organizacoes/ORG VIPS/Org
%d.ini",GetPlayerOrg(playerid));
if(fexist(arquivo) && DOF2_GetInt(arquivo, "Tipo") >= 1)
{
SendClientMessage(playerid, COR_LIGHTBLUE, "* Voc� pegou os
Equipamentos VIP de sua organiza��o.");
format(string, sizeof(string), "*** %s[ORG VIP %s]: {ffffff}%s
Pegou seu Kit ORGVIP.", GetCorORG(GetPlayerOrg(playerid)), NomeORG(playerid),
sendername);
ProxDetector(30.0, playerid, string, -1, -1, -1, -1, -1);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 3, 1);
GivePlayerWeaponEx(playerid, 4, 1);
GivePlayerWeaponEx(playerid, 24, 500);
GivePlayerWeaponEx(playerid, 25, 500);
GivePlayerWeaponEx(playerid, 29, 500);
GivePlayerWeaponEx(playerid, 31, 500);
GivePlayerWeaponEx(playerid, 34, 50);
return 1;
}
else
{
SendClientMessage(playerid, COR_LIGHTBLUE, "* Voc� pegou os
Equipamentos proprios para o seu Cargo.");
if (PlayerInfo[playerid][pCargo] == 1)
{
format(string, sizeof(string), "[Exercito]: %s pega seus
equipamentos de [C1].", sendername);
ProxDetector(30.0, playerid, string,
COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 3, 1);
GivePlayerWeaponEx(playerid, 4, 1);
GivePlayerWeaponEx(playerid, 24, 100);
GivePlayerWeaponEx(playerid, 25, 50);
GivePlayerWeaponEx(playerid, 29, 80);
GivePlayerWeaponEx(playerid, 31, 50);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 2)
{
format(string, sizeof(string), "[Exercito]: %s pega seus
equipamentos de [C2].", sendername);
ProxDetector(30.0, playerid, string,
COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 3, 1);
GivePlayerWeaponEx(playerid, 4, 1);
GivePlayerWeaponEx(playerid, 24, 150);
GivePlayerWeaponEx(playerid, 25, 70);
GivePlayerWeaponEx(playerid, 29, 120);
GivePlayerWeaponEx(playerid, 31, 100);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 3)
{
format(string, sizeof(string), "[Exercito]: %s pega seus
equipamentos de [C3].", sendername);
ProxDetector(30.0, playerid, string,
COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 16, 4);
GivePlayerWeaponEx(playerid, 3, 1);
GivePlayerWeaponEx(playerid, 4, 1);
GivePlayerWeaponEx(playerid, 24, 170);
GivePlayerWeaponEx(playerid, 25, 100);
GivePlayerWeaponEx(playerid, 29, 150);
GivePlayerWeaponEx(playerid, 31, 150);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 4)
{
format(string, sizeof(string), "[Exercito]: %s pega seus
equipamentos de [C4].", sendername);
ProxDetector(30.0, playerid, string,
COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 16, 4);
GivePlayerWeaponEx(playerid, 3, 1);
GivePlayerWeaponEx(playerid, 4, 1);
GivePlayerWeaponEx(playerid, 24, 200);
GivePlayerWeaponEx(playerid, 25, 150);
GivePlayerWeaponEx(playerid, 29, 200);
GivePlayerWeaponEx(playerid, 31, 200);
GivePlayerWeaponEx(playerid, 34, 50);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 5)
{
format(string, sizeof(string), "[Exercito]: %s pega seus
equipamentos de [Sub-Lider].", sendername);
ProxDetector(30.0, playerid, string,
COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 16, 6);
GivePlayerWeaponEx(playerid, 3, 1);
GivePlayerWeaponEx(playerid, 4, 1);
GivePlayerWeaponEx(playerid, 24, 250);
GivePlayerWeaponEx(playerid, 25, 200);
GivePlayerWeaponEx(playerid, 29, 250);
GivePlayerWeaponEx(playerid, 31, 250);
GivePlayerWeaponEx(playerid, 34, 80);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 6)
{
format(string, sizeof(string), "[Exercito]: %s pega seus
equipamentos de [Lider].", sendername);
ProxDetector(30.0, playerid, string,
COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 16, 8);
GivePlayerWeaponEx(playerid, 3, 1);
GivePlayerWeaponEx(playerid, 4, 1);
GivePlayerWeaponEx(playerid, 24, 250);
GivePlayerWeaponEx(playerid, 25, 250);
GivePlayerWeaponEx(playerid, 29, 300);
GivePlayerWeaponEx(playerid, 31, 300);
GivePlayerWeaponEx(playerid, 34, 100);
return 1;
}
}
}
if(IsACop(playerid) || IsAGOV(playerid))
{
ResetPlayerWeapons(playerid);
//TempDropArmasBody[playerid] = 0;
new arquivo[100];
format(arquivo, sizeof(arquivo), "Organizacoes/ORG VIPS/Org
%d.ini",GetPlayerOrg(playerid));
if(fexist(arquivo) && DOF2_GetInt(arquivo, "Tipo") >= 1)
{
SendClientMessage(playerid, COR_LIGHTBLUE, "* Voc� pegou os
Equipamentos VIP de sua organiza��o.");
format(string, sizeof(string), "*** %s[ORG VIP %s]: {ffffff}%s
Pegou seu Kit ORGVIP.", GetCorORG(GetPlayerOrg(playerid)), NomeORG(playerid),
sendername);
ProxDetector(30.0, playerid, string, -1, -1, -1, -1, -1);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 3, 1);
GivePlayerWeaponEx(playerid, 24, 500);
GivePlayerWeaponEx(playerid, 25, 500);
GivePlayerWeaponEx(playerid, 29, 500);
GivePlayerWeaponEx(playerid, 31, 500);
GivePlayerWeaponEx(playerid, 34, 50);
return 1;
}
else
{
SendClientMessage(playerid, COR_LIGHTBLUE, "* Voc� pegou os
Equipamentos proprios para o seu Cargo.");
if (PlayerInfo[playerid][pCargo] == 1)
{
format(string, sizeof(string), "[%s]: %s pega seus
equipamentos de [C1]." ,NomeORG(playerid), sendername);
ProxDetector(30.0, playerid, string,
COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 3, 1);
GivePlayerWeaponEx(playerid, 24, 200);
GivePlayerWeaponEx(playerid, 25, 100);
GivePlayerWeaponEx(playerid, 29, 100);
GivePlayerWeaponEx(playerid, 31, 50);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 2)
{
format(string, sizeof(string), "[%s]: %s pega seus
equipamentos de [C2]." ,NomeORG(playerid), sendername);
ProxDetector(30.0, playerid, string,
COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 3, 1);
GivePlayerWeaponEx(playerid, 24, 200);
GivePlayerWeaponEx(playerid, 25, 100);
GivePlayerWeaponEx(playerid, 29, 100);
GivePlayerWeaponEx(playerid, 31, 150);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 3)
{
format(string, sizeof(string), "[%s]: %s pega seus
equipamentos de [C3]." ,NomeORG(playerid), sendername);
ProxDetector(30.0, playerid, string,
COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 3, 1);
GivePlayerWeaponEx(playerid, 24, 200);
GivePlayerWeaponEx(playerid, 25, 120);
GivePlayerWeaponEx(playerid, 29, 150);
GivePlayerWeaponEx(playerid, 31, 150);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 4)
{
format(string, sizeof(string), "[%s]: %s pega seus
equipamentos de [C4]." ,NomeORG(playerid), sendername);
ProxDetector(30.0, playerid, string,
COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 3, 1);
GivePlayerWeaponEx(playerid, 24, 220);
GivePlayerWeaponEx(playerid, 25, 150);
GivePlayerWeaponEx(playerid, 29, 200);
GivePlayerWeaponEx(playerid, 31, 200);
GivePlayerWeaponEx(playerid, 34, 50);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 5 || PlayerInfo[playerid]
[pCargo] == 5)
{
format(string, sizeof(string), "[%s]: %s pega seus
equipamentos de [Sub-Lider]." ,NomeORG(playerid), sendername);
ProxDetector(30.0, playerid, string,
COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 3, 1);
GivePlayerWeaponEx(playerid, 24, 250);
GivePlayerWeaponEx(playerid, 25, 200);
GivePlayerWeaponEx(playerid, 29, 250);
GivePlayerWeaponEx(playerid, 31, 250);
GivePlayerWeaponEx(playerid, 34, 80);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 6)
{
format(string, sizeof(string), "[%s]: %s pega seus
equipamentos de [Lider]." ,NomeORG(playerid), sendername);
ProxDetector(30.0, playerid, string,
COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 3, 1);
GivePlayerWeaponEx(playerid, 24, 250);
GivePlayerWeaponEx(playerid, 25, 250);
GivePlayerWeaponEx(playerid, 29, 300);
GivePlayerWeaponEx(playerid, 31, 300);
GivePlayerWeaponEx(playerid, 34, 100);
return 1;
}
}
}
if(OrgMafia(playerid))
{
// new darmaconha = CofreOrg[org][dMaconha];
// new maconha = CofreOrg[org][Maconha];
ResetPlayerWeapons(playerid);
//TempDropArmasBody[playerid] = 0;
/* if(CofreOrg[org][Maconha] > darmaconha && GetPlayerOrg(playerid) != 0)
{
format(string, sizeof(string), "Sua HQ te deu %d de Maconha",
darmaconha);
SendClientMessage(playerid, COR_AMARELO,string);
CofreOrg[org][Maconha] = maconha-darmaconha;
for(new i=0; i<75; i++)
{
if(InventarioInfo[playerid][i][iSlot] == 19382)
{
InventarioInfo[playerid][i][iSlot] = 1578;
InventarioInfo[playerid][i][iUnidades] = darmaconha;
break;
}
}
}
else
{
SendClientMessage(playerid, COR_LIGHTBLUE, "* A Organiza��o nao
tem maconha suficiente para lhe Dar.");
}*/
new arquivo[100];
format(arquivo, sizeof(arquivo), "Organizacoes/ORG VIPS/Org
%d.ini",GetPlayerOrg(playerid));
if(fexist(arquivo) && DOF2_GetInt(arquivo, "Tipo") >= 1)
{
SendClientMessage(playerid, COR_LIGHTBLUE, "* Voc� pegou os
Equipamentos VIP de sua organiza��o.");
format(string, sizeof(string), "*** %s[ORG VIP %s]: {ffffff}%s
Pegou seu Kit ORGVIP.", GetCorORG(GetPlayerOrg(playerid)), NomeORG(playerid),
sendername);
ProxDetector(30.0, playerid, string, -1, -1, -1, -1, -1);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 24, 500);
GivePlayerWeaponEx(playerid, 25, 500);
GivePlayerWeaponEx(playerid, 29, 500);
GivePlayerWeaponEx(playerid, 31, 500);
GivePlayerWeaponEx(playerid, 34, 50);
return 1;
}
else
{
SendClientMessage(playerid, COR_LIGHTBLUE, "* Voc� pegou os
Equipamentos proprios para o seu Cargo.");
if (PlayerInfo[playerid][pCargo] == 1)
{
format(string, sizeof(string), "[%s]: %s pega seus
equipamentos de [C1]." ,NomeORG(playerid), sendername);
ProxDetector(30.0, playerid, string,
COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 24, 100);
GivePlayerWeaponEx(playerid, 25, 50);
GivePlayerWeaponEx(playerid, 29, 80);
GivePlayerWeaponEx(playerid, 31, 70);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 2)
{
format(string, sizeof(string), "[%s]: %s pega seus
equipamentos de [C2]." ,NomeORG(playerid), sendername);
ProxDetector(30.0, playerid, string,
COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 24, 150);
GivePlayerWeaponEx(playerid, 25, 70);
GivePlayerWeaponEx(playerid, 29, 120);
GivePlayerWeaponEx(playerid, 31, 100);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 3)
{
format(string, sizeof(string), "[%s]: %s pega seus
equipamentos de [C3]." ,NomeORG(playerid), sendername);
ProxDetector(30.0, playerid, string,
COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 24, 170);
GivePlayerWeaponEx(playerid, 25, 100);
GivePlayerWeaponEx(playerid, 29, 150);
GivePlayerWeaponEx(playerid, 31, 150);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 4)
{
format(string, sizeof(string), "[%s]: %s pega seus
equipamentos de [C4]." ,NomeORG(playerid), sendername);
ProxDetector(30.0, playerid, string,
COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 24, 200);
GivePlayerWeaponEx(playerid, 25, 150);
GivePlayerWeaponEx(playerid, 29, 200);
GivePlayerWeaponEx(playerid, 31, 200);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 5 || PlayerInfo[playerid]
[pCargo] == 5)
{
format(string, sizeof(string), "[%s]: %s pega seus
equipamentos de [Sub-Lider]." ,NomeORG(playerid), sendername);
ProxDetector(30.0, playerid, string,
COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 24, 250);
GivePlayerWeaponEx(playerid, 25, 200);
GivePlayerWeaponEx(playerid, 29, 250);
GivePlayerWeaponEx(playerid, 31, 250);
GivePlayerWeaponEx(playerid, 34, 50);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 6)
{
format(string, sizeof(string), "[%s]: %s pega seus
equipamentos de [Lider]." ,NomeORG(playerid), sendername);
ProxDetector(30.0, playerid, string,
COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 24, 250);
GivePlayerWeaponEx(playerid, 25, 250);
GivePlayerWeaponEx(playerid, 29, 300);
GivePlayerWeaponEx(playerid, 31, 300);
GivePlayerWeaponEx(playerid, 34, 100);
return 1;
}
}
}
if(OrgRPang(playerid))
{
// new darmaconha = CofreOrg[org][dMaconha];
// new maconha = CofreOrg[org][Maconha];
ResetPlayerWeapons(playerid);
//TempDropArmasBody[playerid] = 0;
if(IsAPishing(playerid))
{
GivePlayerWeaponEx(playerid, 41, 10000);
}
/*if(CofreOrg[org][Maconha] > darmaconha && GetPlayerOrg(playerid) !=
0)
{
format(string, sizeof(string), "Sua HQ te deu %d de Maconha",
darmaconha);
SendClientMessage(playerid, COR_AMARELO,string);
CofreOrg[org][Maconha] = maconha-darmaconha;
for(new i=0; i<75; i++)
{
if(InventarioInfo[playerid][i][iSlot] == 19382)
{
InventarioInfo[playerid][i][iSlot] = 1578;
InventarioInfo[playerid][i][iUnidades] = darmaconha;
break;
}
}
}
else
{
SendClientMessage(playerid, COR_LIGHTBLUE, "*A Organiza��o nao
tem maconha suficiente para lhe Dar.");
}*/
new arquivo[100];
format(arquivo, sizeof(arquivo), "Organizacoes/ORG VIPS/Org
%d.ini",GetPlayerOrg(playerid));
if(fexist(arquivo) && DOF2_GetInt(arquivo, "Tipo") >= 1)
{
SendClientMessage(playerid, COR_LIGHTBLUE, "* Voc� pegou os
Equipamentos VIP de sua organiza��o.");
format(string, sizeof(string), "*** %s[ORG VIP %s]: {ffffff}%s
Pegou seu Kit ORGVIP.", GetCorORG(GetPlayerOrg(playerid)), NomeORG(playerid),
sendername);
ProxDetector(30.0, playerid, string, -1, -1, -1, -1, -1);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 24, 500);
GivePlayerWeaponEx(playerid, 25, 500);
GivePlayerWeaponEx(playerid, 29, 500);
GivePlayerWeaponEx(playerid, 31, 500);
GivePlayerWeaponEx(playerid, 34, 50);
return 1;
}
else
{
SendClientMessage(playerid, COR_LIGHTBLUE, "* Voc� pegou os
Equipamentos proprios para o seu Cargo.");
if (PlayerInfo[playerid][pCargo] == 1)
{
format(string, sizeof(string), "[%s]: %s pega seus
equipamentos de [C1]." ,NomeORG(playerid), sendername);
ProxDetector(30.0, playerid, string,
COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 24, 100);
GivePlayerWeaponEx(playerid, 25, 50);
GivePlayerWeaponEx(playerid, 29, 80);
GivePlayerWeaponEx(playerid, 31, 50);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 2)
{
format(string, sizeof(string), "[%s]: %s pega seus
equipamentos de [C2]." ,NomeORG(playerid), sendername);
ProxDetector(30.0, playerid, string,
COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 24, 150);
GivePlayerWeaponEx(playerid, 25, 70);
GivePlayerWeaponEx(playerid, 29, 120);
GivePlayerWeaponEx(playerid, 31, 100);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 3)
{
format(string, sizeof(string), "[%s]: %s pega seus
equipamentos de [C3]." ,NomeORG(playerid), sendername);
ProxDetector(30.0, playerid, string,
COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 24, 170);
GivePlayerWeaponEx(playerid, 25, 100);
GivePlayerWeaponEx(playerid, 29, 150);
GivePlayerWeaponEx(playerid, 31, 150);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 4)
{
format(string, sizeof(string), "[%s]: %s pega seus
equipamentos de [C4]." ,NomeORG(playerid), sendername);
ProxDetector(30.0, playerid, string,
COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 24, 200);
GivePlayerWeaponEx(playerid, 25, 150);
GivePlayerWeaponEx(playerid, 29, 200);
GivePlayerWeaponEx(playerid, 31, 200);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 5)
{
format(string, sizeof(string), "[%s]: %s pega seus
equipamentos de [Sub-Lider]." ,NomeORG(playerid), sendername);
ProxDetector(30.0, playerid, string,
COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE,COR_PURPLE);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeaponEx(playerid, 24, 250);
GivePlayerWeaponEx(playerid, 25, 200);
GivePlayerWeaponEx(playerid, 29, 250);
GivePlayerWeaponEx(playerid, 31, 250);
return 1;
}
if (PlayerInfo[playerid][pCargo] == 6)
{
CarregandoTelaLogin[playerid]++;
LoadScreenValor[playerid] += 2.3;
if(CarregandoTelaLogin[playerid] < 100)
{
PlayerTextDrawSetString(playerid, CarregamentoKingP[playerid][0], str);
if(CarregandoTelaLogin[playerid] == 10) PlayerTextDrawSetString(playerid,
CarregamentoKingP[playerid][1], "../SHWL/plugins/log-core...");
if(CarregandoTelaLogin[playerid] == 20) PlayerTextDrawSetString(playerid,
CarregamentoKingP[playerid][1], "../SHWL/plugins/sampvoice...");
if(CarregandoTelaLogin[playerid] == 30) PlayerTextDrawSetString(playerid,
CarregamentoKingP[playerid][1], "../SHWL/plugins/streamer...");
if(CarregandoTelaLogin[playerid] == 40) PlayerTextDrawSetString(playerid,
CarregamentoKingP[playerid][1], "../SHWL/plugins/MySQL...");
if(CarregandoTelaLogin[playerid] == 50) PlayerTextDrawSetString(playerid,
CarregamentoKingP[playerid][1], "../SHWL/gamemodes/SHWL.amx");
if(CarregandoTelaLogin[playerid] == 90) PlayerTextDrawSetString(playerid,
CarregamentoKingP[playerid][1], "__Entrando...");
}
else
{
KillTimer(TimerLoadEscreen[playerid]); // Cancel the timer
TimerLoadEscreen[playerid] = 0; // Reset the timer ID
LoadScreenValor[playerid] = 0;
CarregandoTelaLogin[playerid] = 0;
for (new i; i < 21; i++)
{
TextDrawHideForPlayer(playerid, CarregamentoKing[i]);
}
PlayerTextDrawHide(playerid, CarregamentoKingP[playerid][0]);
PlayerTextDrawHide(playerid, CarregamentoKingP[playerid][1]);
stock CreateTelaLogin(){
}
else //PC, TEM PARA PC
{
for(new i; i < 15; i++)
{
PTextShow(playerid, HUD_RP_PC[playerid][i]);
}
}
}
else
{
//VIDA
new Float:vida;
GetPlayerHealth(playerid, vida);
if(HUD_VidaAnt[playerid] != vida)
{
HUD_VidaAnt[playerid] = vida;
//COLETE
new Float:colete;
GetPlayerArmour(playerid, colete);
if(HUD_ColeteAnt[playerid] != colete)
{
HUD_ColeteAnt[playerid] = colete;
}
else //PC, TEM PARA PC
{
for(new i; i < 15; i++)
{
PTextHide(playerid, HUD_RP_PC[playerid][i]);
}
}
}
}
if(GetPlayerWeapon(playerid) == 42)
{
if(ArmaUltimo[playerid] != 0)
{
if(GetPlayerAmmo(playerid) != ArmaUltimo[playerid])
{
ArmaUltimo[playerid] = GetPlayerAmmo(playerid);
if(IsValidDynamicObject(IncendioInfo[i][incendioObjeto]))
DestroyDynamicObject(IncendioInfo[i][incendioObjeto]);
if(IsValidDynamic3DTextLabel(IncendioInfo[i][incendioText]))
DestroyDynamic3DTextLabel(IncendioInfo[i][incendioText]);
ApagandoID[playerid] = -1;
IncendioInfo[i][incendioCriado] = 0;
format(stringZCMD, 150,
"[SA:MU]: El bombero %s apago un incendio localizado cerca de la region: %s.",
PlayerName(playerid), IncendioInfo[i][incendioRegiao]);
SendFamilyMessage(4,
COR_SAMU, stringZCMD);
format(stringZCMD, 50,
"~w~INCENDIO ~r~APAGADO~n~~r~BONUS: ~g~R$1500!");
PLO += 1500;
CofreOrg[7][Dinheiro] += 1500;
}
else
{
IncendioInfo[i][incendioFoco] -=
random(15);
new label[150];
format(label, sizeof(label),
"{DD8500}Foco do Inc�ndio\n{33CCFF}%d%%", IncendioInfo[i][incendioFoco]);
/*GetPlayerHealth(playerid, vida);
if(vida <= 0)
{
IncendioInfo[i][incendioVitimas] ++;
format(stringZCMD, 150, "[Inc�ndio]: %s foi morto(a)
pelo inc�ndio na regi�o: %s. Total de Mortes: %d.", PlayerName(playerid),
IncendioInfo[i][incendioRegiao], IncendioInfo[i][incendioVitimas]);
SendClientMessageToAll(COR_KING, stringZCMD);
SendClientMessage(playerid, COR_KING, "* Voc� foi
morto por um inc�ndio!");
}*/
}
}
/*if(NoCelular[playerid] == true && PaginaCelular[playerid] == 101 &&
tapmsc[playerid] != 999)
{
new stringtimermsc[30];
format(stringtimermsc, sizeof(stringtimermsc), "%s",
ConvertTimeYT(timemusica[playerid]));
PTextSetString(playerid, Celular15[playerid][4], stringtimermsc);
PTextShow(playerid, Celular15[playerid][4]);
timemusica[playerid] ++;
}*/
if(SX_NaChamada[playerid] == true)
{
SX_TempoChamada[playerid] ++;
new stringcelular[20];
format(stringcelular, sizeof(stringcelular), "%s",
ConvertTimeYT(SX_TempoChamada[playerid]));
PTextSetString(playerid, CelularSHOXChamada[playerid][2],
stringcelular);
PTextShow(playerid, CelularSHOXChamada[playerid][2]);
PTextHide(playerid, CelularSHOXChamada[playerid][1]);
}
/*print("ativando td gss na onplayeratualizador");
//AtivarTDgsss(playerid);
print("td gss foi ativada na onplayeratualizador pra um player");*/
if(GetPlayerWeapon(playerid) != 0 && PlayerInfo[playerid][pGunLic] == 0
&& PlayerInfo[playerid][pAdmin] < 1)
{
ResetPlayerWeaponsEx(playerid);
/* new Float:posworldb[5];
GetPlayerWorldBounds(playerid, posworlddb[0], posworlddb[1],
posworlddb[2], posworlddb[3]);
if(posworlddb[0] != 337.5694 || posworlddb[1] != 101.5826 ||
posworlddb[0] != 1940.9759 || posworlddb[0] != 1798.7453)
{
SetPlayerWorldBounds(playerid,
337.5694,101.5826,1940.9759,1798.7453);
if(debugconsole == 1) printf("Carandiru na onplayeratualizador: %s,
setou o worldbounds", PlayerName(playerid));
}*/
new i = GetPlayerVehicleID(playerid);
if(IsValidVehicle(i) && IsPlayerInVehicle(i, i))
{
SetPlayerPos(playerid, 268.58, 1857.94, 9.81);
SetPlayerWorldBounds(playerid,
337.5694,101.5826,1940.9759,1798.7453);
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid,
"https://dl.dropboxusercontent.com/s/yaa9h7amuw89qj2/carandiru.mp3");
SendClientMessage(playerid, COR_LIGHTBLUE, "* No puedes
entrar en vehiculos estando preso en carandiru!");
//if(debugconsole == 1) printf("Carandiru en
onplayeratualizador: %s, intento entrar en un vehiculo preso en carandiru y fue
mandado al spawn de carandiru", PlayerName(playerid));
}
if(GetPlayerSkin(playerid) != 42 && GetPlayerSkin(playerid) != 69
&& GetPlayerSkin(playerid) != 268) //esta bugado, coRPigir
{
if(PlayerInfo[playerid][pSex] == 1)
{
SetPlayerSkin(playerid, 42);
}
else
{
SetPlayerSkin(playerid, 69);
}
SetPlayerSkin(playerid, 268);
if(PlayerInfo[playerid][pSocio] >= 1)
{ SetPlayerSkin(playerid, 42); }
//if(debugconsole == 1) printf("Carandiru en
onplayeratualizador: %s, seteo la skin de carandiru", PlayerName(playerid));
}