Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //===================================================//
- // # INCLUDES # //
- //===================================================//
- #include < A_SAMP >
- #include < ZCMD >
- #include < DOF2 >
- #include < SSCANF >
- //===================================================//
- // # DIALOGS # //
- //===================================================//
- #define xRegistro (1)
- #define xLogin (2)
- #define xCompra (3)
- #define xStatus (4)
- //===================================================//
- // # CORES # //
- //===================================================//
- #define iCor_Operacoes 0x1E90FFC8
- #define iCor_Terrorista 0x2E8B57C8
- #define iCor_Kick 0x2E8B57C8
- //===================================================//
- // # DEFINES # //
- //===================================================//
- #define iGuerrilheiros (2113)
- #define iOperacoes (2013)
- #define iPasta "Contas/%s.ini"
- #define iMapa "mapname Sky War"
- #define iVersao "Sky War"
- #define iNome "[ 0.3x ] Sky War - v1.0 [ PT/BR ]"
- #define PICKUP_TIPO_ARMA 1
- #define PICKUP_TIPO_NONE 0
- #define Kick(%0) SetTimerEx("Kicka", 100, false, "i", %0)
- #define Ban(%0) SetTimerEx("Bana", 100, false, "i", %0)
- main(){}
- //===================================================//
- // # FORWARDS # //
- //===================================================//
- forward Guerra ( playerid ) ;
- forward iAtualizarTextDraw ( playerid ) ;
- forward Kicka ( p ) ;
- forward Bana ( p ) ;
- forward DropWeapons ( playerid ) ;
- forward DropVida ( playerid ) ;
- forward DestruirPickupDaVida ( pickupid ) ;
- forward DestroyWeaponPickup ( pickupid ) ;
- forward iExplosion();
- //===================================================//
- // # ENUMS # //
- //===================================================//
- enum xInfo {
- xAdmin,
- xMatouu,
- xMorreuu
- };
- //===================================================//
- // # VARIAVEIS # //
- //===================================================//
- new
- PickupArma [ MAX_PICKUPS ]
- ;
- new
- PickupMunicao [ MAX_PICKUPS ]
- ;
- new
- picVida
- ;
- new
- PickupTipo [ MAX_PICKUPS ]
- ;
- new
- DestruirPickupTempo [ MAX_PICKUPS ]
- ;
- new
- DestruirPickupVidaTempo [ MAX_PICKUPS ]
- ;
- new
- xErrouSenha [ MAX_PLAYERS ]
- ;
- new
- xEquipe [ MAX_PLAYERS ]
- ;
- new
- Text:xCold,
- Text:xWar,
- Text:xV2
- ;
- new
- Text:xxWar [ MAX_PLAYERS ],
- Text:xxCold [ MAX_PLAYERS ]
- ;
- new
- Dominando[MAX_PLAYERS]
- ;
- new
- GZGuerra
- ;
- new
- DonoGuerra
- ;
- new
- GuerraNaGuerra
- ;
- new
- ProvocoGuerra [ MAX_PLAYERS ]
- ;
- new
- TempoGuerra
- ;
- new
- xCelulas [ 128 ]
- ;
- new
- iSmirName [ MAX_PLAYER_NAME ]
- ;
- new
- xPlayerInfo [ MAX_PLAYERS ] [ xInfo ]
- ;
- new
- nome [ MAX_PLAYER_NAME ]
- ;
- new
- Text:xLevel [ MAX_PLAYERS ],
- Text:xMatou [ MAX_PLAYERS ],
- Text:xMorreu [ MAX_PLAYERS ]
- ;
- new Float:gBombs [ 8 ] [ 3 ] = {
- {
- 2907.1677, 1077.7799, 34.0887
- },
- {
- 2912.4463, 1055.8232, 30.2416
- },
- {
- 2879.1052, 1059.7726, 30.8507
- },
- {
- 2889.9690, 1087.7911, 29.1739
- },
- {
- 2926.0996, 1092.6392, 29.2731
- },
- {
- 2935.4541, 1060.1967, 33.7679
- },
- {
- 2919.2710, 1041.7769, 41.9125
- },
- {
- 2906.0071, 1054.2727, 39.7833
- }
- };
- //===================================================//
- // # STOCKS # //
- //===================================================//
- stock ModeloArmas ( 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 iPastaArquivos ( playerid )
- {
- new
- File [ 156 ],
- Name [ MAX_PLAYER_NAME ]
- ;
- GetPlayerName ( playerid, Name, sizeof ( Name ) ) ;
- format ( File, sizeof ( File ), iPasta, Name ) ;
- return File;
- }
- stock SalvarPlayer ( playerid )
- {
- if (!DOF2_FileExists ( iPastaArquivos ( playerid ) ) ) DOF2_CreateFile ( iPastaArquivos ( playerid ) ) ;
- {
- DOF2_SetInt ( iPastaArquivos ( playerid ), "Level", GetPlayerScore ( playerid ) ) ;
- DOF2_SetInt ( iPastaArquivos ( playerid ), "Dinheiro", GetPlayerMoney ( playerid ) ) ;
- DOF2_SetInt ( iPastaArquivos ( playerid ), "Admin Level", xPlayerInfo [ playerid ] [ xAdmin ] ) ;
- DOF2_SetInt ( iPastaArquivos ( playerid ), "Matou", xPlayerInfo [ playerid ] [ xMatouu ] ) ;
- DOF2_SetInt ( iPastaArquivos ( playerid ), "Morreu", xPlayerInfo [ playerid ] [ xMorreuu ] ) ;
- DOF2_SaveFile ( ) ;
- }
- }
- stock CarregarPlayer ( playerid )
- {
- if ( DOF2_FileExists ( iPastaArquivos ( playerid ) ) )
- {
- SetPlayerScore ( playerid, DOF2_GetInt ( iPastaArquivos ( playerid ), "Level" ) ) ;
- SetPlayerMoney ( playerid, DOF2_GetInt ( iPastaArquivos ( playerid ), "Dinheiro" ) ) ;
- xPlayerInfo [ playerid ] [ xAdmin ] = DOF2_GetInt ( iPastaArquivos ( playerid ), "Admin Level" ) ;
- xPlayerInfo [ playerid ] [ xMatouu ] = DOF2_GetInt ( iPastaArquivos ( playerid ), "Matou" ) ;
- xPlayerInfo [ playerid ] [ xMorreuu ] = DOF2_GetInt ( iPastaArquivos ( playerid ), "Morreu" ) ;
- }
- }
- stock xNome ( playerid )
- {
- new
- Name [ MAX_PLAYERS ]
- ;
- GetPlayerName ( playerid, Name, sizeof ( Name ) ) ;
- return Name;
- }
- stock SetPlayerMoney ( playerid, ammount )
- {
- ResetPlayerMoney ( playerid) ;
- GivePlayerMoney ( playerid, ammount ) ;
- return 1;
- }
- stock JogadorDentroDaGuerra ( playerid )
- {
- new
- Float:x,
- Float:y,
- Float:z
- ;
- GetPlayerPos ( playerid, x, y, z ) ;
- if ( x >= 2705.767578 && y >= 885.329833 && x <= 3057.767578 && y <= 1245.329833 ) return true;
- else return false;
- }
- public Bana(p) {
- #undef Ban
- Ban(p);
- #define Ban(%0) SetTimerEx("Bana", 100, false, "i", %0)
- return 1;
- }
- public Kicka(p) {
- #undef Kick
- Kick(p);
- #define Kick(%0) SetTimerEx("Kicka", 100, false, "i", %0)
- return 1;
- }
- public DestruirPickupDaVida ( pickupid )
- {
- DestroyPickup ( pickupid ) ;
- return true;
- }
- public DestroyWeaponPickup(pickupid)
- {
- if ( PickupTipo [ pickupid ] == PICKUP_TIPO_ARMA )
- {
- PickupTipo [ pickupid ] = PICKUP_TIPO_NONE ;
- PickupArma [ pickupid ] = 0 ;
- PickupMunicao [ pickupid ] = 0 ;
- DestroyPickup ( pickupid ) ;
- return true;
- }
- return 0;
- }
- public DropVida(playerid)
- {
- if ( IsPlayerConnected ( playerid ) )
- {
- new
- Float:x,
- Float:y,
- Float:z
- ;
- GetPlayerPos ( playerid, x, y, z ) ;
- picVida = CreatePickup ( 1240,1, x + ( random ( 10 ) - random ( 10 ) ), y + ( random ( 10 ) - random ( 10 ) ), z ) ;
- DestruirPickupVidaTempo [ picVida ] = SetTimerEx ( " DestruirPickupDaVida ", 10000, false, " i ", picVida ) ;
- }
- return true;
- }
- public DropWeapons ( playerid )
- {
- if ( IsPlayerConnected ( playerid ) )
- {
- #define MAX 300
- new
- weaponid,
- xMunicao,
- modelid,
- pickupid
- ;
- new
- success = false
- ;
- new
- Float:x,
- Float:y,
- Float:z
- ;
- GetPlayerPos ( playerid, x, y, z ) ;
- for ( new i = 1; i < 12; i++ )
- {
- GetPlayerWeaponData ( playerid, i, weaponid, xMunicao ) ;
- if ( weaponid )
- {
- if ( xMunicao > MAX )
- xMunicao = MAX ;
- modelid = ModeloArmas ( weaponid ) ;
- if ( modelid )
- {
- pickupid = CreatePickup ( modelid, 1, x + ( random ( 10 ) - random ( 10 ) ), y + ( random ( 10 ) - random ( 10 ) ), z ) ;
- PickupTipo [ pickupid ] = PICKUP_TIPO_ARMA;
- PickupArma [ pickupid] = weaponid ;
- PickupMunicao [ pickupid] = xMunicao ;
- DestruirPickupTempo [ pickupid ] = SetTimerEx ( " DestroyWeaponPickup ", 10000, false, " i ", pickupid ) ;
- success = true ;
- }
- }
- }
- ResetPlayerWeapons ( playerid ) ;
- #undef MAX
- return success;
- }
- return 0;
- }
- public iExplosion ( )
- {
- new
- rand = random ( sizeof ( gBombs ) ) ;
- CreateExplosion(gBombs [ rand ] [ 0 ], gBombs [ rand ] [ 1 ], gBombs [ rand ] [ 2 ], 6, 10.0 ) ;
- return 1;
- }
- public Guerra ( playerid )
- {
- if ( xEquipe [ playerid ] == iGuerrilheiros )
- {
- if ( ProvocoGuerra [ playerid ] == 1 )
- {
- if ( JogadorDentroDaGuerra ( playerid ) )
- {
- GetPlayerName ( playerid, iSmirName, MAX_PLAYER_NAME ) ;
- format ( xCelulas, sizeof(xCelulas), "%s e os Guerrilheiros Israelistas dominaram a Guerra",iSmirName ) ;
- SendClientMessageToAll ( iCor_Terrorista, xCelulas ) ;
- SendClientMessage ( playerid, -1, "Você dominou a Guerra, fique esperto com a Operações Especiais" ) ;
- GangZoneStopFlashForAll ( GZGuerra ) ;
- GangZoneShowForAll(GZGuerra, iCor_Terrorista ) ;
- Dominando [ playerid ] = 0 ;
- ProvocoGuerra [ playerid ] = 0 ;
- GuerraNaGuerra = 0 ;
- DonoGuerra = 1 ;
- KillTimer ( TempoGuerra ) ;
- return true;
- }
- else
- {
- SendClientMessage ( playerid, iCor_Terrorista, "Você não está no local da Guerra" ) ;
- Dominando [ playerid ] = 0 ;
- GangZoneStopFlashForAll ( GZGuerra ) ;
- GangZoneShowForAll ( GZGuerra, 0xFFFFFF96 ) ;
- ProvocoGuerra [ playerid ] = 0 ;
- GuerraNaGuerra = 0 ;
- DonoGuerra = 0 ;
- KillTimer ( TempoGuerra ) ;
- return true;
- }
- }
- return true;
- }
- if ( xEquipe [ playerid ] == iOperacoes )
- {
- if ( ProvocoGuerra [ playerid ] == 1 )
- {
- if ( JogadorDentroDaGuerra ( playerid ) )
- {
- GetPlayerName ( playerid, iSmirName, MAX_PLAYER_NAME ) ;
- format ( xCelulas, sizeof ( xCelulas), "%s e as Operações Especiais dominaram a Guerra", iSmirName ) ;
- SendClientMessageToAll ( iCor_Operacoes, xCelulas);
- SendClientMessage ( playerid, -1, "Você dominou a Guerra, fique esperto com os terroristas" ) ;
- GangZoneStopFlashForAll ( GZGuerra ) ;
- GangZoneShowForAll ( GZGuerra, iCor_Operacoes ) ;
- Dominando [ playerid ] = 0 ;
- ProvocoGuerra [ playerid ] = 0 ;
- GuerraNaGuerra = 0;
- DonoGuerra = 2;
- KillTimer ( TempoGuerra ) ;
- return true;
- }
- else
- {
- SendClientMessage ( playerid, iCor_Operacoes, "Você não está no local da guerra" ) ;
- Dominando [ playerid ] = 0;
- GangZoneStopFlashForAll ( GZGuerra ) ;
- GangZoneShowForAll ( GZGuerra, 0xFFFFFF96 ) ;
- ProvocoGuerra [ playerid ] = 0 ;
- GuerraNaGuerra = 0 ;
- DonoGuerra = 0 ;
- KillTimer ( TempoGuerra ) ;
- return true;
- }
- }
- return true;
- }
- return true;
- }
- public iAtualizarTextDraw ( playerid )
- {
- format ( xCelulas, sizeof ( xCelulas ), "Level: ~r~%d", GetPlayerScore ( playerid ) ) ;
- TextDrawSetString ( xLevel [ playerid ], xCelulas ) ;
- format ( xCelulas, sizeof ( xCelulas ), "Matou: ~r~%d", xPlayerInfo [ playerid ] [ xMatouu ] ) ;
- TextDrawSetString ( xMatou [ playerid ], xCelulas ) ;
- format ( xCelulas, sizeof ( xCelulas ), "Morreu: ~r~%d", xPlayerInfo [ playerid ] [ xMorreuu ] ) ;
- TextDrawSetString ( xMorreu [ playerid ], xCelulas ) ;
- return 1;
- }
- public OnGameModeInit()
- {
- ShowPlayerMarkers ( 0 ) ;
- UsePlayerPedAnims ( ) ;
- SetGameModeText ( iVersao ) ;
- SendRconCommand ( "hostname " iNome ) ;
- SendRconCommand ( iMapa ) ;
- DisableInteriorEnterExits ( ) ;
- SetTimer ( " iAtualizarTextDraw ", 1000, true ) ;
- SetTimer("iExplosion", 1000, 1);
- GZGuerra = GangZoneCreate(2705.767578, 885.329833, 3057.767578, 1245.329833);
- xCold = TextDrawCreate ( 546.000000, 392.000000, "Cold" ) ;
- TextDrawBackgroundColor ( xCold, 255 ) ;
- TextDrawFont ( xCold, 0 ) ;
- TextDrawLetterSize ( xCold, 0.680000, 2.400001 ) ;
- TextDrawColor ( xCold, -2016478465 ) ;
- TextDrawSetOutline ( xCold, 1 ) ;
- xWar = TextDrawCreate ( 581.000000, 392.000000, "War" ) ;
- TextDrawBackgroundColor ( xWar, 255 ) ;
- TextDrawFont ( xWar, 0 ) ;
- TextDrawLetterSize ( xWar, 0.680000, 2.400001 ) ;
- TextDrawColor ( xWar, 12582911 ) ;
- TextDrawSetOutline ( xWar, 1 ) ;
- xV2 = TextDrawCreate ( 574.000000, 415.000000, "v2" ) ;
- TextDrawBackgroundColor ( xV2, 255 ) ;
- TextDrawFont ( xV2, 0 ) ;
- TextDrawLetterSize ( xV2, 0.680000, 2.400001 ) ;
- TextDrawColor ( xV2, 512819199 ) ;
- TextDrawSetOutline ( xV2, 1 ) ;
- for (new i = 0; i < MAX_PLAYERS; i++) {
- xxCold [ i ] = TextDrawCreate ( 217.000000, 335.000000, "Cold" ) ;
- TextDrawBackgroundColor ( xxCold [ i ], 255 ) ;
- TextDrawFont ( xxCold [ i ], 0 ) ;
- TextDrawLetterSize ( xxCold [ i ], 1.459999, 4.099999 ) ;
- TextDrawColor ( xxCold [ i ], 1221709055 ) ;
- TextDrawSetOutline ( xxCold [ i ], 1 ) ;
- xxWar [ i ] = TextDrawCreate ( 317.000000, 335.000000, "War" ) ;
- TextDrawBackgroundColor ( xxWar [ i ], 255 ) ;
- TextDrawFont ( xxWar [ i ], 0 ) ;
- TextDrawLetterSize ( xxWar [ i ], 1.459999, 4.099999 ) ;
- TextDrawColor ( xxWar [ i ], 1221709055 ) ;
- TextDrawSetOutline ( xxWar [ i ], 1 ) ;
- }
- CreatePickup ( 1242, 23, 2871.1499, 1039.4664, 10.8984 ) ; // Pickup para comprar armas
- CreatePickup ( 1242, 23, 2941.5334, 1070.4180, 18.0928) ; // Pickup para comprar armas
- Create3DTextLabel("Armamentos para a Guerra\nDigite /comprar", 0x00BFFFFF, 2871.1499, 1039.4664, 10.8984, 20.0, 0, 0); // 3DText para comprar armas
- Create3DTextLabel("Armamentos para a Guerra\nDigite /comprar", 0x00BFFFFF, 2941.5334, 1070.4180, 18.0928, 20.0, 0, 0); // 3DText para comprar armas
- // =========================== Guerrilheiros Israelista =========================== //
- AddPlayerClassEx ( iGuerrilheiros, 111, 2232.2813, -1158.4985, 29.7969, 0.3858, 4, 1, 5, 1, 0, 0 ) ; // [ ID 0 ]
- AddPlayerClassEx ( iGuerrilheiros, 112, 2232.2813, -1158.4985, 29.7969, 0.3858, 4, 1, 5, 1, 0, 0 ) ; // [ ID 1 ]
- AddPlayerClassEx ( iGuerrilheiros, 113, 2232.2813, -1158.4985, 29.7969, 0.3858, 4, 1, 5, 1, 0, 0 ) ; // [ ID 2 ]
- // =========================== Operações Especiais ============================= //
- AddPlayerClassEx ( iOperacoes, 288, 2531.0586, -1666.2322, 15.1678, 183.9649, 4, 1, 5, 1, 0, 0 ) ;// [ ID 3 ]
- AddPlayerClassEx ( iOperacoes, 285, 2531.0586, -1666.2322, 15.1678, 183.9649, 4, 1, 5, 1, 0, 0 ) ; // [ ID 4 ]
- AddPlayerClassEx ( iOperacoes, 287, 2531.0586, -1666.2322, 15.1678, 183.9649, 4, 1, 5, 1, 0, 0 ) ; // [ ID 5 ]
- // =========================== Mapa da Guerra ============================= //
- CreateObject ( 7017, 2892.68286133, 1117.19250488, 10.65365791, 0.00000000, 0.00000000, 10.00000000); //object(circusconstruct07) (1)
- CreateObject ( 7017, 2862.86743164, 1074.64501953, 10.64843750, 0.00000000, 0.00000000, 99.99755859); //object(circusconstruct07) (2)
- CreateObject ( 7017, 2905.91040039, 1038.38732910, 10.64843750, 0.00000000, 0.00000000, 179.99206543); //object(circusconstruct07) (3)
- CreateObject ( 16113, 2935.11157227, 1029.10839844, 8.14843750, 0.00000000, 0.00000000, 220.00000000); //object(des_rockgp2_03) (1)
- CreateObject ( 16113, 2923.01318359, 1118.15124512, 7.40469360, 0.00000000, 0.00000000, 19.99572754); //object(des_rockgp2_03) (2)
- CreateObject ( 16113, 2948.41137695, 1093.87731934, 15.67440224, 0.00000000, 0.00000000, 319.99511719); //object(des_rockgp2_03) (3)
- CreateObject ( 16113, 2953.08959961, 1055.43298340, 10.02893257, 0.00000000, 0.00000000, 283.99328613); //object(des_rockgp2_03) (4)
- CreateObject ( 16113, 2953.06201172, 1065.56359863, 15.25328827, 0.00000000, 0.00000000, 315.99108887); //object(des_rockgp2_03) (5)
- CreateObject ( 16113, 2887.15112305, 1028.16284180, 6.16881943, 0.00000000, 0.00000000, 225.98876953); //object(des_rockgp2_03) (6)
- CreateObject ( 16113, 2856.99389648, 1051.70556641, 7.89843750, 0.00000000, 2.00000000, 147.98327637); //object(des_rockgp2_03) (7)
- CreateObject ( 16113, 2850.21557617, 1090.13354492, 7.39843750, 0.00000000, 1.99951172, 139.98034668); //object(des_rockgp2_03) (8)
- CreateObject ( 16113, 2864.63647461, 1116.65600586, 6.89843559, 0.00000000, 1.99951172, 57.97683716); //object(des_rockgp2_03) (9)
- CreateObject ( 16113, 2894.08715820, 1122.69177246, 7.39843750, 0.00000000, 1.99951172, 49.97485352); //object(des_rockgp2_03) (10)
- CreateObject ( 11457, 2885.02124023, 1062.36962891, 9.64843750, 0.00000000, 0.00000000, 8.00000000); //object(des_pueblo09) (1)
- CreateObject ( 11457, 2878.24438477, 1079.02465820, 9.64843750, 0.00000000, 0.00000000, 279.99853516); //object(des_pueblo09) (2)
- CreateObject ( 11457, 2891.38085938, 1081.97229004, 9.14843750, 0.00000000, 0.00000000, 10.00000000); //object(des_pueblo09) (3)
- CreateObject ( 11458, 2901.51464844, 1060.25451660, 10.14843750, 0.00000000, 0.00000000, 100.00000000); //object(des_pueblo10) (1)
- CreateObject ( 11444, 2886.61474609, 1053.68518066, 15.72656250, 0.00000000, 0.00000000, 8.00000000); //object(des_pueblo2) (1)
- CreateObject ( 11444, 2890.71923828, 1054.48596191, 12.85156250, 0.00000000, 0.00000000, 7.99804688); //object(des_pueblo2) (2)
- CreateObject ( 11444, 2889.77294922, 1062.50903320, 9.89843750, 0.00000000, 0.00000000, 7.99804688); //object(des_pueblo2) (3)
- CreateObject ( 11427, 2872.97436523, 1050.84204102, 17.08829880, 0.00000000, 0.00000000, 278.00000000); //object(des_adobech) (1)
- CreateObject ( 11444, 2870.59033203, 1062.63195801, 9.89843750, 0.00000000, 0.00000000, 7.99804688); //object(des_pueblo2) (4)
- CreateObject ( 11444, 2898.37744141, 1048.46997070, 9.64843750, 0.00000000, 0.00000000, 7.99804688); //object(des_pueblo2) (5)
- CreateObject ( 16118, 2893.12109375, 1100.89831543, 0.40365601, 0.00000000, 0.00000000, 88.00000000); //object(des_rockgp2_05) (1)
- CreateObject ( 900, 2900.36645508, 1108.10620117, 20.44877625, 0.00000000, 0.00000000, 340.00000000); //object(searock04) (1)
- CreateObject ( 900, 2879.37109375, 1111.43688965, 19.31773376, 0.00000000, 0.00000000, 339.99938965); //object(searock04) (2)
- CreateObject ( 16118, 2912.95776367, 1096.45727539, 0.45941162, 0.00000000, 0.00000000, 67.99499512); //object(des_rockgp2_05) (2)
- CreateObject ( 645, 2933.76782227, 1050.95288086, 13.07539749, 0.00000000, 0.00000000, 0.00000000); //object(veg_palmbig14) (2)
- CreateObject ( 645, 2926.81201172, 1060.15893555, 11.84254456, 0.00000000, 0.00000000, 0.00000000); //object(veg_palmbig14) (3)
- CreateObject ( 645, 2924.54882812, 1044.45349121, 10.36819649, 0.00000000, 0.00000000, 0.00000000); //object(veg_palmbig14) (4)
- CreateObject ( 645, 2934.52441406, 1068.57141113, 14.49732780, 0.00000000, 0.00000000, 0.00000000); //object(veg_palmbig14) (5)
- CreateObject ( 645, 2931.45434570, 1078.78027344, 13.59752274, 0.00000000, 0.00000000, 0.00000000); //object(veg_palmbig14) (6)
- CreateObject ( 645, 2925.32421875, 1069.98815918, 11.10470390,0.00000000, 0.00000000, 0.00000000); //object(veg_palmbig14) (7)
- CreateObject ( 645, 2937.78857422, 1058.85144043, 15.95819855, 0.00000000, 0.00000000, 0.00000000); //object(veg_palmbig14) (8)
- CreateObject ( 645, 2939.20312500, 1080.42053223, 15.64504528, 0.00000000, 0.00000000, 0.00000000); //object(veg_palmbig14) (9)
- CreateObject ( 645, 2934.56005859, 1099.03210449, 15.22621727, 0.00000000, 0.00000000, 0.00000000); //object(veg_palmbig14) (10)
- CreateObject ( 645, 2937.46459961, 1088.17871094, 14.64134407, 0.00000000, 0.00000000, 0.00000000); //object(veg_palmbig14) (11)
- CreateObject ( 645, 2924.26147461, 1083.17041016, 11.25910568, 0.00000000, 0.00000000, 0.00000000); //object(veg_palmbig14) (12)
- CreateObject ( 645, 2920.06542969, 1075.97534180, 9.90365791, 0.00000000, 0.00000000, 0.00000000); //object(veg_palmbig14) (13)
- CreateObject ( 645, 2917.57666016, 1063.88647461, 9.90433693, 0.00000000, 0.00000000, 0.00000000); //object(veg_palmbig14) (14)
- CreateObject ( 645, 2917.65478516, 1053.53417969, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(veg_palmbig14) (15)
- CreateObject ( 645, 2914.07250977, 1083.25122070, 9.90365791, 0.00000000, 0.00000000, 0.00000000); //object(veg_palmbig14) (16)
- CreateObject ( 734, 2879.17919922, 1067.68054199, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(tree_hipoly14) (1)
- CreateObject ( 734, 2890.76049805, 1041.19897461, 9.89843559, 0.00000000, 0.00000000, 0.00000000); //object(tree_hipoly14) (2)
- CreateObject ( 734, 2861.38281250, 1074.76647949, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(tree_hipoly14) (3)
- CreateObject ( 734, 2864.98437500, 1049.06787109, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(tree_hipoly14) (4)
- CreateObject ( 734, 2874.78637695, 1036.00500488, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(tree_hipoly14) (5)
- CreateObject ( 734, 2856.43945312, 1102.25976562, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(tree_hipoly14) (6)
- CreateObject ( 734, 2896.51049805, 1081.61572266, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(tree_hipoly14) (7)
- CreateObject ( 734, 2909.02246094, 1048.16381836, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(tree_hipoly14) (8)
- CreateObject ( 769, 2889.95727539, 1109.28222656, 24.17936134, 0.00000000, 0.00000000, 0.00000000); //object(locust_hi) (1)
- CreateObject ( 769, 2885.93701172, 1103.60607910, 22.35086060, 0.00000000, 0.00000000, 0.00000000); //object(locust_hi) (2)
- CreateObject ( 769, 2875.96191406, 1099.69982910, 21.74973679, 0.00000000, 0.00000000, 0.00000000); //object(locust_hi) (3)
- CreateObject ( 769, 2868.52685547, 1113.04138184, 23.08688736, 0.00000000, 0.00000000, 0.00000000); //object(locust_hi) (4)
- CreateObject ( 769, 2904.81445312, 1110.31054688, 23.93617821, 0.00000000, 0.00000000, 0.00000000); //object(locust_hi) (5)
- CreateObject ( 769, 2901.68676758, 1099.73901367, 23.47539520, 0.00000000, 0.00000000, 0.00000000); //object(locust_hi) (6)
- CreateObject ( 769, 2913.40942383, 1105.61389160, 21.24622345, 0.00000000, 0.00000000, 0.00000000); //object(locust_hi) (7)
- CreateObject ( 769, 2883.51196289, 1098.91857910, 15.52123642, 0.00000000, 0.00000000, 0.00000000); //object(locust_hi) (8)
- CreateObject ( 769, 2894.00146484, 1095.63305664, 19.57674408, 0.00000000, 0.00000000, 0.00000000); //object(locust_hi) (9)
- CreateObject ( 769, 2903.72656250, 1092.35461426, 9.90365791, 0.00000000, 0.00000000, 0.00000000); //object(locust_hi) (10)
- CreateObject ( 769, 2871.43994141, 1095.58911133, 22.65808487, 0.00000000, 0.00000000, 0.00000000); //object(locust_hi) (11)
- CreateObject ( 769, 2884.45434570, 1113.93579102, 22.66149712, 0.00000000, 0.00000000, 0.00000000); //object(locust_hi) (12)
- CreateObject ( 651, 2901.14257812, 1116.13940430, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sjmcacti1) (1)
- CreateObject ( 651, 2893.23388672, 1110.27355957, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sjmcacti1) (2)
- CreateObject ( 651, 2881.21508789, 1112.51562500, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sjmcacti1) (3)
- CreateObject ( 754, 2860.53540039, 1109.88623047, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_des_cactiigrp) (1)
- CreateObject ( 754, 2858.60766602, 1107.53955078, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_des_cactiigrp) (2)
- CreateObject ( 754, 2887.85302734, 1084.74938965, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_des_cactiigrp) (3)
- CreateObject ( 754, 2908.51538086, 1065.25402832, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_des_cactiigrp) (4)
- CreateObject ( 754, 2907.55249023, 1066.84716797, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_des_cactiigrp) (5)
- CreateObject ( 754, 2909.41967773, 1067.02343750, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_des_cactiigrp) (6)
- CreateObject ( 651, 2908.64990234, 1066.20056152, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sjmcacti1) (4)
- CreateObject ( 761, 2868.35815430, 1110.78820801, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (1)
- CreateObject ( 761, 2872.95214844, 1111.01538086, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (2)
- CreateObject ( 761, 2870.40576172, 1108.35559082, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (3)
- CreateObject ( 761, 2877.17626953, 1109.33569336, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (4)
- CreateObject ( 761, 2875.91894531, 1111.81408691, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (5)
- CreateObject ( 761, 2881.14208984, 1110.54260254, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (6)
- CreateObject ( 761, 2879.07763672, 1113.02636719, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (7)
- CreateObject ( 761, 2879.98095703, 1108.08447266, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (8)
- CreateObject ( 761, 2884.07592773, 1112.53100586, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (9)
- CreateObject ( 761, 2885.83374023, 1110.69067383, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (10)
- CreateObject ( 761, 2887.94873047, 1113.96972656, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (11)
- CreateObject ( 761, 2891.91259766, 1113.39086914, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (12)
- CreateObject ( 761, 2889.21142578, 1111.24816895, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (13)
- CreateObject ( 761, 2894.03295898, 1111.79663086, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (14)
- CreateObject ( 761, 2894.50097656, 1114.72070312, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (15)
- CreateObject ( 761, 2897.91503906, 1116.12573242, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (16)
- CreateObject ( 761, 2897.69238281, 1113.48840332, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (17)
- CreateObject ( 761, 2898.41430664, 1110.85827637, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (18)
- CreateObject ( 761, 2904.54492188, 1111.43176270, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (19)
- CreateObject ( 761, 2901.31079102, 1114.56115723, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (20)
- CreateObject ( 761, 2900.61694336, 1112.25256348, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (21)
- CreateObject ( 761, 2904.51196289, 1113.83349609, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (22)
- CreateObject ( 761, 2909.02832031, 1112.99536133, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (23)
- CreateObject ( 761, 2910.41040039, 1109.38745117, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (24)
- CreateObject ( 761, 2895.57885742, 1116.34912109, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (25)
- CreateObject ( 761, 2891.02758789, 1115.62145996, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (26)
- CreateObject ( 754, 2876.96313477, 1114.58068848, 13.83573723, 79.80395508, 11.37063599, 356.80435181); //object(sm_des_cactiigrp) (7)
- CreateObject ( 754, 2876.96289062, 1114.58007812, 13.83573723, 79.79919434, 11.36535645, 356.80297852); //object(sm_des_cactiigrp) (8)
- CreateObject ( 754, 2889.83105469, 1116.38708496, 13.81682491, 79.79919434, 11.36535645, 356.80297852); //object(sm_des_cactiigrp) (9)
- CreateObject ( 754, 2889.88452148, 1117.62768555, 15.15905952, 79.79919434, 11.36535645, 356.80297852); //object(sm_des_cactiigrp) (10)
- CreateObject ( 761, 2918.04272461, 1080.36499023, 9.90365791, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (27)
- CreateObject ( 761, 2913.55224609, 1081.98327637, 9.90365791, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (28)
- CreateObject ( 761, 2913.92431641, 1078.52050781, 9.90365791, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (29)
- CreateObject ( 761, 2913.31054688, 1074.14428711, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (30)
- CreateObject ( 761, 2920.05981445, 1073.63708496, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (31)
- CreateObject ( 761, 2918.38842773, 1069.91943359, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (32)
- CreateObject ( 761, 2913.76464844, 1070.71313477, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (33)
- CreateObject ( 761, 2916.66699219, 1065.53857422, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (34)
- CreateObject ( 761, 2916.31323242, 1064.92028809, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (35)
- CreateObject ( 761, 2915.31372070, 1063.89282227, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (36)
- CreateObject ( 761, 2914.68017578, 1061.72814941, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (37)
- CreateObject ( 761, 2915.70117188, 1058.68395996, 9.89843750,0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (38)
- CreateObject ( 761, 2913.62304688, 1055.97302246, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (39)
- CreateObject ( 761, 2922.23291016, 1058.93505859, 9.99885845, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (40)
- CreateObject ( 761, 2924.70043945, 1052.80969238, 10.41778278, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (41)
- CreateObject ( 761, 2927.12133789, 1063.13415527, 11.91656494, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (42)
- CreateObject ( 761, 2923.25317383, 1069.08361816, 10.35703087, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (43)
- CreateObject ( 761, 2931.68481445, 1071.08276367, 13.39362526, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (44)
- CreateObject ( 761, 2924.03442383, 1078.38159180, 10.81746197, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (45)
- CreateObject ( 761, 2915.47729492, 1074.02575684, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (46)
- CreateObject ( 61, 2911.08813477, 1075.09448242, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (47)
- CreateObject ( 761, 2908.44189453, 1079.29235840, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (48)
- CreateObject ( 761, 2910.94995117, 1078.71496582, 9.90365791, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (49)
- CreateObject ( 761, 2917.78588867, 1084.14001465, 9.90365791, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (50)
- CreateObject ( 761, 2921.20385742, 1080.01940918, 9.90365696, 0.00000000, 0.00000000, 0.00000000); //object(sm_drybrush_sm1) (51)
- CreateObject ( 749, 2918.39208984, 1067.62939453, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_scrb_column3) (1)
- CreateObject ( 749, 2926.41113281, 1075.35644531, 10.72259998, 0.00000000, 0.00000000, 0.00000000); //object(sm_scrb_column3) (2)
- CreateObject ( 751, 2928.77001953, 1057.53259277, 11.43249893, 0.00000000, 0.00000000, 0.00000000); //object(sm_scrb_column1) (1)
- CreateObject ( 758, 2916.66455078, 1078.87731934, 9.40365696, 0.00000000, 0.00000000, 0.00000000); //object(sm_scrub_rock6) (1)
- CreateObject ( 674, 2910.57641602, 1077.10986328, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_des_josh_lrg1) (1)
- CreateObject ( 674, 2916.34228516, 1073.26367188, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_des_josh_lrg1) (2)
- CreateObject ( 674, 2927.50659180, 1066.74963379, 11.98197079, 0.00000000, 0.00000000, 0.00000000); //object(sm_des_josh_lrg1) (3)
- CreateObject ( 674, 2924.78393555, 1058.72753906, 10.64320374, 0.00000000, 0.00000000, 0.00000000); //object(sm_des_josh_lrg1) (4)
- CreateObject ( 674, 2919.21679688, 1056.64453125, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_des_josh_lrg1) (5)
- CreateObject ( 674, 2925.23608398, 1051.15502930, 10.50782013, 0.00000000, 0.00000000, 0.00000000); //object(sm_des_josh_lrg1) (6)
- CreateObject ( 674, 2918.53442383, 1045.29394531, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_des_josh_lrg1) (7)
- CreateObject ( 674, 2912.07690430, 1054.05932617, 9.89843750, 0.00000000, 0.00000000, 0.00000000); //object(sm_des_josh_lrg1) (8)
- CreateObject ( 674, 2937.74462891, 1063.20239258, 15.81774521, 0.00000000, 0.00000000, 0.00000000); //object(sm_des_josh_lrg1) (9)
- CreateObject ( 674, 2938.89111328, 1067.81274414, 16.10980225, 0.00000000, 0.00000000, 0.00000000); //object(sm_des_josh_lrg1) (10)
- CreateObject ( 674, 2936.46606445, 1055.17053223, 15.14317608, 0.00000000, 0.00000000, 0.00000000); //object(sm_des_josh_lrg1) (11)
- CreateObject ( 674, 2931.55615234, 1052.51489258, 12.40482903, 0.00000000, 0.00000000, 0.00000000); //object(sm_des_josh_lrg1) (12)
- CreateObject ( 674, 2935.82983398, 1079.00646973, 14.93318462, 0.00000000, 0.00000000, 0.00000000); //object(sm_des_josh_lrg1) (13)
- CreateObject ( 674, 2933.70092773, 1082.61010742, 14.15610027, 0.00000000, 0.00000000, 0.00000000); //object(sm_des_josh_lrg1) (14)
- CreateObject ( 674, 2929.74365234, 1073.69934082, 12.61452389, 0.00000000, 0.00000000, 0.00000000); //object(sm_des_josh_lrg1) (15)
- return 1;
- }
- public OnGameModeExit()
- {
- DOF2_Exit();
- return 1;
- }
- public OnPlayerRequestClass ( playerid, classid )
- {
- if ( ( classid >= 0 ) && ( classid <= 2 ) )
- {
- xEquipe [ playerid ] = iGuerrilheiros;
- GameTextForPlayer(playerid, "~n~~n~~n~~b~Guerrilheiros Israelista", 4000, 5 ) ;
- }
- if ( ( classid >= 3 ) && ( classid <= 5))
- {
- xEquipe [ playerid ] = iOperacoes ;
- GameTextForPlayer ( playerid, "~n~~n~~n~~g~Operacoes Especiais", 4000, 5 ) ;
- }
- return 1;
- }
- public OnPlayerConnect ( playerid )
- {
- if(DonoGuerra == 0)
- {
- GangZoneShowForPlayer(playerid, GZGuerra, 0xC0C0C0AA);
- }
- if(DonoGuerra == 1)
- {
- GangZoneShowForPlayer(playerid, GZGuerra, 0xC0C0C0AA);
- }
- if(DonoGuerra == 2)
- {
- GangZoneShowForPlayer(playerid, GZGuerra, 0xC0C0C0AA);
- }
- xLevel [ playerid ] = TextDrawCreate ( 41.000000, 140.000000, "Level: ~r~0" ) ;
- TextDrawBackgroundColor ( xLevel [ playerid ], 255 ) ;
- TextDrawFont ( xLevel [ playerid ], 2 ) ;
- TextDrawLetterSize ( xLevel [ playerid ], 0.400000, 1.000000 ) ;
- TextDrawColor ( xLevel [ playerid ], -1 ) ;
- TextDrawSetOutline ( xLevel [ playerid ], 1 ) ;
- xMatou [ playerid ] = TextDrawCreate ( 40.000000, 153.000000, "Matou: ~r~0" ) ;
- TextDrawBackgroundColor ( xMatou [ playerid ], 255 ) ;
- TextDrawFont ( xMatou [ playerid ], 2 ) ;
- TextDrawLetterSize ( xMatou [ playerid ], 0.400000, 1.000000 ) ;
- TextDrawColor ( xMatou [ playerid ], -1 ) ;
- TextDrawSetOutline ( xMatou [ playerid ], 1 ) ;
- xMorreu [ playerid ] = TextDrawCreate ( 38.000000, 166.000000, "Morreu: ~r~0" ) ;
- TextDrawBackgroundColor ( xMorreu [ playerid ], 255 ) ;
- TextDrawFont ( xMorreu [ playerid ], 2 ) ;
- TextDrawLetterSize ( xMorreu [ playerid ], 0.400000, 1.000000 ) ;
- TextDrawColor ( xMorreu [ playerid ], -1 ) ;
- TextDrawSetOutline ( xMorreu [ playerid ], 1 ) ;
- CarregarPlayer ( playerid ) ;
- SetPlayerWeather ( playerid, 9 ) ;
- iAtualizarTextDraw ( playerid ) ;
- TextDrawShowForPlayer ( playerid, xLevel [ playerid ] ) ;
- TextDrawShowForPlayer ( playerid, xMatou [ playerid ] ) ;
- TextDrawShowForPlayer ( playerid, xMorreu [ playerid ] ) ;
- TextDrawShowForPlayer ( playerid, xCold ) ;
- TextDrawShowForPlayer ( playerid, xWar ) ;
- TextDrawShowForPlayer ( playerid, xV2 ) ;
- for (new i = 0; i < GetMaxPlayers(); i++)
- {
- TextDrawShowForPlayer ( i, xxCold [ i ] ) ;
- TextDrawShowForPlayer ( i, xxWar [ i ] ) ;
- }
- if ( !DOF2_FileExists ( iPastaArquivos ( playerid ) ) )
- return ShowPlayerDialog ( playerid, xRegistro, DIALOG_STYLE_INPUT,"Registro","[ Olá ], Digite uma senha para se registrar no servidor\nSe cancelar será kickado automáticamente", "Registrar","Cancelar" ) ;
- else if ( DOF2_FileExists ( iPastaArquivos ( playerid ) ) )
- return ShowPlayerDialog ( playerid, xLogin, DIALOG_STYLE_INPUT,"Login", "[ Olá ], Digite sua senha para logar no servidor\nSe cancelar será kickado automáticamente", "Logar","Cancelar" ) ;
- return 1;
- }
- public OnPlayerDisconnect ( playerid, reason )
- {
- if ( ProvocoGuerra [ playerid ] == 1 )
- {
- GangZoneStopFlashForAll ( GZGuerra ) ;
- GangZoneShowForAll ( GZGuerra, 0xFFFFFF96 ) ;
- GuerraNaGuerra = 0;
- ProvocoGuerra [ playerid ] = 0 ;
- DonoGuerra = 0;
- Dominando [ playerid ] = 0 ;
- KillTimer ( TempoGuerra ) ;
- }
- SalvarPlayer ( playerid ) ;
- return 1;
- }
- public OnPlayerSpawn ( playerid )
- {
- SetPlayerWeather ( playerid, 9 ) ;
- for ( new i = 0; i < GetMaxPlayers ( ); i++ )
- {
- TextDrawDestroy ( xxCold [ i ] ) ;
- TextDrawDestroy ( xxWar [ i ] ) ;
- }
- if ( xEquipe [ playerid ] == iGuerrilheiros )
- {
- SendClientMessage ( playerid,-1,"[ Sky War ] {BEBEBE}Você vai pra guerra pelo lado dos [ Guerrilheiros Israelistas ]" ) ;
- SetPlayerPos ( playerid, 2871.1499, 1039.4664, 10.8984 ) ;
- SetPlayerInterior ( playerid, 0 ) ;
- }
- if ( xEquipe [ playerid ] == iOperacoes )
- {
- SendClientMessage ( playerid,-1, "[ Sky War ] {BEBEBE}Você vai pra guerra pelo lado dos [ Operações Especiais ]" ) ;
- SetPlayerPos ( playerid, 2941.5334,1070.4180,18.0928 ) ;
- SetPlayerInterior ( playerid, 0 ) ;
- }
- return 1;
- }
- public OnPlayerDeath ( playerid, killerid, reason )
- {
- if(ProvocoGuerra[playerid] == 1)
- {
- GangZoneStopFlashForAll(GZGuerra);
- GangZoneShowForAll(GZGuerra, 0xFFFFFF96);
- GuerraNaGuerra = 0;
- ProvocoGuerra[playerid] = 0;
- DonoGuerra = 0;
- Dominando[playerid] = 0;
- KillTimer(TempoGuerra);
- }
- SendDeathMessage ( killerid, playerid, reason ) ;
- xPlayerInfo [ playerid ] [ xMorreuu ] ++ ;
- iAtualizarTextDraw ( playerid ) ;
- SalvarPlayer ( playerid ) ;
- if(IsPlayerConnected ( killerid ) )
- {
- xPlayerInfo [ killerid ] [ xMatouu ] ++ ;
- SetPlayerScore ( killerid, GetPlayerScore ( killerid ) +1 ) ;
- SendClientMessage ( killerid, -1, "Você ganhou 1 level " ) ;
- GivePlayerMoney ( killerid, GetPlayerMoney ( killerid ) +3000 ) ;
- SendClientMessage ( killerid, -1, "Você recebeu R$ 3.000" ) ;
- SetPlayerScore ( playerid, GetPlayerScore ( playerid ) -1 ) ;
- SendClientMessage ( playerid, -1, "Você perdeu 1 level" ) ;
- GivePlayerMoney ( playerid, GetPlayerMoney ( playerid ) -500 ) ;
- SendClientMessage ( playerid, -1, "Você perdeu R$ 500" ) ;
- iAtualizarTextDraw ( killerid ) ;
- SalvarPlayer ( killerid ) ;
- }
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- switch ( PickupTipo [ pickupid ] )
- {
- case PICKUP_TIPO_ARMA :
- {
- GivePlayerWeapon ( playerid, PickupArma [ pickupid ], PickupMunicao [ pickupid ] ) ;
- KillTimer ( DestruirPickupTempo [ pickupid ] ) ;
- DestroyWeaponPickup ( pickupid ) ;
- }
- }
- if ( pickupid == picVida )
- {
- new
- Float:health
- ;
- GetPlayerHealth ( playerid, health ) ;
- SetPlayerHealth ( playerid, health + 15 ) ;
- KillTimer ( DestruirPickupVidaTempo [ picVida ] ) ;
- DestruirPickupDaVida ( pickupid ) ;
- return true;
- }
- return true;
- }
- public OnDialogResponse ( playerid, dialogid, response, listitem, inputtext [ ] )
- {
- if ( dialogid == xCompra && response )
- {
- switch ( listitem )
- {
- case 0:
- {
- ShowPlayerDialog ( playerid, 20321, DIALOG_STYLE_LIST, "Shotguns", "Shotgun\nSawn-off Shotgun\nCombat Shotgun", "Comprar", "Cancelar" ) ;
- }
- case 1:
- {
- ShowPlayerDialog ( playerid, 20322, DIALOG_STYLE_LIST, "Pistolas", "Eagle\n9MM\n9MM com Silenciador", "Comprar", "Cancelar" ) ;
- }
- case 2:
- {
- ShowPlayerDialog ( playerid, 20323, DIALOG_STYLE_LIST, "SMGs", "MP7\nUZI\nTec-9", "Comprar", "Cancelar" ) ;
- }
- case 3:
- {
- ShowPlayerDialog ( playerid, 20324, DIALOG_STYLE_LIST, "Rifles", "M4\nAK-47", "Comprar", "Cancelar" ) ;
- }
- case 4:
- {
- ShowPlayerDialog ( playerid, 20325, DIALOG_STYLE_LIST, "Armas Extras", "Sniper\nCacetete", "Comprar", "Cancelar" ) ;
- }
- case 5:
- {
- ShowPlayerDialog ( playerid, 20326, DIALOG_STYLE_LIST, "Armas Especiais", "Bazooca\nGranada\nKIT Completo", "Comprar", "Cancelar" ) ;
- }
- }
- }
- if ( dialogid == 20321 && response )
- {
- switch ( listitem )
- {
- case 0:
- {
- if ( GetPlayerMoney ( playerid ) < 5000) return SendClientMessage ( playerid, -1, "Você Não Tem R$5.000 Para Comprar uma Shotgun" ) ;
- GivePlayerMoney ( playerid, -5000 ) ;
- GivePlayerWeapon ( playerid, 25, 900 ) ;
- SendClientMessage ( playerid, -1, "Você Comprou Uma Shotgun por R$5.000" ) ;
- }
- case 1:
- {
- if ( GetPlayerMoney ( playerid ) < 5000 ) return SendClientMessage ( playerid, -1, "Você Não Tem R$5.000 Para Comprar uma Sawn-OFF Shotgun" ) ;
- GivePlayerMoney ( playerid, -5000 ) ;
- GivePlayerWeapon ( playerid, 26, 900 ) ;
- SendClientMessage ( playerid, -1, "Você Comprou uma Sawn-OFF Shotgun por R$5.000" ) ;
- }
- case 2:
- {
- if ( GetPlayerMoney ( playerid ) < 5000 ) return SendClientMessage ( playerid, -1, "Você Não Tem R$5.000 Para Comprar uma Combat Shotgun!" ) ;
- GivePlayerMoney ( playerid, -5000 ) ;
- GivePlayerWeapon ( playerid, 27, 900 ) ;
- SendClientMessage ( playerid, -1, "Você Comprou Uma Combat Shotgun por R$5.000" ) ;
- }
- }
- }
- if ( dialogid == 20322 && response )
- {
- switch(listitem)
- {
- case 0:
- {
- if ( GetPlayerMoney ( playerid ) < 1000 ) return SendClientMessage ( playerid, -1, "Você Não Tem R$1.000 Para Comprar uma Desert Eagle" ) ;
- GivePlayerMoney ( playerid, -1000 ) ;
- GivePlayerWeapon ( playerid, 24, 1090000 ) ;
- SendClientMessage ( playerid, -1, "Você Comprou uma Desert Eagle Por R$1.000!" ) ;
- }
- case 1:
- {
- if ( GetPlayerMoney ( playerid ) < 1000 ) return SendClientMessage ( playerid, -1, "Você Não Tem R$1.000 Para Comprar uma 9MM" ) ;
- GivePlayerMoney ( playerid, -1000 ) ;
- GivePlayerWeapon ( playerid, 22, 900 ) ;
- SendClientMessage ( playerid, -1, "Você Comprou uma 9MM Por R$1.000!" ) ;
- }
- case 2:
- {
- if ( GetPlayerMoney ( playerid ) < 1000 ) return SendClientMessage ( playerid, -1, "Você Não Tem R$1.000 Para Comprar uma 9MM Com Silenciador" ) ;
- GivePlayerMoney ( playerid, -1000 ) ;
- GivePlayerWeapon ( playerid, 23, 900 ) ;
- SendClientMessage ( playerid, -1, "Você Comprou uma 9MM Com Silenciador Por R$1.000!" ) ;
- }
- }
- }
- if ( dialogid == 20323 && response )
- {
- switch ( listitem )
- {
- case 0:
- {
- if( GetPlayerMoney(playerid) < 1700 ) return SendClientMessage ( playerid, -1, "Você Não tem R$1.700 Para Comprar uma M4" ) ;
- GivePlayerMoney ( playerid, -1700 ) ;
- GivePlayerWeapon ( playerid, 31, 900 ) ;
- SendClientMessage ( playerid, -1, "Você Comprou uma M4 Por R$1.700" ) ;
- }
- case 1:
- {
- if ( GetPlayerMoney(playerid) < 1700 ) return SendClientMessage ( playerid, -1, "Você Não tem R$1.700 Para Comprar uma AK-47" ) ;
- GivePlayerMoney ( playerid, -1700 ) ;
- GivePlayerWeapon ( playerid, 30, 900 ) ;
- SendClientMessage ( playerid, -1, "Você Comprou uma AK-47 Por R$1.700!" ) ;
- }
- }
- }
- if ( dialogid == 20324 && response )
- {
- switch ( listitem )
- {
- case 0:
- {
- if ( GetPlayerMoney(playerid) < 1700 ) return SendClientMessage ( playerid, -1, "Você Não Tem R$1.700 Para Comprar Uma MP7" ) ;
- GivePlayerMoney ( playerid, -1700 ) ;
- GivePlayerWeapon ( playerid, 29, 900 ) ;
- SendClientMessage ( playerid, -1, "Você Comprou uma MP7 Por R$1.700" ) ;
- }
- case 1:
- {
- if( GetPlayerMoney ( playerid ) < 1700 ) return SendClientMessage ( playerid, -1, "Você Não Tem R$1.700 Para Comprar Uma Micro Uzi!" ) ;
- GivePlayerMoney ( playerid, -1700 ) ;
- GivePlayerWeapon ( playerid, 28, 900 ) ;
- SendClientMessage ( playerid, -1, "Você Comprou uma Micro Uzi Por R$1.700!" ) ;
- }
- case 2:
- {
- if( GetPlayerMoney ( playerid ) < 1700 ) return SendClientMessage ( playerid, -1, "Você Não Tem R$1.700 Para Comprar Uma Tec 9!" ) ;
- GivePlayerMoney ( playerid, -1700 ) ;
- GivePlayerWeapon ( playerid, 32, 900 ) ;
- SendClientMessage ( playerid, -1, "Você Comprou uma Tec 9 Por R$1.700" ) ;
- }
- }
- }
- if ( dialogid == 20325 && response )
- {
- switch( listitem )
- {
- case 0:
- {
- if ( GetPlayerMoney ( playerid ) < 2400 ) return SendClientMessage ( playerid, -1, "Você Não Tem R$2.400 Para Comprar Uma Sniper" ) ;
- GivePlayerMoney ( playerid, -2400 ) ;
- GivePlayerWeapon ( playerid, 34, 100 ) ;
- SendClientMessage ( playerid, -1, "Você Comprou uma Sniper Por R$24.000");
- }
- case 1:
- {
- if ( GetPlayerMoney ( playerid ) < 1000 ) return SendClientMessage ( playerid, -1, "Você Não Tem R$1.000 Para Comprar Um Cacetete" ) ;
- GivePlayerMoney ( playerid, -1000 ) ;
- GivePlayerWeapon ( playerid, 3, 1 ) ;
- SendClientMessage ( playerid, -1, "Você Comprou um Cacetete Por R$1.000" ) ;
- }
- }
- }
- if ( dialogid == 20326 && response )
- {
- switch(listitem)
- {
- case 0:
- {
- if( GetPlayerMoney(playerid) < 15000) return SendClientMessage(playerid, -1, "Você Não tem R$15.000 Para Comprar uma Minigun");
- GivePlayerMoney(playerid, -15000);
- GivePlayerWeapon(playerid, 35, 4);
- SendClientMessage(playerid, -1, "Você Comprou uma Bazooca por R$15.000");
- }
- case 1:
- {
- if( GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, -1, "Você Não tem R$10.000 Para Comprar Granada");
- GivePlayerMoney(playerid, -10000);
- GivePlayerWeapon(playerid, 16, 10);
- SendClientMessage(playerid, -1, "Você Comprou Granada por R$10.000");
- }
- case 2:
- {
- if ( GetPlayerMoney ( playerid ) < 45000) return SendClientMessage(playerid, -1, "Você não tem R$45.000 Para Comprar o KIT Completo");
- GivePlayerMoney ( playerid, -75000 );
- SetPlayerArmour ( playerid, 100 );
- SetPlayerHealth ( playerid, 100 );
- GivePlayerWeapon ( playerid, 35, 5 );
- GivePlayerWeapon ( playerid, 24, 1000 ) ;
- GivePlayerWeapon ( playerid, 25, 1000 ) ;
- GivePlayerWeapon ( playerid, 29, 1000 ) ;
- GivePlayerWeapon ( playerid, 30, 1000 ) ;
- GivePlayerWeapon ( playerid, 16, 6);
- SendClientMessage ( playerid, -1, "Você Comprou um KIT Completo por R$45.000" ) ;
- }
- }
- }
- if ( dialogid == xRegistro )
- {
- if ( response )
- {
- if ( !strlen ( inputtext ) ) return ShowPlayerDialog ( playerid, xRegistro, DIALOG_STYLE_INPUT,"[NOME] - Registro","Digite uma senha para se registrar","Registrar","Cancelar");
- if ( strlen( inputtext ) < 3 || strlen ( inputtext ) > 15) return ShowPlayerDialog ( playerid, xRegistro, DIALOG_STYLE_INPUT,"[NOME] - Registro","A senha deve ter de 3 a 15 caracteres","Registrar","Cancelar");
- new
- string [ 70 ]
- ;
- format ( string,sizeof ( string ) ,"Conta registrada com sucesso! Senha: {F6E500}%s", inputtext ) ;
- SendClientMessage ( playerid,-1,string ) ;
- DOF2_CreateFile ( iPastaArquivos ( playerid ) ) ;
- DOF2_SetString ( iPastaArquivos ( playerid ) ,"Senha",inputtext ) ;
- DOF2_SaveFile();
- GivePlayerMoney ( playerid, 1000 ) ;
- SetPlayerScore ( playerid,1 ) ;
- }
- else if ( !response )
- {
- SendClientMessage ( playerid, -1, "Você foi kickado por não se registrar." ) ;
- Kick(playerid);
- }
- return 1;
- }
- if ( dialogid == xLogin )
- {
- if ( response )
- {
- if ( !strlen ( inputtext ) ) return ShowPlayerDialog ( playerid, xLogin, DIALOG_STYLE_INPUT, "xLogin", "[ Olá ], Digite sua senha para logar no servidor\nSe cancelar será kickado automáticamente","Logar","Cancelar" ) ;
- if ( strcmp ( inputtext, DOF2_GetString ( iPastaArquivos ( playerid ) ,"Senha" ) ,true ) == 0 )
- {
- GivePlayerMoney ( playerid, 1000 ) ;
- CarregarPlayer ( playerid);
- }
- else
- {
- if ( xErrouSenha [ playerid ] == 4 )
- {
- SendClientMessage ( playerid, 0xC5B43AAA,"Você foi banido por errar a senha 5 vezes." ) ;
- Ban ( playerid ) ;
- }
- else if ( xErrouSenha [ playerid ] < 4 )
- {
- xErrouSenha [ playerid ] ++;
- ShowPlayerDialog ( playerid, xLogin, DIALOG_STYLE_INPUT,"Login - Senha Incorreta","[ Olá ], Senha incorreta, se errar a senha 5 vezes será banido do servidor","Logar","Sair" ) ;
- }
- }
- }
- else if ( !response )
- {
- SendClientMessage ( playerid,0xC5B43AAA,"Você foi kickado por não logar" ) ;
- Kick ( playerid ) ;
- }
- return 1;
- }
- return 1;
- }
- command(creditos, playerid, params [] )
- {
- SendClientMessage ( playerid,-1,"{00CED1}[ Game Mode ] Sky War v1.0" ) ;
- SendClientMessage ( playerid,-1," {00CED1}By iSmirnoff" ) ;
- return 1;
- }
- command(dominar, playerid, params [] )
- {
- if ( xEquipe [ playerid ] == iGuerrilheiros )
- {
- if ( !JogadorDentroDaGuerra ( playerid ) )
- return SendClientMessage ( playerid, -1, "{00CED1}Você não está em nenhum território!" ) ;
- if ( Dominando [ playerid ] == 1 )
- return SendClientMessage ( playerid, -1, "{00CED1}Você Já Está Dominando um Territorio." ) ;
- if ( GuerraNaGuerra == 1 )
- return SendClientMessage ( playerid, -1, "{00CED1}Já está tendo uma guerra nesse territorio." ) ;
- GetPlayerName ( playerid, iSmirName, MAX_PLAYER_NAME ) ;
- format( xCelulas, sizeof ( xCelulas), "%s e os Guerrilheiros Israelista estão dominando a Guerra",iSmirName ) ;
- SendClientMessageToAll ( iCor_Terrorista, xCelulas ) ;
- SendClientMessage ( playerid, -1, "{00CED1}Fique esperto, As Operações Especiais foi avisada" ) ;
- SendClientMessage ( playerid, -1, "{00CED1}Espere 1 minuto para dominar está area." ) ;
- GangZoneFlashForAll ( GZGuerra, iCor_Terrorista ) ;
- Dominando [ playerid ] = 1 ;
- ProvocoGuerra [ playerid ] = 1 ;
- GuerraNaGuerra = 1;
- TempoGuerra = SetTimerEx ( " Guerra ", 60000, 0, " i ", playerid ) ;
- return true;
- }
- if ( xEquipe [ playerid ] == iOperacoes )
- {
- if ( !JogadorDentroDaGuerra ( playerid ) )
- return SendClientMessage ( playerid, -1, "{00CED1}Você não está em nenhum território!" ) ;
- if ( Dominando [ playerid ] == 1)
- return SendClientMessage ( playerid, -1, "{00CED1}Você Já Está Dominando um Territorio." ) ;
- if ( GuerraNaGuerra == 1 )
- return SendClientMessage ( playerid, -1, "{00CED1}Já está tendo uma guerra nesse territorio." ) ;
- GetPlayerName( playerid, iSmirName, MAX_PLAYER_NAME ) ;
- format ( xCelulas, sizeof ( xCelulas ), "%s e as Operações Especiais estão dominando a Guerra",iSmirName ) ;
- SendClientMessageToAll ( iCor_Operacoes, xCelulas ) ;
- SendClientMessage ( playerid, -1, "{00CED1}Fique esperto, Todos os Terroristas Foi Avisados!" ) ;
- SendClientMessage ( playerid, -1, "{00CED1}Espere 1 minuto para dominar está area." ) ;
- GangZoneFlashForAll ( GZGuerra, iCor_Operacoes ) ;
- Dominando [ playerid ] = 1;
- ProvocoGuerra [ playerid ] = 1;
- GuerraNaGuerra = 1 ;
- TempoGuerra = SetTimerEx ( "Guerra", 60000, 0, "i", playerid ) ;
- return true;
- }
- return true;
- }
- command(comprar, playerid, params [] )
- {
- if ( IsPlayerInRangeOfPoint ( playerid, 2.0, 2871.1499, 1039.4664, 10.8984 ) || IsPlayerInRangeOfPoint ( playerid, 2.0, 2941.5334, 1070.4180, 18.0928 ) )
- return SendClientMessage ( playerid, -1, "ERRO: Você não está no local de comprar armas" ) ;
- if ( IsPlayerConnected ( playerid ) )
- {
- SendClientMessage ( playerid, -1, "Você entrou no Menu de Armas" ) ;
- ShowPlayerDialog ( playerid, xCompra, DIALOG_STYLE_LIST, "Menu para Compra de Armas", "Shotgun\nPistolas\nSMG's\nRifles\nExtras\nArmas Especial", "Selecionar", "Fechar" ) ;
- }
- return 1;
- }
- command(dargrana, playerid, params[] )
- {
- new
- iD,
- iDinheiro,
- sNome [ MAX_PLAYER_NAME ]
- ;
- if ( xPlayerInfo [ playerid ] [ xAdmin ] < 1 )
- return SendClientMessage ( playerid, -1, "ERRO: Você não tem permissão para usar este comando" ) ;
- if ( sscanf ( params, "ud", iD, iDinheiro ) )
- return SendClientMessage ( playerid, -1, "/dargrana [ID] [Dinheiro]" ) ;
- GivePlayerMoney ( iD, iDinheiro ) ;
- GetPlayerName ( playerid, sNome, sizeof ( sNome ) ) ;
- format ( xCelulas, sizeof ( xCelulas ), "[ Cold War ]: Você recebeu [R$%s] do Adminitrador [%s]", iDinheiro, sNome );
- SendClientMessage ( playerid, -1, xCelulas ) ;
- return 1;
- }
- command(logaradmin, playerid, params [] )
- {
- if ( IsPlayerAdmin ( playerid ) )
- return SendClientMessage ( playerid, -1, "ERRO: Você não é Administrador RCON" ) ;
- SendClientMessage ( playerid, -1, "[ Cold War ]: Você é admin [ 5 ] " ) ;
- xPlayerInfo [ playerid ] [ xAdmin ] = 5 ;
- return 1;
- }
- command(jetpack, playerid, params [] )
- {
- if ( xPlayerInfo [ playerid ] [ xAdmin ] < 1 )
- return SendClientMessage ( playerid, -1, "ERRO: Você não tem permissão para usar este comando" ) ;
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
- SendClientMessage(playerid, -1, "Jetpack criado" ) ;
- return true;
- }
- command(ir, playerid, params[] )
- {
- new
- id,
- Float:p[3]
- ;
- if ( xPlayerInfo [ playerid ] [ xAdmin ] < 1 )
- return SendClientMessage ( playerid, -1, "ERRO: Você não tem permissão para usar este comando" ) ;
- if ( sscanf(params,"u",id ) )
- return SendClientMessage ( playerid, -1, "Use /ir [id]" ) ;
- if ( !IsPlayerConnected ( id ) )
- return SendClientMessage ( playerid, -1, "Player não conectado" ) ;
- GetPlayerName ( playerid, nome, sizeof ( nome ) ) ;
- GetPlayerPos ( id, p [ 0 ], p [ 1 ], p [ 2 ] ) ;
- SetPlayerPos ( playerid, p [ 0 ], p [ 1 ], p [ 2 ] ) ;
- return true;
- }
- command(trazer, playerid, params[] )
- {
- new
- id,
- Float:p[3],
- String [ 100 ]
- ;
- if ( xPlayerInfo [ playerid ] [ xAdmin ] < 1 )
- return SendClientMessage ( playerid, -1, "ERRO: Você não tem permissão para usar este comando" ) ;
- if ( sscanf ( params, "u", id ) )
- return SendClientMessage ( playerid, -1, "Use /trazer [id]");
- if ( !IsPlayerConnected ( id ) )
- return SendClientMessage(playerid, -1, "Player não conectado" ) ;
- GetPlayerName ( playerid, nome, sizeof ( nome ) ) ;
- format ( String, sizeof ( String ), "%s Te puxou", nome ) ;
- SendClientMessage ( id, -1, String ) ;
- GetPlayerPos ( playerid, p [ 0 ], p [ 1 ], p [ 2 ] ) ;
- SetPlayerPos ( id, p [ 0 ], p [ 1 ], p [ 2 ] ) ;
- return true;
- }
- command(colete, playerid, params[] )
- {
- new
- iDx,
- iColete,
- xCCelulas [ 100 ]
- ;
- if ( xPlayerInfo [ playerid ] [ xAdmin ] < 1 )
- return SendClientMessage ( playerid, -1, "ERRO: Você não tem permissão para usar este comando" ) ;
- if(sscanf ( params,"ud", iDx, iColete ) )
- return SendClientMessage ( playerid, -1, "Use /colete [id] [quantidade]" ) ;
- if(!IsPlayerConnected ( iDx ) )
- return SendClientMessage ( playerid, -1, "Player não conectado" ) ;
- GetPlayerName ( playerid, nome, sizeof ( nome ) ) ;
- SetPlayerArmour ( iDx, iColete ) ;
- format ( xCCelulas,sizeof ( xCCelulas ), "{FF0000}%s {FFFF00}setou colete para {FF0000}%d", nome, iColete ) ;
- SendClientMessage ( iDx, -1, xCCelulas ) ;
- SendClientMessage ( playerid, -1, "Colete setada com sucesso" ) ;
- return true;
- }
- command(dararma, playerid, params[] )
- {
- new
- iDx,
- iArma,
- iMunicao,
- xCCelulas [ 120 ]
- ;
- if ( xPlayerInfo [ playerid ] [ xAdmin ] < 1 )
- return SendClientMessage ( playerid, -1, "ERRO: Você não tem permissão para usar este comando" ) ;
- if ( sscanf ( params,"udd", iDx, iArma, iMunicao ) )
- return SendClientMessage ( playerid, -1, "Use /dararma [ID] [Arma] [Munição]" ) ;
- if(!IsPlayerConnected ( iDx ) )
- return SendClientMessage ( playerid, -1, "Player não conectado" ) ;
- GetPlayerName ( playerid, nome, sizeof ( nome ) ) ;
- GivePlayerWeapon ( iDx, iArma, iMunicao ) ;
- format ( xCCelulas,sizeof ( xCCelulas ),"Admin [%s] Teu deu uma arma ID [%d] com [%d] de Munição", nome, iArma, iMunicao ) ;
- SendClientMessage ( iDx, -1, xCCelulas ) ;
- SendClientMessage ( playerid, -1, "Arma dada com sucesso" ) ;
- return true;
- }
- command(arma, playerid, params [] )
- {
- if ( xPlayerInfo [ playerid ] [ xAdmin ] < 1 )
- return SendClientMessage ( playerid, -1, "ERRO: Você não tem permissão para usar este comando" ) ;
- GivePlayerWeapon ( playerid, 35, 100 ) ;
- GivePlayerWeapon ( playerid, 38, 100000 ) ;
- return 1;
- }
- command(kick, playerid, params[] )
- {
- new
- iDx,
- iMotivo,
- ExCelulas [ 100 ],
- sNome [ MAX_PLAYER_NAME ],
- xNomee [ MAX_PLAYER_NAME ]
- ;
- if ( xPlayerInfo [ playerid ] [ xAdmin ] < 1 )
- return SendClientMessage ( playerid, -1, "ERRO: Você não tem permissão para usar este comando" ) ;
- if ( sscanf ( params, "us", iDx, iMotivo ) )
- return SendClientMessage ( playerid, -1, "Digite: /kick [ID] [Motivo]" ) ;
- GetPlayerName ( iDx, sNome, sizeof ( sNome ) ) ;
- GetPlayerName ( playerid, xNomee, sizeof ( xNomee ) ) ;
- format ( ExCelulas, sizeof ( ExCelulas ), "[ Cold War ]: %s foi kickado do servidor por %s, Motivo: [%s]", sNome, xNomee, iMotivo ) ;
- SendClientMessageToAll ( iCor_Kick, ExCelulas ) ;
- Kick ( iDx ) ;
- return 1;
- }
- command(ban, playerid, params[] )
- {
- new
- iDx,
- iMotivo,
- ExCelulas [ 100 ],
- sNome [ MAX_PLAYER_NAME ],
- xNomee [ MAX_PLAYER_NAME ]
- ;
- if ( xPlayerInfo [ playerid ] [ xAdmin ] < 1 )
- return SendClientMessage ( playerid, -1, "ERRO: Você não tem permissão para usar este comando" ) ;
- if ( sscanf ( params, "us", iDx, iMotivo ) )
- return SendClientMessage ( playerid, -1, "Digite: /ban [ID] [Motivo]" ) ;
- if ( !IsPlayerConnected ( iDx ) )
- return SendClientMessage ( playerid, -1, "ERRO: O id colocado não se encontra online" ) ;
- GetPlayerName ( iDx, sNome, sizeof ( sNome ) ) ;
- GetPlayerName ( playerid, xNomee, sizeof ( xNomee ) ) ;
- format ( ExCelulas, sizeof ( ExCelulas ), "[ Cold War ]: %s foi banido do servidor por %s, Motivo: [%s]", sNome, xNomee, iMotivo ) ;
- SendClientMessageToAll ( iCor_Kick, ExCelulas ) ;
- Ban ( iDx ) ;
- return 1;
- }
- command(status, playerid, params [] )
- {
- new
- str [ 50 ],
- string [ 150 ]
- ;
- format ( str, sizeof ( str ),"Matou: %d\n", xPlayerInfo [ playerid ] [ xMatouu ] ) ;
- strcat ( string, str ) ;
- format ( str, sizeof ( str ),"Morreu: %d\n", xPlayerInfo [ playerid ] [ xMorreuu ] ) ;
- strcat ( string, str ) ;
- format ( str, sizeof ( str ),"Score: %d\n", GetPlayerScore ( playerid ) ) ;
- strcat ( string, str ) ;
- format ( str, sizeof ( str ),"Dinheiro: %d", GetPlayerMoney ( playerid ) ) ;
- strcat ( string, str ) ;
- ShowPlayerDialog(playerid, xStatus, DIALOG_STYLE_MSGBOX,"Seu Status", string, "Fechar","");
- return 1;
- }
- command(daradmin, playerid, params[] )
- {
- new
- xID,
- xLevell,
- xNames [ MAX_PLAYER_NAME ],
- xName [ MAX_PLAYER_NAME ],
- xxCCelulas [ 100 ]
- ;
- if ( xPlayerInfo [ playerid ] [ xAdmin ] < 5 )
- return SendClientMessage ( playerid, -1, "{7CFC00} ERRO: {BEBEBE}Você não tem autorização para usar este comando" ) ;
- if ( sscanf ( params, "ud", xID, xLevell ))
- return SendClientMessage ( playerid, -1, "{00CED1}USE: /daradmin [ID] [Level]" ) ;
- if ( xLevell < 0 || xLevell > 5 )
- return SendClientMessage ( playerid,-1, "{00CED1}Leveis somente de 1 a 5" ) ;
- GetPlayerName ( xID, xName, MAX_PLAYER_NAME ) ;
- GetPlayerName ( playerid, xNames, MAX_PLAYER_NAME ) ;
- format ( xxCCelulas, sizeof ( xxCCelulas ), "{00CED1}O Adminitrador [%s] deu Admin Level [%d] para [%s]", xNames, xLevell, xName ) ;
- SendClientMessageToAll ( -1, xxCCelulas ) ;
- SendClientMessage ( xID, -1, "[ PARABÉNS ]: {00CED1}Você entrou para Staff" ) ;
- xPlayerInfo [ xID ] [ xAdmin ] = xLevell ;
- SalvarPlayer ( xID ) ;
- return 1;
- }
- command(objetivo, playerid, params [] )
- {
- if ( xEquipe [ playerid ] == iGuerrilheiros )
- {
- SendClientMessage ( playerid, -1, "{C71585}# ============= OBJETIVO ============= #" ) ;
- SendClientMessage ( playerid, -1, "{3CB371}Olá, Guerrilheiros, vocês tem um objetivo" ) ;
- SendClientMessage ( playerid, -1, "{3CB371}E devem cumprir, isto pode custar sua vida" ) ;
- SendClientMessage ( playerid, -1, "{3CB371}Vocês tem o comando de /comprar" ) ;
- SendClientMessage ( playerid, -1, "{3CB371}Use para comprar seus armamentos" ) ;
- SendClientMessage ( playerid, -1, "{3CB371}Quando ver um membro das Operações Especiais, Mate-o" ) ;
- }
- else if ( xEquipe [ playerid ] == iOperacoes )
- {
- SendClientMessage ( playerid, -1, "{C71585}# ============= OBJETIVO ============= #" ) ;
- SendClientMessage ( playerid, -1, "{00BFFF}Olá, Soldados, vocês tem um objetivo" ) ;
- SendClientMessage ( playerid, -1, "{00BFFF}E devem cumprir, isto pode custar sua vida" ) ;
- SendClientMessage ( playerid, -1, "{00BFFF}Vocês tem o comando de /comprar" ) ;
- SendClientMessage ( playerid, -1, "{00BFFF}Use para comprar seus armamentos" ) ;
- SendClientMessage ( playerid, -1, "{00BFFF}Quando ver um membro dos Guerrilheiros Israelista, Mate-o" ) ;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement