28.01.2019, 15:26
Ta ae os dois , onde que meche.
PHP код:
public OnPlayerConnect(playerid)
{
RemoveBuildingForPlayer(playerid, 3516, 2074.6016, 1423.3672, 12.9922, 0.25);
RemoveBuildingForPlayer(playerid, 3513, 2077.0781, 1342.3672, 13.9922, 0.25);
RemoveBuildingForPlayer(playerid, 3516, 2074.5938, 1363.3672, 12.9922, 0.25);
RemoveBuildingForPlayer(playerid, 1350, 2082.5234, 1378.7734, 9.7969, 0.25);
RemoveBuildingForPlayer(playerid, 3516, 2101.5313, 1763.6484, 12.9609, 0.25);
RemoveBuildingForPlayer(playerid, 1350, 2122.5781, 1778.8594, 9.7813, 0.25);
SNP5[playerid] = false;
cvida[playerid] = 0;
ccolete[playerid] = 0;
PlayAudioStreamForPlayer(playerid,
"http://www.dropbox.com/s/gdc0xzs1kp2k15c/Meg%20%20Dia%20%20%20Monster%20%28DotEXE%20Dubstep%20Remix%29.mp3?dl=1");
TextDrawShowForPlayer(playerid, ImagemEntrada); // imagem ao conectar
new blogs[1000];
strins(blogs, "{FFFFFF}Boas vindas\n", strlen(blogs));
strins(blogs, "\n{FFFF00}Adicione nosso ip aos favoritos :{00BFFF}198.27.108.17:7777",
strlen(blogs));
strins(blogs, "\n{FFFF00}Quer ser um de nossa equipe? {00BFFF}/seradmin", strlen(blogs));
strins(blogs, "\n{FFFF00}Escolha sua radio{00BFFF} /radios", strlen(blogs));
ShowPlayerDialog(playerid, 8439, DIALOG_STYLE_MSGBOX, "MUNDO DOS EXPERTS ", blogs, "Entrar",
"");
if (strcmp(PlayerIp(playerid), LastIPConnected, true) == 0
&& TickCounter - LastConnectionTick <= 2)
ProcessarBOT(playerid);
else
BotTolerance = 0; // Prote��o contra ataques BOT
if (strcmp(PlayerIp(playerid), "255.255.255.255", true) == 0)
print("[MdE]: IP invalido na conexao acima");
else
format(LastIPConnected, sizeof(LastIPConnected), "%s", PlayerIp(playerid));
if (IsPlayerNPC(playerid))
BanEx(playerid, "NPC"); // AntiNPC
LastConnectionTick = TickCounter;
VChanges[playerid] = 0;
LastVChanges[playerid] = 0;
LastVehicleModel[playerid] = 0;
PontoAT[playerid] = false;
PontoU[playerid] = false;
ShowLogLines[playerid] = 0;
MostrandoFPSPing[playerid] = false;
SNP2[playerid] = false;
SNP3[playerid] = false;
AntiRojao[playerid] = false;
Altimetro[playerid] = false;
Mecanica[playerid] = false;
OuvindoRadio[playerid] = false;
PreDefStateChanges[playerid] = 0;
DamageTick[playerid] = 0;
L_PreDefStateChanges[playerid] = 0;
SpeedHack[playerid] = false;
ChamadoParaX1Por[playerid] = -1;
LastDeathTick[playerid] = TickCounter;
CX1Tipo[playerid] = 0;
Bugar[playerid] = false;
AwaySeconds[playerid] = 0;
AFK[playerid] = false;
ADMTick[playerid] = -100;
X1CTick[playerid] = -100;
LastDarGranaPos[playerid] = 0;
ScoreNaSessao[playerid] = 0;
Neon[0][playerid] = -1;
Neon[1][playerid] = -1;
StuntSuperSpeed[playerid] = false;
TextoHead[playerid] = Create3DTextLabel(" ", 0x0083ADFF, 0, 0, 0, 60, 0, 0);
TextoVeiculo[playerid] = Create3DTextLabel(" ", 0xFF8408FF, 0, 0, 0, 20, 0, 0);
Attach3DTextLabelToPlayer(TextoHead[playerid], playerid, 0.0, 0.0, 0.7);
new pname[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, pname, sizeof(pname));
if (strlen(pname) > 2)
{
format(string, sizeof(string),
"{FF00DD}�{FFFFFF} %s [ID:%i]{00BFFF} Entrou No MUNDO DOS EXPERTS!{FFFFFF} [%i/%i]",
pname, playerid, ConnectedPlayers(), GetMaxPlayers());
SendClientMessageToAllEx(playerid, 0xAAAAAAAA, string);
SendDeathMessage(INVALID_PLAYER_ID, playerid, 200);
}
SetPlayerColor(playerid, playerColors[playerid]);
NewKillerID[playerid] = INVALID_PLAYER_ID;
LastKillerID[playerid] = INVALID_PLAYER_ID;
SendoAbusado[playerid] = 0;
KillSpree[playerid] = 0;
AF_UltimoComando[playerid] = 0;
SorteiosFeitos[playerid] = 0;
KillTimer(TimerKillSpree[playerid]);
KillTimer(AAD_DominandoTimer[playerid]);
PlayerCustomSpawn[playerid] = 0;
PlayerCustomSpawn_X[playerid] = 0;
PlayerCustomSpawn_Y[playerid] = 0;
PlayerCustomSpawn_Z[playerid] = 0;
PlayerCustomSpawn_F[playerid] = 0;
PlayerCustomSpawn_I[playerid] = 0;
VPlayerMissao[playerid] = 0;
NoEvento[playerid] = 0;
HeliKills[playerid] = 0;
KillTimer(TimerSoltar[playerid]);
UltimoVeiculoUsado[playerid] = 0;
veiculo[playerid] = 0;
vtrancado[veiculo[playerid]] = 0;
AutoTrancar[playerid] = 0;
Spree[playerid] = 0;
Arena[playerid] = 0;
ArenaTipo[playerid] = 0;
Reparar[playerid] = 0;
GodCarOn[playerid] = 0;
Rojoes[playerid] = 3;
transferencias[playerid] = 0;
cor[playerid] = 0;
skin[playerid] = 0;
UltraGC[playerid] = 0;
AAD_Vai[playerid] = 0;
AutoPaintOn[playerid] = 0;
MostrandoVelocimetro[playerid] = 1;
MostrandoStatus[playerid] = 1;
XuxaPC[playerid] = 0;
Weather[playerid] = 0;
DistanciaMis[playerid] = 0;
DistanciaMis2[playerid] = 0;
pDrunkLevelLast[playerid] = 0;
pFPS[playerid] = 0;
PiscarLuzes[playerid] = false;
PiscarLuzesState[playerid] = false;
Capacete[playerid] = true;
NascerComColete[playerid] = false;
NascerComKitGuerra[playerid] = false;
UsandoTXTPlaca[playerid] = false;
Gay[playerid] = false;
// LIMPAR ATTACHS
RemoverTodosAttachsObj(playerid);
// LOADER
KillTimer(TeleLockTimer[playerid]);
TogglePlayerControllable(playerid, 1);
// Velocimetro
TextDrawHideForPlayer(playerid, TXTVELOCIDADE[playerid]);
SendClientMessage(playerid, COLOUR_BRANCO,
"{FFFFFF} =-=-=-=-=-=--=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=");
SendClientMessage(playerid, COLOUR_BRANCO,
"{00BFFF}Bem-vindo {FFFFFF}[BRASIL] MATA MATA 2017!!! MUNDO DOS EXPERTS {00BFFF} 0.3.7");
SendClientMessage(playerid, COLOUR_BRANCO,
"{00BFFF}Lista De Comandos:{FFFFFF} /comandos{00BFFF} & {FFFFFF}/seradmin ");
SendClientMessage(playerid, COLOUR_BRANCO, "{00BFFF}Para deligar a radio use:{FFFFFF} /off");
SendClientMessage(playerid, COLOUR_BRANCO, "{00BFFF}Clan oficial:{FFFFFF}[MdE]");
SendClientMessage(playerid, COLOUR_BRANCO, "{00BFFF}Volte sempre!! ");
SendClientMessage(playerid, COLOUR_BRANCO,
"{FFFFFF} =-=-=-=-=-=--=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=");
// PlayerPlaySound( playerid, 1183, 0.0, 0.0, 0.0 );
return 1;
}
public OnPlayerSpawn(playerid)
{
SNP5[playerid] = false;
SNP2[playerid] = false;
ChamadoParaX1Por[playerid] = -1;
CX1Tipo[playerid] = 0;
AFK[playerid] = false;
cmdtick[playerid] = 0;
Arena[playerid] = 0;
ArenaKills[playerid] = 0;
if (ArenaTipo[playerid] == 3)
{
X1 = X1 - 1;
ArenaTipo[playerid] = 0;
} // X1 RUN
if (ArenaTipo[playerid] == 8)
{
X1W = X1W - 1;
ArenaTipo[playerid] = 0;
} // X1 WALK
KillTimer(TimerSoltar[playerid]);
ArenaTipo[playerid] = 0;
Reparar[playerid] = 0;
NoEvento[playerid] = 0;
VPlayerMissao[playerid] = 0;
DistanciaMis[playerid] = 0;
DistanciaMis2[playerid] = 0;
StuntSuperSpeed[playerid] = false;
StopKillSpree(playerid);
if (cor[playerid] != 0)
{
SetPlayerColor(playerid, cor[playerid]);
}
if (skin[playerid] != 0)
{
SetPlayerSkin(playerid, skin[playerid]);
}
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
GivePlayerWeapon(playerid, 4, 0);
if (MostrandoStatus[playerid] == 1)
{
TextDrawShowForPlayer(playerid, Status[playerid]);
}
TextDrawShowForPlayer(playerid, Textdrawnova);
TextDrawHideForPlayer(playerid, Textdrawmx);
TextDrawHideForPlayer(playerid, Textdraw5);
TextDrawHideForPlayer(playerid, Textdraw6);
TextDrawHideForPlayer(playerid, Textdraw7);
TextDrawShowForPlayer(playerid, Textdraw10);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawHideForPlayer(playerid, TxDNotificador);
TextDrawShowForPlayer(playerid, TxDNotificador);
TextDrawHideForAll(Textdraw9);
TextDrawHideForAll(Textdraw15);
TextDrawHideForAll(Textdraw11);
TextDrawHideForAll(Textdraw12);
TextDrawHideForAll(Textdraw13);
TextDrawHideForAll(Textdraw14);
// PlayerPlaySound( playerid, 1188, 0.0, 0.0, 0.0 );
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
// SPAWNS
if (PlayerCustomSpawn[playerid] == 1)
{
SetPlayerInterior(playerid, PlayerCustomSpawn_I[playerid]);
SetPlayerFacingAngle(playerid, PlayerCustomSpawn_F[playerid]);
SetPlayerPos(playerid, PlayerCustomSpawn_X[playerid], PlayerCustomSpawn_Y[playerid],
PlayerCustomSpawn_Z[playerid]);
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid, COLOUR_DICA,
"[MdE]: {FFFFFF}Para nascer no local padr�o digite: /MSP");
}
else
{
new rand = random(sizeof(BloodySpawns));
SetPlayerPos(playerid, BloodySpawns[rand][0], BloodySpawns[rand][1],
BloodySpawns[rand][2]);
SetPlayerFacingAngle(playerid, BloodySpawns[rand][3]);
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid, COLOUR_DICA,
"[MdE]:{FFFFFF} Voc� pode escolher um local para nascer digitando:/MSP");
}
// RESETAR ARMAS
ResetPlayerWeapons(playerid);
// SOCO E SOCO INGLES
new weapons_slot_00 = random(2);
switch (weapons_slot_00)
{
case 0:
GivePlayerWeapon(playerid, 0, 1);
case 1:
GivePlayerWeapon(playerid, 1, 1);
}
// BENGALA FACA ETC
new weapons_slot_01 = random(8);
switch (weapons_slot_01)
{
case 0:
GivePlayerWeapon(playerid, 2, 1);
case 1:
GivePlayerWeapon(playerid, 3, 1);
case 2:
GivePlayerWeapon(playerid, 4, 1);
case 3:
GivePlayerWeapon(playerid, 5, 1);
case 4:
GivePlayerWeapon(playerid, 6, 1);
case 5:
GivePlayerWeapon(playerid, 7, 1);
case 6:
GivePlayerWeapon(playerid, 8, 1);
case 7:
GivePlayerWeapon(playerid, 9, 1);
}
// EXPLOSIVOS
new weapons_slot_08 = random(2);
switch (weapons_slot_08)
{
case 0:
GivePlayerWeapon(playerid, 16, 15);
// case 2:GivePlayerWeapon(playerid, 18, 3); // MOLOTOV
case 1:
GivePlayerWeapon(playerid, 39, 15);
}
// PISTOLAS
new weapons_slot_02 = random(4);
switch (weapons_slot_02)
{
case 0:
GivePlayerWeapon(playerid, 22, 220);
case 1:
GivePlayerWeapon(playerid, 23, 220);
case 2:
GivePlayerWeapon(playerid, 24, 220);
case 3:
GivePlayerWeapon(playerid, 24, 220);
}
// METRALHAS
new weapons_slot_04 = random(3);
switch (weapons_slot_04)
{
case 0:
GivePlayerWeapon(playerid, 28, 2500);
case 1:
GivePlayerWeapon(playerid, 29, 2500);
case 2:
GivePlayerWeapon(playerid, 32, 2500);
}
// ASSALTO
new weapons_slot_05 = random(2);
switch (weapons_slot_05)
{
case 0:
GivePlayerWeapon(playerid, 30, 1000);
case 1:
GivePlayerWeapon(playerid, 31, 1000);
}
// RIFLES
new weapons_slot_06 = random(2);
switch (weapons_slot_06)
{
case 0:
GivePlayerWeapon(playerid, 33, 100);
case 1:
GivePlayerWeapon(playerid, 34, 100);
}
// GAS
new weapons_slot_09 = random(2);
switch (weapons_slot_09)
{
case 0:
GivePlayerWeapon(playerid, 41, 2000);
case 1:
GivePlayerWeapon(playerid, 42, 2000);
}
// SHOTGUNS
new weapons_slot_03 = random(3);
switch (weapons_slot_03)
{
case 0:
GivePlayerWeapon(playerid, 25, 880);
case 1:
GivePlayerWeapon(playerid, 26, 880);
case 2:
GivePlayerWeapon(playerid, 27, 880);
}
SetPlayerTeam(playerid, 255);
SetPlayerTeam(playerid, 255);
// Nascer com colete
if (NascerComColete[playerid] == true)
{
if (CallRemoteFunction("GetPlayerCash", "i", playerid) >= 5000)
{
CallRemoteFunction("GivePlayerCash", "ii", playerid, -5000);
SetPlayerArmour(playerid, 100.0);
SendClientMessage(playerid, COLOUR_INFORMACAO,
"{00BFFF}[MdE]: Voc� nasceu com colete por $5000 {C1C1C1}Desabilitar: /ncc");
}
else
{
SendClientMessage(playerid, COLOUR_ERRO,
"[ERRO]: Dinheiro insuficiente para nascer com colete {C1C1C1}Desabilitar: /ncc");
}
}
if (NascerComKitGuerra[playerid] == true)
{
if (CallRemoteFunction("GetPlayerCash", "i", playerid) >= 10000)
{
CallRemoteFunction("GivePlayerCash", "ii", playerid, -10000);
GivePlayerWeapon(playerid, 22, 300);
GivePlayerWeapon(playerid, 28, 300);
GivePlayerWeapon(playerid, 31, 300);
GivePlayerWeapon(playerid, 16, 10);
GivePlayerWeapon(playerid, 34, 100);
GivePlayerWeapon(playerid, 4, 2);
GivePlayerWeapon(playerid, 42, 100);
GivePlayerWeapon(playerid, 26, 300);
SetPlayerArmour(playerid, 100.0);
SendClientMessage(playerid, COLOUR_INFORMACAO,
"{00BFFF}[MdE]: Voc� nasceu com Kit Guerra por $10000 {C1C1C1}Desabilitar: /nck");
}
else
{
SendClientMessage(playerid, COLOUR_ERRO,
"[ERRO]: Dinheiro insuficiente para nascer com Kit {C1C1C1}Desabilitar: /nck");
}
}
if (AAD_Team[playerid] == 1 && AAD_EmProgresso == 1 && AAD_Vai[playerid] == 1)
{
AAD_SpawnPlayer_1(playerid);
}
if (AAD_Team[playerid] == 2 && AAD_EmProgresso == 1 && AAD_Vai[playerid] == 1)
{
AAD_SpawnPlayer_2(playerid);
}
return 1;
}