Jump to content

Blinker.

Members
  • Posts

    148
  • Joined

  • Last visited

Everything posted by Blinker.

  1. I've tried that already , but it will look so shit , the player looks at his health when it's 26% and the next hit it will be 0 %. I want it to be normal example: 26% then 23% ..till 0 and it will be on fire.
  2. Hello IIYAMA, If I use that , I will get 75% on full health. I need it to be 100% on full health and 0% on fire. I saw that in many servers like MIKI dd.
  3. Hello , I've made a script to show health and nos in the bottom of the screen instead of the normal race Health bar , the problem is i'm using a percentage , whenever the health reach 25 % the car becomes on fire.. i need the health to be on 0% to become on fire. i'm using math.round((getElementHealth(getPedOccupiedVehicle(localPlayer))/10),0) Thanks !
  4. Hehe , can u please add in it Name of the country after the flag ?
  5. Hello folks, i'm using this resource https://community.multitheftauto.com/index.php?p=resources&s=details&id=4019 , i've edited Home to be Country and it worked. http://imgur.com/Rq54Wkr the problem is i want to set in the column and Country name . So for example my country is Lebanon i want it to be LB i've tried a lot and without success Any help would be greatly appreciated.
  6. Tag names like Blinker on the cars in race ? i am not sure if it's the right function.
  7. also not working , i have a question is this used to hide name tags that are seen on the cars in race?
  8. hello , i want to turn off all players nametags , but it's not working. i'm using the wiki example function onResourceStart ( ) local players = getElementsByType ( "player" ) -- Store all the players in the server into a table for key, player in ipairs ( players ) do -- for all the players in the table setPlayerNametagShowing ( player, false ) -- turn off their nametag end end addEventHandler ( "onResourceStart", root, onResourceStart ) Thanks in Advance
  9. You are the best LinKin ! Thanks.
  10. using race , how am i supposed to leave the vehicle?
  11. lol man it's the same , if i delete outputChatBox or add it , doesn't work.
  12. Hello TAPL , i tried using setTimer , and aslo it's not working. the error is @ local veh = getPedOccupiedVehicle( source ) actually. so i wanted to reduce the size of the error since the error is @ local veh = getPedOccupiedVehicle( source ) and it's causing the addVehicleUpgrade(veh,id) to stop working tho.
  13. hello folks , i was trying to add a vehicle upgrade when the player spawn but it's not working. Errors : @ addVehicleUpgrade(veh,id) | expected ped at argument 1 got nil so i guess it's not detecting the ped to detect the Vehicle he's using. i'm using the following: -- id is defined. addEventHandler("onPlayerSpawn",root, function() outputChatBox'1' local veh = getPedOccupiedVehicle( source ) addVehicleUpgrade(veh,id) end) Any help would be greatly appreciated
  14. Blinker.

    doesnt work

    function levelSys (source) thePlayer = source local nick = getPlayerName(source) local playerwins = getElementData(source,"Wins") local lev = getElementData(source,"Level") local dds = getElementData(source,"Deaths") + getElementData(source,"Wins") outputChatBox("#FFFFFF" .. nick .. ":#FFFFFF Level: " ..lev.. "" , getRootElement(), 255, 255, 255, true) if getElementData(source,"Deaths") + getElementData(source,"Wins") < 1 then setElementData(source,"Level",1) elseif getElementData(source,"Deaths") + getElementData(source,"Wins") < 2 then setElementData(source,"Level",2) elseif getElementData(source,"Deaths") + getElementData(source,"Wins") < 4 then setElementData(source,"Level",3) elseif getElementData(source,"Deaths") + getElementData(source,"Wins") < 8 then setElementData(source,"Level",4) elseif getElementData(source,"Deaths") + getElementData(source,"Wins") < 15 then setElementData(source,"Level",6) end end addCommandHandler("ane", levelSys)
  15. betrayed ? ha-ha , nvm it's not a place to solve our non-mta problem. take a look at http://www.game-state.com/178.248.250.97:22003/ Thanks
  16. Hello , i have bought a linux vps , installed 1 mta sa server on it and it's working well , but whenever i try to install and run another server i get: MTA:BLUE Server for MTA:SA Press Q to shut down the server! ERROR: Could not start HTTP server on interface '' and port '22005'! Server stopped! And another question ( i don't know if this section is the wrong section ) , how can i add symbols in my server name , when i add symbols i get ??? instead of the symbol Thanks in advance!
  17. Hello , i've got another problem , when i start the script , i can see online admins,smods and mods , but when i reconnect , i can't see them and get erros , i need to restart the script in order to make it work. errors :bad argument at 'getPlayerAccount' (expected element at argument 1 ) bad argument at 'getAccountName' [expected element at argument 1 got boolean] both at this line if isObjectInACLGroup("user.".. getAccountName(getPlayerAccount(v)),aclGetGroup'Admin') then Thanks in advance.
  18. Woops , what a failure. Thanks!
  19. Hello Folks , i've made a gui which shows online Admins ,smods and mods. the problem is not all admins,smods and mods are showing in the gui , not even in the chatbox(for test). here's my script (server side): local onlineplayers = getElementsByType("player") function checkadmins() Admins = "" for i ,v in ipairs (onlineplayers) do if isObjectInACLGroup("user.".. getAccountName(getPlayerAccount(v)),aclGetGroup'Admin') then Admins = getPlayerName(v):gsub("#%x%x%x%x%x%x", "").." - Admin\n" end end return Admins end function checksmod() smod = "" for i ,v in ipairs (onlineplayers) do if isObjectInACLGroup("user.".. getAccountName(getPlayerAccount(v)),aclGetGroup'SuperModerator') then smod = getPlayerName(v):gsub("#%x%x%x%x%x%x", "").." - Supermoderator\n" end end return smod end function checkmod() mod = "" for i ,v in ipairs (onlineplayers) do if isObjectInACLGroup("user.".. getAccountName(getPlayerAccount(v)),aclGetGroup'Moderator') then mod = getPlayerName(v):gsub("#%x%x%x%x%x%x", "").." - Moderator\n" end end return mod end function checkall () admins = checkadmins() smod = checksmod() mod = checkmod() outputChatBox(mod..smod..admins) triggerClientEvent("Triggered:data",root,admins,smod,mod) end addEvent("checkall",true) addEventHandler("checkall",root,checkall) edit : forgot to mention , checkall is triggered by the client side when the player opens the gui.
  20. i guess the problem is setElementPosition , i've asked my friend he had a script to move the car after the player dies, he was using another event , but it doesn't work also in 1.4 , so the problem is setElementPosition
  21. i've already tried it doesn't work because it doesn't detect the car.
  22. Blinker.

    1.4 problem

    Hello folks ,i was using a script to move a vehicle when a player dies in Destruction Derby gamemode to prevent car bugs.. so when a player Dies the car will be moved to another place but now in 1.4 version it's not working , i don't know why it's not working. in older versions it was working well i am using : function moveVehicle ( vehicle ) local x, y, z = getElementPosition ( vehicle ) if ( vehicle ) then setElementPosition ( vehicle, x, y, z - 100 ) end end addEvent ( "onPlayerRaceWasted", true ) addEventHandler ( "onPlayerRaceWasted" , getRootElement(), moveVehicle ) i guess onPlayerRaceWasted is not working anymore in this new Race. is there any alternative for onPlayerRaceWasted ? Thanks in advance.
  23. Blinker.

    Money

    Ah , sorry , thought u wanted to change the amount of money.
  24. Blinker.

    Money

    givePlayerMoney
×
×
  • Create New...