Jump to content

#RooTs

Members
  • Posts

    1,990
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by #RooTs

  1. LOLLLL Thanks my friend I searched, did not find more Sorry
  2. I just want to know the name of the song, I like music
  3. try this https://community.multitheftauto.com/in ... ls&id=8123
  4. I did it, most do not know how finish, want to help me? please contact me I am Brazilian, more can speak a little more in English Skype: ( srzik4 )
  5. try this https://community.multitheftauto.com/in ... ls&id=2372
  6. which is name music in video ? ( 0:40s )
  7. HELP-ME PLEASEEEEEEEEEEEEEEEEEEEEEE
  8. hello everybody, so i want to create a system that calculate how much time the player is in a certain ACL group. but i don't know how can i do that. For example: i gave "VIP" for certain player, but in certain time expire. ( vip panel in DX )
  9. try this Server.lua addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), function() local tow = createVehicle(562, -2052.4907226563, 154.04287719727, 28.589487075806, 0, 0, 0, "Taller") addVehicleUpgrade ( tow, 1010 ) -- nitro setVehicleDamageProof( tow, true) -- make it damage-proof setVehicleIdleRespawnDelay ( tow, 10000 ) tallerSF = false end )
  10. is tricky to do that I can no longer help you the user (Chronic) and (xXMADEXx) is more experienced Sorry my friend
  11. Server.lua addEventHandler ( "onPlayerChat", root, function ( message, type ) if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "Vip" ) ) and type == 0 then cancelEvent ( ) local r, g, b = getPlayerNametagColor(source) outputChatBox ( "#FFFFFF*[ #000FFFVip#FFFFFF ]- " .. getPlayerName(source) .. ": " .. message, getRootElement(), r, g, b, true ) end end)
  12. try this Client.lua addEventHandler ( "onClientPlayerDamage",root, function () if getElementData(source,"invincible") then cancelEvent() end end) addEventHandler("onClientPlayerStealthKill",localPlayer, function (targetPlayer) if getElementData(targetPlayer,"invincible") then cancelEvent() end end) bindKey("1","down","protect") Server.lua function togglestaff(thePlayer) local account = getPlayerAccount(thePlayer) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) ) then if getElementData(thePlayer,"invincible") then setElementData(thePlayer,"invincible",false) outputChatBox("#00BFFFA Protect of: #FF0000".. getPlayerName(thePlayer) .." #FF0000OFF", getRootElement(),255,0,0,true) else setElementData(thePlayer,"invincible",true) outputChatBox("#00BFFFA Protect of: #FF0000".. getPlayerName(thePlayer) .." #00FF00ON", getRootElement(),255,0,0,true) end end end addCommandHandler("protect",togglestaff)
  13. what is the function of that? addEventHandler("onVehicleExplode",root, function() if(carUsedCount[source]) then carUsedCount[source] =nil end end)
  14. (Chronic) worked is possible create one table for elsewhere coordinates EXAMPLE: local Positions = { { 653.35773, -1769.18567, 13.57368 }, { 664.65936, -1755.74182, 13.45477 }, } for index = 1, #Positions do local test = createPickup ( Positions [ index ] [ 1 ], Positions [ index ] [ 2 ], Positions [ index ] [ 3 ], 3, 1239, 10000 ) end ( I tested it, and it only worked in one pickup ) ADD: function onHit() test = createPickup (653.35773, -1769.18567, 13.57368, 3, 1247, 10000 ) addEventHandler("onPickupHit",test, function(player) if isPedInVehicle(player) then local vehicle = getPedOccupiedVehicle(player) usePickup ( test, player ) setPlayerWantedLevel(getVehicleController(vehicle),getPlayerWantedLevel(getVehicleController(vehicle))-1) else setPlayerWantedLevel(player,getPlayerWantedLevel(player)-1) usePickup ( test, player ) end end) end addEventHandler("onResourceStart",resourceRoot, onHit)
  15. (manawydan )THAT? local carUsedCount = {} function inCar(thePlayer) if (carUsedCount[source]) then carUsedCount[source] = carUsedCount[source] +1 else carUsedCount[source] = 1 end if (carUsedCount[source] == 1) then outputChatBox("#ffffff"..getPlayerName( thePlayer ):gsub('#%x%x%x%x%x%x', '').. " #ff0000First time to enter in this vehicle",thePlayer, 255, 200, 0, true) end if (carUsedCount[source] == 2) then outputChatBox("#ffffff"..getPlayerName( thePlayer ):gsub('#%x%x%x%x%x%x', '').. " #ff0000Second time to enter in this vehicle",thePlayer, 255, 200, 0, true) end if (carUsedCount[source] == 3) then outputChatBox("#ffffff"..getPlayerName( thePlayer ):gsub('#%x%x%x%x%x%x', '').. " #ff0000Tree time to enter in this vehicle",thePlayer, 255, 200, 0, true) end end addEventHandler("onVehicleEnter" ,root, inCar) -- that ? addEventHandler("onVehicleExplode",root, function() if(carUsedCount[source]) then carUsedCount[source] =nil end end)
  16. try this function buyhealth ( thePlayer ) local NomeAcl = getAccountName(getPlayerAccount(player)) if ( team and getTeamName(team) == "Admin" ) or isObjectInACLGroup ("user."..NomeAcl, aclGetGroup ( "Admin" ) ) then return end outputChatBox ('message health chatbox', root, 255, 255, 255, true) setElementHealth ( thePlayer, 100 ) end end addCommandHandler ( "health", buyhealth )
  17. want the command only for admin? you can use isObjectInACLGroup aclGetGroup
  18. or try this Server.lua function buyhealth ( thePlayer ) outputChatBox ('message health chatbox', root, 255, 255, 255, true) setElementHealth ( thePlayer, 100 ) end end addCommandHandler ( "health", buyhealth ) --======================= function buyarmor ( thePlayer ) outputChatBox ('message armor chatbox', root, 255, 255, 255, true) setPedArmor ( thePlayer, 100 ) end end addCommandHandler ( "armor", buyarmor ) --====================== function HealthArmor ( thePlayer ) outputChatBox ('message health and armor chatbox', root, 255, 255, 255, true) setElementHealth ( thePlayer, 100 ) setPedArmor ( thePlayer, 100 ) end end addCommandHandler ( "giveall", HealthArmor )
  19. try this Meta.xml "YOGA" type="script" version="1.0.0" /> Server.lua function buyhealth ( thePlayer ) local money = getPlayerMoney ( thePlayer ) if money >= 250 then local thePlayerhealth = getElementHealth ( thePlayer ) setElementHealth ( thePlayer, 100 ) else end end addCommandHandler ( "health", buyhealth ) --================================= function buyarmor ( thePlayer ) local money = getPlayerMoney ( thePlayer ) if money >= 500 then local thePlayerarmor = getPedArmor(thePlayer) setPedArmor ( thePlayer, 100 ) else end end addCommandHandler ( "armor", buyarmor )
  20. change the title of the first post for ( How i can export xml list?[sOLVED] ) please.....
  21. IMAGE 01 IMAGE 02 Meta.xml Client.lua
  22. FAIL IN VEHICLE MY FRIEND, NO DESTROY IN VEHICLE
×
×
  • Create New...