Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(GetPVarInt(playerid, "Noun") == 2 && GetPlayerState(playerid) == 2 && GetVehicleModel(GetPlayerVehicleID(playerid)) == 486)
- {
- SetPVarInt(playerid, "MinerKG", GetPVarInt(playerid, "MinerKG") + GetPVarInt(playerid, "MinerKG_One"));
- SendMes(playerid, COLOR_WHITE, "Tu atvedi {33AA33}%i{ffffff} KG rudu. Kopa savests: {33AA33}%i{ffffff} KG", GetPVarInt(playerid, "MinerKG_One"), GetPVarInt(playerid, "MinerKG"));
- Mineral[0] += GetPVarInt(playerid, "MinerKG_One");
- SetOtherInt("mineral", Mineral[0]);
- DeletePVar(playerid, "MinerKG_One");
- format(string, 50, "Ruda noliktava: {FF9900}%i{ffffff} KG", Mineral[0]);
- Update3DTextLabelText(tPickup[7], 0xFFFFFFFF, string);
- Update3DTextLabelText(tPickup[8], 0xFFFFFFFF, string);
- Update3DTextLabelText(tPickup[9], 0xFFFFFFFF, string);
- Update3DTextLabelText(tPickup[10], 0xFFFFFFFF, string);
- DestroyObject(NounObject[GetPVarInt(playerid, "NounObjID")]);
- 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);
- else NounObject[GetPVarInt(playerid, "NounObjID")] = CreateObject(3930,615.3654+random(55),815.2457+random(65),-43.6009,0.00000000,0.00000000,0.00000000);
- MineJob[playerid] = SetTimerEx("RudaJob",10000,false,"i",playerid);
- SendClientMessage(playerid, COLOR_GREEN, "Uzgaidi 10 sekundes lai sagatavotu nakamo akmeni!");
- return 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement