mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-14 00:14:52 +09:00
Added RCON Return
This commit is contained in:
1 parent
ed007ecf29
commit
351864671c
1 file changed
+6
-4
+6
-4
@@ -55,10 +55,12 @@ function ExpLib.player_return(rtn,colour,player)
|
||||
else player.print(tostring(rtn),colour)
|
||||
end
|
||||
else
|
||||
if is_type(rtn,'table') then log(table.to_string(rtn))
|
||||
elseif is_type(rtn,'function') then log('Cant Display Functions')
|
||||
else log(tostring(rtn))
|
||||
end
|
||||
local _return = 'Invalid'
|
||||
if is_type(rtn,'table') then _return = table.to_string(rtn)
|
||||
elseif is_type(rtn,'function') then _return = 'Cant Display Functions'
|
||||
elseif is_type(rtn,'userdata') then _return = 'Cant Display Userdata'
|
||||
else _return = tostring(rtn)
|
||||
end log(_return) rcon.print(_return)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user