Jump to content

IIYAMA

Moderators
  • Posts

    6,097
  • Joined

  • Last visited

  • Days Won

    218

Everything posted by IIYAMA

  1. maybe you should check the .map file and see the dimensions of the objects.
  2. The lines you want to improve or fix? else it will be a useless conversation.
  3. You can better use absolute and calculate for some parts factors, to change it back to relative. Absolute is in pixels. sample: 1920 x 1080 pixels Relative is 0 t/m 1 0 = 0% size 1 = 100% size
  4. yes, banPlayer ( player,IP, Username, Serial, 4 argument is true.
  5. banPlayer ( source, false,false,true, nil,"Don't Hack the Server !", 0 ) Just put this in place of the kickPlayer and add admin rights for the resource.
  6. https://wiki.multitheftauto.com/wiki/BanPlayer
  7. function createMinigunWeapon() local x, y, z = getElementPosition(getLocalPlayer()) local weapon = createWeapon("minigun", x, y, z + 1) --setWeaponFiringRate(weapon, 100) setWeaponClipAmmo ( weapon,99999) setWeaponState ( weapon,"firing") end addCommandHandler("createminigun", createMinigunWeapon)
  8. NOTE: local root = getRootElement() no need for, root is already defined as getRootElement().
  9. oh didn't not read that part, is everything fixed now?
  10. no no no, now you post another script.
  11. addEvent("pizzaReachDestination",true) addEventHandler("pizzaReachDestination",getRootElement(), function (thePlayer) local theVehicle = getPedOccupiedVehicle(thePlayer) if not theVehicle or getElementModel(theVehicle) ~= 448 then return end -- must be a number, not a string "448" > 448 -- outputChatBox("You have delivered the pizza, and received $25", thePlayer, 0, 255, 0) exports.global:giveMoney(thePlayer, 25) if getElementData(thePlayer,"pizzaStop") == #pizzaRoute[getElementData(thePlayer,"pizzaRoute")] then setElementData(thePlayer,"pizzaStop",1) else setElementData(thePlayer,"pizzaStop",tonumber(getElementData(thePlayer,"pizzaStop"))+1) end GGgetNewDDestination(thePlayer, getElementData(thePlayer,"pizzaStop")) end)
  12. local animationStop = function (player) if isElement(player) then setPedAnimation(player,false) outputChatBox("animation stopped",player) end end addCommandHandler("anim", function (player) setPedAnimation ( player, "ped", "WOMAN_walknorm", 1000, true, true, false,true ) setTimer(animationStop,1000,1,player) end)
  13. yes do what? another animation?
  14. IIYAMA

    help

    yep function killPlayerIfTheyPressThisKey ( thePlayer, key ) if ( getControlState ( thePlayer, key ) ) then outputChatBox ( "You can do that..", thePlayer ) setElementVelocity ( thePlayer, 3, 3, 1 ) else --- end end
  15. Is it a stolen/leaked script?
  16. timer?
  17. IIYAMA

    An Question

    Sometimes there is data that is created at client side, I didn't mention that you use some of it client. Just in case.
  18. math.random(-40,40) random from the center,
  19. np.
  20. You should watch out with those timers, they can destroy your whole server performance. I don't know what the problem is, every seems fine except for the amount of timers for some elements. Try this and make check if the markers got created: local elementTable = {} for i=1, 8 do local newX, newY = getPointFromDistanceRotation(x, y, 15, 360 * (i/8)); local marker_round = createMarker(x,y,z,"corona",3,math.random(255),math.random(255),math.random(255),255) local dumy_round = createObject(1235,x,y,z) attachElements(marker_round,dumy_round) moveObject(dumy_round,4000,newX,newY,z-20,0,0,0,"OutQuad") elementTable[#elementTable+1]=marker_round elementTable[#elementTable+1]=dumy_round if marker_round then outputChatBox("marker successfully created, marker number: " .. i) end end setTimer(function() for i=1,#elementTable do local element = elementTable[i] if isElement(element) then destroyElement(element) end end end,4000,1)
  21. function afkKill() local car = getPedOccupiedVehicle(source) if car then blowVehicle (car) end end addEvent( "afkSlap", true ) addEventHandler( "afkSlap", getRootElement(), afkKill) Make sure he has a car before you try to blow it. You can't blow a boolean(false).
  22. IIYAMA

    An Question

    People that crash most of the time end up with Timed out. Client data can't reach the server, so things on clientside can't saved on the server any more. But serverside data should not be a problem, as long the receive functions start directly after he quits. It must be something with the system, as far I know the event always got triggered. But if I am wrong, pls let me know.
  23. IIYAMA

    problem sql

    no proof needed, he is a known stealer. Wasted my time a several times,
  24. IIYAMA

    onPedWasted

    use onPlayerWasted as well.
×
×
  • Create New...