Anubhav
Members-
Posts
2,277 -
Joined
-
Last visited
Everything posted by Anubhav
-
I am not understanding. Is thier a way without loops?
-
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/
-
How to get text from table? I did the information with table.insert but is thier any function for getting the info from table?
-
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.
-
I am saving in every function. Which part? Of tables or what/
-
What part do want. Sorry but i can't post whole script.
-
So how should i get the data and set it? For only gang. And i told to give one example.
-
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?
-
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 )
-
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)
-
EDIT : What do you want in that code?
-
function bla() local theSound = playSound(....) local pause = isSoundPaused(theSound) if(pause == true) then -- you code end end
-
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
-
-- For stoping stopSound -- for playing playSound
-
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)
-
But it will be laggy. Any other way without xml or sql or mysql?
-
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?