Jump to content

Coffey

Members
  • Posts

    14
  • Joined

  • Last visited

Everything posted by Coffey

  1. Is there a way to remove a right from the AdminPanel? SO like Moderator has a right to use jetpack, how can I remove that IG?
  2. Coffey

    ban a region.

    Is there a way to ban a region, for example USA, Russia, etc ? So when the player joins, the server gets his region, and if the region matches the blocked region, then he cant connect.
  3. Coffey

    isPlayerMuted

    It works, thank you
  4. Coffey

    isPlayerMuted

    Hey! I have a chat script, I want to make it so if a player is muted, then he cant use it... I've tried adding if not isPlayerMuted (thePlayer) stuff, but it doesnt work... Code: local isChatDisabled = {} function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ); local name = getPlayerName(thePlayer); for _,v in ipairs(getElementsByType("player")) do if not isChatDisabled[v] then outputChatBox("#FF0000[GLOBAL]#00FF00"..name..": #FFFFFF"..message,v, 255, 255, 255, true) end end end addCommandHandler("global", globalMessage); addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function() for index,player in pairs(getElementsByType("player")) do bindKey(player,"b", "down", "chatbox", "global"); end end ) addEventHandler("onPlayerJoin",root, function () bindKey(source,"b", "down", "chatbox", "global"); end ); addCommandHandler("gcoff", function(p) isChatDisabled[p] = true; end ); addCommandHandler("gcon", function(p) isChatDisabled[p] = false; end );
  5. Coffey

    Safe Area

    Alright, Im already stuck I want to make a ColShape but I dont know which coordinates I have to give. Theres a rectangle here: So where should I save the two positions to make the rectangle colshape? Thanks for the help.
  6. Coffey

    Safe Area

    Hey. I want to make an area, when you enter there, you are unable to attack other players. So I really dont know anything about lua, but I know how should I do this. First I should make a bool variable, to set the player isPlayerIntheSafeArea or something like that. So when the guy is in the area, it gives him a message, and when he tries to attack (with weapon or melee) you cant do anything. How can I do that? Thanks for help.
  7. Coffey

    AntiCheat?

    Thanks I hope this keeps the cheaters away from the server.
  8. Coffey

    AntiCheat?

    Hey. I heard that MTA contains AntiCheat by default... But it doesn't seem to work... There was a hacker on my server today as well, and he used teleport, health, and weapon chat. Is there any way I can stop this? Or Do I have to enable the anticheat option manually?
  9. Thank you dude, it's working!
  10. Hey. I've tried to make something like that, but it just didn't work. I copied a bit from your code, but somehow if I type /gcoff, it really turns it off, but then I cant turn it on back... Anyway, thank your help, I hope you can help me with this, I am really a big noob in LUA but I am trying hard.
  11. Hey! I have a global chat script. I want to make it so if someone types: /gcoff then he can't see the GCHAT. It doesn't necessary to save this data, but if anybody can help me make this, I'd really appreciate it! Here is the code. function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ); local name = getPlayerName(thePlayer); for _,v in ipairs(getElementsByType("player")) do outputChatBox("#FF0000[GLOBAL]#00FF00"..name..": #FFFFFF"..message,v, 255, 255, 255, true) end end addCommandHandler("global", globalMessage); addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function() for index,player in pairs(getElementsByType("player")) do bindKey(player,"b", "down", "chatbox", "global"); end end ) addEventHandler("onPlayerJoin",root, function () bindKey(source,"b", "down", "chatbox", "global"); end ); I would really appreciate your help!
  12. Alright thank you it works now
  13. Hello there! I've downloaded a help panel, and I am editing it. The problem is, the polish characters appears pretty weird... A picture of this "bug": The original text would be: F1 - Tu możesz zaakceptować zaproszenie do grupy. F2 – To jest panel grupowy. Możesz zapraszać i wyrzucać graczy. F3 – Ustawienia graficzne. F4 – Zasady i Komendy. F5 - Czat regionalny. Dostępne czaty. Angielski, Polski, Rumuński i Węgierski. F6 – Menu animacji. /Prace w toku/ F12 – Zrzut obrazu/ J: Otwierasz ekwipunek O: Tutaj uzyskasz pomoc. X: Po naciśnięciu tego przycisku, nie spadniesz z pojazdu. Y: Czat grupowy. Z: Czat radiowy. Każdy kto posiada radio w pobliżu Cię usłyszy. . : Animacja podnoszenia rąk. , : Animacja siadania. K: Zapalenie/gaszenie silnika I hope you can help me solve this problem!
×
×
  • Create New...