Jump to content

Actimel

Members
  • Posts

    54
  • Joined

  • Last visited

Details

  • Gang
    gang

Recent Profile Visitors

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

Actimel's Achievements

Snitch

Snitch (10/54)

0

Reputation

  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 ?
×
×
  • Create New...