-
Posts
6,097 -
Joined
-
Last visited
-
Days Won
218
Everything posted by IIYAMA
-
maybe you should check the .map file and see the dimensions of the objects.
-
The lines you want to improve or fix? else it will be a useless conversation.
-
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
-
np.
-
yes, banPlayer ( player,IP, Username, Serial, 4 argument is true.
-
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.
-
https://wiki.multitheftauto.com/wiki/BanPlayer
-
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)
-
NOTE: local root = getRootElement() no need for, root is already defined as getRootElement().
-
oh didn't not read that part, is everything fixed now?
-
no no no, now you post another script.
-
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)
-
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)
-
yes do what? another animation?
-
Is it a stolen/leaked script?
-
Sometimes there is data that is created at client side, I didn't mention that you use some of it client. Just in case.
-
math.random(-40,40) random from the center,
-
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)
-
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).
-
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.
-
no proof needed, he is a known stealer. Wasted my time a several times,
