Jump to content

WASSIm.

Members
  • Posts

    1,411
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by WASSIm.

  1. thanks guys i sloved that problem by useing setTimer for start resources
  2. but how ? i make file for resources i want start on ZA-system started that mean resource ZA-system he is start other resource...
  3. hi guys, i got that problem: ERROR: ZA-group\client.lua:65: exports: Call to non-running client resource (ZA-system) [string "?"] all exports ZA-system serverside working but client is not i need to restart resource to be work, so anyhelp please
  4. i change time of my VPS by tzselect but realtime on server mta don't changed
  5. WASSIm.

    Stealth kill

    dude read: https://wiki.multitheftauto.com/wiki/Meta.xml OOP - Please refer to OOP for documentation. false: Disable OOP. true: Enable OOP.
  6. hi guys, i see everyserver have different real time (getRealTime) so how i can change real time of server ?
  7. WASSIm.

    Stealth kill

    thanks, so what about problem anim stealth kill ?
  8. WASSIm.

    Stealth kill

    hi guys, i make zombie/player can kill other player by stealth but for first trying this its working fine but after idk why its work but don't do sealthkill anim, and how check if someone back of player ?, any help ? --CHECKS FOR ZOMBIE GRABBING FROM BEHIND function setZombieBitten (ped, target) if (isElement(ped)) and (exports["ZA-export"]:isPedZombie(ped)) and not (isPedDead(ped)) then if (isElement(target)) and not (exports["ZA-export"]:isPedZombie(target)) and not (isPedInVehicle(target)) then local tx,ty,tz = getElementPosition(ped) local vx,vy,vz = getElementPosition(target) local zombdistance = getDistanceBetweenPoints3D(tx, ty, tz, vx, vy, vz) if (zombdistance < 0.8 ) and (getElementType(target) == "player") and not (isPedDead(target)) then triggerClientEvent("onZombieControl", ped, "moan", math.random(moanlimit)) if (getElementType(ped) == "ped") then triggerClientEvent("onZombieControl", ped, "stop") end return killPed(target, ped, 0, 4, true) end end end return false end
  9. where other safezones ?
  10. Total file size: you can check all client file on resources running to get total download on frist join on server Current downloaded: i don't understand this ! When download has finished: use event 'onClientResourceStart' its trigger when resource download finished and started on client
  11. you mean spawn in random safezone ? if is it, post your full code
  12. can you post script when player die and line create colshape ?
  13. function deleteOnExitpilot ( ) local thePlayer = getVehicleController ( source ) if not thePlayer then return end if ( isElement ( markert [ thePlayer ] ) ) then destroyElement ( markert [ thePlayer ] ) end if ( isElement ( blipt [ thePlayer ] ) ) then destroyElement ( blipt [ thePlayer ] ) end if ( isElement ( pedt [ thePlayer ] ) ) then destroyElement ( pedt [ thePlayer ] ) end end addEventHandler ( "onVehicleExplode", getRootElement(), deleteOnExitpilot )
  14. try this local statsFromWeapon = { [22] = 69, [23] = 70, [24] = 71, [25] = 72, [26] = 73, [27] = 74, [28] = 75, [29] = 76, [30] = 77, [31] = 78, [32] = 75, [33] = 79, [34] = 79 } addEventHandler("onZombieWasted", root, function (killer, weapon, bodypart) if (isElement(killer)) and (killer ~= source) and (getElementType(killer) == "player") and (bodypart == 9) then local statWeapon = statsFromWeapon[weapon] if (statWeapon) then local stat = getPedStat(killer, statWeapon) setPedStat(killer, statWeapon, stat + 50) end end end)
  15. Ala nu merge editat este compilat da oricum ms pentru comentarii... Chiar conteaza limba ? Mie imi place sa le fac in engleza. Si nu prea vad limba engleza in acest script..Nitro..? si Health.. ? Si cine a zis ca fac script-uri pentru server romanesti ? Cred că ești edita această resursă dar versiune 1.0.0 oricum e vechi
  16. use this: getPointFromDistanceRotation
  17. is there on zday script, and his name: 'onZombieWasted'
  18. you have us this: function isEventHandlerAdded( sEventName, pElementAttachedTo, func ) if type( sEventName ) == 'string' and isElement( pElementAttachedTo ) and type( func ) == 'function' then local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo ) if type( aAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs( aAttachedFunctions ) do if v == func then return true end end end end return false end
×
×
  • Create New...