function RANrcon.execCommandEventPlayerSay (userid, sayText, bTeam)
local pname = _PlayerInfo(userid,"name")
local text = string.sub(sayText, string.find(sayText, ":") + 2);
local command = string.sub(text, 0, string.find(text, " ") ) ;
local message = string.sub(text, string.find(text, " ") + 1) ;
if (command == "/rcon ") then
if RANrcon.isAdmin(userid) then
_ServerCommand( ""..message..";" );
else
_PrintMessage (userid,3, "You lack access to this function")
_PrintMessage (userid,1, "You lack access to this function")
end
return(sayText);
end
if ( text == command ) then
return(sayText) ;
end
end