Jump to content

HUNGRY:3

Members
  • Posts

    395
  • Joined

  • Last visited

Everything posted by HUNGRY:3

  1. setCameraTarget(source,source)
  2. HUNGRY:3

    Browser

    hello i made a browser that draws in the ground so i want when player enter the url in the editbox the video must start but it's not working .. code: nope you're not gonna steal it.
  3. HUNGRY:3

    blip

    function blip() createBlip( 2287.10546875, 2432.3681640625, 10.8203125,30 , 0, 0 ,255 ) end addEventHandler("onClientResourceStart", root, blip)
  4. setElementDimension -- fake world setElementPosition -- position setElementData -- .. -- events : "onClientGUIClick" About when u click image i would suggest u to make a button then set the button alpha to 0 and then create and image... this is not all the function it's just the most important things.. I guess
  5. Hello guys I have a problem when i start mta and go to my server there is no problem but when I quit and then start mta again it gives me error and it says it fails to download some thing ballalalalalalala it's not only me other players too it happens to them ..please help me. But in other server it works very well I'm using 1.4.1 btw. Thanks ..
  6. HUNGRY:3

    Anti teamkill

    addEventHandler("onResourceStart", resourceRoot, function() setTeamFriendlyFire(getTeamFromName("YOUR_TEAM_NAME"), false) end )
  7. local gate1 = createObject(980, -2131.6999511719, 504.20001220703, 36.799999237061, 0, 0, 270) function Gate1(player) if not getElementData(player,"gater1") == true then setElementData(player,"gater1",true) moveObject(gate1, 3000, -2131.6999511719, 504.20001220703, 37.3848484) else if getElementData(player,"gater1") == true then setElementData(player,"gater1",false) moveObject(gate1, 3000, -2131.6999511719, 504.20001220703, 36.799999237061) end end end addCommandHandler ("test", Gate1) Type /test to open and close
  8. HUNGRY:3

    1 error

    GTA BLOOD is not like dayz blood replace setElementHealth with setElementData(source,"blood", -2000) when he get damaged by vehicle
  9. just change the positions to some thing else and make sure it's not the same...
  10. local gate1 = createObject(980, -3117.3000488281, 471, 14.39999961853, 0, 0, 270) --the gate pos function Gate1(player) if not getElementData(player,"gater1") == true then setElementData(player,"gater1",true) moveObject(gate1, 3000, -3117.3000488281, 471, 8.7)-- this is when the gate open position else if getElementData(player,"gater1") == true then setElementData(player,"gater1",false) moveObject(gate1, 3000, -3117.3000488281, 471, 14.39999961853)-- this is when gate close position end end end addCommandHandler ("test", Gate1) -- to open the gate with same command it close/open
  11. HUNGRY:3

    Re-captcha

    it makes sure that the player isn't noob :3
  12. The music is the best thing :D any way thanks!
  13. Poop Can Quick Scope.
  14. you made a little mistake NOTE: the car won't blow up if it's down down in the water and it will get blowed every time addEventHandler ( "onClientResourceStart", resourceRoot, function () local theVehicle = getElementsByType ( "vehicle" ) setTimer ( function ( ) for theKey, theVehicle in ipairs ( theVehicle ) do if isElementInWater ( theVehicle ) then blowVehicle ( theVehicle ) end end end, 30000, 0 ) end )
  15. EDIT: just tested it try this function BuyWeaponOnServer(weapon_name) player_money = getPlayerMoney(source) player_account = getPlayerAccount(source) local price_plane = "5000" if(getAccountData(player_account, "GunLicense") == true) then if(weapon_name == "weapon_plane") then local USAteam = getTeamFromName("USA") if (USAteam) then if(player_money >= tonumber(price_plane)) then takePlayerMoney(source, tonumber(price_plane)) local x,y,z = getElementPosition(source) local vehicle = createVehicle(476,-2117.46, -2340.69, 100 + 3) warpPedIntoVehicle(source,vehicle) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("You have bought a plane.", source, 0, 255, 0) end else local Axisteam = getTeamFromName("Axis") if (Axisteam) then if(player_money >= tonumber(price_plane)) then takePlayerMoney(source, tonumber(price_plane)) local x,y,z = getElementPosition(source) local vehicle = createVehicle(446,-2117.46, -2340.69, 100 + 3) warpPedIntoVehicle(source,vehicle) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("You have bought a plane.", source, 0, 255, 0) else outputChatBox("You do not have enough money to buy a plane.", source, 255, 0, 0) end else outputChatBox("You dont have a license to buy arms.", source, 255, 0, 0) end end end end end addEvent("onClientBuyWeapon", true) addEventHandler("onClientBuyWeapon", getRootElement(), BuyWeaponOnServer) function BuyWeaponLicense() player_money = getPlayerMoney(source) player_account = getPlayerAccount(source) local license_price = "55000" if(getAccountData(player_account, "GunLicense") == false) then if(player_money >= tonumber(license_price)) then setAccountData(player_account, "GunLicense", true) takePlayerMoney(source, tonumber(license_price)) outputChatBox("Now you have a license for arms.", source, 0, 255, 0) else outputChatBox("You do not have enough money to buy a license for arms.", source, 255, 0, 0) end else outputChatBox("You already have a license for arms.", source, 255, 0, 0) end end addEvent("onClientBuyLicense", true) addEventHandler("onClientBuyLicense", getRootElement(), BuyWeaponLicense)
  16. you can't use getaccontdata,setaccountdata and warppedintovehicle in client side
×
×
  • Create New...