Jump to content

Anubhav

Members
  • Posts

    2,277
  • Joined

  • Last visited

Everything posted by Anubhav

  1. Anubhav

    Lock this

    I am not understanding. Is thier a way without loops?
  2. Anubhav

    Lock this

    what is v == "Text" ? I will try it but it will take all info. I need for the one group only? Is account data possible for itt/
  3. Anubhav

    Lock this

    Please help me !!1
  4. Anubhav

    ac 130 bug

    Contact the owner.
  5. Anubhav

    Lock this

    How to get text from table? I did the information with table.insert but is thier any function for getting the info from table?
  6. Anubhav

    Lock this

    Ok i will try to. If it works with table.insert in memo's and its ok . I got how to do thanks guyz for putting alot of effort on me.
  7. Anubhav

    Lock this

    I am saving in every function. Which part? Of tables or what/
  8. Anubhav

    Lock this

    What part do want. Sorry but i can't post whole script.
  9. Anubhav

    Lock this

    So how should i get the data and set it? For only gang. And i told to give one example.
  10. Anubhav

    Lock this

    No not that. I want to save a memo. How can i make a file for one group by file functions or maybe account data?
  11. addEventHandler("onMarkerHit",createMarker(1726.7969970703, -3491.5029296875, 20.170000076294,"cylinder",2,187,5,175,170),function(element) -- the event "onMarkerHit" has 2 parameters of which one is the element that hit the marker if getElementType(element) == "player" then -- we check if the element is a player if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(element)),aclGetGroup("Admin")) then -- we check if the player is an admin -- your stuff else outputChatBox("You're not an admin!",element) -- player isn't an admin end end end )
  12. radioURL1 = "myRadioSTATION" mapRadio = "myRadioSTATION2" function play () theRadio = playSound(radioURL1) setElementData(root,"radio",theRadio) end addEventHandler("onClientResourceStart",resourceRoot,play) addEventHandler("onClientPlayerJoin",root,play) function mute () setSoundVolume(theRadio, 0) outputChatBox ("Radio is muted") setElementData(source,"radio",false or nil) end addCommandHandler ("muteRadio",mute) function playRadio () setSoundVolume(theRadio, 1) if theRadio then outputChatBox("Radio is already playing!") return end else if getElementData(player,"mapRadio) == true then setElementData(player,"mapRadio",false or nil) setElementData(player,"radio",theRadio) outputChatBox("Radio is now playing!") end end addCommandHandler ("playRadio",playRadio) function playMapSound() local sound = getElementData(player,"radio") if sound == nil or false then local mapSound = playSound(mapRadio) setElementData(player,"mapradio",mapSound) end setTimer(playMapSound,1000,0) function stopMapMusic() local getEle = getElementData(player,"mapRadio) if getEle == false or nil then outputChatBox("Map sound is already muted.") return end else outputChatBox("Map sound is muted now!") setElementData(player,"mapRadio",false or nil) play() end addCommandHandler("mutemap",stopMapMusic)
  13. Anubhav

    [NEED HELP]

    What's the error?
  14. EDIT : What do you want in that code?
  15. function bla() local theSound = playSound(....) local pause = isSoundPaused(theSound) if(pause == true) then -- you code end end
  16. Phone_Image = guiCreateStaticImage(438, 112, 233, 398, ":guieditor/images/phone_s4.png", false) Anims = guiCreateStaticImage(21, 78, 44, 54, ":guieditor/images/apps/animations.png", false, Phone_Image) Banking = guiCreateStaticImage(22, 155, 43, 47, ":guieditor/images/apps/givecash.png", false, Phone_Image) Car_Mods = guiCreateStaticImage(96, 78, 42, 54, ":guieditor/images/apps/carmods.png", false, Phone_Image) Phone_Label = guiCreateLabel(75, 37, 86, 15, "*CIR* - Phone", false, Phone_Image) guiSetFont(Phone_Label, "default-bold-small") Map = guiCreateStaticImage(94, 155, 44, 47, ":guieditor/images/apps/map.png", false, Phone_Image) Events = guiCreateStaticImage(21, 228, 44, 50, ":guieditor/images/apps/events.png", false, Phone_Image) Sms = guiCreateStaticImage(94, 226, 42, 52, ":guieditor/images/apps/sms.png", false, Phone_Image) Gps = guiCreateStaticImage(21, 299, 44, 48, ":guieditor/images/apps/gps.png", false, Phone_Image) MW = guiCreateStaticImage(170, 78, 47, 54, ":guieditor/images/apps/mostwanted.png", false, Phone_Image) Music = guiCreateStaticImage(170, 155, 47, 47, ":guieditor/images/apps/music.png", false, Phone_Image) Notes = guiCreateStaticImage(170, 225, 47, 53, ":guieditor/images/apps/notes.png", false, Phone_Image) PhoneCall = guiCreateStaticImage(170, 299, 47, 48, ":guieditor/images/apps/phone.png", false, Phone_Image) Settings = guiCreateStaticImage(94, 299, 42, 48, ":guieditor/images/apps/settings.png", false, Phone_Image) bindKey ( "F2" , "down" , function () if ( guiGetVisible ( Phone_Image ) == true ) then guiSetVisible ( Phone_Image, false ) showCursor(false) elseif ( guiGetVisible ( Phone_Image ) == false ) then guiSetVisible ( Phone_Image, true ) showCursor(true) end end
  17. -- For stoping stopSound -- for playing playSound
  18. Phone_Image = guiCreateStaticImage(438, 112, 233, 398, ":guieditor/images/phone_s4.png", false) Anims = guiCreateStaticImage(21, 78, 44, 54, ":guieditor/images/apps/animations.png", false, Phone_Image) Banking = guiCreateStaticImage(22, 155, 43, 47, ":guieditor/images/apps/givecash.png", false, Phone_Image) Car_Mods = guiCreateStaticImage(96, 78, 42, 54, ":guieditor/images/apps/carmods.png", false, Phone_Image) Phone_Label = guiCreateLabel(75, 37, 86, 15, "*CIR* - Phone", false, Phone_Image) guiSetFont(Phone_Label, "default-bold-small") Map = guiCreateStaticImage(94, 155, 44, 47, ":guieditor/images/apps/map.png", false, Phone_Image) Events = guiCreateStaticImage(21, 228, 44, 50, ":guieditor/images/apps/events.png", false, Phone_Image) Sms = guiCreateStaticImage(94, 226, 42, 52, ":guieditor/images/apps/sms.png", false, Phone_Image) Gps = guiCreateStaticImage(21, 299, 44, 48, ":guieditor/images/apps/gps.png", false, Phone_Image) MW = guiCreateStaticImage(170, 78, 47, 54, ":guieditor/images/apps/mostwanted.png", false, Phone_Image) Music = guiCreateStaticImage(170, 155, 47, 47, ":guieditor/images/apps/music.png", false, Phone_Image) Notes = guiCreateStaticImage(170, 225, 47, 53, ":guieditor/images/apps/notes.png", false, Phone_Image) PhoneCall = guiCreateStaticImage(170, 299, 47, 48, ":guieditor/images/apps/phone.png", false, Phone_Image) Settings = guiCreateStaticImage(94, 299, 42, 48, ":guieditor/images/apps/settings.png", false, Phone_Image) bindKey ( "F2" , "down" , function () local guiVis = guiGetVisible(Phone_Image) if guiVis == true then guiSetVisible ( Phone_Image , false ) showCursor ( false ) else guiSetVisible ( Phone_Image , true ) showCursor ( true ) end end)
  19. Anubhav

    Lock this

    But it will be laggy. Any other way without xml or sql or mysql?
  20. Anubhav

    Lock this

    Hmm no it din't. I need for each group one file. Its memo will be thier. the memo text depends on the gang.. Something like that?
  21. Anubhav

    setTeam

    Np. Show your meta.xml.
  22. Anubhav

    setTeam

    What is the error?
  23. Anubhav

    setTeam

    lol local team = createTeam ( 'xXx' ) addEventHandler ( 'onPlayerJoin',source, function ( ) setPlayerTeam( source,team ) giveWeapon( source,31,3214 ) outputChatBox ( 'xXx Player Join', source, 255, 255, 255, true ) end )
×
×
  • Create New...