Jump to content

Charlie_Jefferson

Members
  • Posts

    242
  • Joined

  • Last visited

Everything posted by Charlie_Jefferson

  1. You've been new to scripting for 1 month. I've learnt lua in 2 days and now I don't really need help from others.
  2. No idea, . I think that thePlayer is a strange name. It's not specified who thePlayer is either! How strange!
  3. You just edit one line and it's done...
  4. You already made a thread for this and your question was answered. Are you drunk?
  5. He wants a glitch that will make him invisible, disable his nametag and all kinds of admin powers, without being admin on a server. I say that's impossible, unless you find a bug in the script.
  6. Where'd you steal this script from? It's obviously not made by you. The grammar inside it and the fact that it works makes it impossible for you to create. Why? Your grammar fails epicly(no offence) and you scripting also sucks.
  7. Make a model in 3ds max, and replace it with the hydra/any flyable plane.
  8. Hm. That's pretty strange. Edit: Your better off using collision shapes to be honest.
  9. yeah how you know but im adding new skin cars and some jobs Everyone has the vG script these days.
  10. USE COLLISION SHAPE FUNCTIONS! No. local marker = createMarker(-1657, 1214, 8, "cylinder", 1, 255, 0, 0, 255) function onMarkerHit(hitPlayer, matchingDimension) if hitPlayer then outputChatBox("hit") end end addEventHandler("onMarkerHit", marker, onMarkerHit) This is myonlake's post. It should work.
  11. Returns Returns a table of all the upgrades on each slot of a vehicle, which may be empty, or false if a valid vehicle is not passed. That's what the wiki says.
  12. Yes, but I find it easier with the hex code.
  13. No idea, but TAPL is being smart. The code isn't a mess. At least I bothered to try and help you.
  14. Where the #'s are, you should add the RGB code... addEventHandler("onPlayerWasted", getRootElement(), function(ammo, killer, weapon, bodypart) if source then if (bodypart == 4) then outputChatBox("#gexcodegoshereOutch ! " ..getPlayerName(killer).. " has shot in your ass !", source, getRootElement(),255, 255, 255, true) elseif (bodypart == 9)then outputChatBox("#hexcodegoeshereOWNED ! "..getPlayerName(killer).." has shot in your head !", source, getRootElement(), 255, 255, 255, true) else outputChatBox(getPlayerName(killer).."#hexcodegoeshere has kill you ! Now Kill him Noob-_-'", source, getRootElement(), 255, 255, 255, true) end end end) addEventHandler("onPlayerWasted", getRootElement(), function(ammo, killer, weapon, bodypart) if killer then local stars = getPlayerWantedLevel(killer) setPlayerWantedLevel(killer, stars+1) outputChatBox("#You have kill " .. getPlayerName(source) .. ", now you have "..getPlayerWantedLevel(killer).." stars !", killer, getRootElement(), 255, 255, 255, true) end end) You already asked me about this in a PM and I sent it to you. Why not copy that?
  15. the code is realy mess May I ask why it's a mess?
  16. You got the usual valhalla gaming script right? Good luck on debugging it.
  17. Server: local account = getPlayerAccount(getPlayerName(source)) function ifAdmin ( ) if isObjectInACLGroup ( "user." .. account, aclGetGroup ( "Admin" ) ) then triggerClientEvent("dxText", getRootElement()) else end end Client: local screenHeight, screenWidth = guiGetScreenSize() function aTag(thePlayer) name = getPlayerName(thePlayer) dxDrawText( "Admin"..tostring(name), 44, screenHeight-43, screenWidth, screenHeight, tocolor ( 0, 255, 0, 255 ), 1, "pricedown" ) end addEvent("dxText", true) addEventHandler("dxText", getRootElement(), aTag) addEventHandler ( "onClientResourceStart", getRootElement(), aTag ) Pretty basic, not sure if it's correct, but from here you'll have to attach it to the player's head, somehow.
  18. AKA xmlLoadFile, xmlNodeGetValue, then triggerClientEvent, dxDrawText. If you look through those, it should work.
  19. isObjectInACLGroup = server-side. dxDrawText = Client-side. Won't work. Plus you have to attach the dxDrawText to the admin's head.
  20. Hm. That's pretty strange. There shouldn't be any errors. The syntax is correct.
  21. addEvent("StartKnop", true) addEventHandler("StartKnop", root, function() local evmarkerred = createMarker ( 1547.88953, -1683, 12.5, 'cylinder', 2, 255, 0, 0, 255 ) local evmarkerblue = createMarker ( 1547.88953, -1686, 12.5, 'cylinder', 2, 0, 0, 255, 255 ) end) function mhit1 ( hitElement ) if (getElementType ( hitElement ) == "player" and not isPedInVehicle ( hitElement )) then setElementPosition ( hitElement,2838.6000976563, -2527.6999511719, 19 ) giveWeapon ( hitElement, 41, 100000 ) end end addEventHandler("onMarkerHit", evmarkerred, mhit1) function mhit2 ( hitElement ) if (getElementType ( hitElement ) == "player" and not isPedInVehicle ( hitElement )) then setElementPosition ( hitElement,2837.6999511719, -2333, 12 ) giveWeapon ( hitElement, 41, 100000 ) end end addEventHandler("onMarkerHit", evmarkerblue, mhit2)
  22. addEvent("StartKnop", true) addEventHandler("StartKnop", root, function() local evmarkerred = createMarker ( 1547.88953, -1683, 12.5, 'cylinder', 2, 255, 0, 0, 255 ) local evmarkerblue = createMarker ( 1547.88953, -1686, 12.5, 'cylinder', 2, 0, 0, 255, 255 ) end) addEventHandler("onMarkerHit", evmarkerred, function( hitElement ) if (getElementType ( hitElement ) == "player" and not isPedInVehicle ( hitElement )) then setElementPosition ( hitElement,2838.6000976563, -2527.6999511719, 19 ) giveWeapon ( hitElement, 41, 100000 ) end end) addEventHandler("onMarkerHit", evmarkerblue, function( hitElement ) if (getElementType ( hitElement ) == "player" and not isPedInVehicle ( hitElement )) then setElementPosition ( hitElement,2837.6999511719, -2333, 12 ) giveWeapon ( hitElement, 41, 100000 ) end end)
×
×
  • Create New...