Код:
#include <a_samp>
#include <zcmd>
#include <cpstream>
#include < streamer >
#include < dini >
//#include < MaquinasRefri >
#if defined FILTERSCRIPT
#define GivePlayerCash(%0,%1) SetPVarInt(%0,"Money",GetPlayerCash(%0)+%1),GivePlayerMoney(%0,%1)
#define ResetPlayerCash(%0) SetPVarInt(%0,"Money",0),ResetPlayerMoney(%0)
#define GetPlayerCash(%0) GetPVarInt(%0,"Money")
#define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1,%2,%3,%4,%5,%6,%7,%8,%9)
#define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
#define IsPlayerHoldingObject(%1) IsPlayerAttachedObjectSlotUsed(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
new
gstring[ 256 ]
;
#define MensagemFormatada(%1,%2,%3,%4) do{format(gstring,sizeof(gstring),%3,%4 );SendClientMessage(%1,%2,gstring );}while(IsPlayerConnected(-1))
#define MensagemFormatadaAll(%1,%2,%3) do{format(gstring,sizeof(gstring),%2,%3 );SendClientMessageToAll(%1,gstring );}while(IsPlayerConnected(-1))
#define Kick(%0) SetTimerEx("Kicka", 100, false, "i", %0)
#define Ban(%0) SetTimerEx("Bana", 100, false, "i", %0)
#define MES_LIMITE (4)
#define ANO_LIMITE (2013)
#define PRESSED(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
#define RELEASED(%0) (((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
#define ARMEDBODY_USE_HEAVY_WEAPON (false)
#define ACTION ( 2 ) /* 0 = BANIR | 1 = KICKAR | 2 = RETIRAR ARMA */
#define RC_BANDIT 441
#define RC_BARON 464
#define RC_GOBLIN 501
#define RC_RAIDER 465
#define D_TRAM 449
#define RC_MINITANK 564
#define RC_CAM 594
// |_-» Dialogs «-_|
#define D_LOGIN 0
#define D_REGISTRO 1
#define D_SEXO 2
#define D_SPAWN 3
#define D_CARGA 4
#define D_iCASA 5
#define D_vINDEX 6
#define D_vCARROS 7
#define D_vMOTOS 8
#define D_vLISTA1 9 // A - B
#define D_vLISTA2 10 // B
#define D_vLISTA3 11 // C -
#define D_vLISTA4 12 // F - H
#define D_vLISTA5 13 // I - M
#define D_vLISTA6 14 // N - P
#define D_vLISTA7 15 // R - S
#define D_vLISTA8 16 // S
#define D_vLISTA9 17 // T - Z
//#define 18
#define D_CONTABANCO 19
#define D_LOGINBANCO 20
#define D_SENHABANCO 21
#define D_SENHABANCO2 22
#define D_iBANCO 23
#define D_TRANSACAO 24
#define D_DEPOSITO 25
#define D_SAQUE 26
#define D_SALDO 27
#define D_DEPOSITOU 28
#define D_SACOU 29
#define D_EMPRINFO 30
#define D_TUTO 31
#define D_TUTO1 32
#define D_TUTO2 33
#define D_TUTO3 34
#define D_TUTO4 35
#define D_TUTO5 36
#define D_TUTO6 37
#define D_TUTO7 38
#define D_TUTO8 39
#define D_TUTO9 40
#define D_TUTO10 41
#define D_TUTO11 42
#define D_TUTO12 43
#define D_TUTO13 44
#define D_TUTO14 45
#define D_TUTO15 46
/*#define D_LJSKIN 47
#define D_EPSKIN 48
#define D_CPSKIN 49
#define D_VOSKIN 50*/
#define D_PROFS 51
#define D_TRANS 52
#define D_TRANP 53
#define D_PARTI 54
#define D_POLIC 55
#define D_GOVER 56
#define D_CRIME 57
#define D_OUTRA 58
#define D_OUTR2 59
#define D_ISPAW 60
#define D_LUTAS 61
#define D_AUTOE 62
#define D_UTILI 63
#define D_GPSL1 64
#define D_HOSPI 65
#define D_TEMPO 66
#define D_FAVEL 67
#define D_HTDOG 68
#define D_SORVE 69
#define D_ALGOD 70
#define D_NEON_ 71
#define D_ITEN1 72
#define D_ITEN2 73
#define D_ITEN3 74
#define D_ITEN4 75
#define D_DROGA 76
#define D_SPORG 78
#define D_BALAO 79
#define D_BALA2 80
#define D_BALA3 81
#define D_BALA4 82
#define D_SUSPE 83
#define D_NITRO 84
#define D_RODAS 85
#define D_PAINT 86
#define D_TUNIN 87
#define D_GASOL 887
#define D_PCHAVE 89
#define D_PCHAVL 90
#define D_PESCAD 92
#define D_JIMCAR 93
#define D_PARMA 324
#define D_GPSLS 454
#define D_GPSSF 455
#define D_GPSLV 456
#define D_CELLL 1201
#define D_AJUDA 9854
// |_-» Cores «-_|
#define COLOR_CEU 0x0065FDFF
#define COLOR_ERRO 0xFF0000AA
#define COLOR_AZULESCURO 0x000099AA
#define COLOR_AZUL 0x0000FFAA
#define COLOR_AZULCLARO 0x0099FFAA
#define COLOR_AZULBEBE 0x00CCFFAA
#define COLOR_AZULAGUA 0x00FFFFAA
#define COLOR_VERDEESCURO 0x006633AA
#define COLOR_VERDE 0x009933AA
#define COLOR_VERDECLARO 0x00FF66AA
#define COLOR_VERDELIMAO 0x00FF33AA
#define COLOR_VERDEAGUA 0x00FF99AA
#define COLOR_ROXOESCURO 0x330033AA
#define COLOR_ROXO 0x330066AA
#define COLOR_ROXOCLARO 0x333366AA
#define COLOR_ROXOAGUA 0x6600CCAA
#define COLOR_ROXOFRACO 0x6666CCAA
#define COLOR_VERMELHOESCURO 0xCC0000AA
#define COLOR_VERMELHOCLARO 0xFF0033AA
#define COLOR_VERMELHOAGUA 0xFF3333AA
#define COLOR_LARANJAESCURO 0xFF3300AA
#define COLOR_LARANJA 0xFF6600AA
#define COLOR_LARANJAAGUA 0xFF6633AA
#define COLOR_ROSAESCURO 0xFF0066AA
#define COLOR_ROSA 0xFF0099AA
#define COLOR_ROSACLARO 0xFF33FFAA
#define COLOR_ROSAAGUA 0xFF66FFAA
#define COLOR_AMARELOESCURO 0xFFCC00AA
#define COLOR_AMARELO 0xFFFF00AA
#define COLOR_AMARELOCLARO 0xFAF65DFF
#define COLOR_AMARELOAGUA 0xFFFF99AA
#define COLOR_BRANCO 0xFFFFFFFF
#define COLOR_CINZAESCURO 0x333333AA
#define COLOR_CINZA 0x6E6E6EFF
#define COLOR_CINZACLARO 0xB4B4B4FF
#define COLOR_SISTEMA 0xA9C4E4FF
#define COLOR_MUSGO 0x698B22AA
#define COLOR_MARROMCLARO 0xBDB76BAA
#define COLOR_VERDEFRACO 0xC1FFC1FF
#define COLOR_TUNING 0x22C579FF
// |_-» Cores das Profs «-_|
#define COLOR_DESEMPREGADO 0xFFE2C2FF
#define COLOR_MOTORISTABUS 0xFC4C47FF
#define COLOR_TAXISTA 0xD5D500AA
#define COLOR_TAXIAEREO 0x00B3B3AA
#define COLOR_MOTOTAXI 0x009B00AA
#define COLOR_CAMINHONEIRO 0xFFFFFFAA
#define COLOR_MAQUINISTA 0x00EA75AA
#define COLOR_MOTOBOY 0xDAE8CEFF
#define COLOR_SEGPART 0x81C4FFFF
#define COLOR_MOTPART 0x444CF4FF
#define COLOR_GUARDTRANS 0xF4680EFF
#define COLOR_POLCIVIL 0xAFED30FF
#define COLOR_POLMILITAR 0x006AD5AA
#define COLOR_DELEGADO 0x8080FFAA
#define COLOR_SWAT 0x6600CCAA
#define COLOR_JUIZ 0x584674FF
#define COLOR_TRAFDROGAS 0xD8A100FF
#define COLOR_TRAFARMAS 0xBA3500FF
#define COLOR_ASSASSINO 0xEE6421FF
#define COLOR_ATIRADOR 0x600A17FF
#define COLOR_TERRORISTA 0xFF0000FF
#define COLOR_CHEFEMAFIA 0x01DFA2FF
#define COLOR_SEGILHA 0x80FF00AA
#define COLOR_PORILHA 0x53A600AA
#define COLOR_PIZZABOY 0x99FFCCAA
#define COLOR_FOTOGRAFO 0xA68082FF
#define COLOR_REPORTER 0x972C82FF
#define COLOR_DRIFTER 0x4B766EFF
#define COLOR_DEPUTADO 0xD688A5FF
#define COLOR_PREFEITO 0x5959ACAA
#define COLOR_PRESIDENTE 0x00FF40AA
#define COLOR_EXERCITO 0x5A7620FF
#define COLOR_INSTRUTOR 0x313131AA
#define COLOR_MECANICO 0x657DDFFF
#define COLOR_PESCADOR 0x336699AA
#define COLOR_CACADOR 0x627A00FF
#define COLOR_MEDICO 0xDF0070AA
#define COLOR_ADVOGADO 0x182C66FF
#define COLOR_VENDEDORSKINS 0xB9B973AA
#define COLOR_FRENTISTA 0xC9A000FF
#define COLOR_PADRE 0xB64B7FFF
#define COLOR_PROSTITUTA 0xFF6AFFAA
#define COLOR_SEGVILA 0x808080AA
#define COLOR_PORVILA 0x97B7A6AA
#define COLOR_AVIAOZINHO 0xE7B8F2AA
#define COLOR_BOMBEIRO 0xFA8072AA
// |_-» Profissoes «-_|
#define DESEMPREGADO 0 // - SP Feito
#define MOTORISTA_ONIBUS 1 // - SP Feito
#define TAXISTA 2 // - SP Feito
#define MOTO_TAXISTA 3 // - SP Feito
#define TAXI_AEREO 4 // - SP Feito
#define CAMINHONEIRO 5 // - SP Feito
#define MAQUINISTA 6 // - SP Feito
#define MOTOBOY 7 // - SP Feito
#define SEGURANCA_PART 8 // - SP Feito
#define MOTORISTA_PART 9 // - SP Feito
#define GUARDA_TRANSITO 10 // - SP Feito
#define POL_CIVIL 11 // - SP Feito
#define POL_MILITAR 12 // - SP Feito
#define DELEGADO 13 // - SP Feito
#define SWAT 14 // - SP Feito
#define JUIZ 15 // - SP Feito
#define TRAF_DROGAS 16 // - SP Feito
#define TRAF_ARMAS 17 // - SP Feito
#define ASSASSINO 18 // - SP Feito
#define ATIRADOR 19 // - SP Feito
#define TERRORISTA 20 // - SP Feito
#define CHEFE_MAFIA 21 // - SP Feito
#define SEG_ILHA 22 // - SP Feito
#define PORT_ILHA 23 // - SP Feito
#define PIZZABOY 24 // - SP Feito
#define FOTOGRAFO 25 // - SP Feito
#define REPORTER 26 // - SP Feito
#define DRIFTER 27 // - SP Feito
#define DEPUTADO 28 // - SP Feito
#define PREFEITO 29 // - SP Feito
#define PRESIDENTE 30 // - SP Feito
#define EXERCITO 31 // - SP Feito
#define INSTRUTOR 32 // - SP Feito
#define MECANICO 33 // - SP Feito
#define PESCADOR 34 // - SP Feito
#define CACADOR 35 // - SP Feito
#define MEDICO 36 // - SP Feito
#define ADVOGADO 37 // - SP Feito
#define VENDEDOR_SKINS 38 // - SP Feito
#define FRENTISTA 39 // - SP Feito
#define PADRE 40 // - SP Feito
#define PROSTITUTA 41 // - SP Feito
#define SEG_VILA 42 // - SP Feito
#define PORT_VILA 43 // - SP Feito
#define AVIAOZINHO 44 // - SP Feito
#define BOMBEIRO 45 // - SP Feito
// |_-» ESPIAR «-_|
#define ADMIN_SPEC_TYPE_NONE 0
#define ADMIN_SPEC_TYPE_PLAYER 1
// |_-» Preзo veнculos «-_|
#define PRECO_ADMIRAL 30000
#define PRECO_ALPHA 40000
#define PRECO_BANSHEE 60000
#define PRECO_BANDITO 50000
#define PRECO_BF_INJECTION 15000
#define PRECO_BLADE 60000
#define PRECO_BLISTA_COMPACT 15000
#define PRECO_BLOODRING_BANGER 45000
#define PRECO_BOBCAT 32000
#define PRECO_BOXVILLE 26000
#define PRECO_BRAVURA 33000
#define PRECO_BROADWAY 44000
#define PRECO_BUCCANEER 40000
#define PRECO_BUFFALO 75000
#define PRECO_PERENNIEL 19000
#define PRECO_BULLET 80000
#define PRECO_BURRITO 48000
#define PRECO_CAMPER 28000
#define PRECO_CHEETAH 95000
#define PRECO_CLOVER 25000
#define PRECO_CLUB 47000
#define PRECO_COMET 18000
#define PRECO_ELEGANT 49000
#define PRECO_ELEGY 78000
#define PRECO_EMPEROR 55000
#define PRECO_ESPERANTO 22000
#define PRECO_EUROS 64000
#define PRECO_FELTZER 23000
#define PRECO_FLASH 62000
#define PRECO_GLENDALE 26000
#define PRECO_GREENWOOD 20000
#define PRECO_HERMES 41000
#define PRECO_HOTKNIFE 66000
#define PRECO_HOTRING 90000
#define PRECO_HUNTLEY 65000
#define PRECO_HUSTLER 59000
#define PRECO_INFERNUS 150000
#define PRECO_JESTER 72000
#define PRECO_KART 14000
#define PRECO_LANDSTALKER 65000
#define PRECO_MAJESTIC 17000
#define PRECO_MESA 56000
#define PRECO_MOONBEAM 51000
#define PRECO_PERENNIEL 19000
#define PRECO_PHOENIX 83000
#define PRECO_PICADOR 21000
#define PRECO_RANCHER 84000
#define PRECO_REMINGTON 57000
#define PRECO_SABRE 22000
#define PRECO_SADLER 14000
#define PRECO_SANDKING 80000
#define PRECO_SAVANNA 19000
#define PRECO_SLAMVAM 25000
#define PRECO_STAFFORD 45000
#define PRECO_STRATUM 56000
#define PRECO_STRETCH 70000
#define PRECO_SULTAN 64000
#define PRECO_SUNRISE 51000
#define PRECO_SUPER_GT 80000
#define PRECO_TORNADO 33000
#define PRECO_TURISMO 95000
#define PRECO_URANOS 57000
#define PRECO_VINCENT 42000
#define PRECO_VIRGO 22000
#define PRECO_VOODOO 23000
#define PRECO_WALTON 10000
#define PRECO_WASHINGTON 29000
#define PRECO_WILLARD 37000
#define PRECO_YOSEMITE 77000
#define PRECO_ZR_350 85000
#define PRECO_BF_400 20000
#define PRECO_BIKE 1000
#define PRECO_BMX 1000
#define PRECO_FAGGIO 5000
#define PRECO_FCR_900 40000
#define PRECO_FREEWAY 60000
#define PRECO_NRG_500 45000
#define PRECO_PCJ_600 30000
#define PRECO_QUAD 15000
#define PRECO_SANCHEZ 10000
#define PRECO_WAYFARER 15000
#define PRECO_URANUS 57000
// Lojas de Roupas
new
skins_binco = mS_INVALID_LISTID,
skins_didiersachs = mS_INVALID_LISTID,
skins_prolaps = mS_INVALID_LISTID,
skins_suburban = mS_INVALID_LISTID,
skins_victim = mS_INVALID_LISTID,
skins_zip = mS_INVALID_LISTID,
skins_vip = mS_INVALID_LISTID;
// Gangue Zones
#define TEMPO_DOMINAR 120
#define MINIMO_D_MEMBROS 3
new
PlayerText:TGangueZone[ MAX_PLAYERS ],
in_z[ MAX_PLAYERS ],
gzfo[ 128 ]
;
enum eZone
{
Float:zMinX,
Float:zMinY,
Float:zMaxX,
Float:zMaxY,
zCor[ 2 ],
zClan[ 64 ],
aClan[ 64 ]
}
new
ZoneInfo[ ][ eZone ] =
{
{ 1879.867431, -1253.028564, 2047.867431, -1157.028564 },
{ 357.356719, -2088.112060, 397.356719, -2024.112060 },
{ 889.789489, -1127.255615, 953.789489, -1063.255615 },
{ 679.580200, -958.528198, 727.580200, -894.528198 }
};
new
ZoneNome[ 4 ][ 64 ] =
{
{ "Glen Park" },
{ "Parque de Diversoes" },
{ "Cemiterio" },
{ "Morro de Vinewood" }
};
new
ZoneID[ sizeof( ZoneInfo ) ],
ZonaAtacada[ sizeof( ZoneInfo ) ] = { -1, ... },
ZoneAttackTempo[ sizeof( ZoneInfo ) ];
// Fim vars GZ
new viewMM[ MAX_PLAYERS ];
new PlayerText:_ACEITAR[ MAX_PLAYERS ];
new PlayerText:_ICONE[ MAX_PLAYERS ];
new PlayerText:_INFO[ MAX_PLAYERS ];
new PlayerText:_MSGFORM[ MAX_PLAYERS ];
new PlayerText:_RECUSAR[ MAX_PLAYERS ];
new PlayerText:_MSGTEMPO[ MAX_PLAYERS ];
new bool:give[ MAX_PLAYERS ];
new timerarms[ MAX_PLAYERS ] = -1;
new temptemp_[ MAX_PLAYERS ] = -1;
new preccArma[ MAX_PLAYERS ] = -1;
new trafcArma[ MAX_PLAYERS ] = -1;
new armaEscol[ MAX_PLAYERS ] = -1;
new compraArm[ MAX_PLAYERS ] = -1;
new pHospital[ MAX_PLAYERS ];
new PlayerText:CityPlayer[ MAX_PLAYERS ];
new PlayerText:LocalPlayer[ MAX_PLAYERS ];
new TextLocal[ MAX_PLAYERS ][ 4 ];
enum CidadesSanAndreas
{
cidadeNome[ 28 ],
Float:cidadeArea[ 6 ]
};
static const SanAndreasCidades[ ][ CidadesSanAndreas ] =
{
{"Los Santos", {44.60,-2892.90,-242.90,2997.00,-768.00,900.00}},
{"Las Venturas", {869.40,596.30,-242.90,2997.00,2993.80,900.00}},
{"Bone County", {-480.50,596.30,-242.90,869.40,2993.80,900.00}},
{"Tierra Robada", {-2997.40,1659.60,-242.90,-480.50,2993.80,900.00}},
{"Tierra Robada", {-1213.90,596.30,-242.90,-480.50,1659.60,900.00}},
{"San Fierro", {-2997.40,-1115.50,-242.90,-1213.90,1659.60,900.00}},
{"Red County", {-1213.90,-768.00,-242.90,2997.00,596.30,900.00}},
{"Flint County", {-1213.90,-2892.90,-242.90,44.60,-768.00,900.00}},
{"Whetstone", {-2997.40,-2892.90,-242.90,-1213.90,-1115.50,900.00}}
};
stock GetPlayerCidade( playerid, zone[], len )
{
new
Float:plx, Float:ply, Float:plz
;
GetPlayerPos( playerid, plx, ply, plz );
for( new i = 0; i != sizeof( SanAndreasCidades ); i++ )
{
if( plx >= SanAndreasCidades[ i ][ cidadeArea ][0] && plx <= SanAndreasCidades[ i ][ cidadeArea ][3] && ply >= SanAndreasCidades[ i ][ cidadeArea ][ 1 ] && ply <= SanAndreasCidades[ i ][ cidadeArea ][ 4 ] )
{
return format( zone, len, SanAndreasCidades[ i ][ cidadeNome ], 0 );
}
}
return 0;
}
new Text:statsShop;
new stats_Shop;
#define Labels
#define LoseHealth
#define Holding_Segurando(%0) \
((newkeys & (%0)) == (%0))
#define MaxFire 350
new
FireObj[MaxFire],
Float:FirePos[MaxFire][3],
FireHealth[MaxFire],
FireHealthMax[MaxFire],
FireCreated[MaxFire],
FirePlayer[ MaxFire ][ 24 ],
FireAtual[ MAX_PLAYERS ],
FireTimerP[ MAX_PLAYERS ],
FireBaixa[ MAX_PLAYERS ],
estCamB[ MAX_VEHICLES ];
#if defined Labels
new Text3D:FireText[MaxFire];
#endif
2 - Vocк comeзa um verificaзгo na linha 7 e nгo termina ela.
Vc tem que definir um fs.. No topo