Jump to content

goofie88

Members
  • Posts

    63
  • Joined

  • Last visited

goofie88's Achievements

Snitch

Snitch (10/54)

0

Reputation

  1. Ah ok now I understand thank you very much
  2. if i asked this question is maybe bcz i not understand the wiki explanations and this not helped and i dont see difference. my main question is more important
  3. Hello i want to remove the ouput of ban, when I ban players with admin panel it shows outputchatbox that I banned someone but I don't want. i searched everywhere in admin panel script (lil toady) and not found where it is. Also what is difference between banPlayer and addBan?
  4. Hello me trying to stop damag if team police attack team fbi but no idea how, please anyone help me?
  5. Wow thank you Solidsnake that's exactly what i wanted thanks for you help!!
  6. so is there a way I can make it toggable? I understood what you said Solidsnake14 but it didnt rly help me
  7. function allowORnot (player, key) outputChatBox("check") if isObjectInACLGroup("user."..getAccountName( getPlayerAccount( player ) ), aclGetGroup( "Pirate" ) ) then if (key == nil) then key = 0 outputChatBox("go") removeEventHandler("onVehicleStartEnter", getRootElement(), pirateBoat) end elseif (key == 0) then addEventHandler ( "onVehicleStartEnter", getRootElement(), pirateBoat) key = nil outputChatBox("stop") end end addCommandHandler ("cannon", allowORnot) csiguusz's code isn't fine , tried with checks, it "check" then "go" but doesnt go to "stop" and after that it just "check"
  8. key is like cur, if you know what i mean. I wont post full code coz it wont rly fix. All im trying to do is a toggable command to add and remove the handler
  9. key is nothing its just so i can use it as a toggle
  10. i want it with a command to remove and add events removeEventHandler("onVehicleStartEnter", getRootElement(), pirateBoat) addEventHandler ( "onVehicleStartEnter", getRootElement(), pirateBoat) like a toggable command not cannonopen, cannonclose
  11. thanks(no errors now) but the command seems to not respond, added outputChatBox after key = 0 and key = nil and nothing im trying to figure out my mistake but i dont even imagine what the error could be
  12. function allowORnot (player, key) if isObjectInACLGroup("user."..getAccountName( getPlayerAccount( player ) ), aclGetGroup( "Pirate" ) ) then if (key = nil) then key = 0 removeEventHandler("onVehicleStartEnter", getRootElement(), pirateBoat) end elseif (key = 0) then addEventHandler ( "onVehicleStartEnter", getRootElement(), pirateBoat) key = nil end end addCommandHandler ("cannon", allowORnot) I don't see what I'm doing wrong, is it my syntax? Error: Loading script failed restriction.lua:3: ')' expected near '='
  13. won't this hide every chat text when the players type?
  14. Ah showChat doesnt hide the HUD? ah damn I saw it and read the wiki about it and didn't pay attention haha im so dumb thanks Edit: actually no it hides the Chat, I need to chat to be shown but I dont want other players chatting in there, i dont want to disable chatting just to the source not seeing the other players talking but seeing outputChatbox
×
×
  • Create New...