-
Posts
1,423 -
Joined
-
Last visited
-
Days Won
19
Everything posted by Tekken
-
Lua tags are not please change it!
-
Soryy, but i can't help with leaked script's.
-
Oh soryy i forgot to add this addEvent("onPlayerIsMute", true) function mutePlayer(theTarget, muteTime, msg) if tonumber(muteTime) > 0 and tonumber(muteTime) < 121 then --I forgot to add this, and here it give me the error if theTarget ~= nil and isObjectInACLGroup("user."..getAccountName(getPlayerAccount(client)), aclGetGroup("MOD")) then setPlayerMuted(theTarget, true) if muteTime then setTimer(function() setPlayerMuted(theTarget, false) outputChatBox("Pedeapsa ta a expirat! Poti vorbi din nou!", theTarget, 130, 130, 130) end end, tonumber(muteTime)*60000, 1) end end end addEventHandler("onPlayerIsMute", root, mutePlayer)
-
function script ( thePlayer ) local duty = getElementData(thePlayer, "duty") or 0 if duty == 0 then unbindKey(thePlayer,"p","down", "admin") else bindKey(thePlayer,"p","down", "admin") end addCommandHandler("aduty",script)
-
Why i got this error ? My code: Server: addEvent("onPlayerIsMute", true) function mutePlayer(theTarget, muteTime, msg) if theTarget ~= nil and isObjectInACLGroup("user."..getAccountName(getPlayerAccount(client)), aclGetGroup("MOD")) then setPlayerMuted(theTarget, true) if muteTime then setTimer(function() setPlayerMuted(theTarget, false) outputChatBox("Pedeapsa ta a expirat! Poti vorbi din nou!", theTarget, 130, 130, 130) end end, tonumber(muteTime)*60000, 1) end end addEventHandler("onPlayerIsMute", root, mutePlayer) Client: addEventHandler("onClientGUIClick", getResourceRootElement(getThisResource()), function() if (source == GUIEditor.button[20]) then local theTarget = guiGridListGetSelectedItem(GUIEditor.gridlist[1], guiGridListGetSelectedItem(GUIEditor.gridlist[1]), 1) local muteTime = guiGetText(GUIEditor.edit[3]) local msg = guiGetText(GUIEditor.edit[4]) triggerServerEvent("onPlayerIsMute", localPlayer, theTarget, muteTime, msg) guiSetVisible(GUIEditor.window[3],false) end end ) Error: attempt to compare noumber with nil
-
file.luac is a compiled file.lua , that means if you want to make an file.luac you must do first an file.lua, then compile it here : https://luac.multitheftauto.com/ COMPILED FILES CAN'T BE EDITED !
-
O shit my bad i forgot to save Thanks! #Solved
-
Sure look: https://lh3.googleusercontent.com/-UL63 ... titled.png
-
It keep saying the same thing... i changet with 'onPlayerIsMute'
-
Why is it keep saying the event is not marked as triggerable ? My code: Server: addEvent("onPlayerMute", true) function mutePlayer(theTarget, muteTime, msg) --my code end addEventHandler("onPlayerMute", root, mutePlayer) Client: function() local theTarget = guiGridListGetSelectedItem(GUIEditor.gridlist[1], guiGridListGetSelectedItem(GUIEditor.gridlist[1]), 1) local muteTime = guiGetText(GUIEditor.edit[3]) local msg = guiGetText(GUIEditor.edit[4]) triggerServerEvent("onPlayerMute", localPlayer, theTarget, muteTime, msg) end
-
Use this and read wiki addAccount You will olso need Introduction_to_Scripting_the_GUI Good Luck.
-
Hello, How can i get an player IP and send it to client ?
-
I am not sure, but i think i didn't have an mail server, wath is that and how can i make one ?
-
Yes mailended is called but i didn't get any mail... and yes mta_sdk.php and mail.php are in the same directory
-
Hi guis, i use this useful function sendMailTo for sending an mail from server to someone but is didn't work Thi is my code : function sendMailTo(playerMail, serverMail, headertext, text) callRemote("http://apocalipz.net/recover_php/mail.php", mailsended, playerMail, headertext, text) end function mailsended() outputDebugString("E-Mail was succesfully sended.") end function MailText ( player, cmd, playerMail, serverMail, headertext, ... ) if playerMail then if headertext then local text = table.concat({...}," ") if text then sendMailTo(playerMail, serverMail, headertext, text) end end end end addCommandHandler("send", MailText) No error given in /debigscript 3 and this is the php: <?php include ( "mta_sdk.php" ); $input = mta::getInput(); mail($input[0], $input[2], $input[3], "From: ".$input[1]."\n" . "Content-Type: text/html; charset=iso-8859-1\n"); ?> I am not so good at php so....
-
I got this message but i didn't get any email ccw| Resource suspended| Please see email from [email protected] ccw if you see this comment please send me an pm.
-
[quote name=..&G:..] You might also want to take the 'local' from "theTimer' off, so it can be triggered outside the 'if' it is in. Hmm, i didn't know that thanks
-
[quote name=..&G:..] You forgot the '=' between "theTimer" and "setTimer" #Fixed. Thank's
-
This will give 50 $ every 10 seconds if player is in marker. local moneymarker = createMarker (2505.2, -1672.5, 12, "cylinder", 2, 60, 240, 32, 200) function giveMoney(player) if getElementType(player) == "player" then local theTime = setTimer ( function() givePlayerMoney(player, 50) end, 10000, 0 ) end end addEventHandler("onMarkerHit", moneymarker, giveMoney) function killTime() if isTimer(theTime) then killTimer(theTime) end end addEventHandler("onMarkerLeave", moneymarker, killTime)
-
Works! thanks! but how to make it on a timer? Wath do you mean by timer ? it's give money on player hit marker.
-
local moneymarker = createMarker (2505.2, -1672.5, 12, "cylinder", 2, 60, 240, 32, 200) function giveMoney () givePlayerMoney (source, 10) end addEventHandler ("onMarkerHit", moneymarker, giveMoney)
-
You need to change the original DayZ script's and that script's are compiled so....
-
Who said is imposible ?? Then wath is this ?? https://community.multitheftauto.com/in ... ls&id=7059