Jump to content

hoffman0070

Members
  • Posts

    17
  • Joined

  • Last visited

Everything posted by hoffman0070

  1. hoffman0070

    Commands

    I dont know if this is the right place but i would like to know how i can see the commands people have entered and what file they would go into (Even commands where you have to be admin) so i know if anyone is abusing. also is there a way i can see all executable commands?
  2. hoffman0070

    Commands

    in what file would the commands people have entered be in or cant you look at that?
  3. i want to remove what its posting in the chat... im confused here is the client.lua --------------------------------------------- --MTA:SA Radio Player mady by Crazy (community - crazyserega1994, forum CrazyDude, irc CrazyDude) --Commands: --/radio - shows/hides radio controls --/vol_up,/vol_down - volume control --/stopsound - stops the sound ---------------------------------------------- nilSound = { ["meta"] = {}, ["length"] = 0, ["pointer"] = nil, ["stream_title"] = nil, ["url"] = nil, ["row"] = nil } currentSound = nilSound function soundStarted(success,length,streamName) if success then currentSound.pointer = source currentSound.meta = getSoundMetaTags(source) currentSound.length = length if length == 0 then outputChatBox('#FFFF00RADIO: #FFFFFF"'..streamName..'" stream started.',255,0,0,true) if currentSound.meta.title then outputChatBox('#000000*#FFFF00Title: #FFFFFF"'..currentSound.meta.title,255,0,0,true) end if currentSound.meta.artist then outputChatBox('#000000*#FFFF00Artist: #FFFFFF"'..currentSound.meta.artist,255,0,0,true) end if currentSound.meta.stream_name then outputChatBox('#000000*#FFFF00Stream name: #FFFFFF"'..currentSound.meta.stream_name,255,0,0,true) end if currentSound.meta.stream_title then outputChatBox('#000000*#FFFF00Stream title: #FFFFFF"'..currentSound.meta.stream_title,255,0,0,true) elseif currentSound.stream_title then outputChatBox('#000000*#FFFF00Stream title: #FFFFFF"'..currentSound.stream_title,255,0,0,true) end else outputChatBox("*********************************",0,0,0) --[[if currentSound.meta.title then outputChatBox('#FFFF00RADIO: #FFFFFF"'..currentSound.meta.title..'" sound started.',255,0,0,true) else outputChatBox('#FFFF00RADIO: #FFFFFFSound started.',255,0,0,true) end]]-- if currentSound.meta.title then outputChatBox('#000000*#FFFF00Title: #FFFFFF'..currentSound.meta.title,255,0,0,true) end if currentSound.meta.artist then outputChatBox('#000000*#FFFF00Artist: #FFFFFF'..currentSound.meta.artist,255,0,0,true) end outputChatBox('#000000*#FFFF00Length: #FFFFFF'..tostring(getRealTime(length/1000).minute)..":"..tostring(getRealTime(length/1000).second),255,0,0,true) outputChatBox("*********************************",0,0,0) end else outputChatBox("#FFFF00RADIO: #FFFFFFFailed to play sound/stream.",255,0,0,true) end end function startSound(url,row) outputChatBox("#FFFF00RADIO: #FFFFFFTrying to play "..url,255,0,0,true) if currentSound.pointer then stopSound(currentSound.pointer) end currentSound = nilSound currentSound.url = url if row then currentSound.row = row end playSound(url) end function onSoundStop() if currentSound.length ~= 0 then if guiCheckBoxGetSelected(GUIEditor_Checkbox[2]) == true then startSound(currentSound.url) else if guiCheckBoxGetSelected(GUIEditor_Checkbox[1]) == true then local totalSounds = guiGridListGetRowCount(GUIEditor_Grid[2]) - 1 if currentSound.row + 1 > totalSounds then startSound(guiGridListGetItemText(GUIEditor_Grid[2],0,soundColumn),0) else startSound(guiGridListGetItemText(GUIEditor_Grid[2],totalSounds,soundColumn),currentSound.row + 1) end else currentSound = nilSound end end else currentSound = nilSound outputChatBox("#FFFF00RADIO: #FFFFFFStream stopped.",255,0,0,true) end end function onSoundChange(title) currentSound.meta = getSoundMetaTags(source) currentSound.stream_title = title if currentSound.stream_title then outputChatBox("#FFFF00RADIO: #FFFFFFNow playing "..currentSound.stream_title,255,0,0,true) else outputChatBox("#FFFF00RADIO: #FFFFFFNow playing "..currentSound.url,255,0,0,true) end outputChatBox("*********************************",0,0,0) if currentSound.meta.title then outputChatBox('#000000*#FFFF00Title: #FFFFFF"'..currentSound.meta.title,255,0,0,true) end if currentSound.meta.artist then outputChatBox('#000000*#FFFF00Artist: #FFFFFF"'..currentSound.meta.artist,255,0,0,true) end if currentSound.meta.stream_name then outputChatBox('#000000*#FFFF00Stream name: #FFFFFF"'..currentSound.meta.stream_name,255,0,0,true) end if currentSound.meta.stream_title then outputChatBox('#000000*#FFFF00Stream title: #FFFFFF"'..currentSound.meta.stream_title,255,0,0,true) elseif currentSound.stream_title then outputChatBox('#000000*#FFFF00Stream title: #FFFFFF"'..currentSound.stream_title,255,0,0,true) end outputChatBox("*********************************",0,0,0) end --Controls start addCommandHandler("vol_up", function () if currentSound.pointer then local curVolume = getSoundVolume(currentSound.pointer) if curVolume < 1 then setSoundVolume(currentSound.pointer,curVolume+0.1) else setSoundVolume(currentSound.pointer,1) end end end) addCommandHandler("vol_down", function () if currentSound.pointer then local curVolume = getSoundVolume(currentSound.pointer) if curVolume > 0 then setSoundVolume(currentSound.pointer,curVolume-0.1) else setSoundVolume(currentSound.pointer,0) end end end) addCommandHandler("stopsound", function () if currentSound.pointer then stopSound(currentSound.pointer) currentSound = nilSound outputChatBox("#FFFF00RADIO: #FFFFFFSound stopped ",255,0,0,true) end end) --Controls end --Events start addEventHandler("onClientSoundStream",getResourceRootElement(getThisResource()),soundStarted) addEvent("onClientSoundStop",false) setTimer( function () if currentSound.pointer then if currentSound.length ~= 0 then if getSoundPosition(currentSound.pointer) == 0 then triggerEvent("onClientSoundStop",currentSound.pointer) end else if getSoundPosition(currentSound.pointer) == 0 then triggerEvent("onClientSoundStop",currentSound.pointer) end end end end,1000,0) addEventHandler("onClientSoundStop",getResourceRootElement(getThisResource()),onSoundStop) addEventHandler("onClientSoundChangedMeta",getResourceRootElement(getThisResource()),onSoundChange) --Events end
  4. so where do i put that? in the cliant.lua? and do i only put that or do i have to put something after it?
  5. i have the radio-player script for my server but the radio chnages the title avery song and it just spams the chat. How can i stop it from having access to the chat?
  6. Hello there, there are errors on my server and i don't know what they mean or how to fix and i was hoping that you could look at the logs and help me out. server log http://pastebin.com/rUiUNh5J editor_Server log http://pastebin.com/SBfk0GVb Thanks in advance
  7. hoffman0070

    No servers

    Help, it was all fine until I formatted my pc, now no servers show up after clicking refresh and I don't know why. I've never had this problem before
  8. no thats not what i mean, i mean i have a script that only the cliant using it can see, i want to change iit so every one can see but i dont know how to script it so what the client does gets sent to server then so his acions are sent to the rest of the clients in the server.
  9. I have a script that allows you to record you movement, at the oment it is only visible by yourself, im trying to make the client.lua and server.lua but im realy not understanding it. can someone please help me out and tell me how i can me the line left be hind the car seen by all. i have no script so i cant show
  10. hoffman0070

    Help problem

    i think its fixed now
  11. hoffman0070

    Help problem

    http://pastebin.com/embed_js.php?i=1V994ZzW
  12. hoffman0070

    Help problem

    i done the xml thing but it didnt work i try pastebin
  13. hoffman0070

    Help problem

    that line is already there, shall i put my acl here, and what acl should it be, im mapping with friend in my server, would it be editor_acl.xml or acl.xml
  14. hoffman0070

    Help problem

    I have tried, what am I ment to write in my acl?
  15. hoffman0070

    Help problem

    When I go to my server then type stop race then start editor I get this error "editor_main\server\saveloadtest_server.lua:39: access denied @ 'refreshResources' " I've tried fixing but failed I even reinstalls mta but that didn't work
×
×
  • Create New...