Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Omg, first don't Quote the Last post, second, WHAT DOESN'T WORK ON IT?
  2. What doesn't "work"?
  3. That's because your trigger is for EVERY player in the server, this should work. addEvent("clear1", true) addEventHandler("clear1", getRootElement(), function() triggerClientEvent(source,"clear",source) outputChatBox("[RADIO] "..getPlayerName(source)..": Sector Clear!", getRootElement(), 0,255,255, true) end ) addEvent("ct_inpos1", true) addEventHandler("ct_inpos1", getRootElement(), function() triggerClientEvent(source,"ct_inpos",source) outputChatBox("[RADIO] "..getPlayerName(source)..": I'm in Position!", getRootElement(), 0,255,255, true) end ) addEvent("com_reportin1", true) addEventHandler("com_reportin1", getRootElement(), function() triggerClientEvent(source,"com_reportin",source) outputChatBox("[RADIO] "..getPlayerName(source)..": Report In Team!", getRootElement(), 0,255,255, true) end ) addEvent("negative1", true) addEventHandler("negative1", getRootElement(), function() triggerClientEvent(source,"negative",source) outputChatBox("[RADIO] "..getPlayerName(source)..": Negative!", getRootElement(), 0,255,255, true) end ) addEvent("roger1", true) addEventHandler("roger1", getRootElement(), function() triggerClientEvent(source,"roger",source) outputChatBox("[RADIO] "..getPlayerName(source)..": Roger That!", getRootElement(), 0,255,255, true) end ) addEvent("ct_backup1", true) addEventHandler("ct_backup1", getRootElement(), function() triggerClientEvent(source,"ct_backup",source) outputChatBox("[RADIO] "..getPlayerName(source)..": Need Backup!", getRootElement(), 0,255,255, true) end ) addEvent("sticktog1", true) addEventHandler("sticktog1", getRootElement(), function() triggerClientEvent(source,"sticktog",source) outputChatBox("[RADIO] "..getPlayerName(source)..": Stick Together Team!", getRootElement(), 0,255,255, true) end ) addEvent("fallback1", true) addEventHandler("fallback1", getRootElement(), function() triggerClientEvent(source,"fallback",source) outputChatBox("[RADIO] "..getPlayerName(source)..": Team Fall Back!", getRootElement(), 0,255,255, true) end ) addEvent("com_go1", true) addEventHandler("com_go1", getRootElement(), function() triggerClientEvent(source,"com_go",source) outputChatBox("[RADIO] "..getPlayerName(source)..": Go Go Go!", getRootElement(), 0,255,255, true) end ) addEvent("regroup1", true) addEventHandler("regroup1", getRootElement(), function() triggerClientEvent(source,"regroup",source) outputChatBox("[RADIO] "..getPlayerName(source)..": Regroup Team!", getRootElement(), 0,255,255, true) end ) addEvent("position1", true) addEventHandler("position1", getRootElement(), function() triggerClientEvent(source,"position",source) outputChatBox("[RADIO] "..getPlayerName(source)..": Hold this Position!", getRootElement(), 0,255,255, true) end ) addEvent("fireassis1", true) addEventHandler("fireassis1", getRootElement(), function() triggerClientEvent(source,"fireassis",source) outputChatBox("[RADIO] "..getPlayerName(source)..": Taking Fire, Need Assistance!", getRootElement(), 0,255,255, true) end end ) addEvent("stormfront1", true) addEventHandler("stormfront1", getRootElement(), function() triggerClientEvent(source,"stormfront",source) outputChatBox("[RADIO] "..getPlayerName(source)..": Storm the Front!", getRootElement(), 0,255,255, true) end end ) addEvent("followme1", true) addEventHandler("followme1", getRootElement(), function() triggerClientEvent(source,"followme",source) outputChatBox("[RADIO] "..getPlayerName(source)..": Follow Me!", getRootElement(), 0,255,255, true) end ) addEvent("ct_coverme1", true) addEventHandler("ct_coverme1", getRootElement(), function() triggerClientEvent(source,"ct_coverme",source) outputChatBox("[RADIO] "..getPlayerName(source)..": Cover Me!", getRootElement(), 0,255,255, true) end )
  4. That doens't helps me at all, do you mean the "Zombies" script can't set their dimensions defined on .map file? Edit: i've added to set their dimensions, problem fixed.
  5. That is not a "Scripting" question, but if i'm right, you need a better Internet connection to make it faster.
  6. What? i don't get you, i just copied his code and added a check to stop using the buttons every second.
  7. Also, i don't think 100 USD would be enough, to script a Roleplay you need lot of time.
  8. addEventHandler("onPlayerSpawn",root, function () if isPlayerAFKMode(source) == true then killPed(source) end end) should work.
  9. I don't think so, i've tryed this before and didn't worked at all.
  10. This sounds like a rip off from my "Userpanel" script, since you are checking if him has no money o_o, you can do it like this to stop them from using it many times: GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Grid = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(345,168,342,446,"CounteR Strike Script By HoLsTeN 1.0",false) guiSetVisible(GUIEditor_Window[1],false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,20,324,417,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("CounteR Strike",GUIEditor_TabPanel[1]) GUIEditor_Button[1] = guiCreateButton(7,147,95,32,"Follow Me",false,GUIEditor_Tab[1]) GUIEditor_Button[2] = guiCreateButton(7,191,95,32,"Cover Me",false,GUIEditor_Tab[1]) GUIEditor_Button[3] = guiCreateButton(7,235,95,32,"storm front",false,GUIEditor_Tab[1]) GUIEditor_Button[4] = guiCreateButton(7,280,95,32,"Taking Fire",false,GUIEditor_Tab[1]) GUIEditor_Button[5] = guiCreateButton(7,326,95,32,"Hold this Position",false,GUIEditor_Tab[1]) GUIEditor_Button[6] = guiCreateButton(113,147,95,32,"Regroup Team",false,GUIEditor_Tab[1]) GUIEditor_Button[7] = guiCreateButton(114,191,95,32,"Go Go Go",false,GUIEditor_Tab[1]) GUIEditor_Button[8] = guiCreateButton(116,235,95,32,"Fall Back",false,GUIEditor_Tab[1]) GUIEditor_Button[9] = guiCreateButton(117,280,95,32,"stick Togeher Team",false,GUIEditor_Tab[1]) GUIEditor_Button[10] = guiCreateButton(118,326,95,32,"Need Backup",false,GUIEditor_Tab[1]) GUIEditor_Button[11] = guiCreateButton(219,147,95,32,"Roger That",false,GUIEditor_Tab[1]) GUIEditor_Button[12] = guiCreateButton(221,191,95,32,"Negative",false,GUIEditor_Tab[1]) GUIEditor_Button[13] = guiCreateButton(220,235,95,32,"Report In",false,GUIEditor_Tab[1]) GUIEditor_Button[14] = guiCreateButton(221,280,95,32,"I'm in Position",false,GUIEditor_Tab[1]) GUIEditor_Button[15] = guiCreateButton(221,326,95,32,"Sector Clear",false,GUIEditor_Tab[1]) GUIEditor_Image[1] = guiCreateStaticImage(4,7,314,138,"11.png",false,GUIEditor_Tab[1]) GUIEditor_Label[1] = guiCreateLabel(12,370,308,19,"Just click on the button 1 time By HoLsTeN Have Fun",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],0,255,0) function onGuiClick (button, state, absoluteX, absoluteY) if (source == GUIEditor_Button[1]) then triggerServerEvent ("followme1", getLocalPlayer()) elseif (source == GUIEditor_Button[2]) then triggerServerEvent ("ct_coverme1", getLocalPlayer()) elseif (source == GUIEditor_Button[3]) then triggerServerEvent ("stormfront1", getLocalPlayer()) elseif (source == GUIEditor_Button[4]) then triggerServerEvent ("fireassis1", getLocalPlayer()) elseif (source == GUIEditor_Button[5]) then triggerServerEvent ("position1", getLocalPlayer()) elseif (source == GUIEditor_Button[6]) then triggerServerEvent ("regroup1", getLocalPlayer()) elseif (source == GUIEditor_Button[7]) then triggerServerEvent ("com_go1", getLocalPlayer()) elseif (source == GUIEditor_Button[8]) then triggerServerEvent ("fallback1", getLocalPlayer()) elseif (source == GUIEditor_Button[9]) then triggerServerEvent ("sticktog1", getLocalPlayer()) elseif (source == GUIEditor_Button[10]) then triggerServerEvent ("ct_backup1", getLocalPlayer()) elseif (source == GUIEditor_Button[11]) then triggerServerEvent ("roger1", getLocalPlayer()) elseif (source == GUIEditor_Button[12]) then triggerServerEvent ("negative1", getLocalPlayer()) elseif (source == GUIEditor_Button[13]) then triggerServerEvent ("com_reportin1", getLocalPlayer()) elseif (source == GUIEditor_Button[14]) then triggerServerEvent ("ct_inpos1", getLocalPlayer()) elseif (source == GUIEditor_Button[15]) then triggerServerEvent ("clear1", getLocalPlayer()) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) function ToggleazozMenu() if (guiGetVisible(GUIEditor_Window[1]) == true) then guiSetVisible(GUIEditor_Window[1], false) showCursor(false) else guiSetVisible(GUIEditor_Window[1], true) showCursor(true) playersColumn = guiGridListAddColumn(playerGridList,"Players",0.85) guiGridListSetSelectionMode(playerGridList,2) for id, plaItem in ipairs(getElementsByType("player")) do row = guiGridListAddRow ( playerGridList ) guiGridListSetItemText ( playerGridList, row, playersColumn, getPlayerName ( plaItem ), false, false ) end addEventHandler( "onClientGUIClick", playerGridList, setGUI ) local sound = playSound("DontHaveTime.mp3") setSoundVolume(sound, 2.5) end end bindKey("F2","down",ToggleazozMenu) outputChatBox("Press F2 To Open ||CounteR Strike Script|| !!!",0,255,255) ----------------- enabled = 1 function enable() enabled = 1 end addEvent("followme",true) addEventHandler("followme",getRootElement(), function () if enabled == 1 then enabled = 0 local sound = playSound("followme.mp3") setSoundVolume(sound, 2.0) end end) ------------------- addEvent("ct_coverme",true) addEventHandler("ct_coverme",getRootElement(), function () if enabled == 1 then enabled = 0 local sound = playSound("ct_coverme.mp3") setSoundVolume(sound, 2.0) end end) ------------------ addEvent("stormfront",true) addEventHandler("stormfront",getRootElement(), function () if enabled == 1 then enabled = 0 local sound = playSound("stormfront.mp3") setSoundVolume(sound, 2.0) end end) ------------------------ addEvent("fireassis",true) addEventHandler("fireassis",getRootElement(), function () if enabled == 1 then enabled = 0 local sound = playSound("fireassis.mp3") setSoundVolume(sound, 2.0) end end) ----------------------- addEvent("position",true) addEventHandler("position",getRootElement(), function () if enabled == 1 then enabled = 0 local sound = playSound("position.mp3") setSoundVolume(sound, 2.0) end end) ---------------------------- addEvent("regroup",true) addEventHandler("regroup",getRootElement(), function () if enabled == 1 then enabled = 0 local sound = playSound("regroup.mp3") setSoundVolume(sound, 2.0) end end) ----------------------------- addEvent("com_go",true) addEventHandler("com_go",getRootElement(), function () if enabled == 1 then enabled = 0 local sound = playSound("com_go.mp3") setSoundVolume(sound, 2.0) end end) ----------------------------- addEvent("fallback",true) addEventHandler("fallback",getRootElement(), function () if enabled == 1 then enabled = 0 local sound = playSound("fallback.mp3") setSoundVolume(sound, 2.0) end end) --------------------------------------- addEvent("sticktog",true) addEventHandler("sticktog",getRootElement(), function () if enabled == 1 then enabled = 0 local sound = playSound("sticktog.mp3") setSoundVolume(sound, 2.0) end end) ------------------------------- addEvent("ct_backup",true) addEventHandler("ct_backup",getRootElement(), function () if enabled == 1 then enabled = 0 local sound = playSound("ct_backup.mp3") setSoundVolume(sound, 2.0) end end) ---------------------------- addEvent("roger",true) addEventHandler("roger",getRootElement(), function () if enabled == 1 then enabled = 0 local sound = playSound("roger.mp3") setSoundVolume(sound, 2.0) end end) --------------------------------- addEvent("negative",true) addEventHandler("negative",getRootElement(), function () if enabled == 1 then enabled = 0 local sound = playSound("negative.mp3") setSoundVolume(sound, 2.0) end end) ---------------------------------- addEvent("com_reportin",true) addEventHandler("com_reportin",getRootElement(), function () if enabled == 1 then enabled = 0 local sound = playSound("com_reportin.mp3") setSoundVolume(sound, 2.0) end end) ------------------------------------ addEvent("ct_inpos",true) addEventHandler("ct_inpos",getRootElement(), function () if enabled == 1 then enabled = 0 local sound = playSound("ct_inpos.mp3") setSoundVolume(sound, 2.0) end end) ------------------------------------ addEvent("clear",true) addEventHandler("clear",getRootElement(), function () if enabled == 1 then enabled = 0 setTimer(enable,6000,1) local sound = playSound("clear.mp3") setSoundVolume(sound, 2.0) end
  11. Could someone answer my question?
  12. What the...? now i'm really confused
  13. Uhm, i have a question about your resource, is possible to set their dimension? like in the map file where you set the spawn points, Thanks in advance.
  14. omfg, i don't get a word of this guy.. what he's trying to do?
  15. last argument of playSound is to define if you want the sound to repeat, change it to false if you won't it to be repeated.
  16. ... what do you mean?
  17. Yes.. really "hard", i just searched for "Map:" and came up in one sec.
  18. You could have found it by yourself, it's on race_client.lua.
  19. I would recommend using DX drawing functions for this kind of stuff.
  20. ... who you think you are? the U.S President or what? You could ask it nicely and you would get replys faster. P.S: what are you trying to do? when click a object show a GUI? if yes use the event onClientClick and showCursor/bindKey for the mouse stuff. https://wiki.multitheftauto.com/wiki/OnClientClick
  21. Castillo

    CoD2MoD

    Damn, your english really su*** o_o, go to community.multitheftauto.com and find it.
  22. why didn't you copy Aiboforcen's code? --client addEvent( "onBye", true ) addEventHandler( "onBye", root, function() local sound = playSound("sounds/goodbuy.mp3") end ) --server function ByeEmotion(player, command) outputChatBox( "* "..getPlayerName(player).."said: Goodbye all", root, 255, 0, 255, true ) triggerClientEvent("onBye", root) end addCommandHandler("bye", ByeEmotion)
  23. that's setGameSpeed if i'm not wrong.
  24. Castillo

    Bots

    He maybe suposed there was a program or something like that, lol.
  25. Castillo

    PUSH

    I'm sorry, everyone has to start some day.
×
×
  • Create New...