Jump to content

gordliamjack

Members
  • Posts

    29
  • Joined

  • Last visited

Details

  • Gang
    rev crew

gordliamjack's Achievements

Advanced Member

Advanced Member (8/54)

0

Reputation

  1. omg thank you i really needed it because i suck at scripting
  2. local height = 0 height = 0 SizeVal = 2998 -- Defining variables. southWest_X = -SizeVal southWest_Y = -SizeVal southEast_X = SizeVal southEast_Y = -SizeVal northWest_X = -SizeVal northWest_Y = SizeVal northEast_X = SizeVal northEast_Y = SizeVal -- OnClientResourceStart function that creates the water. function Createwater() water = createWater ( southWest_X, southWest_Y, height, southEast_X, southEast_Y, height, northWest_X, northWest_Y, height, northEast_X, northEast_Y, height ) setWaterLevel ( height ) end function drainSomeWater() height = height + 1 setWaterLevel ( height ) end setTimer ( drainSomeWater, 100, 15000 ) addEventHandler ( "onResourceStart", getRootElement(), drainSomeWater ) addEventHandler ( "onResourceStart", getRootElement(), Createwater )
  3. hey guys can you help my script gui is not working {help ok here is gui.lua function CreateWeaponWindow() GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(60,142,1477,824,"Weapon store v0.1",false) GUIEditor_Label[1] = guiCreateLabel(0.3825,0.034,0.2505,0.1153,"Weapons",true,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) guiSetFont(GUIEditor_Label[1],"sa-gothic") GUIEditor_Button[1] = guiCreateButton(0.0779,0.1481,0.1205,0.1141,"Exit",true,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"sa-header") GUIEditor_TabPanel[1] = guiCreateTabPanel(0.3453,0.0206,0.0007,0.0012,true,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) GUIEditor_TabPanel[2] = guiCreateTabPanel(0.3324,0.1893,0.6317,0.7658,true,GUIEditor_Window[1]) GUIEditor_Tab[2] = guiCreateTab("Big Guns",GUIEditor_TabPanel[2]) GUIEditor_Button[5] = guiCreateButton(0.3537,0.0479,0.2808,0.8893,"",true,GUIEditor_Tab[2]) GUIEditor_Button[6] = guiCreateButton(0.6592,0.0479,0.2808,0.8893,"",true,GUIEditor_Tab[2]) GUIEditor_Button[8] = guiCreateButton(0.0418,0.0479,0.2808,0.8893,"",true,GUIEditor_Tab[2]) GUIEditor_Memo[1] = guiCreateMemo(0.0589,0.4793,0.2444,0.4347,"Buy this basic pack of weapons including enough to pack a punch\\n\\n\\nIn this pack you get:\\n\\n",true,GUIEditor_Tab[2]) GUIEditor_Tab[3] = guiCreateTab("Random suff",GUIEditor_TabPanel[2]) GUIEditor_Tab[4] = guiCreateTab("Army Supplys",GUIEditor_TabPanel[2]) end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function () CreateWeaponWindow() showCursor(true) guiSetInputEnabled(true) end ) ok here is meta.xml <meta> <info author="Gordon MacPherson - Revolution" description="weapon shop" /> <script src="gui.lua" type="client" /> </meta>
  4. function setupForRace ( ) local RacerPed = createPed (1171.09765625,-2037.2551269531,69.0078125) local RaceVehicle = createVehicle (1161.5633544922,-2043.7193603516,69.0078125) -- create a vehicle. warpPedIntoVehicle ( RacerPed, RaceVehicle ) -- warp the ped straight into the vehicle end addCommandHandler ( "startrace", setupForRace ) -- add a command to start race hey every time i type startrace i get a bunch of errors here are the errors take from my log files [10:35:24] New resource 'ped' loaded [10:35:25] Resources: 137 loaded, 0 failed [10:35:25] Starting ped [10:35:45] WARNING: pedRace.lua: Bad argument @ 'createPed' - Line: 2 [10:35:45] WARNING: pedRace.lua: Bad argument @ 'createVehicle' - Line: 3 [10:35:45] WARNING: pedRace.lua: Bad argument @ 'warpPedIntoVehicle' - Line: 4 [10:35:55] WARNING: pedRace.lua: Bad argument @ 'createPed' - Line: 2 [10:35:55] WARNING: pedRace.lua: Bad argument @ 'createVehicle' - Line: 3 [10:35:55] WARNING: pedRace.lua: Bad argument @ 'warpPedIntoVehicle' - Line: 4 any clues? am i crazy? http://development.mtasa.com/index.php? ... ntoVehicle
  5. hello guys how do i join? im a noob scripter wanting to help
  6. function rewardOnWasted ( ammo, killer, killerweapon, bodypart ) --if there is a killer, and that killer is not the same person as whoever died if ( killer ) and ( killer ~= source ) then givePlayerMoney ( killer, 100000 ) --reward the killer with 1000 cash. end end addEventHandler ( "onPlayerWasted", getRootElement(), rewardOnWasted ) --attach the rewardOnWasted function to the relevant event. how do i make this reward me money when i waste a ped?
  7. why can we not just re enable the peds original ai from san andreas and sync it (not as easy as it sounds is it? lol)
  8. ive already done this it just it up evan more fixed it thanks
  9. ive already done this it just fucks it up evan more
  10. admin panel opens but nothing works i use the nightly builds :::story:::: i login whilst in game then it asks me to press p i press i click on my name it does nothing so i try clicking a button on the right nothing happens but the tab menu works resources cannot be started or stoped in admin panel ive tried restarting panel noting fixes itself any help will be appricated! with a cookie
  11. ]fix this pls cannot get onto this link Lua.xml for Notepad++ (MTA DP2.3 + 1.0 functions from 06/04/2009 without Lua standard functions) but thanks
  12. 1. yes 2.all of them yes -i upgraded my nightly build thanks
  13. this wont help you but can i just have the cookie?
×
×
  • Create New...