Jump to content

gordliamjack

Members
  • Posts

    29
  • Joined

  • Last visited

Everything posted by gordliamjack

  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?
  14. how do i get my = Nightly build server on the ase list? i have forwarded all my ports ive got a router firewall is off dynamic ip(this should not matter ive had it working befrore) i set up my server normaly whithout the ip in the mtaserver.conf looked in the server list it was not there left it for 3 hours still not there so then i put the ip in mtaserver.conf then it just gave me a big fat errror message. and it asked me to press q to quit! how do i fix this error
  15. i try to start a server by clicking the host game but it comes up with : "memory error" or something like that ive got the latest nightly build and latest resources i can start a normal dedicated server i use windows 7 (hope this is not the problem because it rocks) and ive got a x4 amd ii with 4gb ram and a xfx geforce 9800 gso any help with this error
  16. can i script this in lua ??? Server Uptime <?php header('Refresh: 1; url=../main.php');//do not make less than 1 will use too much server power //script by Gordon MacPherson 2009 please dont remove this i did spend ages on this script $pagefile = 'c:\pagefile.sys'; // Path to system pagefile. Default is c:\\pagefile.sys function ifif ($value, $true, $false) { if ($value == 0) { return $false; } else { return $true; } } $upsince = filemtime($pagefile); $gettime = (time() - filemtime($pagefile)); $days = floor($gettime / (24 * 3600)); $gettime = $gettime - ($days * (24 * 3600)); $hours = floor($gettime / (3600)); $gettime = $gettime - ($hours * (3600)); $minutes = floor($gettime / (60)); $gettime = $gettime - ($minutes * 60); $seconds = $gettime; $days = ifif($days != 1, $days . ' days', $hours . ' day'); $hours = ifif($hours != 1, $hours . ' hours', $hours . ' hour'); $minutes = ifif($minutes != 1, $minutes . ' minutes', $minutes . ' minute'); $seconds = ifif($seconds != 1, $seconds . ' seconds', $seconds . ' second'); echo 'Server uptime: ' . $days . ' ' . $hours . ' ' . $minutes . ' ' . $seconds; echo ' Up since: ' . date('l. F jS, Y. h:i a', $upsince); ?>
  17. can i do the following like php view server uptime and preformanc an cpu laod ???
  18. google gears dose not work on http://development.mtasa.com/index.php i clicked the link on the footer and nothing happens! can you fix or help me? browser = chrome
  19. you havent defined cop! i might be wrong because i use c++ not lua
  20. love the game mode it really shows the potential of v1.0 anyway heres a couple of things you could change/add = add a admin command so the admin can torture players like , all zombies target playername or 20 zombies target playername add a zombie limit to players like , zombie max 10 per player (to help prevent crashes) new player models for zombies and you could probibly change the animation to you could also make the weather bad p.s thanks
×
×
  • Create New...