Jump to content

Tekken

Helpers
  • Posts

    1,423
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by Tekken

  1. Tekken

    f11 blips

    Here is the defauld folder MTA San Andreas 1.4\MTA\cgui\images\radarset I don't know if you can replace them via scripting.
  2. Tekken

    Help required.

    Lua tags are not please change it!
  3. Soryy, but i can't help with leaked script's.
  4. Tekken

    Event Error

    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)
  5. 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)
  6. Tekken

    Event Error

    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
  7. 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 !
  8. O shit my bad i forgot to save Thanks! #Solved
  9. Sure look: https://lh3.googleusercontent.com/-UL63 ... titled.png
  10. It keep saying the same thing... i changet with 'onPlayerIsMute'
  11. 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
  12. Use this and read wiki addAccount You will olso need Introduction_to_Scripting_the_GUI Good Luck.
  13. Hello, How can i get an player IP and send it to client ?
  14. I am not sure, but i think i didn't have an mail server, wath is that and how can i make one ?
  15. Yes mailended is called but i didn't get any mail... and yes mta_sdk.php and mail.php are in the same directory
  16. 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....
  17. 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.
  18. [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
  19. [quote name=..&G:..] You forgot the '=' between "theTimer" and "setTimer" #Fixed. Thank's
  20. 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)
  21. Works! thanks! but how to make it on a timer? Wath do you mean by timer ? it's give money on player hit marker.
  22. local moneymarker = createMarker (2505.2, -1672.5, 12, "cylinder", 2, 60, 240, 32, 200) function giveMoney () givePlayerMoney (source, 10) end addEventHandler ("onMarkerHit", moneymarker, giveMoney)
  23. You need to change the original DayZ script's and that script's are compiled so....
  24. Who said is imposible ?? Then wath is this ?? https://community.multitheftauto.com/in ... ls&id=7059
×
×
  • Create New...