Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //======= Aces FS este pentru distractie nu de vanzare=======
- //======== Teddy Pentru Tine===========================
- //==== Y!M alvasy nick Sirvasy =================================
- #include <a_samp>
- #define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
- #define COLOR_DARKGOLD 0x808000AA
- #define COLOR_RED 0xFF0000AA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_AQUA 0x00FFFFFF
- #define COL_GREEN "{6EF83C}"
- #define TEAM_AZTECAS_COLOR 0x01FCFFC8
- new PompierJob[256];
- new info;
- forward busroutestoptimer(playerid);
- public OnFilterScriptInit()
- {
- info = CreatePickup(1239,1,1112.0814,-1250.2550,15.9391,-1);
- //== Masini =====
- AddStaticVehicleEx(407, 1103.3850, -1246.4249, 16.0418, 0.0000, -1, -1, 100);
- AddStaticVehicleEx(407, 1095.1766, -1245.9021, 16.0418, 0.0000, -1, -1, 100);
- AddStaticVehicleEx(407, 1086.6315, -1246.2279, 16.0418, 0.0000, -1, -1, 100);
- AddStaticVehicleEx(407, 1086.6494, -1227.3779, 16.0418, 271.3036, -1, -1, 100);
- // ===Cladire Pompieri ======
- CreateObject(11008, 1099.30066, -1261.38281, 20.22270, 0.00000, -6.00000, 90.00000);// casa la job Pompier
- CreateObject(3255, 1099.55139, -1185.04590, 17.02541, 0.00000, 0.00000, 270.48352);
- CreateObject(3643, 1099.36389, -1189.03284, 25.69979, 0.00000, 0.00000, 0.00000);
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp("/Pompier", cmdtext, true, 10) == 0)
- {
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 407)
- {
- PompierJob[playerid] = 1;
- new name[MAX_PLAYER_NAME], string[90];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "* %s Este Pompier.", name );
- SendClientMessageToAll(COLOR_AQUA, string);
- GameTextForPlayer(playerid, "~g~!!~w~Ai inceput sa ~r~Lucrezi~b~Succes~g~!!!...", 2000, 5);
- SetPlayerCheckpoint(playerid,1099.0345,-1194.4751,18.1079,4);
- GivePlayerWeapon(playerid, 42, 99999);
- SendClientMessage(playerid,COLOR_YELLOW,"* Dute Si stinge focul!");
- return 1;
- }
- SendClientMessage(playerid, COLOR_RED,"Doar cu masina de Pompier Incepi jobu!");
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 407)
- {
- SendClientMessage(playerid, COLOR_RED, "* Tasteaza /pompier ");
- }
- return 0;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 407)
- {
- if(PompierJob[playerid] == 1)
- {
- PompierJob[playerid] = 2;
- SetTimerEx("Descarca", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~Incarca Apa...", 2000, 5);
- SetPlayerCheckpoint(playerid,1099.0345,-1194.4751,18.1079,4);//2
- SendClientMessage(playerid,COLOR_AQUA,"* Dute Si stinge focul!");
- SetTimerEx("busroutestoptimer", 3000, false, "i", playerid);
- TogglePlayerControllable(playerid, 0);
- }
- else if(PompierJob[playerid] == 2)
- {
- PompierJob[playerid] = 3;
- SetTimerEx("busroutestoptimer", 3000, false, "i", playerid);
- TogglePlayerControllable(playerid, 0);
- SetPlayerCheckpoint(playerid,2449.0610, -1274.9933, 23.4286,4);//1
- SendClientMessage(playerid,COLOR_AQUA,"*Stinge focu si Intoarcete la baza!");
- }
- else if(PompierJob[playerid] == 3)
- {
- PompierJob[playerid] = 4;
- SetPlayerCheckpoint(playerid,1099.0345,-1194.4751,18.1079,4);//2
- GameTextForPlayer(playerid, "~g~Incarca Apa...", 2000, 5);
- SendClientMessage(playerid,COLOR_AQUA,"* Dute Si stinge focul!");
- SetTimerEx("busroutestoptimer", 3000, false, "i", playerid);
- TogglePlayerControllable(playerid, 0);
- CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
- CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
- CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
- CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
- CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
- CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
- CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
- CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
- CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
- CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
- CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
- CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
- CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
- CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
- CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
- CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
- CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
- CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
- CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
- CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
- CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
- CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
- CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
- CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
- CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
- CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
- CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
- CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
- CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
- CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
- CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
- CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
- CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
- CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
- CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
- CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
- CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
- CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
- CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
- CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
- CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
- CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
- CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
- CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
- CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
- CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
- CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
- CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
- CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
- CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
- CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
- CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
- CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
- CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
- CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
- CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
- CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
- CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
- CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
- CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
- CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
- CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
- CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
- CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
- CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
- CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
- CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
- CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
- CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
- CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
- }
- else if(PompierJob[playerid] == 4)
- {
- PompierJob[playerid] = 5;
- SetPlayerCheckpoint(playerid,807.4693, -1690.9219, 12.3747,4);//3
- SetTimerEx("busroutestoptimer", 3000, false, "i", playerid);
- TogglePlayerControllable(playerid, 0);
- SendClientMessage(playerid,COLOR_YELLOW,"* Dute stinge focu!");
- }
- else if(PompierJob[playerid] == 5)
- {
- PompierJob[playerid] = 6;
- SetPlayerCheckpoint(playerid,1099.0345,-1194.4751,18.1079,4);//3
- SetTimerEx("busroutestoptimer", 3000, false, "i", playerid);
- TogglePlayerControllable(playerid, 0);
- SendClientMessage(playerid,COLOR_YELLOW,"*Stinge focu si Intoarcete la baza!");
- CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
- CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
- CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
- CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
- CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
- CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
- CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
- CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
- CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
- CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
- CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
- CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
- CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
- CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
- CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
- CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
- CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
- CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
- CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
- CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
- CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
- CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
- CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
- CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
- CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
- CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
- CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
- CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
- CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
- CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
- CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
- CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
- CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
- CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
- CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
- CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
- CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
- CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
- CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
- CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
- CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
- CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
- CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
- CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
- CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
- CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
- CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
- CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
- CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
- CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
- CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
- CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
- CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
- CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
- CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
- CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
- CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
- CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
- CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
- CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
- CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
- CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
- CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
- CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
- CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
- CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
- CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
- CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
- CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
- CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
- CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
- }
- else if(PompierJob[playerid] == 6)
- {
- PompierJob[playerid] = 0;
- SetPlayerCheckpoint(playerid,1099.0345,-1194.4751,18.1079,4);//40
- GameTextForPlayer(playerid, "~g~!!~w~Felicitati ai primit ~r~100~b~k ~g~!!!...", 2000, 5);
- GivePlayerCash(playerid, 100000); //You can edit this
- SetVehicleToRespawn(GetPlayerVehicleID(playerid));
- RemovePlayerFromVehicle(playerid);
- DisablePlayerCheckpoint(playerid);
- SendClientMessage(playerid,COLOR_AQUA,"* felicitari ai primit 100000 $!");
- }
- }
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == info)
- {
- GameTextForPlayer(playerid, "~g~Pompier,~w~Tasteaza din masina ~r~/pompier~w~,Stinge Focurile si castigi ~g~100k", 3000, 3);
- }
- }
- public busroutestoptimer(playerid)
- {
- if(IsPlayerConnected(playerid))
- {
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 407)
- {
- TogglePlayerControllable(playerid, 1);
- SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Acum poti sa te misti!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement