Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About maskatchi

  • Rank


  • Gang
  1. maskatchi


    Ok im not asking for it but I want to know if it's even possible and what functions I should use... What I want to do is create a script much like the call of duty:black ops cameras but in mta sa. If you don't know what those are like all it is is you set a camera down and where you place it it shows a tiny screen in the upper left of your screen of the area the camera can see. Hanks for the help guys
  2. what exactly are you trying to do? flood the map? if you are: height = 40 SizeVal = 2998 southWest_X = -SizeVal southWest_Y = -SizeVal southEast_X = SizeVal southEast_Y = -SizeVal northWest_X = -SizeVal northWest_Y = SizeVal northEast_X = SizeVal northEast_Y = SizeVal function thaResourceStarting( ) 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 addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource(
  3. maskatchi

    ok um

    ok so the script is: function initGUI( ) btnOutput = guiCreateButton( 0.7, 0.1, 0.2, 0.1, "Output!", true ) addEventHandler ( "onClientGUIClick", btnOutput, outputEditBox, false ) editBox = guiCreateEdit( 0.3, 0.1, 0.4, 0.1, "Type your message here!", true ) guiEditSetMaxLength ( editBox, 128 ) end addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource( ) ), initGUI ) function outputEditBox ( button ) if button == "left" then local text = guiGetText ( editBox ) outputChatBox ( text ) end end how would
  4. ok my script is this: addEventHandler("onClientResourceStart",resourceRoot, function() window = guiCreateWindow(15,306,121,48,"Audio Options",false) guiWindowSetSizable(window,false) on = guiCreateButton(9,24,40,15,"on",false,window) addEventHandler ( "onClientGUIClick", on, startSound, false ) off = guiCreateButton(64,25,40,14,"off",false,window) addEventHandler ( "onClientGUIClick", off, lol, false ) end ) function startSound() if not isElement(sound) then -- if our
  5. oh btw remove line: if hasObjectPermissionTo ( thePlayer, "command.kick", true ) then if you want for all players ( that line makes it for admins only )
  6. try this: function nametagColorChange ( thePlayer, commandName, r, g, b ) if hasObjectPermissionTo ( thePlayer, "command.kick", true ) then setPlayerNametagColor ( thePlayer, r, g, b ) end end addCommandHandler ( "nametagcolor", nametagColorChange ) type /nametagcolor number1,number2,number3
  7. yeah umm Ive been trying to make a script to creatProjectile and stuff, i read the wiki read some posts. nobody has really explained well on how to create a projectile and attach to your car to shoot at people etc so if anyone can help with creating an object to shoot missiles that be great
  8. hmm Ace_Gambit i tried what you did and it says: attempt to call global 'getLocalPlayer' a nil value???
  9. wouldnt it be cool if... we had an object like this: http://imageshack.us/content_round.php? ... ad&newlp=1 and when ever someone unwanted went near it ( like a non-admin in the admin base ) the object would shoot missiles at the player?? I want to script this...but im not really sure how... so if anyone can either make the script or give me some tips or a site for this that be great :D
  10. make a script for admins only? i want this script: function nametagColorChange ( thePlayer, commandName, r, g, b ) setPlayerNametagColor ( thePlayer, r, g, b ) end addCommandHandler ( "nametagcolor", nametagColorChange ) for admins only...would I change it in ACL? cause I have tried that and nothing happens...
  11. maskatchi


    I'm trying to make some new scripts to help people out, like some sort of tool...but don't know what i should do any suggestions for some scripts? please post your ideas thanks.
  12. Ok i get this error stack overflow when i try to use my speed script: function setElementSpeed(element, unit, speed) -- only work if element is moving! if (unit == nil) then unit = 0 end if (speed == nil) then speed = 0 end speed = tonumber(speed) local acSpeed = setElementSpeed(element, unit) if (acSpeed~=false) then -- if true - element is valid, no need to check again local diff = speed/acSpeed local x,y,z = setElementVelocity(element) setElementVelocity(element,x*diff,y*diff,z*diff) return true end return false end addCommandHandler("sspeed", function (player
  13. Ok, ever since i downloaded the latest MTA SA My map editor doesn't work... What happens is when i try to open one of my maps it just sits there and it will never open.... then i tried making a new map and tried to save it but every time i save it my mta freezes and or crashes I tried downgrading to mta 1.0.3, then 1.0.4 and all the other patches but nothing and now im back to latest and still i cannot save and open maps
  • Create New...