Jump to content

-.Paradox.-

Members
  • Posts

    1,239
  • Joined

  • Last visited

Everything posted by -.Paradox.-

  1. I guess he wanted to shout the player every hour, he can use this as well. messages = {"msg1","msg2","msg3","msg4"} --[[ You can add you're message here like example "Hello World" and dont forget to add a "," ]] setTimer(function() local randomMsg = math.random(1,#messages) textDisplay = textCreateDisplay ( ) textItem = textCreateTextItem ( messages, 0.5, 0.5, 2, 255, 255, 255, 255, 3, "center", "center" ) textDisplayAddText ( textDisplay, textItem ) for _, thePlayer in ipairs ( getElementsByType ( "player" ) ) do textDisplayAddObserver ( textDisplay, thePlayer ) end end ,3600000,0)
  2. -.Paradox.-

    Help

    So it's impossible? I tried to jump with parachute and i take ak-47 while skydiving and i tried to shoot but nothing happened
  3. Client side script is stolen from client files of http://grafuroam.ucoz.com/ , and please try to do it you're self as far as i know there is a resource in community that does, you don't need dxDrawText.
  4. -.Paradox.-

    help

    Already tried ._. with all weapons addEventHandler( "onZombieWasted", root, function (killer, weapon, bodypart ) local weapon = getPedWeapon( source ) if killer and killer ~= source then if bodypart == 9 and weapon == 22 then setPedStat( killer, 69, getPedStat( killer, 69 ) + 2 ); end elseif killer and killer ~= source then if bodypart == 8 and weapon == 22 then setPedStat( killer, 69, getPedStat( killer, 69 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 7 and weapon == 22 then setPedStat( killer, 69, getPedStat( killer, 69 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 6 and weapon == 22 then setPedStat( killer, 69, getPedStat( killer, 69 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 5 and weapon == 22 then setPedStat( killer, 69, getPedStat( killer, 69 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 4 and weapon == 22 then setPedStat( killer, 69, getPedStat( killer, 69 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 3 and weapon == 22 then setPedStat( killer, 69, getPedStat( killer, 69 ) + 1 ); end end end ); addEventHandler( "onZombieWasted", root, function (killer, weapon, bodypart ) local weapon = getPedWeapon( source ) if killer and killer ~= source then if bodypart == 9 and weapon == 23 then setPedStat( killer, 69, getPedStat( killer, 70 ) + 2 ); end elseif killer and killer ~= source then if bodypart == 8 and weapon == 23 then setPedStat( killer, 69, getPedStat( killer, 70 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 7 and weapon == 23 then setPedStat( killer, 69, getPedStat( killer, 70 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 6 and weapon == 23 then setPedStat( killer, 69, getPedStat( killer, 70 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 5 and weapon == 23 then setPedStat( killer, 69, getPedStat( killer, 70 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 4 and weapon == 23 then setPedStat( killer, 69, getPedStat( killer, 70 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 3 and weapon == 23 then setPedStat( killer, 69, getPedStat( killer, 70 ) + 1 ); end end end ); addEventHandler( "onZombieWasted", root, function (killer, weapon, bodypart ) local weapon = getPedWeapon( source ) if killer and killer ~= source then if bodypart == 9 and weapon == 24 then setPedStat( killer, 69, getPedStat( killer, 71 ) + 2 ); end elseif killer and killer ~= source then if bodypart == 8 and weapon == 24 then setPedStat( killer, 69, getPedStat( killer, 71 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 7 and weapon == 24 then setPedStat( killer, 69, getPedStat( killer, 71 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 6 and weapon == 24 then setPedStat( killer, 69, getPedStat( killer, 71 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 5 and weapon == 24 then setPedStat( killer, 69, getPedStat( killer, 71 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 4 and weapon == 24 then setPedStat( killer, 69, getPedStat( killer, 71 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 3 and weapon == 24 then setPedStat( killer, 69, getPedStat( killer, 71 ) + 1 ); end end end ); addEventHandler( "onZombieWasted", root, function (killer, weapon, bodypart ) local weapon = getPedWeapon( source ) if killer and killer ~= source then if bodypart == 9 and weapon == 25 then setPedStat( killer, 69, getPedStat( killer, 72 ) + 2 ); end elseif killer and killer ~= source then if bodypart == 8 and weapon == 25 then setPedStat( killer, 69, getPedStat( killer, 72 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 7 and weapon == 25 then setPedStat( killer, 69, getPedStat( killer, 72 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 6 and weapon == 25 then setPedStat( killer, 69, getPedStat( killer, 72 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 5 and weapon == 25 then setPedStat( killer, 69, getPedStat( killer, 72 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 4 and weapon == 25 then setPedStat( killer, 69, getPedStat( killer, 72 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 3 and weapon == 25 then setPedStat( killer, 69, getPedStat( killer, 72 ) + 1 ); end end end ); addEventHandler( "onZombieWasted", root, function (killer, weapon, bodypart ) local weapon = getPedWeapon( source ) if killer and killer ~= source then if bodypart == 9 and weapon == 26 then setPedStat( killer, 69, getPedStat( killer, 73 ) + 2 ); end elseif killer and killer ~= source then if bodypart == 8 and weapon == 26 then setPedStat( killer, 69, getPedStat( killer, 73 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 7 and weapon == 26 then setPedStat( killer, 69, getPedStat( killer, 73 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 6 and weapon == 26 then setPedStat( killer, 69, getPedStat( killer, 73 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 5 and weapon == 26 then setPedStat( killer, 69, getPedStat( killer, 73 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 4 and weapon == 26 then setPedStat( killer, 69, getPedStat( killer, 73 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 3 and weapon == 26 then setPedStat( killer, 69, getPedStat( killer, 73 ) + 1 ); end end end ); addEventHandler( "onZombieWasted", root, function (killer, weapon, bodypart ) local weapon = getPedWeapon( source ) if killer and killer ~= source then if bodypart == 9 and weapon == 27 then setPedStat( killer, 69, getPedStat( killer, 74 ) + 2 ); end elseif killer and killer ~= source then if bodypart == 8 and weapon == 27 then setPedStat( killer, 69, getPedStat( killer, 74 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 7 and weapon == 27 then setPedStat( killer, 69, getPedStat( killer, 74 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 6 and weapon == 27 then setPedStat( killer, 69, getPedStat( killer, 74 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 5 and weapon == 27 then setPedStat( killer, 69, getPedStat( killer, 74 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 4 and weapon == 27 then setPedStat( killer, 69, getPedStat( killer, 74 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 3 and weapon == 27 then setPedStat( killer, 69, getPedStat( killer, 74 ) + 1 ); end end end ); addEventHandler( "onZombieWasted", root, function (killer, weapon, bodypart ) local weapon = getPedWeapon( source ) if killer and killer ~= source then if bodypart == 9 and weapon == 28 then setPedStat( killer, 69, getPedStat( killer, 75 ) + 2 ); end elseif killer and killer ~= source then if bodypart == 8 and weapon == 28 then setPedStat( killer, 69, getPedStat( killer, 75 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 7 and weapon == 28 then setPedStat( killer, 69, getPedStat( killer, 75 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 6 and weapon == 28 then setPedStat( killer, 69, getPedStat( killer, 75 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 5 and weapon == 28 then setPedStat( killer, 69, getPedStat( killer, 75 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 4 and weapon == 28 then setPedStat( killer, 69, getPedStat( killer, 75 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 3 and weapon == 28 then setPedStat( killer, 69, getPedStat( killer, 75 ) + 1 ); end end end ); addEventHandler( "onZombieWasted", root, function (killer, weapon, bodypart ) local weapon = getPedWeapon( source ) if killer and killer ~= source then if bodypart == 9 and weapon == 29 then setPedStat( killer, 69, getPedStat( killer, 75 ) + 2 ); end elseif killer and killer ~= source then if bodypart == 8 and weapon == 29 then setPedStat( killer, 69, getPedStat( killer, 75 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 7 and weapon == 29 then setPedStat( killer, 69, getPedStat( killer, 75 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 6 and weapon == 29 then setPedStat( killer, 69, getPedStat( killer, 75 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 5 and weapon == 29 then setPedStat( killer, 69, getPedStat( killer, 75 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 4 and weapon == 29 then setPedStat( killer, 69, getPedStat( killer, 75 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 3 and weapon == 29 then setPedStat( killer, 69, getPedStat( killer, 75 ) + 1 ); end end end ); addEventHandler( "onZombieWasted", root, function (killer, weapon, bodypart ) local weapon = getPedWeapon( source ) if killer and killer ~= source then if bodypart == 9 and weapon == 32 then setPedStat( killer, 69, getPedStat( killer, 76 ) + 2 ); end elseif killer and killer ~= source then if bodypart == 8 and weapon == 32 then setPedStat( killer, 69, getPedStat( killer, 76 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 7 and weapon == 32 then setPedStat( killer, 69, getPedStat( killer, 76 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 6 and weapon == 32 then setPedStat( killer, 69, getPedStat( killer, 76 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 5 and weapon == 32 then setPedStat( killer, 69, getPedStat( killer, 76 ) + 1 ); end elseif killer and killer ~= source then if bodypart == 4 and weapon == 32 then
  5. -.Paradox.-

    Help

    Hello i was searching in forum to some function to let you shoot from parachute and i found this but not working, and i'm asking how i can make it work function skyD(player) local px,py,pz = getElementModel(player) setElementPosition(player, px,py,(pz + 300),false) giveWeapon ( player,46 ,1, true ) setControlState(player,"fire", true) setTimer(function() if isElement(player) then setControlState(player,"fire", false) end end, 500, 1) end addCommandHandler("shoot", skyD)
  6. addEventHandler( "onPlayerWasted", root, function (source, thePlayer) textDisplay = textCreateDisplay ( ) outputChatBox ( "Press F4 To Respawn ", root, 255, 255, 255 ) textItem = textCreateTextItem ( "Press F4 To Respawn", 0.5, 0.5, 2, 255, 255, 255, 255, 3, "center", "center" ) textDisplayAddText ( textDisplay, textItem ) for _, thePlayer in ipairs ( getElementsByType ( "player" ) ) do textDisplayAddObserver ( textDisplay, thePlayer ) end setTimer ( function ( ) textDestroyTextItem ( textItem ) textDestroyDisplay ( textDisplay ) end ,5000, 1 ) end) I tried this but not working?
  7. addEventHandler( 'onClientRender', root, function ( ) for i,v in ipairs ( getElementsByType( "player" ) ) do local x, y, z = getElementPosition( v ); local cx, cy, cz = getCameraMatrix( ); if getDistanceBetween Points3D( cx, cy, cz, x, y, z ) <= 15 then local px,py = getScreenFromWorldPosition( x, y, z + 1.3, 0.06 ); if px and py then dxDrawImage( px, py, px, py, getElementData( v, "Classicon" ), 0, 0, 0, tocolor( 255, 255, 255, 255 ) ); end end end end ); Not working too but when I tried this it works but it show a big image and i want it to appear only in player head
  8. -.Paradox.-

    help

    Yes that what I mean there was a resource in community called the_gun_stats but he deleted it
  9. -.Paradox.-

    help

    Hello again i'm looking for a script that can add +1 for each weapon like example if I killed a player with m4 it add 1point to m4 skills etc an thanks for help
  10. Hello, i want when player die it show a dxText 'Press F4 to respawn' and when player press F4 it disappear can somebody give me some useful functions?
  11. I don't know how to use it, can you do it to me please?
  12. no i used triggerClientEvent in serverside
  13. Got a little problem, when player lock the vehicle it play the locking sound but everybody can hear, and i want only the player who lock the vehicle can hear it.
  14. okay thanks everything is working good
  15. like that? function sound () local sound = playSound("sounds/lock.mp3") setSoundVolume(sound, 0.5) end addEvent("lockSound", true) addEventHandler("lockSound", getRootElement(), sound)
  16. What about triggerClientEvent --because playSound is a client side function playSound triggerServerEvent --to trigger the lock and unlock event to to client side
  17. Working thanks a lot man, and im asking if i can play sound when locking and play sound when unlocking? what i can use?
  18. Like that? triggerServerEvent("lockCar", getLocalPlayer(), doLockVehicle)
  19. Hello all i have a little problem im trying to create a gui when player click on lock it lock the vehicle but when i make it it wont work here is a simple part from the script Client function lockButton() triggerServerEvent("lockCar", getLocalPlayer(), source) end addEventHandler ( "onClientGUIClick", GUIEditor.button[1], lockButton, false ) i want when player press button it lock the vehicle so i tried triggerServerEvent but nothing Server function doLockVehicle ( source ) local theVehicle , strout if ( getElementType(source) == "vehicle" ) then theVehicle = source end if ( getElementType(source) == "player" ) then theVehicle = getElementData ( source, "cl_ownedvehicle" ) end if ( theVehicle ) then local vehiclename = getVehicleName ( theVehicle ) -- already locked if ( getElementData ( theVehicle, "cl_vehiclelocked") == true ) then strout = "Your " .. vehiclename .. " is already locked." Err_Msg(strout, source) else setElementData ( theVehicle, "cl_vehiclelocked", true) setVehicleLocked ( theVehicle, true ) Car_Msg( "Current vehicle " .. vehiclename .. " locked.", theVehicle) Info_Msg ( "Locked vehicle " .. vehiclename .. ".", source ) if ( getVehicleController ( theVehicle ) == false ) then cl_FlashLights ( source ) end end else Err_Msg("You must have a vehicle to lock it.", source) end end addEvent("lockCar", true) addEventHandler("lockCar", getRootElement(), doLockVehicle)
  20. I tried and there is no spam in chatbox
  21. You mean if it work it will output in chat box ''I'm in''?
  22. I did but still nothing, nothing in debug
×
×
  • Create New...