Jump to content

Overkillz

Members
  • Posts

    545
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Overkillz

  1. It shouldn't show u other messages, only: " /spam /insult /caps .. " Be sure that u are copying the code correctly.
  2. local iHelp = false function infoHelp() iHelp = true outputchatbox("/spam /insult /caps ..") end addCommandHandler("infohelp", infoHelp) function Caps() if infoAllow == true then outputchatbox("Info: Please turn off your caps") else outputchatbox("You are not allowed to use this | Type /infohelp") end end addCommandHandler("caps", Caps) function Spam() if infoAllow == true then outputchatbox("Info: Please stop spamming chat") else outputchatbox("You are not allowed to use this | Type /infohelp") end end addCommandHandler("spam", Spam) function Insult() if infoAllow == true then outputchatbox("Info: Please don't insult BITCH !") else outputchatbox("You are not allowed to use this | Type /infohelp") end end addCommandHandler("insult", Insult) Should work ...
  3. Try this local iHelp = false function infoHelp() iHelp = true outputchatbox("/spam /insult /caps ..") end addcommandhandler("infohelp", infoHelp function Caps() if infoAllow == true then outputchatbox("Info: Please turn off your caps") else outputchatbox("You are not allowed to use this | Type /infohelp") end end addcommandhandler("caps", Caps function Spam() if infoAllow == true then outputchatbox("Info: Please stop spamming chat") else outputchatbox("You are not allowed to use this | Type /infohelp") end end addcommandhandler("spam", Spam) function Insult() if infoAllow == true then outputchatbox("Info: Please don't insult BITCH !") else outputchatbox("You are not allowed to use this | Type /infohelp") end end addcommandhandler("insult", Insult) Not tested.
  4. I have already checked this function createBrowser https://wiki.multitheftauto.com/wiki/CreateBrowser Im trying to implement my forum on my server. I already know that i can't click on a dxDrawImage but, there is another function where will be I able to add a fade like using. Using this function GuiCreateBrowser https://wiki.multitheftauto.com/wiki/GuiCreateBrowser I can do click and use the browser ... there is a way to use it but using CreateBrowser Thanks and Regards.
  5. Thanks guys, specially to Kenix. Now I only need to use a setElementPosition and somethings more and will be enought, thanks guys
  6. If im not wrong, headlight looks like a marker "Corona" There is not a way to change his scale on the script what are you using ? Or you could take a corona marker to do it.
  7. Hey guys, I want to do a script which allow the player to change his spawn point before the countdown. It is for a race game mode "Deathmatch". I just would like to know if there is a function to get spawn points from the map. I have the script on my mind and shouldn't be hard to do it. Thanks and Regards.
  8. Well, I have seen the functions that the guys posted here. But your answer took my attention. How could I do it ? Thanks for answered me. Regards.
  9. Hey dear guys, might this is a stupid question about it. But I would like to connect my forum with the server, the script is already done and it works good. I have used the default db of MTA for a year. Many users have already catched a lot of things. Well, I would like to know if I can use some function or some program to move them to an external db created in phpmyadmin. Im waiting for your answer. Thanks and regards. EDIT: Sorry for posting it in Scripting section, Im getting used to post everything about script here.
  10. Thanks guys, I wasn't notified that I have defined thePlayer in the name of function and now it works perfect now it is fixed ^^ start of my code fixed by u guys ^^: function langChat(thePlayer, cmd, ...) local mycountry = getElementData(thePlayer, "langShi") if not mycountry then triggerClientEvent(thePlayer,"onToggleLang",thePlayer) return end --... rest of code Thanks newly Regards.
  11. Hey there, I have a little problem triggering to a Local user (Just the local user) well, my problem is, when the player press the L and If he hasn't any lang chosen, then make a trigger to chose the lang. It works perfectly with command, but IDK why is wrong. -- Trigger Server triggerClientEvent("onToggleLang",resourceRoot,true) -- Client Event addEvent ( "onToggleLang", true ) addEventHandler ( "onToggleLang", getRootElement(),toggleLang) If you need another part of the script, just ask me. Regards.
  12. Thanks man, it looks fixed Always I forgot : [#]
  13. Maybe you want to draw the Level, then you can use setElementData getElementData
  14. Well, I have noticed that I did something wrong, anyways, I got other problem which drops me this: These lines make reference to countryName = { 1 = "English", Script: gData = {} countryLang = { 1 = "English", 2 = "Español", 3 = "官話/官话", 4 = "العربيَّة", 5 = "Português", 6 = "Русский", 7 = "日本語", 8 = "Deutsch", 9 = "Indonesia", 10 = "한국어", 11 = "Français", 12 = "Français", 13 = "Italiano", 14 = "Polski", } for i=1,14 do gData[i] = ""..countryLang end showCursor(true) function langSystem() libBoton(button,x1,x2,x11,x22,"Select Language",2,60,60,60,255,255,255,255,false) libList(gridlist,gData,x111,x222,xa1,xa2,3,50,0,255,255) end addEventHandler("onClientRender",getRootElement(),langSystem)
  15. Hey guys, Im trying to set a list of values defined by me, but it drops me a message gData = {} vari = {"A","b","c","d","e"} for i=1,5 do gData[i] = " "..vari end showCursor(true) function listLetters() botonLib(button,x1,y1,x2,y2,"Select Language",2,60,60,60,255,255,255,255,false) listLib(gridlist,gData,x11,y11,x22,y22,3,50,0,255,255) end addEventHandler("onClientRender",getRootElement(),listLetters) DebugScript 3 drops me this message attempt to concatenate global 'vari' (a tabke value) I hope u can help me, thanks
  16. Thanks, only I needen this: getPlayersInTeam
  17. Hey guys, I'm working on a CW Script and I would like to draw players which are alive and players which are dead, well, I would like to know if there is some function for it. Thanks and Regards.
  18. Could you give me some steps to keep sync my webserver with mtaserver ? If you can, could you tell me it detaily ? Regards.
  19. "Script" is the name of the resource. It containt the meta and a client file. But it didnt work.
  20. mtaserver.conf bandwich_reduce or something else ...
  21. Hey dear guys, Im trying to speed up the download of my server. Well, Im trying to use httpdownloadurl and it doesn't works for me. I have an dedicated server and Im running a website there, well, I created a directoy which have -777 permisson (ATM) to test if it download my script, but it doesn't do it. This is the url which I have the httpdownloadurl http://my-website.net/files/ and this is an screen of the folder Well, I have .htaccess configured to AddType application/octet-stream .lua Well, I have no idead what I need to get it works. I have restarted the server, but nothing, it doesn't work I hope you can help me. Regards.
  22. https://wiki.multitheftauto.com/wiki/BindKey
  23. createMarker == -- Shared Function
  24. You was in the correct, I didnt was noticed that the engine... was into the function, mybad, thanks man.
×
×
  • Create New...