View Single Post
Old 29/12/2011, 11:30 PM   #12
Gh05t_
Big Clucker
 
Gh05t_'s Avatar
 
Join Date: Dec 2011
Posts: 192
Reputation: 140
Default Re: Re : /changename /clearchat cmds

Quote:
Originally Posted by Amine_Mejrhirrou View Post
Code:
for( new i = 0; i < 25; i ++ )
		   	{
      			SendClientMessageToAll( 0x33FF33AA, " " );
		      	GameTextForAll("~b~Chat cleared!", 3, 1);
		   	}
this is faster
The looping instruction would output content within the compound statement until it has been fulfilled.

pawn Code:
for(new i;i<25;i++) SendClientMessageToAll(-1, " ");
GameTextForAll("~b~Chat cleared!", 3, 1);

Quote:
Originally Posted by Notis123 View Post
OMFG then every play would change another player name without being admin duuuuuuuuuh
Mastermids those days
No he want it for admins only as Normal people do.
The OP hasn't specified his purpose nor intentions for use of the command, just help regarding it's creation. If the command was to be used for this purpose (admins), Fj0rtizFredde post is valid.
Gh05t_ is offline   Reply With Quote