| 
		
			| !afk command for lua [message #412769] | Mon, 30 November 2009 21:16  |  
			| 
				
				|  |  Distrbd21 Messages: 743
 Registered: September 2008
 
	Karma: 0
 | Colonel |  
 |  |  
	| Is there a way to make it when you type !afk it give's you a message and move's you to a location that you can't be killed, and you wont be with the other team? 
 Also a !back command that when you say !back it tells people you are back and it moves you back to your base like in front of bar or something?
 
 I will be looking around and trying to make it my self but if anyone would like to add something please feel free.
 
 
 Live Your Life Not Some one Else's.| Sharing Is Caring 
 
 Cookie Jar<glome> Who stole the cookie from the cookie jar?!<content> glome stole the cookie from the cookie jar!
 <glome> Who me?!
 <content> Yes you!
 <glome> Couldn't be!
 <content> Then WHO?!!
 <glome> Woody stole the cookie from the cookie jar!
 *** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
 
 Suicide<TB>  I was depressed last night so I called the Suicide Life Line.<TB>  I reached a call center in Pakistan.
 <TB>  I told them I was suicidal.
 <TB>  They got all excited and asked if I could drive a truck
 |  
	|  |  | 
	|  | 
	|  | 
	| 
		
			| Re: !afk command for lua [message #412816 is a reply to message #412814] | Tue, 01 December 2009 05:17   |  
			| 
				
				|  |  reborn Messages: 3231
 Registered: September 2004
 Location: uk - london
 
	Karma: 0
 | General (3 Stars) |  |  |  
	| | jnz wrote on Tue, 01 December 2009 07:14 |  | 
 | "Daniel" |  | A better AFK command would be this...
 
 
 
function OnChat(PlayerId, Type, Message, Target)
   local command = string.lower(string.match(Message, "%S+"))
   if command == "!afk" 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: AFK", pName))
   end
   return 1
end
 | 
 
 
 | 
 
 
 Yes, use that!
   
 
 
 |  
	|  |  | 
	| 
		
			| Re: !afk command for lua [message #412830 is a reply to message #412769] | Tue, 01 December 2009 09:58   |  
			| 
				
				
					| Genesis2001 Messages: 1397
 Registered: August 2006
 
	Karma: 0
 | General (1 Star) |  |  |  
	| | "Zack" |  | 
 | "Daniel" |  | A better AFK command would be this...
 
 
 
function OnChat(PlayerId, Type, Message, Target)
   local command = string.lower(string.match(Message, "%S+"))
   if command == "!afk" 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: AFK", pName))
   end
   return 1
end
 | 
 
 
 oh, and this would be nice.
  
 
 function OnChat(PlayerId, Type, Message, Target)
   local command = string.lower(string.match(Message, "%S+"))
   if command == "!lagfix" 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: Lag Fixed", pName))
   end
   return 1
end
 | 
 
 |  
	|  |  | 
	|  | 
	| 
		
			| Re: !afk command for lua [message #412877 is a reply to message #412769] | Tue, 01 December 2009 18:04  |  
			| 
				
				|  |  Distrbd21 Messages: 743
 Registered: September 2008
 
	Karma: 0
 | Colonel |  
 |  |  
	| that is better yes i will use that !afk command that kicks you ^^ and the lag fix 
 
 I love you guys here always come up with better ideas then me ^^
 
 
 Live Your Life Not Some one Else's.| Sharing Is Caring 
 
 Cookie Jar<glome> Who stole the cookie from the cookie jar?!<content> glome stole the cookie from the cookie jar!
 <glome> Who me?!
 <content> Yes you!
 <glome> Couldn't be!
 <content> Then WHO?!!
 <glome> Woody stole the cookie from the cookie jar!
 *** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
 
 Suicide<TB>  I was depressed last night so I called the Suicide Life Line.<TB>  I reached a call center in Pakistan.
 <TB>  I told them I was suicidal.
 <TB>  They got all excited and asked if I could drive a truck
 |  
	|  |  |