Jump to content

Anubhav

Members
  • Posts

    2,277
  • Joined

  • Last visited

Everything posted by Anubhav

  1. Shutup, evil. mein na choda nahi, tum ne kick kiya. Mein wo scripts islya use karta hu kyuki wo mujha sikati kuch to aur fir mein osko edit karta. Bilal mere witness hein, osko malum hein ab mein kitna acha scripter banchuka hu!
  2. _get = getRandomPlayer function getRandomPlayer(expect) if isElement(expect) and getElementType(expect) == "player" then local p = _get() if p == expect and getPlayerCount() == 1 then return false else return p end end end
  3. Anubhav

    Help

    if x ~= "x" then if not tonumber(tostring(x)) then return outputChatBox("*X value must be in number!", client, 255, 0, 0) end executeSQLQuery( "UPDATE teleportData SET x=? WHERE command=?", tonumber(tostring(x)), oc ) end This is my piece of a code. See here, x is the value of guiGetText ( i triggered. ) Ok so the problem starts My x's test it x still it goes infront and returns *X value must be in number! What's wrong?
  4. L can be used for lights, they can change it.
  5. Thanks DayzAdventure! Updates! v 4.5.0 released!
  6. https://wiki.multitheftauto.com/wiki/DxDrawImage3D
  7. function carGrid( thePlayer ) triggerClientEvent(thePlayer, "carshop:cargrid", thePlayer, shops) end addCommandHandler("listcarprices", carGrid) function CarPrices ( thePlayer ) createPickup ( 2114.1337890625, -2128.2666015625, 13.6328125, 3, 1239, 1000 ) executeCommandHandler ( "listcarprices", thePlayer ) end addEventHandler ( "onResourceStart", getRootElement(), CarPrices )
  8. Finally, I thought bad comments but what happend?
  9. Do it yourself, use dxDrawText
  10. function createPaintballEffect(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) if hitElement then local daMarker = createMarker(hitX,hitY,hitZ,"corona",0.2,math.random(0,255),math.random(0,255),math.random(0,255),255) outputDebugString("made a marker") if getElementType(hitElement) == "player" or getElementType(hitElement) == "ped" or getElementType(hitElement) == "object" or getElementType(hitElement) == "vehicle" then attachElements(daMarker,hitElement) else return end setTimer(destroyElement,5000,1,daMarker) end end addEventHandler("onClientPlayerWeaponFire",root,createPaintballEffect)
  11. lock karo topic ko P.S: Tu itna budho ? Tu wiki ke credits de sakta tah EDIT: Tuna kisko samjjhane nahi jahya
  12. vo pakda gaya, usko cloning/copying ke lava nahi atha. kuch sikha apna bhai ko, no cloning/copying!
  13. Anubhav

    I need help

    function RGBToHex(red, green, blue, alpha) if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then return nil end if(alpha) then return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha) else return string.format("#%.2X%.2X%.2X", red,green,blue) end end addEventHandler("onPlayerLogin", getRootElement(), function() bindKey(source, "t", "down", "chatbox", "genel") if (account ~= false) then outputChatBox("You must login to speak in chat", player, 255, 0, 0) end end) addEventHandler("onResouceStart", getResourceRootElement(getThisResource()), function () for index, player in pairs(getElementsByType("player")) do bindKey(player, "t", "down", "chatbox", "genel") end end) function onChat(player, _, ...) local message = table.concat( {...}, " ") local name = getPlayerName(player) local r,g,b = getTeamColor(getPlayerTeam(player)) outputChatBox("#FFFFFFSay:"..RGBToHex( r, g, b )..""..name.."#FFFFFF"..message.., getRootElement(), r, g, b true) end
  14. no credits to author? tuna script bany bhi nahi thi
  15. Thanks for suggestions! I'll try to do it in free time!
  16. They are triggered while resource starts.
  17. Don't get it risky for players! Always use client at triggers! function getSkinIDFromName(name) for i, skin in ipairs(skinTable) do if name == skin[1] then return skin[2] end end end function getSkinNameFromID(id) for i, skin in ipairs(skinTable) do if id == skin[2] then return skin[1] end end end function addPlayerSkin(skin) local current = getElementData(client, "skin") or 0 local name = getSkinNameFromID(current) or "CJSkin" setElementData(source, name, getElementData(client, name) + 1) setElementData(source, skin, getElementData(client, skin) - 1) local id = getSkinIDFromName(skin) setElementData(client, "skin", id) setElementModel(client, id) triggerClientEvent(source, "refreshInventoryManual", source) end addEvent("onPlayerChangeSkin", true) addEventHandler("onPlayerChangeSkin", getRootElement(), addPlayerSkin)
  18. Sorry, Download link: https://community.multitheftauto.com/ind ... s&id=10194
  19. No problem. Good night guyz, before I fall down and get late for school tommorow L0LZER
  20. Anubhav

    GUI Label

    triggerClientEvent?
×
×
  • Create New...