Jump to content

Actimel

Members
  • Posts

    54
  • Joined

  • Last visited

Everything posted by Actimel

  1. Hello guys, i dont know if im on correct topics but does someone has P3D Analyzed for objects? because i cant find it
  2. oh yeah my bad :DDD thx
  3. hi guys i have problem with gate script. It worked before but now it seems doesnt work. error https://prnt.sc/fcufup --create the gate (DO NOT EDIT) local ggate = createObject ( GateObject, Defx, Defy, defz, rotX, rotY, rotZ) --DO NOT EDIT function gateopen ( p ) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(p)), aclGetGroup(ACL)) then moveObject (ggate, OpenTime, opx, opy, opz) outputChatBox("Admin base gate opened", p,0,255,0,true) else outputChatBox("Sorry you dont have permission to do that!", p,0,255,0,true) end end addCommandHandler( opencommand, gateopen) function gateclose ( p ) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(p)), aclGetGroup(ACL)) then moveObject (ggate, OpenTime, Defx, Defy, defz) outputChatBox("Admin base gate closed", p,0,255,0,true) else outputChatBox("Sorry you dont have permission to do that!", p,0,255,0,true) end end addCommandHandler( closecommand, gateclose) function handlerFunction(thePlayer) local oX, oY, oZ = getElementPosition(ggate) if math.floor(oZ) == math.floor(defz) then gateopen(thePlayer) elseif math.floor(oZ) == math.floor(opz) then gateclose(thePlayer) end end addEventHandler("onResourceStart", getResourceRootElement(), function() for i, k in ipairs(getElementsByType("player")) do bindKey(k, "K", "down", handlerFunction) end end) addEventHandler("onPlayerJoin", getRootElement(), function() bindKey(source, "K", "down", handlerFunction) end)
  4. Hello guys, im working on small updates on 0.7 for myself and now im stuck on one problem with vehicle spawn with new cars i add them but it doesnt spawn maybe someone tried to add new veh can u tell what u did exactly because i tried copy from already added cars but seems doesnt work and also no errors shows in console or in debugscript
  5. playSound ( soundname? ) -- or playSound3D
  6. yes because i want put sound for example AK 47 has ID 30 and other weapon like aku has also id 30 and when i put sounds on id it plays on these 2 weapons because they have same id
  7. Hi guys i have a problem by making script weapon sounds by the name not by the id because few weapons using same id and it is a different weapons and when i do by id sounds it plays on other weapons also
  8. Actimel

    open command

    yes i know but i want try to do on scipt not just bind in console ant thats it...
  9. Actimel

    open command

    its not for other players i need. i need just for private base for example
  10. Actimel

    open command

    Can someone help me to bind key on this script for opening gates? code for command local opencommand = "open" --open command local closecommand = "close" --close command local GateObject = 980 --object local OpenTime = 3000 --opening second local rotX, rotY, rotZ = 0, 0, 270 --rotations local Defx, Defy, defz = -489.20001220703,-562.40002441406,27.299999237061 --closed position local opx, opy, opz = -489.20001220703,-562.40002441406,21.7 --opened position --create the gate (DO NOT EDIT) local ggate = createObject ( GateObject, Defx, Defy, defz, rotX, rotY, rotZ) --DO NOT EDIT function gateopen ( p ) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(p)), aclGetGroup(ACL)) then moveObject (ggate, OpenTime, opx, opy, opz) outputChatBox("Admin base gate opened", p,0,255,0,true) else outputChatBox("Sorry you dont have permission to do that!", p,0,255,0,true) end end addCommandHandler( opencommand, gateopen) function gateclose ( p ) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(p)), aclGetGroup(ACL)) then moveObject (ggate, OpenTime, Defx, Defy, defz) outputChatBox("Admin base gate closed", p,0,255,0,true) else outputChatBox("Sorry you dont have permission to do that!", p,0,255,0,true) end end addCommandHandler( closecommand, gateclose)
  11. oh i needed that would allowed move by yourself because its more easy than like this
  12. thanks but when i duplicate how to move tham together in the same time?
  13. hello guys is i have 1 question. Is there possible to copy the same pattern that i added here http://prntscr.com/epxye6 and place it again ?
  14. Actimel

    help

    now got it thanks so much like understand he made outputChatBox(weapon) spawns weapon id and i can easy find id of weapon
  15. Actimel

    help

    now when i shoot it doesnt make sounds but spawns in chat id or something
  16. Actimel

    help

    can you explain more better because my english not good
  17. Actimel

    help

    Hi i want replace sounds for weapons but when i change weapon id because its custom weapons and doesnt work but when i put id 30 AK then works but not on the custom weapon addEventHandler("onClientPlayerWeaponFire", getRootElement(), function ( weapon, ammo, ammoInClip ) local x,y,z = getElementPosition(source) if weapon == 1834 then local sound = playSound3D("sounds/AK74.wav", x,y,z) setSoundVolume(sound,10) setSoundMaxDistance(sound,75) end end ) can someone help?
  18. Actimel

    Safe zone

    Hi guys does someone has safe zone script ? can you share it? because i need for base because spawn there so many zombies
  19. tekken did u fixed this :~? http://prnt.sc/em8xf0
  20. yes they do only this added veh dont spawn other works perfectly
  21. yes i added and fuel info other things i did also @NeXuS™
×
×
  • Create New...