Jump to content

Tekken

Helpers
  • Posts

    1,423
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by Tekken

  1. You can cacel download and start it after player join when they play.
  2. So sad..., i realy like the debug monitor and colors in this editor.
  3. Tekken

    ACL groups

    then this ? function checkBlockedSerial() object = aclGroupListObjects(aclGetGroup("Banat")) for i, v in ipairs(object) do PSerial = getPlayerSerial(source) Serial = gettok(v, 2, string.byte(".")) Name = gettok(v, 3, string.byte(".")) Reason = gettok(v, 4, string.byte(".")) if Serial == PSerial then kickPlayer(source, tostring(Reason)) end end end addEventHandler("onPlayerJoin", getRootElement(), checkBlockedSerial)
  4. Tekken

    ACL groups

    Will this work ? function checkBlockedSerial() object = aclGroupListObjects(aclGetGroup("Banat")) if object then PSerial = getPlayerSerial(source) Serial = gettok(object, 2, string.byte(".")) Name = gettok(object, 3, string.byte(".")) Reason = gettok(object, 4, string.byte(".")) if Serial == PSerial then kickPlayer(source, tostring(Reason)) end end end addEventHandler("onPlayerJoin", getRootElement(), checkBlockedSerial)
  5. Tekken

    ACL groups

    but if i do like this user.serial_Name|Reason ?
  6. Tekken

    ACL groups

    Hello guys, I have a custom Ban system and it work's like that /aban Name Reason, and it take player serial and put it on a ACL group named Baned like this user.PLAYERSERIAL and when player join check if that player serial is in that ACL group and if is it kick that player. My ask is if i can make it like that user.PlayerSerial.(PlayerName).(Reason) , it work but how to check when player join ? My script : function checkBlockedSerial() if isObjectInACLGroup("user."..getPlayerSerial(source), aclGetGroup("Banned")) then kickPlayer(source, "You are banned!") end end addEventHandler("onPlayerJoin", getRootElement(), checkBlockedSerial)
  7. But i am not sure if will work beacause when you shoot with RPG explode instantly
  8. onClientVehicleDemage cancelEvent() setElementHealth
  9. function elevator (player, cmd, x1, x2, x3, col1, col2, col3, alpha, size ) local x, y, z = getElementPosition (player) if x1 and x2 and x3 and col1 and col2 and col3 and alpha and size then px, py, pz = x1, x2 + 2, x3 tx, ty, tz = x, y + 2, z marker1 = createMarker ( x, y, z + 1, "arrow",2, col1, col2, col3, alpha ) marker2 = createMarker ( tonumber(x1), tonumber(x2), tonumber(x3) + 1, "arrow", size, col1, col2, col3, alpha ) else outputChatBox ("[invalid Syntax]: /addelevator [x], [y], [z], [Col1], [Col2], [Col3], [Alpha], [size] ", player, 255, 0, 0 ) end end addCommandHandler("addelevator", elevator ) addEventHandler("onMarkerHit", root, function(hitPlayer) if isElement(marker1) and (source = marker1) then if (getElementType(hitPlayer) = "player") then setElementPosition(hitPlayer, px, py, pz) fadeCamera ( hitPlayer, false, 0.1, 255, 0, 0 ) setTimer ( fadeCamera, 500, 1, hitPlayer , true, 0.5 ) end end end ) addEventHandler("onMarkerHit", root, function(hitPlayer) if isElement(marker2) and (source = marker2) then if (getElementType(hitPlayer) = "player") then setElementPosition(hitPlayer, tx, ty, tz) fadeCamera ( hitPlayer, false, 0.1, 255, 0, 0 ) setTimer ( fadeCamera, 500, 1, hitPlayer , true, 0.5 ) end end end )
  10. Tekken

    Optional Mods

    Oh yes but your way is not good, he want to download files only by command that means it must do this way: meta.xml <meta> <file src="file.dff" download="false" /> <file src="file.txd" download="false" /> </meta> And Lua: function DonloadFiles() downloadFile ( "flie.txd" ) downloadFile ( "flie.dff" ) txd = engineLoadTXD("file.txd") engineImportTXD(txd, ID) dff = engineLoadDFF("file.dff", ID) engineReplaceModel(dff, ID) end addCommandHandler("download", DonloadFiles)
  11. Tekken

    Any Scripter

    do u have FaceBook or skype i need help in something Soryy, but i don't make scripts for money beacause i am not so good. I just want to help you to don't pay for free things.
  12. Tekken

    Any Scripter

    You can use this one: viewtopic.php?f=108&t=82870
  13. Tekken

    Optional Mods

    As far as i know it doesn't exist but is not hard to make. You just need to make this in meta.xml <meta> <file src="file.dff" download="false" /> <file src="file.txd" download="false" /> </meta> And on file.lua function DonloadFiles() txd = engineLoadTXD("file.txd") engineImportTXD(txd, ID) dff = engineLoadDFF("file.dff", ID) engineReplaceModel(dff, ID) end addCommandHandler("download", DonloadFiles)
  14. Tekken

    Any Scripter

    wath do you need ?
  15. You can edit it and make it like that
  16. Devine din ce in ce mai greu sa cauti pe google... http://portforward.com/english/routers/ ... /HTTPS.htm
  17. onClientVehicleDamage cancelEvent
  18. Tekken

    |Help| GUI

    i figured it out myself.
  19. Tekken

    |Help| GUI

    Why i got this error ? Error: expected element at argument 1 got string "Player-Name" Server: addEvent("onPlayerIsMute", true) function mutePlayer(theTarget, muteTime) if (getPlayerFromName(theTarget)) then if theTarget ~= nil and isObjectInACLGroup("user."..getAccountName(getPlayerAccount(client)), aclGetGroup("MOD")) then if tonumber(muteTime) > 0 and tonumber(muteTime) < 121 then setPlayerMuted(theTarget, true) end end end end addEventHandler("onPlayerIsMute", root, mutePlayer) Client: addEventHandler("onClientGUIClick", getResourceRootElement(getThisResource()), function() if (source == muteok) then local theTarget = guiGridListGetItemText(gridmain, guiGridListGetSelectedItem(gridmain), 1) local muteTime = tonumber(guiGetText(muttime)) if (getPlayerFromName(theTarget)) then triggerServerEvent("onPlayerIsMute", localPlayer, theTarget, tonumber(muteTime)) end --guiSetVisible(mute,false) end end)
×
×
  • Create New...