Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. if(GetPVarInt(playerid, "Noun") == 2 && GetPlayerState(playerid) == 2 && GetVehicleModel(GetPlayerVehicleID(playerid)) == 486)
  2. {
  3. SetPVarInt(playerid, "MinerKG", GetPVarInt(playerid, "MinerKG") + GetPVarInt(playerid, "MinerKG_One"));
  4. SendMes(playerid, COLOR_WHITE, "Tu atvedi {33AA33}%i{ffffff} KG rudu. Kopa savests: {33AA33}%i{ffffff} KG", GetPVarInt(playerid, "MinerKG_One"), GetPVarInt(playerid, "MinerKG"));
  5. Mineral[0] += GetPVarInt(playerid, "MinerKG_One");
  6. SetOtherInt("mineral", Mineral[0]);
  7. DeletePVar(playerid, "MinerKG_One");
  8. format(string, 50, "Ruda noliktava: {FF9900}%i{ffffff} KG", Mineral[0]);
  9. Update3DTextLabelText(tPickup[7], 0xFFFFFFFF, string);
  10. Update3DTextLabelText(tPickup[8], 0xFFFFFFFF, string);
  11. Update3DTextLabelText(tPickup[9], 0xFFFFFFFF, string);
  12. Update3DTextLabelText(tPickup[10], 0xFFFFFFFF, string);
  13. DestroyObject(NounObject[GetPVarInt(playerid, "NounObjID")]);
  14. if(GetPVarInt(playerid, "NounObjID") < 10) NounObject[GetPVarInt(playerid, "NounObjID")] = CreateObject(3930,560.3654+random(10),840.2457+random(75),-44.00700073,0.00000000,0.00000000,0.00000000);
  15. else NounObject[GetPVarInt(playerid, "NounObjID")] = CreateObject(3930,615.3654+random(55),815.2457+random(65),-43.6009,0.00000000,0.00000000,0.00000000);
  16. MineJob[playerid] = SetTimerEx("RudaJob",10000,false,"i",playerid);
  17. SendClientMessage(playerid, COLOR_GREEN, "Uzgaidi 10 sekundes lai sagatavotu nakamo akmeni!");
  18. return 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement