Jump to content

Anubhav

Members
  • Posts

    2,277
  • Joined

  • Last visited

Everything posted by Anubhav

  1. Anubhav

    Video?

    I have seen a board in Twisted Gamers It animates something How can I do it?
  2. Anubhav

    HUD

    Any help please? I realy need to do this fast.
  3. Anubhav

    UCP?

    Ok, thanks for help..
  4. Anubhav

    UCP?

    Hi guyz, In some leaked scripts like uG and vG scripts have UCP . What is a UCP exactly? What does it do? Why is it good?
  5. CSS is easy as hell lol anubhav.agarwal87 add me i will help you.
  6. Make it in english please!
  7. aclGetGroup getPlayerAccount isObjectInACLGroup
  8. LOL? Checking if player type is vehicle?? hehehe local t = getPedOccupiedVehicle( thePlayer ) if t then vehicle = getVehicleOccupant( thePlayer ) end
  9. Anubhav

    HUD

    function destroyAllBlips(player) local attached = getAttachedElements ( player ) if ( attached ) then for k,element in ipairs(attached) do if getElementType ( element ) == "blip" then destroyElement ( element ) end end end end function createBlips() destroyAllBlips(root) local players = getElementsByType ( "player" ) for k,v in ipairs(players) do local r,g,b,a = getTeamColor(getPlayerTeam(v)) createBlipAttachedTo(v,0,2,r,g,b,a,0,99999.0) end end setTimer(createBlips,500,0) function destroyer( thePlayer ) destroyAllBlips( thePlayer ) end addEventHandler("onPlayerQuit",root,destroyer)
  10. Anubhav

    HUD

    not working!
  11. local data = {} con = dbConnect("sqlite",":/saver.db") local tableSaver = {} addEvent ("makeIt", true) addEventHandler("makeIt",root, function () dbExec ( con, "CREATE TABLE IF NOT EXISTS data ( value TEXT )" ); local queryer = dbQuery(con,"SELECT * FROM data") local poll = dbPoll(queryer,-1) if poll and queryer then local answer = tostring(poll[1]) if getPlayerSerial (source) == "-------------" then triggerClientEvent(source, "savedData", source, queryer, poll, answer) end end end ) addEvent("onSaveTheText",true) addEventHandler("onSaveTheText", root, function(text) tableSaver[1] = text dbExec(con,"UPDATE data SET value=?",text) end ) addEvent ("checkIt", true) addEventHandler ("checkIt", root, function () local answer = tableSaver[1] dbExec(con,"UPDATE data SET text=?",tostring(answer)) triggerClientEvent (source, "onStartAddIt", source,answer) end )
  12. Anubhav

    HUD

    I am using createBlipAttached to and i have set the visible value to 65535 and still its not showing. A very near player is not coming in it! is radar bugged?
  13. Anubhav

    HUD

    Hi guyz, Today I made a blip system which added blips on players. In the mini-map it doesn't show the blip. BUt on the large map it shows. What is the problem?
  14. Oh I did that. Realy I am confused with it now. I can't help you anymore. Sorry, Anubhav
  15. Working for me. Are you sure its name is login_panel and while registering, there is any other error?
  16. Anubhav

    help-bindKey

    Where is the line 134 here?
  17. Use SQL for saving the text. You can add me at skype anubhav.agarwal87 for SQL help.
  18. Anubhav

    Table problem

    function ceateJobLocations() for index, val in pairs(jobsLocation) do marker = createMarker(val.x, val.y, val.z-0.5, "cylinder", 1.5, val.r, val.g, val.b, 255) name[marker] = val.job setElementDimension (marker , val.dimen ) setElementInterior (marker , val.inter) addEventHandler("onMarkerHit", marker, enteredMarker) end end addEventHandler("onResourceStart", resourceRoot, ceateJobLocations) jobsLocation = { {job = "Police Officer", x = 249.6259765625,y = 67.8125,z = 1002.9, r = 67, g = 156, b = 255, inter = 6 , dimen = 1 , team = "Police Force", skin = {280, 281, 282, 283, 284, 288}, jobEvent = "policeTaken", maxWL = 0, description =" bla bla bla bla bla"},
  19. Anubhav

    Blaasts

    Hi guyz, How can i plant explosives in whole world and blast them?! Should i use loops?
  20. How to use dbPoll? I know dbQuery but what does dbPoll do?
  21. Hi, I had learned SQL I have a question! If I insert something in a table with dbExec INSERT query, so how should I get it. I am realy new in these things.
  22. aclList aclReload ( when giving a player right reload it ) aclSetRight aclRemoveRight and more on wiki
  23. local HouseRob = createMarker ( 2024.5205078125, 1545.6474609375, 9.81995010376, "cylinder", 10, 255, 0, 0, 150) function Destruir(hElement) if hElement == localPlayer then destroyElement (source) triggerServerEvent ( "Destruyelo", localPlayer) end end addEventHandler ("onClientMarkerHit", HouseRob, Destruir) function Warehouse() Warehouse = createMarker ( 2040.5205078125, 1545.6474609375, 9.81995010376, "cylinder", 10, 255, 0, 0, 150) end addEventHandler ("onClientElementDestroy", HouseRob, Warehouse) function Money(hElement) if ( hElement == localPlayer ) then setTimer(givePlayerMoney,60000,1,hElement, 6000) end end addEventHandler ("onClientMarkerHit", Warehouse, Money)
  24. function setProp() setWeaponProperty(35, "poor", "damage", 10 ) end setTimer(setProp,5000,0) Try this! Maybe your code din't execute.
  25. Anubhav

    I need help

    What should i do theN? EDIT: Please lock the topic! I used setTimer and cleared it when it run and add the players it made it work! Thanks for help guyz .
×
×
  • Create New...