
Overkillz
Members-
Posts
545 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Overkillz
-
It shouldn't show u other messages, only: " /spam /insult /caps .. " Be sure that u are copying the code correctly.
-
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 ...
-
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.
-
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.
-
Thanks guys, specially to Kenix. Now I only need to use a setElementPosition and somethings more and will be enought, thanks guys
-
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.
-
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.
-
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.
-
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.
-
triggerClientEvent
-
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.
-
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.
-
Thanks man, it looks fixed Always I forgot : [#]
-
Maybe you want to draw the Level, then you can use setElementData getElementData
-
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)
-
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
-
Thanks, only I needen this: getPlayersInTeam
-
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.
-
Could you give me some steps to keep sync my webserver with mtaserver ? If you can, could you tell me it detaily ? Regards.
-
"Script" is the name of the resource. It containt the meta and a client file. But it didnt work.
-
mtaserver.conf bandwich_reduce or something else ...
-
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.
-
https://wiki.multitheftauto.com/wiki/BindKey
-
createMarker == -- Shared Function
-
You was in the correct, I didnt was noticed that the engine... was into the function, mybad, thanks man.