Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Job Miner By Uzzi25 #PAWNO.RO
- Un job Simplu si Eficient !
- Actorii:
- new MinerActor;
- MinerActor = CreateActor(27, -397.0946,2265.6475,41.8199,287.1107);
- SetActorInvulnerable(MinerActor, true);
- ApplyActorAnimation(MinerActor, "PED","IDLE_CHAT",4.0,1,0,0,1,1);
- Materiale si Marfa:
- new marfap[MAX_PLAYERS];
- new materialmine[MAX_PLAYERS];
- Dupa ce Livrezi Incarcatura comanda [/descarca]
- if(IsPlayerInRangeOfPoint(playerid, 5.0, -388.3176,2228.2351,42.4297))
- {
- if(marfap[playerid] == 1)
- {
- if(materialmine[playerid] == 1)
- {
- marfap[playerid] = 0; GivePlayerMoney(playerid, 3500);
- SetTimerEx("miner1",100, false, "i", playerid);
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "Ai primit 3500$ pentru 6kg {F1F50A}aur");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "MINER:Intoarcete in mina pentur a aduce {F1F50A}alta incarcatura");
- SetPlayerCheckpoint(playerid,-446.7098,1444.1129,21.2195,8.0);
- ApplyAnimation(playerid,"CARRY","liftup05",4.0,0,0,0,1,1,1); RemovePlayerAttachedObject(playerid, 0); ClearAnimations(playerid);
- }
- else if(materialmine[playerid] == 2)
- {
- marfap[playerid] = 0; GivePlayerMoney(playerid, 3350);
- SetTimerEx("miner1",100, false, "i", playerid);
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "Ai primit 3350$ pentru 7kg {98F10A}uraniu");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "MINER:Intoarcete in mina pentur a aduce {98F10A}alta incarcatura");
- SetPlayerCheckpoint(playerid,-446.7098,1444.1129,21.2195,8.0);
- ApplyAnimation(playerid,"CARRY","liftup05",4.0,0,0,0,1,1,1); RemovePlayerAttachedObject(playerid, 0); ClearAnimations(playerid);
- }
- else if(materialmine[playerid] == 3)
- {
- marfap[playerid] = 0; GivePlayerMoney(playerid, 3400);
- SetTimerEx("miner1",100, false, "i", playerid);
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "Ai primit 3400$ pentru 8kg {F2F6EB}argint");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "MINER:Intoarcete in mina pentur a aduce {F2F6EB}alta incarcatura");
- SetPlayerCheckpoint(playerid,-446.7098,1444.1129,21.2195,8.0);
- ApplyAnimation(playerid,"CARRY","liftup05",4.0,0,0,0,1,1,1); RemovePlayerAttachedObject(playerid, 0); ClearAnimations(playerid);
- }
- else if(materialmine[playerid] == 4)
- {
- marfap[playerid] = 0; GivePlayerMoney(playerid, 3350);
- SetTimerEx("miner1",100, false, "i", playerid);
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "Ai primit 3350$ pentru 10kg {5B4A2F}cupru");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "MINER:Intoarcete in mina pentur a aduce {5B4A2F}alta incarcatura");
- SetPlayerCheckpoint(playerid,-446.7098,1444.1129,21.2195,8.0);
- ApplyAnimation(playerid,"CARRY","liftup05",4.0,0,0,0,1,1,1); RemovePlayerAttachedObject(playerid, 0); ClearAnimations(playerid);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "MINER:: Dute si fa rost de marfa!");
- }
- }
- }
- Functi pentru comanda [/sapa sau /foreaza]
- function miner1(playerid)
- {
- ClearAnimations(playerid);
- return 1;
- }
- function miner(playerid)
- {
- new RandomMaterial = random(4);
- switch(RandomMaterial)
- {
- case 0:
- {
- ClearAnimations(playerid);
- marfap[playerid] = 1;
- SendClientMessage(playerid, 0xFFFFFFFF, "Transporta aurul la depozit!");
- SendClientMessage(playerid, 0xFFFFFFFF, "Dute afara si urcate intr-o masian pentru a livra incarcatura");
- ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,1,0,0,1,1,1);
- SetPlayerAttachedObject(playerid,0,2060,14,0.247998,-0.191998,0.132000,100.499984,10.199997,-102.599983,0.518998,0.708000,1.068999, 0xFFFFFF00);
- materialmine[playerid] = 1;//Aur
- }
- case 1:
- {
- ClearAnimations(playerid);
- marfap[playerid] = 1;
- SendClientMessage(playerid, 0xFFFFFFFF, "Transporta uraniul la depozit!");
- SendClientMessage(playerid, 0xFFFFFFFF, "Dute afara si urcate intr-o masian pentru a livra incarcatura");
- ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,1,0,0,1,1,1);
- SetPlayerAttachedObject(playerid,0,2060,14,0.247998,-0.191998,0.132000,100.499984,10.199997,-102.599983,0.518998,0.708000,1.068999, 0xFF09FF00);
- materialmine[playerid] = 2;//Uraniu
- }
- case 2:
- {
- ClearAnimations(playerid);
- marfap[playerid] = 1; SendClientMessage(playerid, 0xFFFFFFFF, "Transporta argint-ul la depozit!");
- SendClientMessage(playerid, 0xFFFFFFFF, "Dute afara si urcate intr-o masian pentru a livra incarcatura");
- ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,1,0,0,1,1,1);
- SetPlayerAttachedObject(playerid,0,2060,14,0.247998,-0.191998,0.132000,100.499984,10.199997,-102.599983,0.518998,0.708000,1.068999, 0xFFB7B9B7);
- materialmine[playerid] = 3;//Argint
- }
- case 3:
- {
- ClearAnimations(playerid);
- marfap[playerid] = 1; SendClientMessage(playerid, 0xFFFFFFFF, "Transporta cuprul la depozit!");
- SendClientMessage(playerid, 0xFFFFFFFF, "Dute afara si urcate intr-o masian pentru a livra incarcatura");
- ApplyAnimation(playerid,"CARRY","crry_prtial",4.0,1,0,0,1,1,1);
- SetPlayerAttachedObject(playerid,0,2060,14,0.247998,-0.191998,0.132000,100.499984,10.199997,-102.599983,0.518998,0.708000,1.068999, 0xFFAB4444);
- materialmine[playerid] = 4;//Cupru
- }
- }
- return 1;
- }
- Masini Miner & Deposit
- //==================MASINIMINER==========================================================
- AddStaticVehicle(422,-467.3516,1494.5081,24.0462,89.9865,1,0); //
- AddStaticVehicle(422,-467.0938,1500.6605,25.1556,83.6650,1,0); //
- AddStaticVehicle(422,-466.7456,1505.5255,26.0492,87.0208,1,0); //
- AddStaticVehicle(422,-466.6813,1512.5221,27.3436,86.2412,1,0); //
- AddStaticVehicle(422,-453.8950,1444.4829,20.9529,29.1239,1,0); //
- //=======================MASINIMINERDEPOSIT=============================================
- AddStaticVehicle(578, -380.3171, 2275.2781, 42.5698, -167.0000, -1, -1, 100);
- AddStaticVehicle(578, -387.7323, 2273.4001, 42.5698, -167.0000, -1, -1, 100);
- AddStaticVehicle(578, -384.2461, 2274.2292, 42.5698, -167.0000, -1, -1, 100);
- Text de Unde poti Lua jobul Miner
- Create3DTextLabel ("{5EFB6E}Miner\n{ffffff}/jobs pentru a lua jobul", 0xFFFFFFFF, -468.0940,1471.4681,22.3786, 20, 0);
- AddStaticPickup(1275, 23, -468.0940,1471.4681,22.3786); // miner
- Comenzii Job Miner
- if(strcmp(cmd, "/foreaza", true) == 0 || strcmp(cmd, "/sapa", true) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 5.0,-412.8420,1343.8107,13.1168))
- {
- if(PlayerOnMission[playerid] > 0)
- {
- SendClientMessage(playerid, COLOR_GREY, " On a mission right now, can't use this command !");
- return 1;
- }
- if(PlayerInfo[playerid][pJob] == 20)
- {
- if(marfap[playerid] == 0)
- {
- ApplyAnimation(playerid,"CHAINSAW","WEAPON_csawlo",4.0,0,0,0,1,3000,0);
- SetTimerEx("miner",3000, false, "i", playerid);
- CP[playerid] = 546;
- SetPlayerCheckpoint(playerid,-396.4109,2265.7976,41.7995,3.0);
- }
- else
- {
- SendClientMessage(playerid, 0xFFFFFFFF, "Mineri: Rezolva acest transport!");
- }
- }
- else
- {
- SendClientMessage(playerid, 0xFFFFFFFF, "Mineri: Nu esti miner!");
- }
- }
- else
- {
- SendClientMessage(playerid, 0xFFFFFFFF, "Mineri: Nu te aflii la mina!");
- }
- return 1;
- }
- if(strcmp(cmd, "/descarca", true) == 0)
- {
- if(PlayerInfo[playerid][pJob] == 20)
- {
- if(IsPlayerInRangeOfPoint(playerid, 5.0, -397.0946,2265.6475,41.8199))
- {
- if(marfap[playerid] == 1)
- {
- if(materialmine[playerid] == 1)
- {
- marfap[playerid] = 0; GivePlayerMoney(playerid, 1000);
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "Ai primit 1000$ pentru 6kg {F1F50A}aur");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "Intoarcete in mina pentur a aduce {F1F50A}alta incarcatura");
- SetPlayerCheckpoint(playerid,-412.8420,1343.8107,13.1168,3.0);
- ApplyAnimation(playerid,"CARRY","liftup05",4.0,0,0,0,1,1,1); RemovePlayerAttachedObject(playerid, 0); ClearAnimations(playerid);
- }
- else if(materialmine[playerid] == 2)
- {
- marfap[playerid] = 0; GivePlayerMoney(playerid, 850);
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "Ai primit 850$ pentru 7kg {98F10A}uraniu");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "Intoarcete in mina pentur a aduce {F1F50A}alta incarcatura");
- SetPlayerCheckpoint(playerid,-412.8420,1343.8107,13.1168,3.0);
- ApplyAnimation(playerid,"CARRY","liftup05",4.0,0,0,0,1,1,1); RemovePlayerAttachedObject(playerid, 0); ClearAnimations(playerid);
- }
- else if(materialmine[playerid] == 3)
- {
- marfap[playerid] = 0; GivePlayerMoney(playerid, 800);
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "Ai primit 800$ pentru 8kg {F2F6EB}argint");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "Intoarcete in mina pentur a aduce {F1F50A}alta incarcatura");
- SetPlayerCheckpoint(playerid,-412.8420,1343.8107,13.1168,3.0);
- ApplyAnimation(playerid,"CARRY","liftup05",4.0,0,0,0,1,1,1); RemovePlayerAttachedObject(playerid, 0); ClearAnimations(playerid);
- }
- else if(materialmine[playerid] == 4)
- {
- marfap[playerid] = 0; GivePlayerMoney(playerid, 750);
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "Ai primit 750$ pentru 10kg {5B4A2F}cupru");
- SendClientMessage(playerid, COLOR_LIGHTGREEN, "Intoarcete in mina pentur a aduce {F1F50A}alta incarcatura");
- SetPlayerCheckpoint(playerid,-412.8420,1343.8107,13.1168,3.0);
- ApplyAnimation(playerid,"CARRY","liftup05",4.0,0,0,0,1,1,1); RemovePlayerAttachedObject(playerid, 0); ClearAnimations(playerid);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Mina: Dute si fa rost de marfa!");
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "Mina: Nu te aflii la zona de descarcare!");
- }
- }
- else
- {
- SendClientMessage(playerid, 0xFFFFFFFF, "Nu ai un job care sa necesite aceasta comanda!");
- }
- return 1;
- }
- Comanda Pentru Teleportare la Job
- if(strcmp(cmd, "/gotojobminer", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] >= 1 && AdminDuty[playerid] == 1 || PlayerInfo[playerid][pHelper] >= 1 && HelperDuty[playerid] == 1)
- {
- if (GetPlayerState(playerid) == 2)
- {
- new tmpcar = GetPlayerVehicleID(playerid);
- SetVehiclePos(tmpcar, 471.1079,-744.7759,25.7988);
- TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
- LinkVehicleToInterior(tmpcar, 0);
- SetPlayerVirtualWorld(playerid, 0);
- }
- else
- {
- SetPlayerPos(playerid, 471.1079,-744.7759,25.7988);
- SetPlayerVirtualWorld(playerid, 0);
- }
- SendClientMessage(playerid, COLOR_GRAD1, "You have been teleported");
- SendClientMessage(playerid, COLOR_NICERED, "Welcome to Miner.");
- SetPlayerInterior(playerid,0);
- DisablePlayerCheckpoint(playerid);
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, "{CCCCCC} * Nu esti autorizat sa folosesti aceasta comanda.");
- return 1;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement