goofie88
Members-
Posts
63 -
Joined
-
Last visited
Everything posted by goofie88
-
Ah ok now I understand thank you very much
-
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
-
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?
-
Hello me trying to stop damag if team police attack team fbi but no idea how, please anyone help me?
-
Wow thank you Solidsnake that's exactly what i wanted thanks for you help!!
-
so is there a way I can make it toggable? I understood what you said Solidsnake14 but it didnt rly help me
-
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"
-
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
-
key is nothing its just so i can use it as a toggle
-
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
-
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
-
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 '='
-
won't this hide every chat text when the players type?
-
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
-
I wanted to try to hide chat of players that write in chatbox but at the same time I dont want to hide the chat HUD. is it possible to make so that if player isnt logged in he doesnt see other players chatting to each other?
-
still invincible
-
Yep this one worked like a charm but player stays invincible even when not within marker when he leaves ;(
-
Thanks for trying to help me Mr.ALM but everyone within marker is still vulnerable to damage even when i replaced source to localPlayer in client side script
-
Yes it worked when client side but I have my marker in server side and everything is based on server side so actually it didnt really work
-
Thanks you very much guys
-
Hello everyone I have a question, how to make so theres no damage when a player enters a marker? I was confused because onPlayerDamage and onMarkerHit are 2 different events how could I combine them?
-
hey guys its me again this might look weird from me asking such beginner questions but for me its look more than beginner lol here's how I exported to make it trigger on server side function DxMsgSr(msg,r,g,b,static,silent) triggerClientEvent ( "DxMsgClient", getRootElement(), msg,r,g,b) end addEvent("DxMsgSr",true) addEventHandler("DxMsgSr",getRootElement(),DxMsgSr) Here's the export, the problem is that everyone is seeing it, how's that possible I mean the first argument Ive putted on script is player, so only the player who did that should see it. Im confused with all those inversing stuff exports["'topchatbox"]:DxMsgSr("You're not allowed to do that",player,255,255,255)
-
Thanks for help guys it really helped me, now everything works like a charm
-
Ah I think I see actually I have to put the client event in server side(with trigger) and create a new export for server side right?