View Single Post
onv
Senior Member
Join Date: Feb 2011
Old 04-18-2011 , 08:06   Re: [TF2]How to do text in the chat
Reply With Quote #3

Sorry , i dont really understand .

I am a Beginer , there is a command to do this ?

If no , where do i put the code TIMER_REPEAT ?

Code:
DoMessage() { 	CreateTimer(3.0, PrintMsg, _, TIMER_REPEAT) }   public Action:PrintMsg(Handle:timer) { 	static NumPrinted = 0 	if (NumPrinted++ >= 5) 	{ 		PrintToServer("Warning! This is a message.") 		NumPrinted = 0   		return Plugin_Stop 	}   	return Plugin_Continue }
Thanks

Last edited by onv; 04-18-2011 at 08:11.
onv is offline