-
Posts
1,413 -
Joined
-
Last visited
-
Days Won
19
Everything posted by Tekken
-
Just after this setTimer(function()
-
Does this have to be a vehicle component ? If not you can create an object attach it to vehicle and apply rotation to abject when vehicle moves?
-
What schedule ?
-
Ohhh ok got it wait a sec Add this to onClientPlayerDamage if weapon == 51 then triggerEvent("killDayzPlayer", localPlayer); return; end This is already in your code but you don’t have the return thing, you mai just add that after the triggerEvent
-
Well that should work, please note that if used on client side that returns the clients computer time witch might be different from server time! A work around will be to set the game time as the real time on server side and get the game time on the client. If not you can set it as an elementData on root element and update that data every hour on server
-
Just add the isDead element data before triggering the event, also can you send a debugscript 3 img of when a veh explode with you driving it?
-
Then you should start the timer when client streams in and not before, a simple if check should do such as if isElement(getLocalPlayer()) then
-
Is this in server side or client side?
-
Instead of outputChatBox("#d75959[Admin AFK]:#32b3ef " .. getLocalPlayer() .. "#ffffff 5 perce AFK dutyban.", getRootElement(), 255, 255, 255, true) Use: outputChatBox("#d75959[Admin AFK]:#32b3ef " .. getPlayerName(getLocalPlayer()) .. "#ffffff 5 perce AFK dutyban.", getRootElement(), 255, 255, 255, true
-
addEventHandler("onVehicleExplode", root, function() local occupants = getVehicleOccupants(source); for i = 0, #occupants do local player = occupants[i]; setElementData(player, "isDead", true); triggerEvent("killDayZPlayer", player); end end); server ^ This should work, if not let me know. I wrote it on phone.
-
? SQL should do it! However if you’re not experienced I suggest searching on community for an already made script https://community.multitheftauto.com If you still want to give it a try, we’re here to help!
-
local value = gettheranktype(); print(tostring(value)); This is called defining a variable
-
Hello, I’ve moved your topic to the appropriate section for best results! To fade you can decrease alpha until completely disappeared ? Also you can use this function to create some nice effects https://wiki.multitheftauto.com/wiki/InterpolateBetween
-
onPlayerQuit has an argument quitType you can check if quitType == "Kicked" and dbExec after ?
-
[Help/Bug?] CreatePed are invincible /w slothbot
Tekken replied to PiscioMastella's topic in Scripting
@Bean666 might want to add <oop>true</oop> to meta.xml to make sure that works -
Hello, I’ve moved your topic to scripting section for best results! I cannot understand your question will you please develop?
-
[Help/Bug?] CreatePed are invincible /w slothbot
Tekken replied to PiscioMastella's topic in Scripting
Hello and welcome! Will you please edit your topic and use the code tags <> for us to better understand your code? Greetings! -
Hello I’ve moved your topic to appropriate section! You need to set stats with https://wiki.multitheftauto.com/SetPedStat setPedStat(player, 77, 999) setPedStat(player, 78, 999) That will make it for AK47 and M4 Do this onPlayerSpawn/Join
-
https://wiki.multitheftauto.com/wiki/SetCameraMatrix That should do what you want, it will require some math though.
-
Your's is INSERT INTO `logging` SET name= 0, account= ?, type= ?, type2= ?, tick= ?, action= ?, serial= ? Notice the 0 for name where should be ?
-
Make controller = ped in dvo.load function
-
Change this: dvo.allowedElementType = { ["ped"] = true; } with this dvo.allowedElementType = { ["player"] = true, ["ped"] = true }
-
So you are trying to apply this only to PEDS and not PLAYERS, I'm I right ? And this is only working for you? And not for other clients?