Sande Posted July 27, 2013 Posted July 27, 2013 Hey, im try trigger something like this, but it says not working trigger or something can someone fix? Server: function ung() local team = getTeamFromName ("Unemployed") if (team) then setPlayerTeam ( source, team ) outputChatBox("Freeroam toiminnot kytketty pois käytöstä!, source, 0,255,0) end end addEvent( "un", true ) addEventHandler( "un", source, ung) Client: function eroa ( ) local team = getPlayerTeam ( localPlayer ) if getTeamName (team) == "Freeroam" then if getElementData ( localPlayer, "godmodeEnabled") == true then setElementData ( localPlayer, "godmodeEnabled", false ) executeCommandHandler("godmode-kaynnista-tullessa191") triggerServerEvent ( "un", localPlayer ) end end end addCommandHandler("poistuFR", eroa)
DNL291 Posted July 27, 2013 Posted July 27, 2013 Server: function ung() local team = getTeamFromName ("Unemployed") if (team) then setPlayerTeam ( source, team ) outputChatBox("Freeroam toiminnot kytketty pois käytöstä!", source, 0,255,0) end end addEvent( "un", true ) addEventHandler( "un", root, ung) Please do not PM me with scripting related question nor support, use the forums instead.
DNL291 Posted July 27, 2013 Posted July 27, 2013 You're welcome. Please do not PM me with scripting related question nor support, use the forums instead.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now