thats mine ...
Code:if command == "say" then if not arg.connection == false then return else --my stuff Im calling ^^ return false end end
Solved Catching console commands (Lua)
Discussion in 'Rust Development' started by LaserHydra, Apr 30, 2015.
-
Wulf Community Admin
Code:if command == "say" then if arg.connection then return end -- Your mess return false end
-
-
Wulf Community Admin
Regarding your plugin submission: locals locals locals, use them!
-
Well, next update and next plugins ^^ Oh and I see I forgot to remove my outcommented stuff ^^
[DOUBLEPOST=1430425039][/DOUBLEPOST] -
If you want to use a plugin wide variable set it local to your whole plugin outside of a function. -
-
-
-
Wulf Community Admin
-
-
-
Wulf Community Admin
Here is a somewhat cleaner version of what you submitted, with a couple errors fixed, unnecessary global vars removed, config condensed, etc.
Last edited: Jan 30, 2017 -
I made those extra variables for the configs, because it was easier and quicker for me ^^
And you renamed some variables..
And removed the little tables from the config
and changed globals to locals
and some moreLast edited by a moderator: Jan 30, 2017 -
Wulf Community Admin
-
[DOUBLEPOST=1430426941][/DOUBLEPOST] -
Wulf Community Admin
[DOUBLEPOST=1430426995][/DOUBLEPOST] -
[DOUBLEPOST=1430428900][/DOUBLEPOST]
Code:if arg.connection then return end
Code:if not arg.connection then return end
-
Wulf Community Admin
-
[DOUBLEPOST=1430429380][/DOUBLEPOST]