Jump to content

Anubhav

Members
  • Posts

    2,277
  • Joined

  • Last visited

Everything posted by Anubhav

  1. I know, I am new in HUD. But I will update it soon!
  2. Thanks for the comment! Rate 5 please!
  3. https://community.multitheftauto.com/ind ... s&id=10194 One more upload again from A-TEAM! THANKS FOR 100+ DOWNLOADS! Now this is a car locker! -- VERSIONS -- v 0.0.1 ( old ) [*] You enter a car if you locked it and unlock it! [*] You can unlock a car! [*] You can lock a car! v 0.0.2 ( old ) [*] Bug fixed! v 0.0.3 ( old ) [*] One more bug fixed! v 0.0.4 ( old ) [*] K added as bind key v 1.0.0 ( old ) [*] Bug fix v 1.5.0 ( old ) [*] Bug fix v 2.0.0 ( old ) [*] On vehicle explode the lock will be removed. v 3.0.0 ( old ) [*] Added sounds! v 3.5.0 ( old ) [*] Made it so when you enter the car the alarm rings and when original owner enters it gets closed. v 4.0.0 ( old ) [*] Added export functions! -> isVehicleLocked -> setVehicleLocked v 4.5.0 ( old ) [*] Added dx draws instead of output -> Unlock -> lock -> Fades [*] Fixed typo's -> Exported function name in meta.xml -> in script getElementTypr was typed [*] Now sound added for unlocking! v 4.5.1 ( release ) [*] Fixed sound bug -> Sound locations were bugged. -- Exported functions: bool isVehicleLocked( element vehicle ) what does this do: Checks if a vehicle is locked returned value: if yes returns true else returns false ( it also returns false if there were invalid arguements! Be carefull!) vehicle: A element which is vehicle bool setVehicleLocked( element vehicle, bool state, element player) what does this do: Sets a vehicle to its locked state! vehicle: A element which is vehicle state: Can be true or false ( true for locking, false for no locking ) player: A element who will lock the vehicle and have keys! returns: True if it was successfully done else false
  4. Did you had to post this thing in resources section? - WASTE. Anyways you're being jerk, and I know you will regret the thing afterwards when you know the real thing happend after you got a timeout!
  5. [A-TEAM] One more upload comes from A-TEAM! This is the best resource I guess from A-TEAM! -- Current features -- [*] You can create a ticket [*] You can open the ticket window by using /windowt [*] Admins can delete a ticket [*] You can answer a ticket [*] You can close the window [*] Your name changes when you change your name in gridlist! ---- -- VERSIONS -- v 0.0.1 ( OLD ) [*] You can create a ticket [*] You can open the ticket window by using /windowt [*] Admins can delete a ticket [*] You can answer a ticket [*] You can close the window [*] Your name changes when you change your name in gridlist! v 0.0.2 ( OLD ) [*] Remove the annoying messages! v 0.0.3 ( OLD ) [*] All in 0.0.1 [*] Cannot reply yourself in ticket [*] Anti-spam of tickets! v 0.5.0 ( RELEASE ) [*] Whenever you close the window now every window gets closed! https://community.multitheftauto.com/ind ... s&id=10191
  6. Delete it mod. This guy will fight, I realy talked him on skype he got scared and ran away. He only snatches other's hard work, idc anymore.
  7. All of you din't see the arguments. Go to wiki instead of timer seconds = 5 -- set your seconds setPedAnimation(source, "VENDING", "VEND_Drink2_P", seconds*1000, false, false, nil, false)
  8. Pagal! NGC ita acha nahi jitna socha tha. Mein DEV team join kar sak ta tha likin budhoa hein -.-
  9. Any admin, just set the author to me. This guy is being kid from yesterday and making me fight on forums ( which I won't continue. ). He removed me from author because I told him noob in scripting which is true. These people don't accept the truth..
  10. my god lampard yeha pa bhi hein! :O'ed! lampard mujha pahachana na? Mein indian hu likin firbhi yahi pa post karna padage koy aur jaga nahi hein kyu ki koy hindi board per post nahi karta lampard <3
  11. function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ); local name = getPlayerName(thePlayer); local account = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then outputChatBox("#FF0000#00FF00"..name..": #FFFFFF"..message,root, 255, 255, 255, true) return else outputChatBox("#FF0000#00FF00"..name..": #FFFFFF"..message,root, 255, 255, 255, true) return end local account = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then outputChatBox("#FF0000#00FF00"..name..": #FFFFFF"..message,root, 255, 255, 255, true) return else outputChatBox("#FF0000#00FF00"..name..": #FFFFFF"..message,root, 255, 255, 255, true) return end end addCommandHandler("global", globalMessage); addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function() for index,player in pairs(getElementsByType("player")) do bindKey(player,"x", "down", "chatbox", "global"); end end)
  12. Anubhav

    Hud

    Actually he edited v 0.5.0 which I gave him. I am releasing v 1.0.0 ( source code ) today.! v 0.5.1 has no errors. He had permission
  13. players = {} for k,v in ipairs(getElementsByType("player")) do players[v] = v; end -- removing part: players[getPlayerFromName("someNmae")] = nil
  14. local myMarker = createMarker(1358.8127441406,1679.6812744141,9.8203125, 'cylinder', 2.0, 255, 0, 0, 150) local myBlip = createBlip( 1358.8127441406,1679.6812744141,9.8203125 ) GUIEditor = { button = {}, window = {} } function MarkerHit( hitElement, matchingDimension ) local elementType = getElementType( hitElement ) GUIEditor.window[1] = guiCreateWindow (237, 146, 149, 206, "Aeroporto Las Venturas", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) outputChatBox('Object Created !',255,255,0) GUIEditor.button[1] = guiCreateButton(9, 29, 130, 28, "Ilha Perdida", false, GUIEditor.window[1]) addEventHandler ( "onClientGUIClick", GUIEditor.button[1], click1, false ) guiSetFont(GUIEditor.button[1], "default-bold-small") GUIEditor.button[2] = guiCreateButton(9, 72, 130, 28, "New City", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") showCursor ( true ) end addEventHandler( "onClientMarkerHit", myMarker, MarkerHit ) function click1 ( button ) guiSetVisible ( janela, false ) showCursor ( false ) setElementPosition ( localPlayer 1, 1, 1 ) end addEventHandler ( "onClientGUIClick", buttonName, click1 )
  15. Anubhav

    close

    You can't do it in scoreboard at all ( not even set element data on 'Name' ( I tested it. ) ). You should find a new way by adding and removing columns and setting player nick. You must edit admin resource for super nick.
  16. Can you tell use /debugscript 3 ? My should work actually. Show us your meta.xml!
  17. See.. Always read it. And map cannot be nil @ Blinker As I said before or it will return false! Contact me on skype for more help @ anubhav.agarwal87
  18. WAIT? If you just put the resource name then it won't work. See the source code ( i just saw ). It will return FALSE ALWAYS if you see mapmanager_exports.lua ( line 173 ). It doesn't get a resource name. # ZA7F, It only gives a name not a RESOURCE DATA. You've more to learn. Last time you did the same mistake with player element. exports.mapmanager:changeGamemodeMap (getResourceFromName("gamemodename") ,getReasonFromName("mapname",true) Map name cannot be nil and it must be compatiable with it.
×
×
  • Create New...