Jump to content

AGENT_STEELMEAT

Members
  • Posts

    551
  • Joined

  • Last visited

Everything posted by AGENT_STEELMEAT

  1. my example doesn't make arrowMarker global - it just changes the scope of the variable.
  2. Sorry, can you explain this more? Is it the displaying of the limit you want? Also, why are you using nodes for a speed limit script exactly?
  3. The variable "arrowMarker" is local - so it can only be used within that function. to fix this, declare arrowMarker as local OUTSIDE of the function. Second, addCommandHandler passes at least 3 variables to the handler function as arguments (if this is serverside). I have added an example of this in your script. Also, the onMarkerHit passes two variables as arguments - the element that hit the marker, and whether or not the element is in the same dimension as the marker. I have added an example on how this works as well in your script. local arrowMarker function androint ( playerSource, commandName, arg1 ) --arg1 is just the first argument, more can be passed on. arrowMarker = createMarker ( -1357.26953125, -76.0087890625, 14.146192550659, "arrow", .75, 255, 0, 0, 170 ) local andro = createVehicle ( 592, -1357.4599609375, -55.9248046875, 19.1484375) --Create a Andro. No need to perform arithmetic on constants.. attachElements ( arrowMarker, andro, 0, 0, 5 ) --Attach the marker to the adnro end addCommandHandler ( "hat", androint ) function warptheplayer (hitElement, dimensionMatch) if dimensionMatch then --Straightfoward - if the dimensions match, then continue. setElementInterior(hitElement, 9, 315.48, 984.13, 1959.11 ) end end addEventHandler( "onMarkerHit", arrowMarker, warptheplayer )
  4. Notepad++ yes - community, no. Community scripts tend to be absolutely awful - unless your reading from a reputable scripter. Best thing is to learn everything on your own, and ask for help when you need it (and hope a reputable scripter is available here on these forums).
  5. Pretty much. As you browse the MTA wiki, you'll uncover some cool functions, which will give you ideas of cool stuff to script. Also, always try to find new, more efficient ways to do scripts. Once you get pretty and want to up the level of your scripts, you should start getting into more advanced topics in general programming (object-oriented programming, for example). That said, took me about 8 months before I started getting into that. Here is a site for optimization tips relating to LUA itself: http://lua-users.org/wiki/OptimisationTips
  6. Course not, I learned most of what I know from MTA, though I did have some prior experience with Python. I say give it a month or two, you'll be making basic scripts easily in no time.
  7. Well, that depends on your experience with scripting/programming in general. It also depends on what you consider that 'dead basics'.
  8. Look at the player's actual nametag in-game - does it change color? If so, this is working properly, there is another script interfering with it.
  9. For general lua knowledge, read the 'Programming in LUA' book, made by one of the creators of LUA: http://www.lua.org/pil/ Also, lua.org is a general goldmine of LUA-related info. For MTA specific stuff, just browse the MTA wiki (the random page link is great for this). Also, feel free to ask any questions here on the forums.
  10. MTA Vice City doesn't support custom scripting at the moment - maybe in a future release.
  11. You should ensure the player has the cash before fixing the vehicle: addCommandHandler( "mend", function( thePlayer, commandName, who ) if exports.players:isLoggedIn( thePlayer ) then local inPD, factionID, factionName, factionTag = exports.factions:isPlayerInFactionType( thePlayer, 7 ) if inPD and factionTag then if getPlayerMoney(thePlayer) >= 100 then takePlayerMoney(thePlayer, 100) fixVehicle(getPedOccupiedVehicle(getPlayerFromName(who))) else outputChatBox( "(( You don't have enough cash! ))", thePlayer, 255, 0, 0 ) end else outputChatBox( "(( You are not in a Government faction. ))", thePlayer, 255, 0, 0 ) end else outputChatBox( "(( You are not logged in! ))", thePlayer, 255, 0, 0 ) end end )
  12. Just stay out of this jaysds -.-
  13. ^ My thoughts exactly - which is why I on my own private scene. lol
  14. We can only hope that all this acting servers as a form of natural selection - that it will weed out all of the crap servers with crap scripters and leave us with a nice selection of well-scripted servers. Not to say I support this.
  15. Is there anyway to create a colshape in the map editor with an EDF? I'm clueless.
  16. Ok, after restarting, it seems like the shaders (for the most part) are working! ^.^
  17. Ohh, I meant "got all that" by I got all that installed. I was thinking it might be possible that I need to DOWNgrade though. We'll see.
  18. Got all that - as of right now ccw is on IRC with me trying to figure out what's wrong. And I stared at the nyan cat in your signature for a good 30 seconds.
  19. No, I'm using 1.0.3 because I'm retro like that. Of course I am - stop replying to topic on subject you don't know about.
  20. Hey all - Whenever I try to test out the dxCreateShader function, it always fails. I'm not sure why - it's working for others with older computers than mine. Could it be a driver issue? MTA bug? Here is my dxdiag report: ------------------ System Information ------------------ Time of this report: 7/9/2011, 23:22:04 Machine name: TEHMACHINE Operating System: Windows 7 Home Premium 64-bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_gdr.110408-1631) Language: English (Regional Setting: English) System Manufacturer: To Be Filled By O.E.M. System Model: To Be Filled By O.E.M. BIOS: Default System BIOS Processor: AMD Phenom(tm) II X4 965 Processor (4 CPUs), ~3.4GHz Memory: 4096MB RAM Available OS Memory: 4096MB RAM Page File: 3180MB used, 1169MB available Windows Dir: C:\Windows DirectX Version: DirectX 11 DX Setup Parameters: Not found User DPI Setting: Using System DPI System DPI Setting: 96 DPI (100 percent) DWM DPI Scaling: Disabled DxDiag Version: 6.01.7601.17514 64bit Unicode ------------ DxDiag Notes ------------ Display Tab 1: No problems found. Sound Tab 1: No problems found. Sound Tab 2: No problems found. Input Tab: No problems found. -------------------- DirectX Debug Levels -------------------- Direct3D: 0/4 (retail) DirectDraw: 0/4 (retail) DirectInput: 0/5 (retail) DirectMusic: 0/5 (retail) DirectPlay: 0/9 (retail) DirectSound: 0/5 (retail) DirectShow: 0/6 (retail) --------------- Display Devices --------------- Card name: AMD Radeon HD 6800 Series Manufacturer: ATI Technologies Inc. Chip type: ATI display adapter (0x6738) DAC type: Internal DAC(400MHz) Device Key: Enum\PCI\VEN_1002&DEV_6738&SUBSYS_31001682&REV_00 Display Memory: 2803 MB Dedicated Memory: 1012 MB Shared Memory: 1791 MB Current Mode: 1920 x 1080 (32 bit) (60Hz) Monitor Name: Generic Non-PnP Monitor Monitor Model: unknown Monitor Id: Native Mode: unknown Output Type: HD15 Driver Name: aticfx64.dll,aticfx64.dll,aticfx64.dll,aticfx32,aticfx32,aticfx32,atiumd64.dll,atidxx64.dll,atidxx64.dll,atiumdag,atidxx32,atidxx32,atiumdva,atiumd6a.cap,atitmm64.dll Driver File Version: 8.17.0010.1077 (English) Driver Version: 8.850.0.0 DDI Version: 11 Driver Model: WDDM 1.1 Driver Attributes: Final Retail Driver Date/Size: 4/20/2011 02:07:48, 795648 bytes WHQL Logo'd: Yes WHQL Date Stamp: Device Identifier: {D7B71EE2-2478-11CF-0771-0A11BEC2C535} Vendor ID: 0x1002 Device ID: 0x6738 SubSys ID: 0x31001682 Revision ID: 0x0000 Driver Strong Name: oem9.inf:ATI.Mfg.NTamd64.6.1:ati2mtag_NI:8.850.0.0:pci\ven_1002&dev_6738 Rank Of Driver: 00E62001 Video Accel: ModeMPEG2_A ModeMPEG2_C Deinterlace Caps: {6E8329FF-B642-418B-BCF0-BCB6591E255F}: Format(In/Out)=(YUY2,YUY2) Frames(Prev/Fwd/Back)=(0,0,1) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(YUY2,YUY2) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(YUY2,YUY2) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY {6E8329FF-B642-418B-BCF0-BCB6591E255F}: Format(In/Out)=(UYVY,UYVY) Frames(Prev/Fwd/Back)=(0,0,1) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(UYVY,UYVY) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(UYVY,UYVY) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(YV12,0x32315659) Frames(Prev/Fwd/Back)=(0,0,0) Caps= {3C5323C1-6FB7-44F5-9081-056BF2EE449D}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,2) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive {552C0DAD-CCBC-420B-83C8-74943CF9F1A6}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,2) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive {6E8329FF-B642-418B-BCF0-BCB6591E255F}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,1) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(IMC1,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps= {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(IMC2,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps= {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(IMC3,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps= {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(IMC4,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps= {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(S340,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps= {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(S342,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps= D3D9 Overlay: Not Supported DXVA-HD: Not Supported DDraw Status: Enabled D3D Status: Enabled AGP Status: Enabled ------------- Sound Devices ------------- Description: Speakers (VIA High Definition Audio) Default Sound Playback: Yes Default Voice Playback: Yes Hardware ID: HDAUDIO\FUNC_01&VEN_1106&DEV_0441&SUBSYS_18492520&REV_1001 Manufacturer ID: 1 Product ID: 100 Type: WDM Driver Name: viahduaa.sys Driver Version: 6.00.0001.8100 (English) Driver Attributes: Final Retail WHQL Logo'd: Yes Date and Size: 3/2/2010 07:30:20, 1301504 bytes Other Files: Driver Provider: VIA Technologies, Inc. HW Accel Level: Basic Cap Flags: 0xF1F Min/Max Sample Rate: 100, 200000 Static/Strm HW Mix Bufs: 1, 0 Static/Strm HW 3D Bufs: 0, 0 HW Memory: 0 Voice Management: No EAX(tm) 2.0 Listen/Src: No, No I3DL2(tm) Listen/Src: No, No Sensaura(tm) ZoomFX(tm): No Description: SPDIF Interface (TX0) (VIA High Definition Audio) Default Sound Playback: No Default Voice Playback: No Hardware ID: HDAUDIO\FUNC_01&VEN_1106&DEV_0441&SUBSYS_18492520&REV_1001 Manufacturer ID: 1 Product ID: 100 Type: WDM Driver Name: viahduaa.sys Driver Version: 6.00.0001.8100 (English) Driver Attributes: Final Retail WHQL Logo'd: Yes Date and Size: 3/2/2010 07:30:20, 1301504 bytes Other Files: Driver Provider: VIA Technologies, Inc. HW Accel Level: Basic Cap Flags: 0xF1F Min/Max Sample Rate: 100, 200000 Static/Strm HW Mix Bufs: 1, 0 Static/Strm HW 3D Bufs: 0, 0 HW Memory: 0 Voice Management: No EAX(tm) 2.0 Listen/Src: No, No I3DL2(tm) Listen/Src: No, No Sensaura(tm) ZoomFX(tm): No --------------------- Sound Capture Devices --------------------- Description: Stereo Mix (VIA High Definition Audio) Default Sound Capture: Yes Default Voice Capture: Yes Driver Name: viahduaa.sys Driver Version: 6.00.0001.8100 (English) Driver Attributes: Final Retail Date and Size: 3/2/2010 07:30:20, 1301504 bytes Cap Flags: 0x1 Format Flags: 0xFFFFF ------------------- DirectInput Devices ------------------- Device Name: Mouse Attached: 1 Controller ID: n/a Vendor/Product ID: n/a FF Driver: n/a Device Name: Keyboard Attached: 1 Controller ID: n/a Vendor/Product ID: n/a FF Driver: n/a Device Name: Logitech Dual Action Attached: 1 Controller ID: 0x0 Vendor/Product ID: 0x046D, 0xC216 FF Driver: n/a Device Name: USB KEYBOARD Attached: 1 Controller ID: 0x0 Vendor/Product ID: 0x060B, 0x6220 FF Driver: n/a Device Name: USB KEYBOARD Attached: 1 Controller ID: 0x0 Vendor/Product ID: 0x060B, 0x6220 FF Driver: n/a Device Name: USB Receiver Attached: 1 Controller ID: 0x0 Vendor/Product ID: 0x099A, 0x2515 FF Driver: n/a Device Name: USB Receiver Attached: 1 Controller ID: 0x0 Vendor/Product ID: 0x099A, 0x2515 FF Driver: n/a Device Name: USB Receiver Attached: 1 Controller ID: 0x0 Vendor/Product ID: 0x099A, 0x2515 FF Driver: n/a Poll w/ Interrupt: No ----------- USB Devices ----------- + USB Root Hub | Vendor/Product ID: 0x1002, 0x4397 | Matching Device ID: usb\root_hub | Service: usbhub | Driver: usbhub.sys, 11/20/2010 06:44:30, 343040 bytes | Driver: usbd.sys, 7/13/2009 20:06:23, 7936 bytes | +-+ Logitech Dual Action USB | | Vendor/Product ID: 0x046D, 0xC216 | | Location: Port_#0001.Hub_#0001 | | Matching Device ID: usb\vid_046d&pid_c216 | | Service: HidUsb | | OEMData: 03 00 08 10 0C 00 00 00 | | Driver: hidusb.sys, 11/20/2010 06:43:49, 30208 bytes | | Driver: hidclass.sys, 11/20/2010 06:43:49, 76800 bytes | | Driver: hidparse.sys, 7/13/2009 20:06:17, 32896 bytes | | | +-+ Logitech Dual Action (HID) | | | Vendor/Product ID: 0x046D, 0xC216 | | | Matching Device ID: hid\vid_046d&pid_c216 | | | Service: WmFilter | | | OEMData: 03 00 08 10 0C 00 00 00 | | | Driver: WmFilter.sys, 9/11/2009 15:48:46, 41096 bytes ---------------- Gameport Devices ---------------- ------------
  21. AGENT_STEELMEAT

    Download

    On the main page, click download. Run the installer. When the installer is done, click the MTA San Andreas logo. After being told to stop playing with yourself, MTA will start. Go to server browser and select a server. If you find that the server you are on is overrun with foreingers/noobs, you can return to the main menu via the escape key. Toodles!
  22. Hey - I still use your betterweather resource - great stuff!
  23. Basically, someone unusually jealous of Arran's success/work has gathered a bunch of computers, and is constantly sending requests to the server in order to slow it down/crash it. As a result, the server has been shut down his his hosting company to isolate any effects. Or at least that's what I think - correct me if I'm wrong.
  24. This isn't the proper place to freak out about your favorite server being down - either do that on CIT's advertisement thread in that section of the MTA forums, or calm down and play somewhere else. I'm sure the owner (Arran I think) wouldn't pull the plug like that.
×
×
  • Create New...