Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    NEVER MIND!

    I've seen the "SARL" tag before, isn't the owner a guy named "Blacks"?
  2. Castillo

    NEVER MIND!

    Nop, i know what i read, you have edited your post But, that's not a good answer, because, i could tell you, i will do it for $100000, and you will pay that? nah.
  3. Castillo

    NEVER MIND!

    I don't understand what do you mean, i repeat, will you pay the Scripter for HIS/HER work?
  4. Castillo

    NEVER MIND!

    Are you willing to pay for an Scripter?
  5. , because you must make TWO script files
  6. --client side GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(782,176,240,493,"Alarm Menu",false) guiWindowSetMovable(GUIEditor_Window[1],true) guiWindowSetSizable(GUIEditor_Window[1],false) guiSetVisible(GUIEditor_Window[1],false) GUIEditor_Button[1] = guiCreateButton(22,56,196,55,"Nekluaralarm !",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(22,128,198,56,"Sturmwarnung",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(23,201,197,55,"Großalarm",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(22,274,198,56,"Feuer",false,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(22,344,199,57,"Freie Fahrt",false,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(131,425,87,38,"Abbruch",false,GUIEditor_Window[1]) GUIEditor_Button[7] = guiCreateButton(24,425,86,38,"Info (Chatbox)",false,GUIEditor_Window[1]) showCursor(false) bindKey("F5","down",function () showCursor(not isCursorShowing()) guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) end) function buttonClicks() if (source == GUIEditor_Button[1]) then outputChatBox("Achtung! Eine Nekluarwarnung wurde ausgegeben, bitte alle zur Zentrale!\nBitte alle zur Bereitschaft zur Zentrale!", 126, 0, 0) triggerServerEvent("sendSound",getLocalPlayer(),"Nekluaralarm.mp3",false) elseif (source == GUIEditor_Button[2]) then outputChatBox("Achtung! Eine Sturmwarnug wurde ausgegeben, bitte alle zur Bereitschaft in die Zentrale", 126, 0, 0) triggerServerEvent("sendSound",getLocalPlayer(),"tornadoalarm.mp3",true) elseif (source == GUIEditor_Button[3]) then outputChatBox("Großalarm! Alle Einheiten sofort zur Zentrale", 126, 0, 0) triggerServerEvent("sendSound",getLocalPlayer(),"Grossalarm.mp3",false) elseif (source == GUIEditor_Button[4]) then outputChatBox("Einsatz! Achtung es wurde ein Feuer gemeldet, bitte alle ur Zentrale!", 126, 0, 0) triggerServerEvent("sendSound",getLocalPlayer(),"nma.mp3",false) elseif (source == GUIEditor_Button[5]) then outputChatBox("Es liegt zurzeit kein Einsatz vor!", 126, 0, 0) elseif (source == GUIEditor_Button[6]) then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) elseif (source == GUIEditor_Button[7]) then outputChatBox("Infos: Bitte nur die Alarme auslösen auf den die Meldung zutrifft!\nBei missachtung kann es zum rausschmiss aus der Feuerwehr führen!\nBei freier Fahrt wird kein Alarm ausgelößt!") end end addEventHandler("onClientGUIClick",getRootElement(),buttonClicks) addEvent("returnSound",true) addEventHandler("returnSound",getRootElement(), function (sound,bool) playSound(tostring(sound),bool) end) --server side addEvent("sendSound",true) addEventHandler("sendSound",getRootElement(), function (sound, bool) triggerClientEvent("returnSound",getRootElement(),sound,bool) end) This sould work.
  7. Firstly, use the 'EDIT' button, don't double-post. Now, i don't understand your problem, are you using a MySql game mode?
  8. Ah, that game mode is built with MTA paradise scripts
  9. I've done this script for you, this set's the rhino health when you hit it with a weapon (ex: M4), grenades, rockets won't work as i can see. --server side addEvent("setTheTankHealth",true) addEventHandler("setTheTankHealth",getRootElement(), function(tank) setElementHealth(tank, getElementHealth(tank) - 5) end ) --client side addEventHandler ( "onClientPlayerWeaponFire", getLocalPlayer(), function (weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if (hitElement) then if getElementType(hitElement) == "vehicle" then if getElementModel(hitElement) == 432 then triggerServerEvent("setTheTankHealth",getLocalPlayer(),hitElement) end end end end)
  10. Castillo

    get()

    You are using his code wrongly, that's all.
  11. I don't know why, but damage done by MG's, Rockets, is not working, i tryied using onVehicleDamage as a test, and it won't output the health loss, but if i crash him with another vehicle, he do lose health.
  12. Castillo

    get()

    Dude, what's the point of asking for a function that is only server-side to work on client-side and then use it on server-side?, you are using 'clientGet' on server side part.
  13. Do you have a mysql server, and the mysql module loaded?
  14. I guess you are using 'MTA paradise' game mode, right? If so, when you download it, it comes with that resource also.
  15. That means, the resource named 'SQL' doesn't exist in resources folder.
  16. Scripting a realistic Roleplay game mode would take alot of time... you could at least post how much would you pay for it.
  17. Castillo

    NO! Handling

    Well, Oz, we already know that AFS is using stolen DKR client side scripts
  18. You can see my server name at my Signature.
  19. Que yo sepa, no, no es possible lamentable mente.
  20. Z3RB1AN, i used to own a "RPG" server, but that server allowed you to do that stuff & alot more, if i'm right there are many DM servers anyway.
  21. Yes, i own a server.
  22. You can easily make an script to save them on account data. functions for that: getPlayerAccount getAccountData setAccountData events: onZombieWasted
  23. Your bindKey function is wrong. function startMusic() setRadioChannel(0) song = playSound("song2.ogg",true) outputChatBox("Toggle the music on/off with 'm'", 255, 0, 255 ) outputChatBox("Change Song with 'n'", 255, 0, 255 ) end function makeRadioStayOff() setRadioChannel(0) cancelEvent() end function toggleSong() if not songOff then setSoundVolume(song,0) songOff = true removeEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) else setSoundVolume(song,1) songOff = false setRadioChannel(1) addEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) end function selectSong() stopSound(song) song2 = playSound("song.ogg",true) outputChatBox("Changed Song", 255, 0, 255 ) end end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),startMusic) addEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) addEventHandler("onClientPlayerVehicleEnter",getRootElement(),makeRadioStayOff) addCommandHandler("music",toggleSong) addCommandHandler("sel",selectSong) bindKey("m","down",toggleSong) bindKey("n","down",selectSong) Btw, this is a dissaster.. i recommend learning the basics than copyng a code made by someone else
  24. Castillo

    NO! Handling

    I don't understand, why do you need this? MTA has it already... if you modify any data file of GTA:SA you can't join any server.
  25. Well, most of those servers bans you for DM'ing .
×
×
  • Create New...