Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- #include <a_samp>
- #include <zcmd>
- #include <sscanf2>
- #include <a_zones>
- //----==== variaveis ----====//
- new Text3D:Policial[MAX_PLAYERS];
- new Text3D:Civil[MAX_PLAYERS];
- new Text3D:Ladrao[MAX_PLAYERS];
- new PickupLadrao;
- new PickupPm;
- new Profissao[MAX_PLAYERS];
- enum PlayerInfo
- {
- AssaltouaCaixa
- }
- enum psInfo
- {
- dinamite
- }
- new PlayersInfo[MAX_PLAYERS][psInfo];
- new pInfo[MAX_PLAYERS][PlayerInfo];
- new Float:AssaltoX[MAX_PLAYERS];
- new Float:AssaltoY[MAX_PLAYERS];
- new Float:AssaltoZ[MAX_PLAYERS];
- new String[128];
- new caixa;
- new caixa2;
- new caixa3;
- new caixa4;
- new caixa5;
- new caixa6;
- new caixa7;
- new caixa8;
- new caixa9;
- new caixa10;
- //----==== definições ----====//
- #define CIVIL 0
- #define POLICIAL 1
- #define LADRAO 2
- #define tempoparaexplodir 10000
- #define tempoparaumnovocaixa 60000
- #define estrelas 2
- #define dinhero 1000
- //----==== color ----====//
- #define CORCIVILTAG 0xfcf172
- #define CORPOLICIALTAG 0x72e5fc
- #define CORLADRAOTAG 0xff6970
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- PickupPm = CreatePickup(1242, 0, 254.4980,76.5144,1003.6406, -1);
- Create3DTextLabel("Digite\n/equipm", -1 , 254.4980,76.5144,1003.6406, 10.0, 0, 0);
- PickupLadrao = CreatePickup(1654, 0, 1209.1448,-1999.3517,81.3859, -1);
- Create3DTextLabel("Digite\n/equiladrao", -1 , 1209.1448,-1999.3517,81.3859, 10.0, 0, 0);
- //==========================================================================================
- //Coloque em X, Y, Z
- caixa = CreateObject(2942, 1142.03601, -1762.05994, 13.23080, 0.00000, 0.00000, 174.66000);
- caixa2 = CreateObject(2942, 1367.46753, -1283.17358, 13.16540, 0.00000, 0.00000, -90.42000);
- caixa3 = CreateObject(2942, 1148.57678, -1772.64233, 16.20010, 0.00000, 0.00000, -176.34000);
- caixa4 = CreateObject(2942, 1070.86182, -1866.00525, 13.14770, 0.00000, 0.00000, -89.58000);
- caixa5 = CreateObject(2942, 1493.56433, -1022.13391, 23.39950, 0.00000, 0.00000, 0.00000);
- caixa6 = CreateObject(2942, 1336.97156, -1751.75830, 13.12390, 0.00000, 0.00000, 91.86000);
- caixa7 = CreateObject(2942, 1828.19751, -1405.80310, 13.02530, 0.00000, 0.00000, -180.24001);
- caixa8 = CreateObject(2942, 2235.82324, -1150.29150, 25.48200, 0.00000, 0.00000, -181.25999);
- caixa9 = CreateObject(2942, 1186.23511, -1377.27698, 13.18340, 0.00000, 0.00000, 88.92000);
- caixa10 = CreateObject(2942,429.11661, -1445.17566, 30.29910, 0.00000, 0.00000, -53.34000);
- Create3DTextLabel("{008B00}Caixa Eletronico\n{FFFFFF}/roubarcaixa{FFFFFF}' para utilizar", -1, 1142.03601, -1762.05994, 13.23080, 5, 0);
- Create3DTextLabel("{008B00}Caixa Eletronico\n{FFFFFF}/roubarcaixa{FFFFFF}' para utilizar", -1, 1367.46753, -1283.17358, 13.16540, 5, 0);
- Create3DTextLabel("{008B00}Caixa Eletronico\n{FFFFFF}/roubarcaixa{FFFFFF}' para utilizar", -1, 1148.57678, -1772.64233, 16.20010, 5, 0);
- Create3DTextLabel("{008B00}Caixa Eletronico\n{FFFFFF}/roubarcaixa{FFFFFF}' para utilizar", -1, 1070.86182, -1866.00525, 13.14770, 5, 0);
- Create3DTextLabel("{008B00}Caixa Eletronico\n{FFFFFF}/roubarcaixa{FFFFFF}' para utilizar", -1, 1493.56433, -1022.13391, 23.39950, 5, 0);
- Create3DTextLabel("{008B00}Caixa Eletronico\n{FFFFFF}/roubarcaixa{FFFFFF}' para utilizar", -1, 1336.97156, -1751.75830, 13.12390, 5, 0);
- Create3DTextLabel("{008B00}Caixa Eletronico\n{FFFFFF}/roubarcaixa{FFFFFF}' para utilizar", -1, 1828.19751, -1405.80310, 13.02530, 5, 0);
- Create3DTextLabel("{008B00}Caixa Eletronico\n{FFFFFF}/roubarcaixa{FFFFFF}' para utilizar", -1, 2235.82324, -1150.29150, 25.48200, 5, 0);
- Create3DTextLabel("{008B00}Caixa Eletronico\n{FFFFFF}/roubarcaixa{FFFFFF}' para utilizar", -1, 1186.23511, -1377.27698, 13.18340, 5, 0);
- Create3DTextLabel("{008B00}Caixa Eletronico\n{FFFFFF}/roubarcaixa{FFFFFF}' para utilizar", -1, 429.11661, -1445.17566, 30.29910, 5, 0);
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- // Don't use these lines if it's a filterscript
- SetGameModeText("Blank Script");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- 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("/mycommand", cmdtext, true, 10) == 0)
- {
- // Do something here
- return 1;
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- 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)
- {
- 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 OnPlayerUpdate(playerid)
- {
- 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[])
- {
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- //============================/virarpm /virarladrao /deixarorg==========================================
- CMD:virarpm(playerid, params[])
- {
- if(Profissao[playerid] == LADRAO) return SendClientMessage(playerid,-1,"[ {302c2c}<{ffffff}!{302c2c}>{ffffff} ]: Voce ja e de org!");
- SendClientMessage(playerid,-1,"{302c2c}<{ffffff}!{302c2c}>{ffffff}: Parabens, voce virou Policial");
- SendClientMessage(playerid,-1,"{302c2c}<{ffffff}!{302c2c}>{ffffff}: Para sair de sua profissao use /deixarorg");
- SetPlayerPos(playerid,1579.7618,-1634.1735,13.5624);
- Profissao[playerid] = POLICIAL; SetPlayerSkin(playerid, 280); Policial[playerid] = Create3DTextLabel("[POLICIAL]", CORPOLICIALTAG, 30.0, 40.0, 50.0, 40.0, -1); Attach3DTextLabelToPlayer(Ladrao[playerid], playerid, 0.0, 0.0, 0.4); Attach3DTextLabelToPlayer(Civil[playerid], playerid, 0.0, 0.0, 0.4);
- return 1;
- }
- CMD:virarladrao(playerid, params[])
- {
- if(Profissao[playerid] == POLICIAL) return SendClientMessage(playerid,-1,"{302c2c}<{ffffff}!{302c2c}>{ffffff}: Voce ja e de org!");
- SendClientMessage(playerid,-1,"{302c2c}<{ffffff}!{302c2c}>{ffffff}: Parabens, voce virou Ladrao");
- SendClientMessage(playerid,-1,"{302c2c}<{ffffff}!{302c2c}>{ffffff}: Para sair de sua profissao use /deixarorg");
- SetPlayerPos(playerid,1209.1448,-1999.3517,81.3859);
- Profissao[playerid] = LADRAO; SetPlayerSkin(playerid, 271); Ladrao[playerid] = Create3DTextLabel("[LADRAO]", CORLADRAOTAG, 30.0, 40.0, 50.0, 40.0, -1); Attach3DTextLabelToPlayer(Policial[playerid], playerid, 0.0, 0.0, 0.4); Attach3DTextLabelToPlayer(Civil[playerid], playerid, 0.0, 0.0, 0.4);
- return 1;
- }
- CMD:deixarorg(playerid, params[])
- {
- if(Profissao[playerid] == 0) return SendClientMessage(playerid,-1,"");
- SendClientMessage(playerid,-1,"{302c2c}<{ffffff}!{302c2c}>{ffffff}: Voce saiu de sua org!");
- SetPlayerPos(playerid,1479.2386,-1698.7811,14.0469);
- ResetPlayerWeapons(playerid);
- Profissao[playerid] = CIVIL; Profissao[playerid] = 0; SetPlayerSkin(playerid, 0); DisablePlayerCheckpoint(playerid); Civil[playerid] = Create3DTextLabel("[CIVIL]", CORCIVILTAG, 30.0, 40.0, 50.0, 40.0, -1); Attach3DTextLabelToPlayer(Ladrao[playerid], playerid, 0.0, 0.0, 0.4); Attach3DTextLabelToPlayer(Policial[playerid], playerid, 0.0, 0.0, 0.4);
- return 1;
- }
- CMD:equipm(playerid, params[])
- {
- if (Profissao[playerid] != POLICIAL) {
- return SendClientMessage(playerid, -1, "Não é um policial.");
- }
- if(!IsPlayerInRangeOfPoint(playerid, 2.0, 254.4980,76.5144,1003.6406)) return SendClientMessage(playerid,-1,"{302c2c}<{ffffff}!{302c2c}>{ffffff}: Voce nao esta no local correto!");
- GivePlayerWeapon(playerid, 31, 1000);
- GivePlayerWeapon(playerid, 0, 1);
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerWeapon(playerid, 3, 1);
- return 1;
- }
- CMD:equiladrao(playerid, params[])
- {
- if (Profissao[playerid] != LADRAO) {
- return SendClientMessage(playerid, -1, "Não é um ladrao.");
- }
- if(!IsPlayerInRangeOfPoint(playerid, 2.0, 1209.1448,-1999.3517,81.3859)) return SendClientMessage(playerid,-1,"{302c2c}<{ffffff}!{302c2c}>{ffffff}: Voce nao esta no local correto!");
- GivePlayerWeapon(playerid, 30, 1000);
- GivePlayerWeapon(playerid, 24, 1000);
- return 1;
- }
- //=============================================================================//
- CMD:algemar(playerid, params[])
- {
- new ID, Motivo;
- new Float:x, Float:y, Float:z;
- GetPlayerPos(ID, x,y,z);
- if(IsPlayerInRangeOfPoint(playerid, 2.0, x,y,z))
- {
- if(Profissao[playerid] == POLICIAL)
- {
- if(sscanf(params,"ds", ID, Motivo)) return SendClientMessage(playerid, 0xFF0000AA, "Modo de Uso: /algemar [ID] [Motivo]");
- SetPlayerAttachedObject(ID, 4, 19418, 6, -0.031999, 0.024000, -0.024000, -7.900000, -32.000011, -72.299987, 1.115998, 1.322000, 1.406000);
- SetPlayerSpecialAction(ID, 24);
- TogglePlayerControllable(ID, 0);
- }
- }
- GameTextForPlayer(ID, "~r~ ALGEMADO!", 5000, 5);
- return 1;
- }
- CMD:desalgemar(playerid, params[])
- {
- if(Profissao[playerid] == POLICIAL)
- {
- new Float:x, Float:y, Float:z;
- new id;
- GetPlayerPos(id, x,y,z);
- if(IsPlayerInRangeOfPoint(playerid, 2.0, x,y,z))
- {
- new ID, Motivo[23];
- if(sscanf(params,"ds", ID, Motivo)) return SendClientMessage(playerid, 0xFF0000AA, "Modo de Uso: /desalgemar [ID] [Motivo]");
- ClearAnimations(ID);
- RemovePlayerAttachedObject(ID,4);
- SetPlayerSpecialAction(ID, SPECIAL_ACTION_NONE);
- TogglePlayerControllable(ID, 1);
- GameTextForPlayer(ID, "~g~ DESALGEMADO!", 5000, 5);
- }
- }
- return 1;
- }
- CMD:prender(playerid, params[])
- {
- new ID, Motivo[23];
- new Float:x, Float:y, Float:z;
- GetPlayerPos(ID, x,y,z);
- if(IsPlayerInRangeOfPoint(playerid, 2.0, x,y,z))
- {
- new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
- GetPlayerName(playerid, pname, sizeof(pname));
- format(string, sizeof(string), "O Policial %s Fez Uma Prisão.", pname);
- SendClientMessageToAll(CORPOLICIALTAG, string);
- if(Profissao[playerid] == POLICIAL)
- {
- SetPlayerInterior(ID, 6);
- SetPlayerPos(ID, 265.0008,77.6659,1001.0391);
- GameTextForPlayer(ID, "~g~ PRESO!", 5000, 5);
- TogglePlayerControllable(ID, 1);
- SetPlayerHealth(ID, 54546546556484);
- }
- }
- {
- if(sscanf(params,"ds", ID, Motivo)) return SendClientMessage(playerid, 0xFF0000AA, "Modo de Uso: /prender [ID] [Motivo]");
- }
- return 1;
- }
- //==============================================================================
- CMD:roubarcaixa(playerid)
- {
- {
- {
- if (Profissao[playerid] != LADRAO) {
- return SendClientMessage(playerid, -1, "Não é um ladrão.");
- }
- if(PlayersInfo[playerid][dinamite] != 1) return SendClientMessage(playerid, -1, "[ERRO]voce nao tem dinamite!");
- if(pInfo[playerid][AssaltouaCaixa] == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 1.5, 1142.03601, -1762.05994, 13.23080) || IsPlayerInRangeOfPoint(playerid, 1.5, 1367.46753, -1283.17358, 13.16540) || IsPlayerInRangeOfPoint(playerid, 1.5, 1148.57678, -1772.64233, 16.20010) || IsPlayerInRangeOfPoint(playerid, 1.5, 1070.86182, -1866.00525, 13.14770) || IsPlayerInRangeOfPoint(playerid, 1.5, 1493.56433, -1022.13391, 23.39950) || IsPlayerInRangeOfPoint(playerid, 1.5, 1336.97156, -1751.75830, 13.12390)
- || IsPlayerInRangeOfPoint(playerid, 1.5, 1828.19751, -1405.80310, 13.02530) || IsPlayerInRangeOfPoint(playerid, 1.5, 2235.82324, -1150.29150, 25.48200) || IsPlayerInRangeOfPoint(playerid, 1.5, 1186.23511, -1377.27698, 13.18340) || IsPlayerInRangeOfPoint(playerid, 1.5, 429.11661, -1445.17566, 30.29910))
- {
- pInfo[playerid][AssaltouaCaixa] = 1;
- SendClientMessage(playerid, 0xFF4040AA, "| ASSALTO | O Caixa eletronico ira explodir, afaste-se!");
- ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.1, 0, 0, 0, 0, 0);
- SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + estrelas);
- SetTimerEx("ExplodirCaixa", tempoparaexplodir, false, "i", playerid);
- GetPlayerPos(playerid, AssaltoX[playerid], AssaltoY[playerid], AssaltoZ[playerid]);
- new zone[MAX_ZONE_NAME];
- GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
- for(new i; i < MAX_PLAYERS; i++)
- {
- }
- }
- }
- else
- {
- return SendClientMessage(playerid, 0xFF4500FF, "| ERRO | Voce ja assaltou um caixa eletronico recentemente");
- }
- }
- return 1;
- }
- }
- //FIM DA GM
- forward ExplodirCaixa(playerid);
- public ExplodirCaixa(playerid)
- {
- if(IsPlayerInRangeOfPoint(playerid, 50.5, 1142.03601, -1762.05994, 13.23080))
- {
- GivePlayerMoney(playerid, dinhero);
- format(String, sizeof(String), "~r~ASSALTO EFETUADO~n~~g~$%d", dinhero);
- GameTextForPlayer(playerid, String, 9000, 5);
- CreateExplosion(AssaltoX[playerid], AssaltoY[playerid], AssaltoZ[playerid], 2, 10.0);
- SendClientMessage(playerid, 0xFF4040AA, "| ASSALTO | Voce explodiu o caixa eletronico e levou todo o dinheiro");
- PlayersInfo[playerid][dinamite] = 0;
- DestroyObject(caixa);
- caixa = CreateObject(2943,1142.03601, -1762.05994, 13.23080, 0.00000, 0.00000, 174.66000);
- SetTimerEx("novocaixa", tempoparaumnovocaixa, false, "i", playerid);
- }
- if(IsPlayerInRangeOfPoint(playerid, 50.5, 1367.46753, -1283.17358, 13.16540))
- {
- GivePlayerMoney(playerid, dinhero);
- format(String, sizeof(String), "~r~ASSALTO EFETUADO~n~~g~$%d", dinhero);
- GameTextForPlayer(playerid, String, 9000, 5);
- CreateExplosion(AssaltoX[playerid], AssaltoY[playerid], AssaltoZ[playerid], 2, 10.0);
- SendClientMessage(playerid, 0xFF4040AA, "| ASSALTO | Voce explodiu o caixa eletronico e levou todo o dinheiro");
- PlayersInfo[playerid][dinamite] = 0;
- DestroyObject(caixa2);
- caixa2 = CreateObject(2943,1367.46753, -1283.17358, 13.16540, 0.00000, 0.00000, -90.42000);
- SetTimerEx("novocaixa", tempoparaumnovocaixa, false, "i", playerid);
- }
- if(IsPlayerInRangeOfPoint(playerid, 50.5, 1148.57678, -1772.64233, 16.20010))
- {
- GivePlayerMoney(playerid, dinhero);
- format(String, sizeof(String), "~r~ASSALTO EFETUADO~n~~g~$%d", dinhero);
- GameTextForPlayer(playerid, String, 9000, 5);
- CreateExplosion(AssaltoX[playerid], AssaltoY[playerid], AssaltoZ[playerid], 2, 10.0);
- SendClientMessage(playerid, 0xFF4040AA, "| ASSALTO | Voce explodiu o caixa eletronico e levou todo o dinheiro");
- PlayersInfo[playerid][dinamite] = 0;
- DestroyObject(caixa3);
- caixa3 = CreateObject(2943,1148.57678, -1772.64233, 16.20010, 0.00000, 0.00000, -176.34000);
- SetTimerEx("novocaixa", tempoparaumnovocaixa, false, "i", playerid);
- }
- if(IsPlayerInRangeOfPoint(playerid, 50.5, 1070.86182, -1866.00525, 13.14770))
- {
- GivePlayerMoney(playerid, dinhero);
- format(String, sizeof(String), "~r~ASSALTO EFETUADO~n~~g~$%d", dinhero);
- GameTextForPlayer(playerid, String, 9000, 5);
- CreateExplosion(AssaltoX[playerid], AssaltoY[playerid], AssaltoZ[playerid], 2, 10.0);
- SendClientMessage(playerid, 0xFF4040AA, "| ASSALTO | Voce explodiu o caixa eletronico e levou todo o dinheiro");
- PlayersInfo[playerid][dinamite] = 0;
- DestroyObject(caixa4);
- caixa4 = CreateObject(2943, 1070.86182, -1866.00525, 13.14770, 0.00000, 0.00000, -89.58000);
- SetTimerEx("novocaixa", tempoparaumnovocaixa, false, "i", playerid);
- }
- if(IsPlayerInRangeOfPoint(playerid, 50.5, 1493.56433, -1022.13391, 23.39950))
- {
- GivePlayerMoney(playerid, dinhero);
- format(String, sizeof(String), "~r~ASSALTO EFETUADO~n~~g~$%d", dinhero);
- GameTextForPlayer(playerid, String, 9000, 5);
- CreateExplosion(AssaltoX[playerid], AssaltoY[playerid], AssaltoZ[playerid], 2, 10.0);
- SendClientMessage(playerid, 0xFF4040AA, "| ASSALTO | Voce explodiu o caixa eletronico e levou todo o dinheiro");
- PlayersInfo[playerid][dinamite] = 0;
- DestroyObject(caixa5);
- caixa5 = CreateObject(2943,1493.56433, -1022.13391, 23.39950, 0.00000, 0.00000, 0.00000);
- SetTimerEx("novocaixa", tempoparaumnovocaixa, false, "i", playerid);
- }
- if(IsPlayerInRangeOfPoint(playerid, 50.5, 1336.97156, -1751.75830, 13.12390))
- {
- GivePlayerMoney(playerid, dinhero);
- format(String, sizeof(String), "~r~ASSALTO EFETUADO~n~~g~$%d", dinhero);
- GameTextForPlayer(playerid, String, 9000, 5);
- CreateExplosion(AssaltoX[playerid], AssaltoY[playerid], AssaltoZ[playerid], 2, 10.0);
- SendClientMessage(playerid, 0xFF4040AA, "| ASSALTO | Voce explodiu o caixa eletronico e levou todo o dinheiro");
- PlayersInfo[playerid][dinamite] = 0;
- DestroyObject(caixa6);
- caixa6 = CreateObject(2943,1336.97156, -1751.75830, 13.12390, 0.00000, 0.00000, 91.86000);
- SetTimerEx("novocaixa", tempoparaumnovocaixa, false, "i", playerid);
- }
- if(IsPlayerInRangeOfPoint(playerid, 50.5, 1828.19751, -1405.80310, 13.02530))
- {
- GivePlayerMoney(playerid, dinhero);
- format(String, sizeof(String), "~r~ASSALTO EFETUADO~n~~g~$%d", dinhero);
- GameTextForPlayer(playerid, String, 9000, 5);
- CreateExplosion(AssaltoX[playerid], AssaltoY[playerid], AssaltoZ[playerid], 2, 10.0);
- SendClientMessage(playerid, 0xFF4040AA, "| ASSALTO | Voce explodiu o caixa eletronico e levou todo o dinheiro");
- PlayersInfo[playerid][dinamite] = 0;
- DestroyObject(caixa7);
- caixa7 = CreateObject(2943,1828.19751, -1405.80310, 13.02530, 0.00000, 0.00000, -180.24001);
- SetTimerEx("novocaixa", tempoparaumnovocaixa, false, "i", playerid);
- }
- if(IsPlayerInRangeOfPoint(playerid, 50.5, 2235.82324, -1150.29150, 25.48200))
- {
- GivePlayerMoney(playerid, dinhero);
- format(String, sizeof(String), "~r~ASSALTO EFETUADO~n~~g~$%d", dinhero);
- GameTextForPlayer(playerid, String, 9000, 5);
- CreateExplosion(AssaltoX[playerid], AssaltoY[playerid], AssaltoZ[playerid], 2, 10.0);
- SendClientMessage(playerid, 0xFF4040AA, "| ASSALTO | Voce explodiu o caixa eletronico e levou todo o dinheiro");
- PlayersInfo[playerid][dinamite] = 0;
- DestroyObject(caixa8);
- caixa8 = CreateObject(2943,2235.82324, -1150.29150, 25.48200, 0.00000, 0.00000, -181.25999);
- SetTimerEx("novocaixa", tempoparaumnovocaixa, false, "i", playerid);
- }
- if(IsPlayerInRangeOfPoint(playerid, 50.5, 1186.23511, -1377.27698, 13.18340))
- {
- GivePlayerMoney(playerid, dinhero);
- format(String, sizeof(String), "~r~ASSALTO EFETUADO~n~~g~$%d", dinhero);
- GameTextForPlayer(playerid, String, 9000, 5);
- CreateExplosion(AssaltoX[playerid], AssaltoY[playerid], AssaltoZ[playerid], 2, 10.0);
- SendClientMessage(playerid, 0xFF4040AA, "| ASSALTO | Voce explodiu o caixa eletronico e levou todo o dinheiro");
- PlayersInfo[playerid][dinamite] = 0;
- DestroyObject(caixa9);
- caixa9 = CreateObject(2943,1186.23511, -1377.27698, 13.18340, 0.00000, 0.00000, 88.92000);
- SetTimerEx("novocaixa", tempoparaumnovocaixa, false, "i", playerid);
- }
- if(IsPlayerInRangeOfPoint(playerid, 50.5, 429.11661, -1445.17566, 30.29910))
- {
- GivePlayerMoney(playerid, dinhero);
- format(String, sizeof(String), "~r~ASSALTO EFETUADO~n~~g~$%d", dinhero);
- GameTextForPlayer(playerid, String, 9000, 5);
- CreateExplosion(AssaltoX[playerid], AssaltoY[playerid], AssaltoZ[playerid], 2, 10.0);
- SendClientMessage(playerid, 0xFF4040AA, "| ASSALTO | Voce explodiu o caixa eletronico e levou todo o dinheiro");
- PlayersInfo[playerid][dinamite] = 0;
- DestroyObject(caixa10);
- caixa10 = CreateObject(2943,429.11661, -1445.17566, 30.29910, 0.00000, 0.00000, -53.34000);
- SetTimerEx("novocaixa", tempoparaumnovocaixa, false, "i", playerid);
- }
- return 1;
- }
- forward novocaixa(playerid);
- public novocaixa(playerid)
- {
- DestroyObject(caixa);
- DestroyObject(caixa2);
- DestroyObject(caixa3);
- DestroyObject(caixa4);
- DestroyObject(caixa5);
- DestroyObject(caixa6);
- DestroyObject(caixa7);
- DestroyObject(caixa8);
- DestroyObject(caixa9);
- DestroyObject(caixa10);
- caixa = CreateObject(2942,1142.03601, -1762.05994, 13.23080, 0.00000, 0.00000, 174.66000);
- caixa2 = CreateObject(2942, 1367.46753, -1283.17358, 13.16540, 0.00000, 0.00000, -90.42000);
- caixa3 = CreateObject(2942, 1148.57678, -1772.64233, 16.20010, 0.00000, 0.00000, -176.34000);
- caixa4 = CreateObject(2942, 1070.86182, -1866.00525, 13.14770, 0.00000, 0.00000, -89.58000);
- caixa5 = CreateObject(2942, 1493.56433, -1022.13391, 23.39950, 0.00000, 0.00000, 0.00000);
- caixa6 = CreateObject(2942, 1336.97156, -1751.75830, 13.12390, 0.00000, 0.00000, 91.86000);
- caixa7 = CreateObject(2942, 1828.19751, -1405.80310, 13.02530, 0.00000, 0.00000, -180.24001);
- caixa8 = CreateObject(2942, 2235.82324, -1150.29150, 25.48200, 0.00000, 0.00000, -181.25999);
- caixa9 = CreateObject(2942, 1186.23511, -1377.27698, 13.18340, 0.00000, 0.00000, 88.92000);
- caixa10 = CreateObject(2942, 429.11661, -1445.17566, 30.29910, 0.00000, 0.00000, -53.34000);
- SendClientMessageToAll(-1, "Os Caixa De Los Santos Pode Ser Assataldo De Novo");
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- pInfo[i][AssaltouaCaixa] = 0;
- }
- }
- return 1;
- }
- stock PlayerName(playerid)
- {
- new
- gName[MAX_PLAYER_NAME + 1];
- GetPlayerName(playerid, gName, sizeof(gName));
- return gName;
- }
- CMD:dinamites(playerid)
- {
- if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, -1 , "[ERRO]: Você não Tem Dinheiro Suficiente!");
- if (Profissao[playerid] != LADRAO) {
- return SendClientMessage(playerid, -1, "Não é um ladrão.");
- }
- GivePlayerMoney(playerid, -700);
- PlayersInfo[playerid][dinamite] = 1;
- SendClientMessage(playerid, -1, "voce comprou uma dinamite por $1000 Dolares");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement