Jump to content

Apocalypso

Members
  • Posts

    17
  • Joined

  • Last visited

Details

  • Gang
    ???
  • Location
    Latvia
  • Occupation
    Role-Player
  • Interests
    Many

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Apocalypso's Achievements

Square

Square (6/54)

2

Reputation

  1. if string.find(text, "46.") then <<<<<<< THIS basically return u true on every number(string) where in text it found numbers like 46 460 046 , 464646 46000... basically every time it goes true when the 46 is writed, and what u want to do?
  2. I will start this as intro , to be more understandable, then i will make some questions and if answer is negative,thet it may be new suggestion Intro : Some time while searching in mappings and stuff, replacing model files and skins, object ids to create gold bars and stuff... i start to have problem, there is no more Objects to replace or take that is not in game ... There was some script with cinema, basically that panel replaced some walls, that is in outside world or some interiors... also in casino the tables are hockey helmets now... That may be about first stuff Second : I had idea to recreate life in oceans, so far i manage to get scripts and create new ones using zombie AI and others from there or internet... but the problem is just now... somehow i already to try or figure it out by myself how to do this.. but unlucky ... So idea is to create Animals or mammals or dunno how fishes counts like sharks or dolphins. I think the ocean itself could be like new playground, something like if player swim in direct cords in sea there start to math.random functon and if it stops on right number , then about x+50 there spawns shark that attacks player. But the problem about this is that i dont know how to make zombie AI to swim under water like shark( I did make them attack like bears... but cant figure out how to teach swim) also the player seems to swim with delay in water even all setpedstats are tested with max... its like on m1 i can dive down, but swimming and diving take too much time... So suggestions 1) If its possible then maybe make that we can create more than default objects with createObject.. like 3200314 or something.. 2) Then some Functions that make peds or something else to swim in water or attack (Know there was mod in gta sa but i think its not in mta) 3) Some function like setPedStat(ID,level) that can make players dive underwater and swim faster... without delays... Sorry if this already was writed or in wrong subforum
  3. Hello, dunno, but problem is that i cant get into my account.... it says invalid ID.... all time... and even password reset wont work out, 2 days i wait till it send to email reset but nothing happens... help.. How can i reset pass or recover account in resource page?
  4. Why do u think someone will pay u for scripts? I think mtasa.com is like free community who make and share they scripts, gain inspiration, and aint letting gta sa die, then i could do the animal script sellable for dunno 10 euros? also u aint first one who maked yyoutube panel.. this topic and script confuses me...
  5. .... I dont know how to explain... I will show u how i do this For ftp i use Filezilla/ winscp I log in to server then next i download something from mtasa.com then i merge it so it will work with other scripts (i edit scripts , example ,army mission etc) then i just upload it to resources folder in FTP and last i just upload script folder in it go to game panel and restart server... END...
  6. Edit : taked week, but i did explored something, its after server updates.. or somewhere in main structure like acl (but dont know place) is something that makes these peds unshootable :(... still need help
  7. well ... by lookin on error Ur server missing file .... somehow u need file joinquit.lua who have 0 value... If i get this right , then MD5 is some hash string, who need some value but u have 0 or other words its empty... 1 to do check if that joinquit.lua is not empty...
  8. Hello , first of all sorry if i ain't posted it in right place... Umm, so i will start with that , i searched in google already but only i found was how to make opposite i need... So i recently downloaded mission script ( that one who is here https://community.multitheftauto.com/index.php?p=resources&amp;s=details&amp;id=13689 ) I basically try to build something new using already done scripts by editing them - Some server like post apocalyptic , like Role-Play, but not exactly, okay that's not important . I have problem with this script i mentioned before, its use slothbot script, i already have it, and on eye everything is good only when u press the mission start where that army men is... 1) They shoot u even if i ain't in enemy team ( i have different team tags but mainly i have also same "getTeamFromName" as wiki says, but i changed it like local stuff who search for faction ID not name to check if player is inside ) the problem is debug are not giving any errors .... but those army men, shoots themselves and player too, i swapped back to team name and make them read that i am "Government" but they still shoot me ( not all 4 but only 2 of them ) 2) And other problem is, i dunno where, or in slothbot or in this script "terroristmission" but those bots are invincible.... ( searched in internet , and problem is some function that cancels event when player shoot bot) but problem is, i searched both files, and i did not find any place where is something like when player do damage to bot they are invincible.. i had idea that maybe some else script like animal script or other (bot) script change something, but even i disabled almost all scripts ( all who include something about bot/ped) those bots was unkillable... I dont know why.... i shooted 40 magazines of m4 and nobody died, but when someone hits played, the player instantly dies.... ( i did even raw version of both script running, anyway okay they don't see me as ally okay they shoot me to death, but i ain't able to kill them anyway....) Sorry for asking here, i tryed 2 weeks to search for script makers but could not reached him, so maybe someone use these too and may help me plsease?
  9. Hello amm at start - english is not my native, so i say sorry already about that... Now i will start about problem , where i cant find help, i will try to get it there... So what happened, not so long time ago - 2017 , dec... i surfed in internet, and i found something called mta sdk ( i just get UCP i guess werry broken, because rightfull owners just gived this one away in github open source full ucp) so i taked it and reedited it so much , that its worked for me too... ( bases are same open source i mean ) soo.... in this ucp are some PHP scripts about mta("IP" "port" "Name" " Pass" ) , then i searched in wiki about php sdk, and in here too, ( here i find only tutorials) so i make everything like tutorials says 1) I maked new "account" named website 2) I added it to acl under admins 3) i finded script in server and added it as admin resource in acl 4) I connected databases with new edited ucp forum + server 5) fixed resource who is called 6) started ucp and resource 7) used function from web So there starts problems, at start i thinked this is only place where it broken up, but then i realise that everywhere where sdk trys to connect to server it just... stops... the first problem is on sdk where its checks if server is online he should call resource from server where in lua is function that server is online...( server is online but it says its not) Also it does not give any errors, or bugs, it says in wiki, that there should be that website footprints in server logs its connect , but its not, basically nothing happens, not connections nothing... i asked already some friends to help who works on programming jobs. they watched LUA + PHp and said that they cant see where is problem, because its like from wiki and tutorials,... said maybe something in connection, or dots... ( but i just think its because server is like hybride on 5 different gamemodes....) still it just give 0 errors on sdk and it not connecting Heeelp? suggestions what is the problem? i did everything that says in tutorials and wiki, but still nothing.. maybe u can tell steep by steep what to try?
  10. Two years passed and i thinked out, those flying tains.... why nobody thinks to add train only on LEFT sided rails?? those Ghosting when train goes offroad is only on RIGHT side rails, because RIGHT sided is used in main mission GTA SA , where cj jumps on trains, So it went offroad, because of main programm, so, just add trains on left side rails and it will drive whole circle in MTA map... works for me, only i cant edit that because somebody compiled it
  11. Hello again! So introduction why i write.. Well i watched youtube of old scripts, and find out one interesting script, who i added to my serv Job-System.... i updated the script and added new stuffs, to work smooth with server, Idea was that i remaked this script and make it usefull, and it worked... only now i got some problems... So how it works Script is - Client sided (job system , markers, outputchatbox, etc) because i dont need that chatbox show how many trees left to all players when they aint working or they roleplaying.. next is woods (client sided) script where i did not change anything because there is too much places of woods (redwood etc) locations all around MTA SA ... and last is Server sided : The functions what provide money, like givemoney to lumberjack and maths wheere there is shown how much and some eventcalls Problem : Those trees are showing only to those who apply jobs, and everjone got their own forrest, but when other player is near, it looks like that "lumberjack" is idiot, who runs around with chainsaw, where is no trees :D... So why there aint showing those "forest " trees to other, i know that is because that function of cut tree and animation of falling trees are "Client Sided" But when i swap it and change deffinitons of Server and client event triggers, it just amm.. fuk up all jobs.... and all debug is red...so Help please... After that i thinked to add some objects too what can be putted on car (wood log) or something, where is function givetree but if they aint showing up now there is no reason to add it here the script i edited 1) Server sided function givePlayerTree() moneyw = math.random(5,10) exports.global:giveMoney(client,moneyw) end addEvent("DGAlumberjack.GivePlayerTree", true) addEventHandler("DGAlumberjack.GivePlayerTree", root, givePlayerTree) function giveBonus() moneyMultiplier = math.random(1,2) moneyAmount = math.floor(math.random(300, 400)*moneyMultiplier) exports.global:giveMoney(client,moneyAmount) exports.hud:sendBottomNotification(client, "Darbadevējs:", "Tu saņēmi prēmiju €"..moneyAmount.." apmērā, par meža likvidēšanu...") end addEvent("DGAlumberjack.GiveBonus", true) addEventHandler("DGAlumberjack.GiveBonus", root, giveBonus) function onDFTenter(enteringPlayer) if (isElement(source)) then if (getElementModel(source) == 578) then if (getElementData(enteringPlayer, "job") == 10) then triggerClientEvent(enteringPlayer, "DGAlumberjack.JobStart", enteringPlayer) end end end end addEventHandler("onVehicleEnter", root, onDFTenter) Client sided with anim and woods function JobStart() if (not (isJobStarted)) then currentForest = math.random(#treesPositions) colCircle = createColCircle(treesPositions[currentForest]["colShape"][1], treesPositions[currentForest]["colShape"][2], 30) createBlipAttachedTo(colCircle, 0) addEventHandler("onClientColShapeHit", colCircle, onColCircleHit) for i,v in ipairs(treesPositions[currentForest]) do objAmount[i] = createObject(idList[math.random(#idList)],treesPositions[currentForest][i][1], treesPositions[currentForest][i][2], treesPositions[currentForest][i][3]) treeColShape[i] = createColCircle(treesPositions[currentForest][i][1], treesPositions[currentForest][i][2], 3.5) end treeAmount = #objAmount isJobStarted = true end end addEvent("DGAlumberjack.JobStart", true) addEventHandler("DGAlumberjack.JobStart", root, JobStart) assignMarker = nil assignBlip = nil function JobStop() if (isElement(assignMarker)) then destroyElement(assignMarker) destroyElement(assignBlip) end if (isElement(colCircle)) then colCircleBlip = getAttachedElements(colCircle)[1] if (colCircleBlip) then destroyElement(colCircleBlip) end destroyElement(colCircle) end for k, v in ipairs(objAmount) do if (isElement(v)) then local blip = getAttachedElements(v)[1] if (blip) then destroyElement(blip) end destroyElement(v) end end for k, v in ipairs(treeColShape) do if (isElement(v)) then destroyElement(v) end end isJobStarted = false objAmount = {} treeColShape = {} treeAmount = 0 end addEvent("DGAlumberjack.JobStop", true) addEventHandler("DGAlumberjack.JobStop", root, JobStop) function onColCircleHit(hitElement) if (hitElement == localPlayer) then colCircleBlip = getAttachedElements(colCircle)[1] if (colCircleBlip) then destroyElement(colCircleBlip) end destroyElement(colCircle) for k, v in ipairs(objAmount) do if (isElement(v)) then createBlipAttachedTo(v) end end end end function treeCheck() if (treeAmount == 0) then triggerServerEvent("DGAlumberjack.GiveBonus", root) JobStop() else outputChatBox("Tu nocirti koku, vēl palika: "..treeAmount,255,255,0) end end function cutTree(index) if (isElement(objAmount[index])) then local x, y, z = getElementPosition(objAmount[index]) setElementFrozen(localPlayer, true) setTimer(fadeCamera, 350, 1, false) setTimer(fadeCamera, 4800, 1, true) setTimer(setElementFrozen, 6000, 1, localPlayer, false) moveObject(objAmount[index],6000,x,y,z-10,0,90,90) setTimer(destroyTree, 7000, 1, index) destroyElement(getAttachedElements(objAmount[index])[1]) end end function destroyTree(index) if (isElement(objAmount[index])) then destroyElement(objAmount[index]) triggerServerEvent("DGAlumberjack.GivePlayerTree", root) treeAmount = treeAmount -1 treeCheck() end end local lastCount = getTickCount() function onChainsawUse() if (getPedWeapon(localPlayer) == 9) then if (not (isPedInVehicle(localPlayer))) then if (not (isElementFrozen(localPlayer))) then if (not (isCursorShowing())) then if ((getTickCount() - lastCount) > 1500) then for k, v in ipairs(treeColShape) do if (isElement(v)) then if (isElementWithinColShape(localPlayer, v)) then destroyElement(v) cutTree(k) break end end end lastCount = getTickCount() end end end end end end bindKey("mouse1", "down", onChainsawUse) And last one is just pozzitions of wods only at end is is this idList = { [1] = 696, [2] = 697, [3] = 693, } currentForest = nil mainWindow = nil colCircle = nil sellTablesButton = nil isJobStarted = false isCrafting = false objAmount = {} treeColShape = {} descLabel = {} minMaxTables = {5, 10} minMaxMoney = {} treeAmount = 0 treesCrafted = 0 treesToCraft = 0 tablesMade = 0 playerTrees = 0 playerTables = 0 Help please
  12. Aint working... well output is working, but i still can punch doors... also i got this warning LUA 4: Bad argument @ 'getElementType' [Expected element at argument 1, got boolean] [DUP x3] Outpuchatbox is spaming all time when i dont look, aim on doors, then there is no warnings, but when i aim straigt on doors it say that there is no element but only bool
  13. okay just tyed another style function onPlayerTarget (targetElem, thePlayer ) if ( getElementModel ( targetElem ) == 1557 ) then local px, py, pz = getElementPosition(source) local x, y, z = getElementPosition(targetElem) if tonumber(getDistanceBetweenPoints3D(x, y, z, getElementPosition(source))) < 20 then toggleControl ( source, "fire", false ) else toggleControl ( source, "fire", true ) end end end addEventHandler ( "onPlayerTarget", root, onPlayerTarget ) Now it just push some Warnings : expected element at argument 1 got boolean and it is only where are if (getelementmodel) but when i add under toggle - outputchat, its working, but still give warning errors, and toggle aint working.. well oky i think i just dont know how to do proper definiton of that model
  14. .... maked a function in object client sided file.... got new problems... - debugscript 3 aint show any errors, but togglecontrol aint working.. Maked object with id 1557 its doors. then i put them on ground, and do protect on it, next i got cords of door, example 0 0 0 then i walk to 20 0 0 or 0 20 0 because in script i make that if doors x y z , player x y z < 20 then togglecontrol("fire" false) but it aint falsing... i guess i make some mistake in function start wehere i define a doors, but on other scripts where objects defined like that it works... here is function i use function disablePunch ( x, y, z, px, pz, py, model,localPlayer) if ( model == 1557 ) then local px, py, pz = getElementPosition(localPlayer) local x, y, z = getElementPosition(model) local distanc = getDistanceBetweenPoints3D(x, y, z, px, py, pz) if (distanc < 20 ) then toggleControl("fire",false) outputChatBox("Test bug 1") else toggleControl("fire",true) outputChatBox("Test bug 2") end end end addEventHandler("onClientResourceStart", getRootElement(), disablePunch) Even outputchatbox aint give those texts..
  15. So i need to add some function that will find nearby elements who is about "x" feets ahead player? Amm i guess like this one? function objFix (? , ? ) local px, py, pz = getElementPosition(thePlayer) local doors = getElementsByType("object") for k, v in ipairs(doors ) do if isElement( v ) and getElementModel( v, "doors") == 1557 and ((ETC objects )) then local x, y, z = getElementPosition(object) if getDistanceBetweenPoints3D( x, y, z, px, py, pz ) < 2 then toggleControl("fire",false) else toggleControl("fire", true) end end end i guess this should help but this is just a draft for now
×
×
  • Create New...