Actimel
Members-
Posts
54 -
Joined
-
Last visited
Everything posted by Actimel
-
Hello guys, i dont know if im on correct topics but does someone has P3D Analyzed for objects? because i cant find it
-
oh yeah my bad :DDD thx
-
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)
-
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
-
playSound ( soundname? ) -- or playSound3D
-
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
-
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
-
yes i know but i want try to do on scipt not just bind in console ant thats it...
-
its not for other players i need. i need just for private base for example
-
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)
-
oh i needed that would allowed move by yourself because its more easy than like this
-
thanks but when i duplicate how to move tham together in the same time?
-
Can someone help ?
-
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 ?
-
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?
-
tekken did u fixed this :~? http://prnt.sc/em8xf0
-
yes they do only this added veh dont spawn other works perfectly
-
yes i added and fuel info other things i did also @NeXuS™