-
Posts
1,239 -
Joined
-
Last visited
Everything posted by -.Paradox.-
-
3 Errors and not woring ._.
-
Yes, i want change only coordinates.
-
I want make it in same size i want it just for those coordinates, can you help me with a code?
-
No its working but i want add those coordinates X= -2657.48853 Y= 632.81934 Z= 14.45313
-
Not working too , ill try to make it by myself.
-
Hello i have this greenzone mode but idk how to use it here is the coordinates i want put in. X= -2657.48853 Y= 632.81934 Z= 14.45313 client.lua x, y, size = 1844.5594482422, 1375.3376464844, 120 local greenzone = createColRectangle ( 1844.5594482422, 1375.3376464844, 284, 312.22 ) local greenzonemaparea = createRadarArea (1844.5594482422, 1375.3376464844, 284, 312.22, 0, 255, 0, 120) function greenzoneEnter ( thePlayer, matchingDimension ) if getElementType( thePlayer ) ~= "player" then return end triggerClientEvent(thePlayer, "zoneEnter", thePlayer) toggleControl ( thePlayer, "fire", false ) toggleControl ( thePlayer, "next_weapon", false ) toggleControl ( thePlayer, "previous_weapon", false ) setPedWeaponSlot ( thePlayer, 0 ) toggleControl ( thePlayer, "aim_weapon", false ) toggleControl ( thePlayer, "vehicle_fire", false ) toggleControl ( thePlayer, "vehicle_secondary_fire", false ) end addEventHandler ( "onColShapeHit", greenzone, greenzoneEnter ) function greenzoneExit ( thePlayer, matchingDimension ) if getElementType( thePlayer ) ~= "player" then return end triggerClientEvent(thePlayer, "zoneExit", thePlayer) toggleControl ( thePlayer, "fire", true ) toggleControl ( thePlayer, "next_weapon", true ) toggleControl ( thePlayer, "previous_weapon", true ) toggleControl ( thePlayer, "aim_weapon", true ) toggleControl ( thePlayer, "vehicle_fire", true ) toggleControl ( thePlayer, "vehicle_secondary_fire", true ) end addEventHandler ( "onColShapeLeave", greenzone, greenzoneExit ) server.lua function buildNotice() purpleLabel = guiCreateLabel(0.65, 0, 1, 1, "You are in a Safe Zone.", true) guiSetFont(purpleLabel, "sa-header") guiLabelSetColor(purpleLabel,0,255,0) guiSetVisible(purpleLabel,false) end addEventHandler("onClientResourceStart", getResourceRootElement( getThisResource() ), buildNotice) addEvent("zoneEnter", true) addEventHandler("zoneEnter", getRootElement(), function() guiSetVisible(purpleLabel, true) end ) addEvent("zoneExit", true) addEventHandler("zoneExit", getRootElement(), function() guiSetVisible(purpleLabel, false) end )
-
i tried reconnect neither
-
still 0 i tried with all weapons
-
Not working, i guess because removed weapon type, anyway thanks for help i will try to do my self just give me some functions i could use like creating a table.
-
Yes i want it for all weapons. and thanks for helping me.
-
I did but it add only for pistol not for other weapons.
-
Same code...you didn't changed the id of weapons its still 22 and this id for pistol.
-
I'm trying to add Points for every weapon not only for Pistol, like using a table.
-
i'm connected from iPhone too Yes.
-
Working but what about unlocking?
-
._. can you fix my code please?
-
function playLockingSound(vehicle) if vehicle then source = vehicle end local x,y,z = getElementPosition(source) local lockSound = playSound3D("files/lock.mp3", x, y, z) setSoundMaxDistance(lockSound, 50) attachElements(lockSound, source) beep(source) end addEvent("onClientVehicleLock", true) addEventHandler("onClientVehicleLock", root, playLockingSound) function playUnlockingSound() stopVehicleAlarm(source) local x,y,z = getElementPosition(source) local unlockSound = playSound3D("files/unlock.mp3", x, y, z) setSoundMaxDistance(unlockSound, 50) attachElements(unlockSound, source) beep(source) setTimer(beep, 200, 1, source) end addEvent("onClientVehicleUnlock", true) addEventHandler("onClientVehicleUnlock", root, playUnlockingSound) i tried not working
-
Hello i have this vehicle car lock system, and i want to locate the file when vehicle is locked it will play "files/lock.mp3"& when unlocked it will play "files/unlock.mp3" here is the code client side: -- Car Locks ( client ) -- local player localPlayer = getLocalPlayer ( ) -- playSoundNearElement addEvent ( "onPlaySoundNearElement", true ) function playSoundNearElement ( theElement, sound ) -- local sound = 5 local maxdist = 15.0 -- valid element if ( theElement ) then local x,y,z = getElementPosition ( theElement ) local x2,y2,z2 = getElementPosition ( localPlayer ) local dist = getDistanceBetweenPoints3D ( x, y, z, x2, y2, z2 ) -- distance is less than parameter maxdist if ( dist < maxdist ) then -- play parameter sound playSoundFrontEnd ( 5 ) -- outputChatBox ( "sound should play" ) else -- outputChatBox ( "not in range" ) end else -- outputChatBox ( "invalid element" ) end end addEventHandler ( "onPlaySoundNearElement", getRootElement(), playSoundNearElement ) server side -- Car Locks ( client ) -- local player localPlayer = getLocalPlayer ( ) -- playSoundNearElement addEvent ( "onPlaySoundNearElement", true ) function playSoundNearElement ( theElement, sound ) -- local sound = 5 local maxdist = 15.0 -- valid element if ( theElement ) then local x,y,z = getElementPosition ( theElement ) local x2,y2,z2 = getElementPosition ( localPlayer ) local dist = getDistanceBetweenPoints3D ( x, y, z, x2, y2, z2 ) -- distance is less than parameter maxdist if ( dist < maxdist ) then -- play parameter sound playSoundFrontEnd ( 5 ) -- outputChatBox ( "sound should play" ) else -- outputChatBox ( "not in range" ) end else -- outputChatBox ( "invalid element" ) end end addEventHandler ( "onPlaySoundNearElement", getRootElement(), playSoundNearElement ) thanks for helping
-
I can change my local ip, but not sure if it gonna work.
-
MTA San Andreas 1.3\server\mods\deathmatch Didnt saw that post, i guess that is the problem.
-
Yes, tell me what you want to add in mtaserver.conf
-
Download this http://www.mediafire.com/view/z2bea58qk3463bw/mtaserver.conf
-
Re-install MTA