Jump to content

BluntZ

Members
  • Posts

    220
  • Joined

  • Last visited

Everything posted by BluntZ

  1. If you want to sell than make new topic with [sEL] and add your script information in it,Thanks
  2. [12:04:40 PM] Hamza Butt ( BluntZ ): WARNING:Script'dx_hours system/client.lua is not encoded in UTF-8 Loading as ANSL.... [12:05:20 PM] Hamza Butt ( BluntZ ): ERROR:Loading Script Failed: dx_hours-system:1 unexpected symbol near 'chat (28) [12:05:58 PM] Hamza Butt ( BluntZ ): This is error when I type /TIMES , ERROR: Server triggered clientside event SHOW: But event is not addede clientside
  3. Stil same error
  4. function CHECK(thePlayer) if getPlayerSerial(thePlayer) == "3FF2E7C91279184D3104A1ACCA7F3B03" then triggerClientEvent("SHOW",thePlayer) else outputChatBox("# Access denied ! ",thePlayer,255,0,0) end end addCommandHandler("TIMES",CHECK) When I type /TIMES then it give me that error.
  5. No when I type /TIMES to give someone hours then that error show and it wont work..
  6. BluntZ

    .

    @BluntZ , it's a tool script to create gates automaticly, but he want to learn how to create it by scripting. Hello, to make a gate moving or openning, you need to use the main function is moveObject, click on the function to know more about it All the functions that you need to make a gate moving --Functions: createObject moveObject createMarker setTimer --or you can use it with colShape createColCircle --Events: onMarkerHit onMarkerLeave --copShape events: onColShapeHit onColShapeLeave Now you know which functions you need to do that, let's make a simple example to open a gate with marker local aGate = createObject( id, x, y, z ) -- creating the gate and defining it setElementRotation ( aGate , rx, ry, rz ) -- setting the rotation of the object that we created local theMarker = createMarker(x, y, z, "cylinder", 4,255,255,255,0) --we create our marker and set the alpha of it to 0 function openGate() moveObject ( aGate , speed, x, y, z ) end addEventHandler( "onMarkerHit", theMarker, openGate) function closeGate() moveObject (aGate , speed, x, y, z) end addEventHandler( "onMarkerLeave", theMarker, closeGate) Oh okay ! , You can use GTWGates script from GTW game mod.
  7. It is showing me for every script I restart / start , that UIF bla bla , Any one know what does that mean ?
  8. BluntZ

    .

    Try this https://forum.multitheftauto.com/viewtopic.php?f ... al#p835536 Dont forget to make yourself as manager by adding your account name in it.
  9. Hello everyone , i am getting this error , i dont know what that mean http://prntscr.com/8jonv7 I am using this script for playtime https://community.multitheftauto.com/in ... s&id=11991
  10. NGJobs > Law > General > Wanted_s.lua function giveWantedPoints ( p, amount ) if ( p and isElement ( p ) and tonumber ( amount ) ) then local amount = tonumber ( amount ) local wl = tonumber ( getElementData ( p, "WantedPoints" ) ) setElementData ( p, "WantedPoints", tonumber ( wl ) + amount ) return true end return false end addEventHandler ( "onPlayerDamage", root, function ( p, weap, loss ) if ( isElement ( p ) and p ~= source ) then local x, y, z = getElementPosition ( source ) --if ( getZoneName ( x, y, z, true ) == "Las Venturas" ) then return end if ( getElementData ( source, "NGEvents:IsPlayerInEvent" ) or getElementData ( p, "NGEvents:IsPlayerInEvent" ) ) then return end if ( getElementType ( p ) == 'vehicle' ) then if ( getVehicleOccupant ( p ) ) then p = getVehicleOccupant ( p ) else return end end local t = getPlayerTeam ( p ) if t then local t = tostring ( getTeamName ( t ) ) if weap then if ( t == "Emergency" and getElementHealth ( source ) < 100 and weap == 14 ) then if ( getElementData ( p, "Job" ) == "Medic" ) then return end elseif ( exports['NGPlayerFunctions']:isTeamLaw ( t ) and ( weap == 3 or weap == 23 ) and getPlayerWantedLevel ( source ) > 0 ) then return end end end giveWantedPoints ( p, math.floor ( loss * 3 ) ) end end ) local ticks = 0 local tickChange = 50 setTimer ( function ( ) ticks = ticks + 1 for i, v in ipairs ( getElementsByType ( 'player' ) ) do if ( not getElementData ( v, "NGJobs:ArrestingOfficer" ) and not getElementData ( v, "isPlayerJailed" ) ) then local wl = tonumber ( getElementData ( v, "WantedPoints" ) ) or 0 if ( wl >= 600 ) then setPlayerWantedLevel ( v, 6 ) elseif ( wl >= 450 ) then setPlayerWantedLevel ( v, 5 ) elseif ( wl >= 320 ) then setPlayerWantedLevel ( v, 4 ) elseif ( wl >= 210 ) then setPlayerWantedLevel ( v, 3 ) elseif ( wl >= 100 ) then setPlayerWantedLevel ( v, 2 ) elseif ( wl > 0 ) then setPlayerWantedLevel ( v, 1 ) elseif ( wl <= 0 ) then setPlayerWantedLevel ( v, 0 ) end if ( ticks >= tickChange ) then setElementData ( v, "WantedPoints", wl - 1 ) if ( wl - 1 < 0 ) then setElementData ( v, "WantedPoints", 0 ) end end end if ( getPlayerWantedLevel ( v ) > 0 ) then setPlayerNametagText ( v, tostring ( getPlayerName ( v ) ).."["..tostring ( getPlayerWantedLevel ( v ) ).."]" ) else setPlayerNametagText ( v, tostring ( getPlayerName ( v ) ) ) end local job = getElementData ( v, "Job" ) if job then local max_ = max_wanted[getJobType(job)] or 7 local w_l = getPlayerWantedLevel ( v ) if ( w_l ~= 0 and w_l > max_ ) then exports['NGMessages']:sendClientMessage ( "You've been resigned for having a high wanted level.", v, 255, 255, 0 ) resignPlayer ( v ) end end end end, 3000, 0 ) Correct path if ( wl >= 600 ) then setPlayerWantedLevel ( v, 6 ) elseif ( wl >= 450 ) then setPlayerWantedLevel ( v, 5 ) elseif ( wl >= 320 ) then setPlayerWantedLevel ( v, 4 ) elseif ( wl >= 210 ) then setPlayerWantedLevel ( v, 3 ) elseif ( wl >= 100 ) then setPlayerWantedLevel ( v, 2 ) elseif ( wl > 0 ) then setPlayerWantedLevel ( v, 1 ) elseif ( wl <= 0 ) then setPlayerWantedLevel ( v, 0 )
  11. Show error in debugscript 3
  12. Good job
  13. As Made said before that he will make On force start when he will get time as he is busy these days.
  14. Graphics depends upon your own computer GPU / resolution , Use max mta resolution and download High quality mods
  15. BluntZ

    Laser

    Any error in debugscript ?
  16. Try this https://forum.multitheftauto.com/viewtopic.php?f ... downloader , If you need help in installing / Adding mods then Feel free to contact me.
  17. Good job Try to use next time
  18. BluntZ

    [WIP] LIFE

    Awesome , Good luck
  19. Awesome Good Job , Keep up the good work
  20. Yes I accidently Changed it but when I Added it back , its giving me that error... Is there any way to delete old database from mysql ?
  21. Anyone can help me , I am getting this error [2015-09-11 09:51:51] WARNING: NGSQL/sql.lua:23: dbExec failed; (1) SQL logic error or missing database
  22. Awesome job
  23. What more to explain? I am saying to this guy
  24. add in level 5 group : resource. and then try command
  25. BluntZ

    Close [Topic]

    I cant understand your language :3
×
×
  • Create New...