Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » !afk command for lua
Re: !afk command for lua [message #412835 is a reply to message #412830] Tue, 01 December 2009 10:30 Go to previous messageGo to previous message
Jerad2142 is currently offline  Jerad2142
Messages: 3812
Registered: July 2006
Location: USA
Karma:
General (3 Stars)
Better yet...

function OnChat(PlayerId, Type, Message, Target)
   local command = string.lower(string.match(Message, "%S+"))
   if command != NULL then
      local pName = Get_Player_Name_By_ID(PlayerId)
      Console_Input(string.format("kick %d", PlayerId))
      Console_Input(string.format("allow %s", pName))
      Console_Input(string.format("msg %s has been kicked for: using chat", pName))
   end
   return 1
end



 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: problem with lua scripts
Next Topic: !spy command help
Goto Forum:
  


Current Time: Sun Dec 15 11:58:02 MST 2024

Total time taken to generate the page: 0.00779 seconds