24.10.2014, 18:00
Consertei e compilou aqui
pawn Код:
//==============================INCLUDES=============================//
#include <a_samp>
#include <DOF2>
//==============================DEFINIЗХES=============================//
#define DIALOG_AL 4677
#define DIALOG_LOGAR 1
#define DIALOG_REGISTRO 2
//==============================NEW'S=============================//
new RandomColors [] =
{
0xFF5A00FF,
0xF50000FF,
0xF50000FF,
0x91FF00FF,
0xFF0091FF,
0x009000FF,
0x9600FFFF
};
new Erro[MAX_PLAYERS];
new Text:DayZ_Debug1,PlayerText:DayZ_Debug2[MAX_PLAYERS],PlayerText:DayZ_Debug3[MAX_PLAYERS];
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw0;
new Text:Fundo;
new Ajuda[1500];
new BlackRadar;
new Mensagens[][130] =
{
"Sua Mensagem aki",
"Sua Mensagem aki",
"Sua Mensagem aki",
"Sua Mensagem aki",
"Sua Mensagem aki",
"Sua Mensagem aki",
"Sua Mensagem aki",
"Sua Mensagem aki",
"Sua Mensagem aki"
};
new Float:RandomSpawns[22][4] =
{
{258.0997,2939.1514,1.7661,178.4244},
{1688.2180,-2731.7292,9.4693,180.6178},
{1688.2180,-2731.7292,9.4693,180.6178},
{129.5016,-1763.0736,5.4249,312.5323},
{220.3669,-233.3869,1.7786,42.7497},
{633.1784,-598.7915,16.3359,273.9685},
{-343.2381,1538.3112,80.4266,180.6176},
{1666.1603,1474.2776,10.7755,269.3152},
{2785.0378,710.2653,10.8912,115.5138},
{-1459.0962,2699.2815,55.8359,195.7046},
{-2387.5447,2215.6553,4.9844,88.8569},
{-2106.0325,167.3820,35.0691,321.0158},
{-2946.0522,974.2535,13.9277,258.6619},
{-2229.3057,-1743.5945,480.8813,222.0331},
{-2610.8232,-2729.7227,6.5595,289.7137},
{-955.2931,-2357.0247,60.9880,101.1086},
{-201.6451,-2263.7766,29.3455,311.3806},
{1125.8311,-2036.9128,69.8801,272.8402},
{2903.2417,-1930.4924,2.2940,89.2251},
{2918.8140,-726.6842,9.9818,87.4152},
{-1568.6575,-2729.0886,48.7435,63.0969},
{2069.9150,-411.8249,110.5751,61.2491}
};
//==============================ENUM=============================//
enum pInfo
{
pSkin,
pSenha
};
new PlayerInfo[MAX_PLAYERS][pInfo];
//==============================ENUM=============================//
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
forward mMensagens();
forward AtualizarDebug(playerid);
/******************************************************************************/
// New's
public OnGameModeInit()
{
SetTimer("mMensagens", 300000, true);
Textdraw2 = TextDrawCreate(360.000000, 424.000000, "create by : Jefferson and Matheus");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.200000, 1.000000);
TextDrawColor(Textdraw2, -16776961);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);
Textdraw0 = TextDrawCreate(197.000000, 19.000000, "SA:MP DAYZ 0.5V");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.819999, 5.399998);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 2);
Fundo = TextDrawCreate(0.000000, 1.000000, "loadsc2:loadsc2");
TextDrawBackgroundColor(Fundo, 255);
TextDrawFont(Fundo, 4);
TextDrawLetterSize(Fundo, 0.759999, 1.000000);
TextDrawColor(Fundo, -1);
TextDrawSetOutline(Fundo, 0);
TextDrawSetProportional(Fundo, 1);
TextDrawSetShadow(Fundo, 1);
TextDrawUseBox(Fundo, 1);
TextDrawBoxColor(Fundo, 255);
TextDrawTextSize(Fundo, 639.000000, 448.000000);
Textdraw1 = TextDrawCreate(520.000000, 97.000000, "BEM LOKO");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.519999, 1.600000);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 2);
/*Caixa Debug*/
DayZ_Debug1 = TextDrawCreate(488.750000, 2.333348, "LD_DUAL:backgnd");
TextDrawLetterSize(DayZ_Debug1, 0.000000, 0.000000);
TextDrawTextSize(DayZ_Debug1, 149.375000, 118.416633);
TextDrawAlignment(DayZ_Debug1, 1);
TextDrawColor(DayZ_Debug1, -1);
TextDrawSetShadow(DayZ_Debug1, 0);
TextDrawSetOutline(DayZ_Debug1, 0);
TextDrawFont(DayZ_Debug1, 4);
//BRASIL
CreateObject(3092,96.7002000,1918.9004000,19.2000000,0.0000000,0.0000000,0.0000000); //object(dead_tied_cop) (1)
CreateObject(3279,1042.2998000,-352.7002000,73.0000000,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (2)
CreateObject(3279,1018.6000000,-351.0000000,73.0000000,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (2)
CreateObject(8210,1006.7002000,-306.7002000,76.1000000,0.0000000,0.0000000,272.0000000); //object(vgsselecfence12) (1)
CreateObject(8210,1033.2002000,-280.0000000,75.6000000,0.0000000,0.0000000,178.9950000); //object(vgsselecfence12) (2)
CreateObject(8210,1008.0996000,-343.5996100,75.4000000,0.0000000,0.0000000,272.2470000); //object(vgsselecfence12) (3)
CreateObject(8210,1086.4000000,-281.0000000,75.6000000,0.0000000,0.0000000,178.9950000); //object(vgsselecfence12) (2)
CreateObject(8210,1097.8000000,-281.2999900,75.6000000,0.0000000,0.0000000,178.9950000); //object(vgsselecfence12) (2)
CreateObject(8210,1124.8000000,-309.2000100,75.6000000,0.0000000,0.0000000,89.2450000); //object(vgsselecfence12) (2)
CreateObject(8210,1124.4000000,-343.2000100,75.6000000,0.0000000,0.0000000,89.2420000); //object(vgsselecfence12) (2)
CreateObject(8210,1096.4000000,-370.1000100,75.6000000,0.0000000,0.0000000,359.2420000); //object(vgsselecfence12) (2)
CreateObject(8210,1054.5000000,-369.7000100,75.6000000,0.0000000,0.0000000,359.2420000); //object(vgsselecfence12) (2)
CreateObject(14805,1044.7000000,-301.2000100,73.8000000,0.0000000,0.0000000,0.0000000); //object(bdupsnew_int) (1)
CreateObject(3749,1018.0996000,-369.7998000,78.6000000,0.0000000,0.0000000,0.0000000); //object(clubgate01_lax) (2)
CreateObject(9241,1072.1000000,-308.0000000,75.1000000,0.0000000,0.0000000,0.0000000); //object(copbits_sfn) (1)
CreateObject(3015,1080.8000000,-316.8999900,73.0000000,0.0000000,0.0000000,0.0000000); //object(cr_cratestack) (1)
CreateObject(7979,1116.5000000,-343.0000000,77.6000000,0.0000000,0.0000000,268.0000000); //object(blastdef01_lvs) (1)
CreateObject(1429,1044.9004000,-302.2002000,73.8100100,0.0000000,0.0000000,22.0000000); //object(dyn_tv) (1)
CreateObject(5369,1016.2000000,-344.5000000,84.2000000,0.0000000,0.0000000,0.0000000); //object(alphbrk4_las2) (1)
CreateObject(1337,1040.3242000,-348.6425800,73.4921900,0.0000000,0.0000000,0.0000000); //object(binnt07_la) (1)
// BASE ADM
CreateObject(3593,2463.1001000,-1665.7000000,12.5000000,0.0000000,0.0000000,0.0000000); //object(la_fuckcar2) (1)
CreateObject(3593,2463.1001000,-1652.8000000,14.1000000,0.0000000,0.0000000,0.0000000); //object(la_fuckcar2) (4)
CreateObject(3593,2463.1001000,-1652.8000000,13.1000000,0.0000000,0.0000000,0.0000000); //object(la_fuckcar2) (5)
CreateObject(3593,2463.1001000,-1652.8000000,12.4000000,0.0000000,0.0000000,0.0000000); //object(la_fuckcar2) (6)
CreateObject(3593,2463.1001000,-1665.7000000,13.5000000,0.0000000,0.0000000,0.0000000); //object(la_fuckcar2) (7)
CreateObject(3593,2463.1001000,-1665.7000000,14.3000000,0.0000000,0.0000000,0.0000000); //object(la_fuckcar2) (8)
CreateObject(2985,2464.7000000,-1662.2000000,12.3000000,0.0000000,0.0000000,176.0000000); //object(minigun_base) (1)
CreateObject(2985,2464.3000000,-1656.4000000,12.3000000,0.0000000,0.0000000,179.9960000); //object(minigun_base) (2)
CreateObject(2985,2463.6001000,-1655.2000000,14.1000000,0.0000000,0.0000000,179.9950000); //object(minigun_base) (3)
CreateObject(2985,2463.5000000,-1663.2000000,14.6000000,0.0000000,0.0000000,179.9950000); //object(minigun_base) (4)
CreateObject(3279,2488.7000000,-1636.4000000,23.6000000,0.0000000,0.0000000,269.9970000); //object(a51_spottower) (2)
CreateObject(3795,2462.3999000,-1664.6000000,12.7000000,82.0000000,0.0000000,92.0000000); //object(missile_04_sfxr) (1)
CreateObject(3795,2464.1001000,-1664.6000000,12.7000000,81.9960000,0.0000000,92.0000000); //object(missile_04_sfxr) (2)
CreateObject(3795,2463.8000000,-1653.1000000,12.7000000,81.9960000,0.0000000,92.0000000); //object(missile_04_sfxr) (3)
CreateObject(3795,2462.6001000,-1653.1000000,12.7000000,81.9960000,0.0000000,92.0000000); //object(missile_04_sfxr) (4)
CreateObject(3795,2462.5000000,-1654.3000000,12.7000000,81.9960000,0.0000000,92.0000000); //object(missile_04_sfxr) (5)
CreateObject(3795,2463.6001000,-1654.3000000,12.7000000,81.9960000,0.0000000,92.0000000); //object(missile_04_sfxr) (6)
CreateObject(3795,2462.5000000,-1654.3000000,14.2000000,356.0040000,180.0000000,272.0000000); //object(missile_04_sfxr) (7)
CreateObject(2899,2463.1001000,-1659.3000000,12.4000000,0.0000000,0.0000000,0.0000000); //object(temp_stinger2) (1)
CreateObject(3749,2355.6006000,-1659.5996000,18.0000000,0.0000000,0.0000000,267.9950000); //object(clubgate01_lax) (1)
CreateObject(3524,2352.8999000,-1665.8000000,15.3000000,0.0000000,0.0000000,272.0000000); //object(skullpillar01_lvs) (1)
CreateObject(3524,2353.2000000,-1653.3000000,15.6000000,0.0000000,0.0000000,272.0000000); //object(skullpillar01_lvs) (2)
CreateObject(13590,2430.5000000,-1670.6000000,13.9000000,0.0000000,0.0000000,0.0000000); //object(kickbus04) (1)
CreateObject(2669,2484.3999000,-1660.9000000,13.9000000,0.0000000,0.0000000,0.0000000); //object(cj_chris_crate) (1)
CreateObject(2669,2484.2000000,-1672.1000000,13.9000000,0.0000000,0.0000000,180.0000000); //object(cj_chris_crate) (2)
CreateObject(3571,2479.2000000,-1663.3000000,13.7000000,0.0000000,0.0000000,0.0000000); //object(lasdkrt3) (1)
CreateObject(3571,2478.7000000,-1670.9000000,13.7000000,0.0000000,0.0000000,0.0000000); //object(lasdkrt3) (2)
CreateObject(3593,2445.4004000,-1666.5000000,14.0000000,0.0000000,90.0000000,35.9970000); //object(la_fuckcar2) (9)
CreateObject(2932,2476.3999000,-1667.7000000,16.3000000,0.0000000,0.0000000,0.0000000); //object(kmb_container_blue) (2)
CreateObject(11292,2490.2000000,-1661.8000000,13.8000000,0.0000000,0.0000000,0.0000000); //object(gasstatiohut) (1)
CreateObject(11292,2490.2000000,-1671.5000000,13.6000000,0.0000000,0.0000000,180.0000000); //object(gasstatiohut) (2)
CreateObject(2932,2493.1001000,-1666.7000000,16.8000000,0.0000000,0.0000000,0.0000000); //object(kmb_container_blue) (3)
CreateObject(1391,2490.0000000,-1666.0000000,40.8000000,0.0000000,0.0000000,0.0000000); //object(twrcrane_s_03) (1)
CreateObject(16327,2530.3999000,-1677.3000000,19.1000000,0.0000000,0.0000000,0.0000000); //object(des_bycontowr) (1)
CreateObject(1264,2474.7000000,-1651.5000000,12.8000000,0.0000000,0.0000000,0.0000000); //object(blackbag1) (3)
CreateObject(1264,2474.3999000,-1653.5000000,12.8000000,0.0000000,0.0000000,0.0000000); //object(blackbag1) (4)
CreateObject(1264,2472.7000000,-1653.2000000,12.8000000,0.0000000,0.0000000,0.0000000); //object(blackbag1) (5)
CreateObject(1264,2472.7998000,-1652.7002000,12.8000000,0.0000000,0.0000000,0.0000000); //object(blackbag1) (6)
CreateObject(1264,2474.6001000,-1651.0000000,12.8000000,0.0000000,0.0000000,0.0000000); //object(blackbag1) (7)
CreateObject(1264,2475.0000000,-1653.3000000,12.8000000,0.0000000,352.0000000,0.0000000); //object(blackbag1) (8)
CreateObject(6295,2461.0000000,-1671.8000000,14.4000000,59.7590000,352.0390000,266.8890000); //object(sanpedlithus_law2) (1)
CreateObject(987,2472.2000000,-1721.9000000,13.0000000,0.0000000,0.0000000,2.0000000); //object(elecfence_bar) (1)
CreateObject(987,2460.2000000,-1721.8000000,13.0000000,0.0000000,0.0000000,360.0000000); //object(elecfence_bar) (2)
CreateObject(987,2448.2000000,-1721.4000000,13.0000000,0.0000000,0.0000000,357.9950000); //object(elecfence_bar) (3)
CreateObject(987,2441.7000000,-1721.6000000,13.0000000,0.0000000,0.0000000,359.9900000); //object(elecfence_bar) (4)
CreateObject(987,2443.0000000,-1709.7000000,13.0000000,0.0000000,0.0000000,263.9890000); //object(elecfence_bar) (5)
CreateObject(987,2443.5000000,-1698.1000000,13.3000000,0.0000000,0.0000000,263.9850000); //object(elecfence_bar) (6)
CreateObject(987,2408.1001000,-1693.8000000,12.7000000,0.0000000,0.0000000,0.0000000); //object(elecfence_bar) (7)
CreateObject(987,2396.1001000,-1694.1000000,12.9000000,0.0000000,0.0000000,0.0000000); //object(elecfence_bar) (8)
CreateObject(987,2384.3999000,-1694.0000000,13.1000000,0.0000000,0.0000000,0.0000000); //object(elecfence_bar) (9)
CreateObject(987,2372.8999000,-1693.6000000,13.1000000,0.0000000,0.0000000,0.0000000); //object(elecfence_bar) (10)
CreateObject(987,2360.8999000,-1693.2000000,13.1000000,0.0000000,0.0000000,0.0000000); //object(elecfence_bar) (11)
CreateObject(987,2353.2000000,-1693.1000000,13.1000000,0.0000000,0.0000000,0.0000000); //object(elecfence_bar) (12)
CreateObject(987,2353.1001000,-1681.0000000,13.1000000,0.0000000,0.0000000,270.0000000); //object(elecfence_bar) (13)
CreateObject(987,2353.2000000,-1669.2000000,13.1000000,0.0000000,0.0000000,270.0000000); //object(elecfence_bar) (14)
CreateObject(987,2355.0000000,-1638.1000000,13.1000000,0.0000000,0.0000000,270.0000000); //object(elecfence_bar) (15)
CreateObject(987,2354.7000000,-1631.4000000,13.1000000,0.0000000,0.0000000,270.0000000); //object(elecfence_bar) (16)
CreateObject(987,2366.3999000,-1632.2000000,13.1000000,0.0000000,0.0000000,178.0000000); //object(elecfence_bar) (17)
CreateObject(987,2378.2000000,-1632.6000000,13.1000000,0.0000000,0.0000000,177.9950000); //object(elecfence_bar) (18)
CreateObject(987,2390.0000000,-1632.7000000,12.6000000,0.0000000,0.0000000,179.9950000); //object(elecfence_bar) (19)
CreateObject(987,2401.8000000,-1632.6000000,12.6000000,0.0000000,0.0000000,179.9950000); //object(elecfence_bar) (20)
CreateObject(987,2413.8000000,-1630.2000000,12.6000000,0.0000000,0.0000000,183.9950000); //object(elecfence_bar) (21)
CreateObject(987,2425.8000000,-1629.1000000,12.6000000,0.0000000,0.0000000,183.9940000); //object(elecfence_bar) (22)
CreateObject(987,2437.7000000,-1630.3000000,12.6000000,0.0000000,0.0000000,173.9940000); //object(elecfence_bar) (23)
CreateObject(987,2449.3999000,-1631.5000000,12.6000000,0.0000000,0.0000000,173.9900000); //object(elecfence_bar) (24)
CreateObject(987,2461.5000000,-1631.2000000,14.4000000,0.0000000,0.0000000,173.9900000); //object(elecfence_bar) (25)
CreateObject(987,2473.3999000,-1630.1000000,15.6000000,0.0000000,0.0000000,177.9900000); //object(elecfence_bar) (26)
CreateObject(987,2484.8999000,-1629.4000000,15.6000000,0.0000000,0.0000000,179.9900000); //object(elecfence_bar) (27)
CreateObject(987,2496.7000000,-1629.4000000,16.6000000,0.0000000,0.0000000,179.9890000); //object(elecfence_bar) (28)
CreateObject(987,2508.6001000,-1629.2000000,17.1000000,0.0000000,0.0000000,179.9890000); //object(elecfence_bar) (29)
CreateObject(987,2520.3999000,-1629.2000000,17.4000000,0.0000000,0.0000000,179.9890000); //object(elecfence_bar) (30)
CreateObject(987,2532.1001000,-1628.7000000,17.4000000,0.0000000,0.0000000,179.9890000); //object(elecfence_bar) (31)
CreateObject(987,2540.8999000,-1629.1000000,17.4000000,0.0000000,0.0000000,179.9890000); //object(elecfence_bar) (32)
CreateObject(987,2540.6001000,-1641.0000000,17.4000000,0.0000000,0.0000000,89.9890000); //object(elecfence_bar) (33)
CreateObject(987,2540.8000000,-1652.9000000,17.4000000,0.0000000,0.0000000,89.9890000); //object(elecfence_bar) (34)
CreateObject(987,2540.7000000,-1664.9000000,17.4000000,0.0000000,0.0000000,89.9890000); //object(elecfence_bar) (35)
CreateObject(987,2540.5000000,-1676.6000000,16.9000000,0.0000000,0.0000000,89.9890000); //object(elecfence_bar) (36)
CreateObject(987,2540.1001000,-1688.6000000,16.6000000,0.0000000,0.0000000,89.9890000); //object(elecfence_bar) (37)
CreateObject(987,2539.8999000,-1700.6000000,16.6000000,0.0000000,0.0000000,89.9890000); //object(elecfence_bar) (38)
CreateObject(987,2539.8999000,-1711.8000000,16.4000000,0.0000000,0.0000000,89.9890000); //object(elecfence_bar) (39)
CreateObject(987,2540.1001000,-1720.5000000,11.4000000,0.0000000,0.0000000,89.9890000); //object(elecfence_bar) (41)
CreateObject(987,2540.0000000,-1720.9000000,16.1000000,0.0000000,0.0000000,89.9890000); //object(elecfence_bar) (46)
CreateObject(987,2524.0000000,-1721.9000000,14.2000000,0.0000000,0.0000000,0.0000000); //object(elecfence_bar) (48)
CreateObject(987,2528.2000000,-1721.0000000,14.2000000,0.0000000,0.0000000,0.0000000); //object(elecfence_bar) (49)
CreateObject(987,2528.2000000,-1721.2000000,15.9000000,0.0000000,0.0000000,0.0000000); //object(elecfence_bar) (50)
CreateObject(987,2523.8000000,-1721.7000000,15.9000000,0.0000000,0.0000000,0.0000000); //object(elecfence_bar) (51)
CreateObject(987,2519.6001000,-1721.8000000,15.9000000,0.0000000,0.0000000,0.0000000); //object(elecfence_bar) (52)
CreateObject(987,2519.6001000,-1721.8000000,11.6000000,0.0000000,0.0000000,0.0000000); //object(elecfence_bar) (53)
CreateObject(2745,2390.0000000,-1658.9000000,12.9000000,0.0000000,0.0000000,270.0000000); //object(cj_stat_3) (1)
CreateObject(986,166.0000000,143.3999900,497.7000100,0.0000000,0.0000000,0.0000000); //object(gate_autol) (1)
CreateObject(5837,2375.8000000,-1645.7000000,14.3000000,0.0000000,2.0000000,174.0000000); //object(ci_guardhouse1) (1)
CreateObject(2669,2383.3999000,-1646.0000000,13.9000000,0.0000000,0.0000000,358.0000000); //object(cj_chris_crate) (3)
CreateObject(1337,1303.2598000,-940.6152300,39.0509100,0.0000000,0.0000000,0.0000000); //object(binnt07_la) (1)
CreateObject(1337,1303.2595200,-940.6155400,39.0509100,0.0000000,0.0000000,0.0000000); //object(binnt07_la) (3)
CreateObject(6865,2352.2000000,-1659.8000000,19.8000000,0.0000000,0.0000000,320.0000000); //object(steerskull) (1)
CreateObject(1264,2483.5000000,-1665.1000000,12.8000000,0.0000000,0.0000000,0.0000000); //object(blackbag1) (6)
CreateObject(1264,2486.8999000,-1663.9000000,12.8000000,0.0000000,0.0000000,0.0000000); //object(blackbag1) (6)
CreateObject(1264,2490.3000000,-1668.8000000,12.8000000,0.0000000,0.0000000,0.0000000); //object(blackbag1) (6)
CreateObject(1264,2490.2998000,-1668.7998000,12.8000000,0.0000000,0.0000000,0.0000000); //object(blackbag1) (6)
CreateObject(1264,2507.2000000,-1675.5000000,12.8000000,0.0000000,0.0000000,0.0000000); //object(blackbag1) (6)
CreateObject(1337,2474.8999000,-1665.4000000,18.4000000,0.0000000,0.0000000,0.0000000); //object(binnt07_la) (4)
CreateObject(3175,2506.5000000,-1660.6000000,12.4000000,0.0000000,0.0000000,43.9950000); //object(sm_airstrm_med_) (1)
CreateObject(3175,2475.2000000,-1680.8000000,12.1000000,0.0000000,0.0000000,43.9950000); //object(sm_airstrm_med_) (2)
CreateObject(852,2497.6001000,-1678.1000000,12.4000000,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_4) (1)
CreateObject(852,2506.7000000,-1675.9000000,12.4000000,0.0000000,0.0000000,0.0000000); //object(cj_urb_rub_4) (2)
CreateObject(9153,2496.3000000,-1672.4000000,12.8000000,0.0000000,0.0000000,0.0000000); //object(bush14_lvs) (1)
CreateObject(9153,2462.3000000,-1659.3000000,12.8000000,0.0000000,0.0000000,0.0000000); //object(bush14_lvs) (2)
CreateObject(3593,2391.2000000,-1662.2000000,14.0000000,0.0000000,90.0000000,35.9970000); //object(la_fuckcar2) (9)
CreateObject(3593,2381.8000000,-1651.9000000,13.0000000,0.0000000,3.9990000,35.9970000); //object(la_fuckcar2) (9)
CreateObject(3593,2371.8000000,-1665.4000000,13.0000000,0.0000000,3.9990000,191.9970000); //object(la_fuckcar2) (9)
//Base ADM
DisableInteriorEnterExits();
ShowPlayerMarkers(PLAYER_MARKERS_MODE_OFF);
BlackRadar= GangZoneCreate(-3334.758544, -3039.903808, 3049.241455, 3184.096191);
SetGameModeText("Teste Script");
UsePlayerPedAnims();
return 1;
}
public OnGameModeExit()
{
DOF2_Exit();
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid,Textdraw2);
TextDrawShowForPlayer(playerid,Textdraw0);
TextDrawShowForPlayer(playerid,Fundo);
Textdraw2 = TextDrawCreate(360.000000, 424.000000, "create by : Jefferson and Matheus");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.200000, 1.000000);
TextDrawColor(Textdraw2, -16776961);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);
Textdraw1 = TextDrawCreate(520.000000, 97.000000, "BEM LOKO");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.519999, 1.600000);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 2);
/*Titulo Debug*/
DayZ_Debug2[playerid] = CreatePlayerTextDraw(playerid, 561.875000, 4.083327, "DEBUG MONITOR:");
PlayerTextDrawLetterSize(playerid, DayZ_Debug2[playerid], 0.289375, 1.220833);
PlayerTextDrawAlignment(playerid, DayZ_Debug2[playerid], 2);
PlayerTextDrawColor(playerid, DayZ_Debug2[playerid], -1);
PlayerTextDrawSetShadow(playerid, DayZ_Debug2[playerid], 0);
PlayerTextDrawSetOutline(playerid, DayZ_Debug2[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, DayZ_Debug2[playerid], 255);
PlayerTextDrawFont(playerid, DayZ_Debug2[playerid], 2);
PlayerTextDrawSetProportional(playerid, DayZ_Debug2[playerid], 1);
/*Informaзхes Debug*/
DayZ_Debug3[playerid] = CreatePlayerTextDraw(playerid, 560.625000, 20.416646, "Matou: 0~n~Bandidos Mortos: 0~n~Sangue: 12000~n~Temperatura: 38~n~Tempo Vivo:0~n~Arma: 0");
PlayerTextDrawLetterSize(playerid, DayZ_Debug3[playerid], 0.178749, 1.314166);
PlayerTextDrawAlignment(playerid, DayZ_Debug3[playerid], 2);
PlayerTextDrawColor(playerid, DayZ_Debug3[playerid], -1);
PlayerTextDrawSetShadow(playerid, DayZ_Debug3[playerid], 0);
PlayerTextDrawSetOutline(playerid, DayZ_Debug3[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, DayZ_Debug3[playerid], 255);
PlayerTextDrawFont(playerid, DayZ_Debug3[playerid], 2);
PlayerTextDrawSetProportional(playerid, DayZ_Debug3[playerid], 1);
SetTimerEx("AtualizarDebug",1000,1,"d",playerid);
SetPlayerColor(playerid,-1);
SetPlayerHealth (playerid, 1200);
RemoveBuildingForPlayer(playerid, 729, 1527.0703, -940.7031, 39.1797, 0.25);
RemoveBuildingForPlayer(playerid, 1232, 1619.0000, -1260.7500, 19.1484, 0.25);
RemoveBuildingForPlayer(playerid, 717, 1622.1406, -1267.1875, 16.7734, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1621.9531, -1262.3750, 18.3281, 0.25);
RemoveBuildingForPlayer(playerid, 717, 1622.1406, -1255.6094, 16.7813, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1626.2188, -1262.5859, 16.8906, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1626.2188, -1258.1250, 16.8906, 0.25);
RemoveBuildingForPlayer(playerid, 762, 1549.2734, -980.7578, 40.6094, 0.25);
RemoveBuildingForPlayer(playerid, 703, 1619.9609, -888.5000, 52.2344, 0.25);
RemoveBuildingForPlayer(playerid, 762, 1639.4844, -953.6797, 34.7422, 0.25);
RemoveBuildingForPlayer(playerid, 762, 1652.8828, -855.4063, 61.0469, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1261.9531, -913.7813, 41.8750, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1275.6016, -911.9609, 41.8750, 0.25);
RemoveBuildingForPlayer(playerid, 791, 1293.7656, -409.7656, 3.4766, 0.25);
RemoveBuildingForPlayer(playerid, 714, 1239.6953, -703.4531, 97.7188, 0.25);
RemoveBuildingForPlayer(playerid, 714, 1559.0625, -886.3047, 49.7031, 0.25);
RemoveBuildingForPlayer(playerid, 714, 1640.7813, -799.7578, 57.5313, 0.25);
RemoveBuildingForPlayer(playerid, 710, 1409.6328, -883.6172, 58.0859, 0.25);
RemoveBuildingForPlayer(playerid, 710, 1255.0391, -821.5313, 91.3672, 0.25);
RemoveBuildingForPlayer(playerid, 710, 1265.7500, -833.4141, 89.5938, 0.25);
RemoveBuildingForPlayer(playerid, 710, 1297.0156, -824.4063, 91.6328, 0.25);
RemoveBuildingForPlayer(playerid, 709, 1628.7891, -522.0703, 58.8828, 0.25);
RemoveBuildingForPlayer(playerid, 714, 1632.3359, -451.2891, 44.7188, 0.25);
RemoveBuildingForPlayer(playerid, 708, 1688.4766, -634.6719, 40.4141, 0.25);
RemoveBuildingForPlayer(playerid, 708, 1734.1172, -443.0859, 45.0000, 0.25);
RemoveBuildingForPlayer(playerid, 706, 1465.8047, -475.2813, 52.1953, 0.25);
RemoveBuildingForPlayer(playerid, 791, 1421.0938, -407.2734, 33.2734, 0.25);
RemoveBuildingForPlayer(playerid, 709, 1360.4766, -471.4375, 52.1328, 0.25);
RemoveBuildingForPlayer(playerid, 791, 1802.4766, -462.8906, 77.1641, 0.25);
RemoveBuildingForPlayer(playerid, 694, 1797.2656, -388.1094, 86.9063, 0.25);
RemoveBuildingForPlayer(playerid, 790, 1893.9844, -678.1016, 98.8594, 0.25);
RemoveBuildingForPlayer(playerid, 694, 1812.8906, -660.2734, 84.8516, 0.25);
RemoveBuildingForPlayer(playerid, 693, 1829.8516, -624.2266, 80.1094, 0.25);
RemoveBuildingForPlayer(playerid, 714, 1772.8906, -787.5859, 60.3203, 0.25);
RemoveBuildingForPlayer(playerid, 709, 1824.2734, -884.4063, 56.8906, 0.25);
RemoveBuildingForPlayer(playerid, 708, 1763.7031, -883.1328, 55.1953, 0.25);
RemoveBuildingForPlayer(playerid, 708, 1833.5156, -798.6641, 75.3828, 0.25);
RemoveBuildingForPlayer(playerid, 714, 1481.6484, -638.4844, 90.2422, 0.25);
RemoveBuildingForPlayer(playerid, 708, 1518.8828, -611.6250, 85.8594, 0.25);
RemoveBuildingForPlayer(playerid, 710, 1429.9688, -645.6406, 108.3047, 0.25);
RemoveBuildingForPlayer(playerid, 710, 1412.5469, -646.5313, 106.0859, 0.25);
RemoveBuildingForPlayer(playerid, 710, 1416.7500, -661.6094, 108.8516, 0.25);
RemoveBuildingForPlayer(playerid, 709, 1450.2188, -553.2813, 78.9141, 0.25);
RemoveBuildingForPlayer(playerid, 694, 1339.1172, -423.6172, 31.5859, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1847.8047, -946.3359, 49.2422, 0.25);
RemoveBuildingForPlayer(playerid, 659, 1518.9141, -912.9297, 43.1016, 0.25);
RemoveBuildingForPlayer(playerid, 656, 1549.9688, -908.7109, 42.3125, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1229.3672, -819.3828, 84.7109, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1306.5078, -836.1250, 71.8672, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1297.3750, -831.8359, 74.9531, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1264.4453, -824.7500, 75.3672, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1306.9922, -821.7344, 75.2266, 0.25);
RemoveBuildingForPlayer(playerid, 656, 1271.2969, -712.4922, 92.9219, 0.25);
RemoveBuildingForPlayer(playerid, 621, 1318.0234, -847.6094, 59.6328, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1375.0859, -813.5391, 69.5703, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1317.4297, -812.0938, 75.2969, 0.25);
RemoveBuildingForPlayer(playerid, 656, 1376.8047, -775.8750, 91.6641, 0.25);
RemoveBuildingForPlayer(playerid, 621, 1339.0547, -678.6172, 92.9375, 0.25);
RemoveBuildingForPlayer(playerid, 656, 1394.4141, -676.8203, 90.3203, 0.25);
RemoveBuildingForPlayer(playerid, 656, 1375.4609, -660.1094, 94.7734, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1451.5938, -649.7422, 93.0625, 0.25);
RemoveBuildingForPlayer(playerid, 656, 1394.2656, -631.5313, 87.4063, 0.25);
RemoveBuildingForPlayer(playerid, 621, 1586.8359, -875.8359, 49.5781, 0.25);
RemoveBuildingForPlayer(playerid, 656, 1519.7188, -866.5859, 61.9297, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1622.2891, -846.7500, 56.3203, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1531.3906, -834.7891, 58.4219, 0.25);
RemoveBuildingForPlayer(playerid, 621, 1629.3047, -828.3359, 57.3750, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1726.9844, -826.2109, 56.1406, 0.25);
RemoveBuildingForPlayer(playerid, 621, 1526.6797, -826.1875, 66.4375, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1849.3672, -807.4453, 76.7891, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1732.3516, -799.3281, 54.9531, 0.25);
RemoveBuildingForPlayer(playerid, 659, 1492.5781, -751.7656, 88.7109, 0.25);
RemoveBuildingForPlayer(playerid, 659, 1504.4531, -750.4141, 86.4297, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1724.1172, -746.0234, 50.4922, 0.25);
RemoveBuildingForPlayer(playerid, 659, 1497.8672, -740.7500, 90.0078, 0.25);
RemoveBuildingForPlayer(playerid, 673, 1470.5938, -735.1797, 91.2813, 0.25);
RemoveBuildingForPlayer(playerid, 659, 1508.0234, -733.8047, 89.2734, 0.25);
RemoveBuildingForPlayer(playerid, 673, 1480.4609, -732.8047, 91.2813, 0.25);
RemoveBuildingForPlayer(playerid, 673, 1490.2578, -731.0781, 90.9531, 0.25);
RemoveBuildingForPlayer(playerid, 659, 1495.6094, -728.3047, 92.1953, 0.25);
RemoveBuildingForPlayer(playerid, 673, 1468.5781, -725.0781, 91.2813, 0.25);
RemoveBuildingForPlayer(playerid, 673, 1478.4453, -722.7031, 91.2813, 0.25);
RemoveBuildingForPlayer(playerid, 673, 1488.2422, -720.9844, 92.5313, 0.25);
RemoveBuildingForPlayer(playerid, 659, 1503.7578, -720.7031, 91.6563, 0.25);
RemoveBuildingForPlayer(playerid, 659, 1492.1250, -716.1250, 93.5000, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1657.8281, -674.5469, 54.2422, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1662.1719, -641.8750, 53.2031, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1635.6172, -593.6484, 54.9531, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1680.3047, -541.7188, 44.9688, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1669.3594, -517.2656, 48.9922, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1749.6953, -514.6641, 47.5938, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1657.4844, -503.8828, 49.7734, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1645.8906, -490.0469, 49.9766, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1746.6563, -466.9688, 48.6328, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1653.9609, -460.7188, 44.1719, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1655.7500, -437.4141, 44.2031, 0.25);
RemoveBuildingForPlayer(playerid, 617, 1724.9375, -417.1328, 42.5547, 0.25);
RemoveBuildingForPlayer(playerid, 3347, 1114.2969, -353.8203, 72.7969, 0.25);
RemoveBuildingForPlayer(playerid, 3347, 1107.5938, -358.5156, 72.7969, 0.25);
RemoveBuildingForPlayer(playerid, 13317, 2766.8594, 468.0469, 7.3203, 0.25);
RemoveBuildingForPlayer(playerid, 13327, 1551.6406, -322.7109, 21.1094, 0.25);
RemoveBuildingForPlayer(playerid, 785, 1150.3516, -343.1094, 58.4141, 0.25);
RemoveBuildingForPlayer(playerid, 785, 877.6250, -484.5391, 26.2500, 0.25);
RemoveBuildingForPlayer(playerid, 785, 1091.6094, -250.0078, 71.0391, 0.25);
RemoveBuildingForPlayer(playerid, 785, 924.1484, -478.4531, 38.2969, 0.25);
RemoveBuildingForPlayer(playerid, 785, 1207.6875, -465.2031, 13.6563, 0.25);
RemoveBuildingForPlayer(playerid, 785, 1049.5391, -482.7891, 50.0859, 0.25);
RemoveBuildingForPlayer(playerid, 785, 1492.5781, -373.0078, 30.4688, 0.25);
RemoveBuildingForPlayer(playerid, 785, 1284.2891, -340.3281, 3.8984, 0.25);
RemoveBuildingForPlayer(playerid, 785, 947.1094, -155.0469, 5.8828, 0.25);
RemoveBuildingForPlayer(playerid, 785, 695.8203, -350.1563, 5.3906, 0.25);
RemoveBuildingForPlayer(playerid, 785, 637.6406, -328.6875, 10.3203, 0.25);
RemoveBuildingForPlayer(playerid, 3413, 2766.7578, 364.9531, -4.4922, 0.25);
RemoveBuildingForPlayer(playerid, 3413, 2766.7578, 463.9922, -4.4922, 0.25);
RemoveBuildingForPlayer(playerid, 3413, 2766.7578, 562.8594, -4.4922, 0.25);
RemoveBuildingForPlayer(playerid, 791, 947.1094, -155.0469, 5.8828, 0.25);
RemoveBuildingForPlayer(playerid, 13561, 938.2500, -104.4219, 14.7500, 0.25);
RemoveBuildingForPlayer(playerid, 3276, 1012.2891, -282.5391, 73.8438, 0.25);
RemoveBuildingForPlayer(playerid, 3276, 1023.4219, -279.9063, 73.8438, 0.25);
RemoveBuildingForPlayer(playerid, 694, 1030.9688, -166.0234, 22.8516, 0.25);
RemoveBuildingForPlayer(playerid, 694, 1045.8438, -270.9453, 75.4219, 0.25);
RemoveBuildingForPlayer(playerid, 3276, 1047.3125, -280.3359, 73.8438, 0.25);
RemoveBuildingForPlayer(playerid, 3276, 1059.2266, -281.2656, 73.8438, 0.25);
RemoveBuildingForPlayer(playerid, 3276, 1082.9922, -283.6797, 73.8438, 0.25);
RemoveBuildingForPlayer(playerid, 791, 1091.6094, -250.0078, 71.0391, 0.25);
RemoveBuildingForPlayer(playerid, 694, 1130.1719, -278.6172, 70.7031, 0.25);
RemoveBuildingForPlayer(playerid, 694, 1124.7734, -493.4922, 53.5547, 0.25);
RemoveBuildingForPlayer(playerid, 694, 1137.7031, -313.9141, 68.9531, 0.25);
RemoveBuildingForPlayer(playerid, 13529, 1148.6953, -528.1641, 57.3125, 0.25);
RemoveBuildingForPlayer(playerid, 791, 1150.3516, -343.1094, 58.4141, 0.25);
RemoveBuildingForPlayer(playerid, 790, 1166.4766, -150.9922, 43.0469, 0.25);
RemoveBuildingForPlayer(playerid, 791, 1207.6875, -465.2031, 13.6563, 0.25);
RemoveBuildingForPlayer(playerid, 791, 1284.2891, -340.3281, 3.8984, 0.25);
RemoveBuildingForPlayer(playerid, 694, 1409.5781, -379.4609, 24.0781, 0.25);
RemoveBuildingForPlayer(playerid, 791, 1492.5781, -373.0078, 30.4688, 0.25);
RemoveBuildingForPlayer(playerid, 13325, 1551.6406, -322.7109, 21.1094, 0.25);
RemoveBuildingForPlayer(playerid, 694, 1818.7188, -570.7813, 76.6797, 0.25);
RemoveBuildingForPlayer(playerid, 790, 1925.0547, -751.7969, 117.1641, 0.25);
RemoveBuildingForPlayer(playerid, 3412, 2766.7578, 364.9531, -4.4922, 0.25);
RemoveBuildingForPlayer(playerid, 12831, 2766.8594, 468.0469, 7.3203, 0.25);
RemoveBuildingForPlayer(playerid, 3411, 2766.7578, 463.9922, -4.4922, 0.25);
RemoveBuildingForPlayer(playerid, 3412, 2766.7578, 464.1563, -4.4922, 0.25);
RemoveBuildingForPlayer(playerid, 3411, 2766.7578, 562.8594, -4.4922, 0.25);
RemoveBuildingForPlayer(playerid, 3412, 2766.7578, 562.8594, -4.4922, 0.25);
RemoveBuildingForPlayer(playerid, 791, 695.8203, -350.1563, 5.3906, 0.25);
RemoveBuildingForPlayer(playerid, 791, 637.6406, -328.6875, 10.3203, 0.25);
RemoveBuildingForPlayer(playerid, 694, 683.1016, -314.2891, 12.0938, 0.25);
RemoveBuildingForPlayer(playerid, 696, 593.7344, -301.9375, 20.0781, 0.25);
RemoveBuildingForPlayer(playerid, 698, 899.5156, -511.3281, 38.1406, 0.25);
RemoveBuildingForPlayer(playerid, 791, 877.6250, -484.5391, 26.2500, 0.25);
RemoveBuildingForPlayer(playerid, 705, 774.0469, -486.0703, 14.6328, 0.25);
RemoveBuildingForPlayer(playerid, 13530, 953.0234, -569.6953, 68.1406, 0.25);
RemoveBuildingForPlayer(playerid, 791, 924.1484, -478.4531, 38.2969, 0.25);
RemoveBuildingForPlayer(playerid, 3276, 1007.7969, -385.0078, 71.8438, 0.25);
RemoveBuildingForPlayer(playerid, 3276, 1007.6719, -361.6250, 73.8438, 0.25);
RemoveBuildingForPlayer(playerid, 3276, 1007.6250, -349.8984, 73.8438, 0.25);
RemoveBuildingForPlayer(playerid, 3276, 1007.5234, -326.4453, 73.8438, 0.25);
RemoveBuildingForPlayer(playerid, 3276, 1007.4766, -314.7188, 73.8438, 0.25);
RemoveBuildingForPlayer(playerid, 3276, 1007.4297, -302.9922, 73.8438, 0.25);
RemoveBuildingForPlayer(playerid, 3276, 1007.3828, -291.2578, 73.8438, 0.25);
RemoveBuildingForPlayer(playerid, 791, 1049.5391, -482.7891, 50.0859, 0.25);
RemoveBuildingForPlayer(playerid, 696, 1075.1641, -391.5078, 74.8281, 0.25);
RemoveBuildingForPlayer(playerid, 698, 1053.2891, -378.6719, 74.4297, 0.25);
RemoveBuildingForPlayer(playerid, 698, 1092.4688, -383.6172, 74.8906, 0.25);
RemoveBuildingForPlayer(playerid, 3276, 1083.6641, -368.5313, 73.8438, 0.25);
RemoveBuildingForPlayer(playerid, 3276, 1071.9375, -368.5156, 73.8438, 0.25);
RemoveBuildingForPlayer(playerid, 3276, 1060.2109, -368.4922, 73.8438, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1095.3828, -327.4766, 73.1797, 0.25);
RemoveBuildingForPlayer(playerid, 656, 1096.6250, -294.4141, 72.9375, 0.25);
RemoveBuildingForPlayer(playerid, 3175, 1107.5938, -358.5156, 72.7969, 0.25);
RemoveBuildingForPlayer(playerid, 3276, 1107.1172, -368.5703, 73.8438, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1106.5469, -328.1641, 73.1797, 0.25);
RemoveBuildingForPlayer(playerid, 672, 1097.4688, -314.2109, 73.6641, 0.25);
RemoveBuildingForPlayer(playerid, 3175, 1114.2969, -353.8203, 72.7969, 0.25);
RemoveBuildingForPlayer(playerid, 656, 1116.4453, -326.7578, 72.9375, 0.25);
new name[MAX_PLAYER_NAME]; // Cria a variavel de nome
new arquivo[40]; // variavel arquivo
GetPlayerName(playerid, name, 32);// Serve para pegar o nome do player
format(arquivo, 40, "Jogadores/%s.ini", name); // formata a string arquivo e cria um arquivo na pasta "Jogadores"
if(DOF2_FileExists(arquivo)) // se tiver registrado
{
ShowPlayerDialog(playerid, DIALOG_LOGAR, DIALOG_STYLE_PASSWORD, "{00FF00}[{00FF00}B{00FF00}B{FFFF00}S{FFFF00}]{FFFFFF} - Login", "Status da conta : Registrada\n digite sua senha para logar!\nSe errar 5 vezes sua conta serб banida!", "Logar", "Cancelar");
}
else // se nao tiver registrado
{
ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_INPUT, "{00FF00}[{00FF00}B{00FF00}B{FFFF00}S{FFFF00}]{FFFFFF} - Registro", "Status da conta : Nгo Registrada\n digite uma senha para se registrar!", "Registrar", "Cancelar");
}
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
PlayerTextDrawDestroy(playerid,DayZ_Debug2[playerid]);
PlayerTextDrawDestroy(playerid,DayZ_Debug3[playerid]);
new arquivo[40], name[MAX_PLAYER_NAME]; // cria a variavel name com 40 celulas e a variavel Name
GetPlayerName(playerid, name, 32); // Pega o nome do player
format(arquivo, 40, "Jogadores/%s.ini", name); // Formata o arquivo que existe na pasta Jogadores
if(DOF2_FileExists(arquivo)) // se o arquivo existir
{
DOF2_SetInt(arquivo, "Senha", PlayerInfo[playerid][pSenha]); // seta a senha do player para o que ele digitou
DOF2_SetInt(arquivo, "Skin", PlayerInfo[playerid][pSkin]); // seta a skin para o id da skin atual
DOF2_SaveFile(); // finalmente salvando o arquivo
}
return 1;
}
public mMensagens()
{
new random2 = random(sizeof(RandomColors));
new randMSG = random(sizeof(Mensagens));
SendClientMessageToAll(RandomColors[random2], Mensagens[randMSG]);
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1," ");
SendClientMessage(playerid,-1,"VOCК MORREU ;( ");
return 1;
}
if (strcmp("/Creditos", cmdtext, true, 10) == 0)
{
{
strcat(Ajuda, "{FFFFFF}Criadores\n{4CFA1B}[EXP]\n\n");
}
{
strcat(Ajuda, "{FFFFFF}Contribuidores\n{0C9E05}Off'\n\n");
}
{
strcat(Ajuda, "{FFFFFF}Helper's\n{11CFCF}Off'\n\n");
}
{
strcat(Ajuda, "{FFFFFF}Cuzхes\n{1170CF}Off'\n\n");
}
{
strcat(Ajuda, "{FFFFFF}Divulgadores\n{FA0505}Off'\n\n");
}
ShowPlayerDialog(playerid, DIALOG_AL, DIALOG_STYLE_MSGBOX, "Creditos - SSCA", Ajuda, "Fechar", "");
return 1;
}
return SendClientMessage(playerid,0xFF0000AA, "Comando inexistente por aqui...");
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerAttachedObject(playerid, 0, 3026, 1, -0.1150, -0.0540, 0.0040, 0.0000, 0.0000, 0.0000, 1.0000, 1.0000, 1.0000);
SetPlayerHealth(playerid,1200);
TextDrawHideForPlayer(playerid, Textdraw0);
TextDrawHideForPlayer(playerid, Fundo);
TextDrawHideForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid,Textdraw1);
TextDrawShowForPlayer(playerid,DayZ_Debug1);
PlayerTextDrawShow(playerid,DayZ_Debug2[playerid]);
PlayerTextDrawShow(playerid,DayZ_Debug3[playerid]);
GangZoneShowForPlayer(playerid,BlackRadar,0x000000FF);
new Random = random(sizeof(RandomSpawns));
SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
return 1;
}
public AtualizarDebug(playerid){
new string[500];
format(string,sizeof(string),"Matou: 0~n~Bandidos Mortos: 0~n~Sangue: 12000~n~Temperatura: 38~n~Tempo Vivo:0~n~Arma: 0");
PlayerTextDrawSetString(playerid,DayZ_Debug3[playerid],string);
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
GivePlayerWeapon(playerid, 46, 1);
SendClientMessage(playerid,-1,"{FF0000} SEJA BEM VINDO AO SERVER ");
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new arquivo[40], name[MAX_PLAYER_NAME]; // criando a string arquivo com 40 celulas e criando a variavel name
GetPlayerName(playerid, name, 32); // pegando o nome do player
format(arquivo, 40, "Jogadores/%s.ini", name); // formatando o arquivo para a pasta Jogadores
if(dialogid == DIALOG_REGISTRO) // Dialog registro
{
if(!strval(inputtext)) // se ele nao digitar numeros da erro e volta no dialog de registro
{
ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_PASSWORD, "{00FF00}[{00FF00}B{00FF00}B{FFFF00}S{FFFF00}]{FFFFFF} - Registro", "Status da conta : Nгo Registrada\n digite uma senha para se registrar!", "Registrar", "Cancelar");
SendClientMessage(playerid, -1, "[BBS] Erro, Digite apenas nъmeros para se registrar.");
return 1;
}
if(!response) //se ele apertar o botao Cancelar, kicka ele !
{
Kick(playerid);
return 1;
}
else // se ele colocar a senha certa cria os arquivos
{
PlayerInfo[playerid][pSenha] = strval(inputtext); // pega a senha que ele digitou no campo do dialog
DOF2_CreateFile(arquivo); // cria o arquivo na pasta Jogadores
DOF2_SetInt(arquivo, "Senha", PlayerInfo[playerid][pSenha]); // seta a senha para a que ele digitou no dialog
DOF2_SetInt(arquivo, "Skin", 23); // seta a skin dele para 23, podendo mudar para qualquer numero.
DOF2_SaveFile(); // salva o arquivo
SendClientMessage(playerid, -1, "[BBS] Sua Conta foi Registrada, Agora digite sua senha novamente para logar!");
ShowPlayerDialog(playerid, DIALOG_LOGAR, DIALOG_STYLE_PASSWORD, "{00FF00}[{00FF00}B{00FF00}B{FFFF00}S{FFFF00}]{FFFFFF} - Login", "Status da conta : Registrada\n digite sua senha para logar!\nSe errar 5 vezes sua conta serб banida!", "Logar", "Cancelar");
}
}
if(dialogid == DIALOG_LOGAR)
{
if(!strval(inputtext)) // se ele nao digitar apenas numeros volta o dialog de login
{
SendClientMessage(playerid, -1, "[BBS] Erro, Digite apenas nъmeros para se logar.");
ShowPlayerDialog(playerid, DIALOG_LOGAR, DIALOG_STYLE_PASSWORD, "{00FF00}[{00FF00}B{00FF00}B{FFFF00}S{FFFF00}]{FFFFFF} - Login", "Status da conta : Registrada\n digite sua senha para logar!\nSe errar 5 vezes sua conta serб banida!", "Logar", "Cancelar");
return 1;
}
if(!response) // se ele clickar em Cancelar kicka ele !
{
Kick(playerid);
return 1;
}
else // Se ele colocar a senha certa
{
PlayerInfo[playerid][pSenha] = DOF2_GetInt(arquivo, "Senha"); // pega a senha salva dele
if(strval(inputtext) == PlayerInfo[playerid][pSenha]) // pega a senha que ele digitou
{
PlayerInfo[playerid][pSkin] = DOF2_GetInt(arquivo, "Skin"); // pega a skin do player
SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]); // seta a skin do player para a skin salva
SpawnPlayer(playerid); // em seguida, spawna o player
}
else // se ele errar a senha mostra o dialog denovo
{
ShowPlayerDialog(playerid, DIALOG_LOGAR, DIALOG_STYLE_PASSWORD, "{00FF00}[{00FF00}B{00FF00}B{FFFF00}S{FFFF00}]{FFFFFF} - Login", "Status da conta : Registrada\n digite sua senha para logar!\nSe errar 5 vezes sua conta serб banida!", "Logar", "Cancelar");
Erro[playerid]++; // e adiciona 1 erro
if(Erro[playerid] == 5) // se ele errar 5 vezes ele serб banido !
{
SendClientMessage(playerid, -1, "Sua conta estб banida por errar 5 vezes a sua senha, contacte o Admin para retirar seu Ban!");
Ban(playerid);
return 1;
}
}
}
}
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
stock ReturnPlayer(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
return name;
}