Jump to content

FatalTerror

Members
  • Posts

    304
  • Joined

  • Last visited

Everything posted by FatalTerror

  1. Yes i found it but... It work only when the mouse are on top of a GUI element. I want detect the scroll (up and down) not only when he is on a GUI element. Understand ? ^^ Example: I'm mapping and i want change fastly the object. I scroll the mouse and it change the object
  2. Hi, Exist one event when the player scroll the mouse on up or down ? Thanks
  3. Don't have problem... redirectPlayer() must admin rights, if your script don't have, give him.
  4. https://forum.multitheftauto.com/viewtopic.php?f=91&t=38414
  5. Make an array like this: countryNames = { ["IT"]="Italy", ["MX"]="Mexico", ["SA"]="SAUDI ARBIA", ["EG"]="EGYPT" } addEventHandler("onPlayerJoin", getRootElement(), function() local country = exports['admin']:getPlayerCountry(source) if country then setElementData(source, "Country", country) local thecountry = countryNames[country] outputChatBox('[JOIN] #ffffff' .. getPlayerName(source) .. '#00FF09 Joined The Server From #FF8900[' .. tostring(thecountry) .. '] ', getRootElement(), 2, 255, 2, true) end end)
  6. FatalTerror

    local player

    Client argument: bool showPlayerHudComponent ( string component, bool show ) If you add getLocalPlayer(), it will be server side. BUT getLocalPlayer() works only in client side
  7. FatalTerror

    local player

    It's on client side... Ye
  8. FatalTerror

    local player

    addEventHandler("onClientGUIClick", getRootElement(), function() if(source == TheBouton)then showPlayerHudComponent ("radar", false) outputChatBox("Radar disabled !", source) end end) Like this ?
  9. This don't help me addEventHandler("onClientClick", getRootElement(), function( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement ) if(button == "left")then if(state == "down")then local x, y, z = worldX, worldY, worldZ if x and y and z then -- Move the player to x, y and z end end end)
  10. I add emoticons to make the tutorial a little friendly and not as plain text.
  11. Ye i see but it don't give me how move him to x, y and z positions
  12. I want to player walk automatically of posA to posB I was without touching the keyboard
  13. Hi, I want Move the ped of player as if he walked but i don't know if exist an function for it Possible ? Thanks
  14. I think he confused with HTML file & PHP File .html file accept only HTML/CSS/Javascript language. The PHP file accept HTML/CSS/Javascript AND the PHP. (for the nuubs )
  15. Great, keep it up Where are arguments ? ^^ int getPlayerPoints(element player ) bool setPlayerPoints(element player, int amount) bool takePlayerPoints(element player, int amount) bool givePlayerPoints(element player, int amount)
  16. FatalTerror

    3D Grid

    Hi, I'm doing a little GameMode and I need the player to add objects using the mouse pointer. I made it but I want them to be objects as if they were aligned in a grid like Minecraft gamemode If you know how i can do it Tell me Thx, FatalTerror
  17. Hi, function addTotalKill(totalAmmo, killer, killerWeapon, bodypart, stealth) local account = getPlayerAccount (killer) if (account) and (killer) then setAccountData(account,"totalkillsdeaths.kills",getAccountData(account,"totalkillsdeaths.kills")+1) setElementData(killer, "Total Kills", getAccountData(account,"totalkillsdeaths.kills")) end end addEventHandler ("onPlayerWasted", getRootElement(), addTotalKill) function addTotalDeath(totalAmmo, killer, killerWeapon, bodypart, stealth) local account = getPlayerAccount (source) if (account) then setAccountData(account,"totalkillsdeaths.Deaths",getAccountData(account,"totalkillsdeaths.Deaths")+1) setElementData(source, "Total Deaths", getAccountData(account,"totalkillsdeaths.Deaths")) end end addEventHandler ("onPlayerWasted", getRootElement(), addTotalKill) function checkAccountKillsDeaths(thePreviousAccount, theCurrentAccount, autoLogin) if (getAccountData(theCurrentAccount,"totalkillsdeaths.kills") == nil) and (getAccountData(theCurrentAccount,"totalkillsdeaths.deaths") == nil) then setAccountData(theCurrentAccount,"totalkillsdeaths.kills",0) setAccountData(theCurrentAccount,"totalkillsdeaths.deaths",0) end end addEventHandler("onPlayerLogin",getRootElement(),checkAccountKillsDeaths) addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function() call(getResourceFromName("scoreboard"), "addScoreboardColumn", "Total Kills",getRootElement(),1) call(getResourceFromName("scoreboard"), "addScoreboardColumn", "Total Deaths",getRootElement(),2) end)
  18. FatalTerror

    Money

    You don't add ? And it's client side... givePlayerMoney use only 1 argument in client-side. bool givePlayerMoney ( int amount ) Try that: function playerMoney() givePlayerMoney ( 12000 ) end addCommandHandler("givemoney", playerMoney)
×
×
  • Create New...