Jump to content

qaisjp

Retired Staff
  • Posts

    2,344
  • Joined

  • Days Won

    10

Everything posted by qaisjp

  1. qaisjp

    1 Questino!

    I don't need that. I have a member chat that output's to chatbubbles. There is no need for that event handler >.< if isClientReady(thePlayer) then
  2. qaisjp

    1 Questino!

    Just a small question, how do you trigger a client event only if the client is ready? Cos my script uses "onIncomeMessage" from chatbubbles and it is bad that it creates an error if the client is downloading.
  3. Actually we have a custom event "spawnThePlayer" which contain's the following amongst other things. repeat until spawnPlayer(bunch of arg's) The only problem is that the timer doesn't stop even when theplayer's element data "gamemode" is NOT false. And yes, it does change from false, to a string in fact ( "none", "freeroam", "stunt" etc...) I think the killing of the timer doesnt work >.< Zango: So you get the element position of the player, set his camera matrix + 20 (or sumtin), then set a timer to move the camera? and then kill it after? Thank's for the tip too
  4. Works beautifully <3 function moveCam(NewX,NewY,NewZ) if (getElementData(getLocalPlayer(), "gamemode") == false) then local x, y, z, x2, y2, z2 = getCameraMatrix( thePlayer ) if not NewX then NewX = 0 end if not NewY then NewY = 0 end if not NewZ then NewZ = 0 end setCameraMatrix( x+NewX, y+NewY, z+NewZ, x2, y2, z2 ) else killTimer(CamTimer) end end addEventHandler("onClientResourceStart", getResourceRootElement(), function() if (getElementData(getLocalPlayer(), "gamemode") == false) then -- Init the camera. fadeCamera(true, 1.0, 0, 0, 0) setCameraMatrix(-1451.81, -338.69, 14.71, -1413.49, -297.85, 25.43) --setCameraMatrix ( -3899.1423339844, 1324.7391357422, 7446 , -3899.1423339844, 1324.7391357422, 7460, 20, 170) CamTimer = setTimer(moveCam, 50, 0, 0.5, 0.5, 0.1) setTime(0,0) setWeather(9) end end ) Now the basic thing work's, now do you have any idea of a good place to circulate on :3?
  5. Thanks for trying to help, but I am not interested in the main menu, I'm interested in the camera Cos I need the script for the movement of camera etc
  6. I wonder if anyone can give me / make a script that does this? I don't exactly wan't it to show this when the main menu is shown so if you are making it there is no need to implement it. However if you already have the full code and don't mind giving it to me I will be obliged for your help ( I will edit it if you have the full code). I believe Zango has this, correct me if i am wrong. I tried the below but it wouldn't work (it would go all orangy and weird as if it was outside the game engine, which it is not) So that is why I request this script instead setCameraMatrix ( -3899.1423339844, 1324.7391357422, 7446 , -3899.1423339844, 1324.7391357422, 7460, 20, 170) My friend put a map up there and when I go there using /sp it works fine.
  7. I could help with the dimension's, I'm not a pro but you can take a small look at my server to see how i have done with the dimension's...not too hard but will take a lil' time, I mainly work on element data, but I can still help, of course if you don't mind my help Good luck and pretty impressive, I am sure this will turn out to be a great gamemode/server in the end! From what one of the videos show is that it's mainly like a DD race. If you are trying to make it a lot like the original mario kart, It would be better if you wouldnt use checkpoint's but a collision shape on the client side on every lap / the end. 1) But what if the player is going backwards? If they are going backwards make them get spun around immediately setTimer( function() setElementRotation(veh, getElementRotation(veh)+1) end , 50, 10) something like that ^^ If you want me to make it right now I will - For a price though. It will cost £0 British Pounds Sterling - For freeeee
  8. This is why I ask OMG SO OLD LOL LOL LOL
  9. I think i remember finding the thing that handles this in admin/server/main_xxx.lua - I wanted to make it say *#ff0000*INFO: #ffff00 $player has been banned. So i modified that line and hex worked...i will try and see if i can find that line and then you can use your kidney's (or your brain) to figure out how to do what Jockie said, and yes, he does mean that.
  10. I tested it a feew minutes back and wtf...THIS IS OUTSTANDING! Just a few requests: The ability to resize the panes as i work in windowed mode + low res and its all hunched up when i open the editor :3 So if that is possible that would be great Unfortunately I have to keep closing my debugscript to open the editor >.<, if there is a way to hide the debug whilst editing please do so Idea / Request On the left pane (resource scripts) First it should say "Resources" with a list of resources with an attached event handler for onGUIDoubleClick..so when you double click it shows the files in that resource.Try replacing the "Resource..." button with "Up" or "Resources" Great work The_GTA!
  11. qaisjp

    Alpha Set :D

    lol, I wonder, Why do people put the ";"?
  12. Please scroll down since this post is outdated and contains content from before the remake NUKE! Yes, it's unexpected, but hey, be imaginative! Newest features: Fun -- NUKE! ACL Access - To give access to the respective commands for certain people add this to the ACL. resource.afs-ufo.ufoheight resource.afs-ufo.ufoall resource.afs-ufo.controlufo Settings.lua contain's a few options and you should have some basic knowledge about LUA in MTA to use this. Enjoy!!!
  13. Is there a way to make sure something is a number, and not a string? For example isInteger(speed) or isFloat(speed) or isNumber(speed) something like that... Is there?
  14. One simple thing to do if you have a no-cd crack that is not v1.0... -.- Download a 1.0 cd crack... duh.
  15. Is it a cat? Is it a dog? NO! It's a UFO! lol Read till the last post for the progress reports. Hunt your friends down with this massive, controllable UFO and scare the sh*t out of them! awesomeufo brings to you the easiest way to control a massive UFO! Set the height, press on the map, set the speed and your UFO will be flying to infinity and beyond! You can even glue yourself to the UFO! (Glue based on glue by uPrell) Screenshots! Fun feature = NUKE! Commands = 1) "gotoufo" - Go to the UFO, (not gtfo lol) 2) "ufo" - Manages UFO 3) "ufoheight" -- Set the height of the UFO (dont try "ufoheight inf" ) Coming soon: 1) More extra features like zap etc. Known bugs: If you are glued and someone uses "warp to [place]" , you will be unglued (workaround: simply type /gotoufo and you will glue when you come in contact with it) When nuking repeatedly the coronas dont disappear. If someone can help me with that i will PM them the code snippet (workaround: wait until one nuke is done before nuking again) Thanks: map thanks to frederic Ransom - Superweapons resource Latest hourly (like a nightly, but more often. but not when i sleep) To get the latest script click below, remember this is incomplete! c_core : http://pastebin.com/W46QjvR1 s_core : http://pastebin.com/5URwcGNa Outdated:
  16. Erm im not sure, a good map edit, a few custom models, use createExplosion and createFire and also use particles_objects resource. Not quite sure, but awesome idea.
  17. qaisjp

    New hud

    It would be a good idea to make the armor bar disappear and make the health bar move up when you have 0 armor.
  18. qaisjp

    Tables

    Ah, it's ok now. I have this code for a small censor system and it work's perfectly, except one problem. words = [ "f_uck", "n_word"] addEventHandler("onPlayerChat", getRootElement(), function(message, messageType) censorUsed = false for _,_x in pairs(words) do if string.find(message,string.lower(_x)) then cancelEvent() censorUsed = true local _number = string.len(_x) local message = string.lower(message) if (messageType == 0) or (messageType == 1) then --Cmessage = "(!) " .. message .. " (!)" --Cmessage = "<censored>" Cmessage = string.rep("*",tonumber(_number)) end end end if censorUsed == false then cancelEvent() Cmessage = message end -- Get the player class. local playerClass = getPlayerClass(source) local nameR, nameG, nameB = getPlayerNametagColor(source) if getElementData(source, "hideTag") == true then hexcode = "#ffff00" playerTag = "" nameR, nameG, nameB = 255,255,0 elseif (playerClass == 1) then playerTag = "" hexcode = "#FFFF00" elseif (playerClass == 2) then hexcode = "#00FF00" playerTag = serverTag elseif (playerClass == 3) then hexcode = "#FF8800" playerTag = serverTag elseif (playerClass == 4) then playerTag = serverTag hexcode = "#FF0000" end -- Normal chat if (messageType == 0) then outputChatBox(playerTag .. getPlayerName(source):gsub('#%x%x%x%x%x%x', '') .. ': ' .. "#FFFFFF" .. Cmessage:gsub('#%x%x%x%x%x%x', ''), getRootElement(), nameR, nameG, nameB, true) -- Register the message to the log. outputServerLog("CHAT: " .. getPlayerName(source) .. ": " .. message:gsub('#%x%x%x%x%x%x', '')) The problem is that when I say "F_uck the world, n_word" I don't want "****" to appear I want "**** the world *****" to appear instead. LOL, could you help me? Also, how do i make it NOT case sensitive?
  19. qaisjp

    Tables

    I did try, lol, forgot to post the debugscript output, and thank you Zango, I'm going to try it now! I couldnt try at the end because the code was incomplete, how do i get the value of the AT-400 speed? EDIT: Thanks Zango, I don't get the error any more EDIT2: This is what is in my script, above the script is the table. -- ********************** -- * Main Functions * -- ********************** function xxxxxInit(thePlayer,xxxPlayer) local theVehicle = getPedOccupiedVehicle(xxxPlayer) local theVehicleName = getVehicleName(theVehicle) for index, veh in pairs(randomCarTable) do if veh ~= theVehicleName then outputChatBox("No max veh speed in " .. getPlayerName(xxxPlayer) .. "'s vehicle.", thePlayer, 255, 0, 0, false) return else after else is what happens if it find's the AT-400 in the list. The script sound's pointless, but again, I have changed it a bit
  20. qaisjp

    Tables

    Hey it's me again and I need a little help in this table...and a little info about tables. This is what I kept in the beginning of my script: local randomCarTable ={ "Jetmax" = 4964, --Boats "Coastguard" = 946, "Dinghy" = 49674, "Launch" = 9642, "Predator" = 97645, "Reefer" = 9644, "Speeder" = 7643, "Squalo" = 8544, "Tropic" = 28653, "Marquis" = 8759, "Beagle" = 75784, --Aircraft "Nevada" = 647619, "Shamal" = 8759, "AT-400" = 11752, "Leviathan" = 878876, --Airplanes "Raindance" = 9908, "Cargobob" = 1800, "Barracks" = 1200, --Vehicles "Trashmaster" = 200, "Journey" = 8080, "Camper" = 480, "FBI Truck" = 2600, "Hotdog" = 90760, "Mr. Whoopee" = 9060 } Don't ask why about why the number's are so random.. lol. But I need these number's AND the name, as my script will be using vehicle names and the value (like *vehicle names and seats* or* vehicle names and max speeds*) well I won't make my script obvious (main reason why the numbers are random ) but please help me with the table only after i get the table working would if randomCarTable[getVehicleName(theVehicle)] then -- my beautiful code here end this work? If the vehicle name is found from the table .. then it will execute my code. A small example: I have added an event handler when the player enters a car, will this happen when i enter an at-400? function(thePlayer, theVehicle, theSeat) if randomCarTable[getVehicleName(theVehicle)] then outputChatBox("The max vehicle speed of your vehicle(" .. getVehicleName(theVehicle) .. ") is " (get the table value) end Will this appear? The max vehicle speed of your vehicle(AT-400) is 11752
×
×
  • Create New...