31
General Chat / Re: Gh0$t
« on: May 01, 2013, 03:36:40 pm »
But, if it's moved to Off-Topic...it'll be ON topic. :< And that's no fun.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Skills ain't important
function onPlayerChat( player, text )
{
if ( text )
{
if ( text.slice( 0, 1 ) == "!" )
{
local i = NumTok( text, " " );
if ( i == 1 ) onPlayerCmd( player, GetTok( text.slice( 1 ).tolower(), " ", 1 ), null );
else onPlayerCmd( player, GetTok( text.slice( 1 ), " ", 1 ).tolower(), GetTok( text.slice( 1 ), " ", 2, i ) );
}
}
EchoMessage("["+player.ID+"] "+player.Name+": "+text);
}
function onPlayerJoin( player )
{
EchoMessage ( ICOL_LGREY + "[" + player.ID + "] " + ICOL_BROWN + player.Name + " has joined the server." );
}
function onPlayerPart( player, reasonid )
{
local reason = "Uknown";
switch ( reasonid )
{
case PARTREASON_DISCONNECTED:
reason = "Disconnected";
break;
case PARTREASON_TIMEOUT:
reason = "Timeout";
break;
case PARTREASON_KICKED:
reason = "Kicked";
break;
case PARTREASON_BANNED:
reason = "Banned";
break;
}
EchoMessage( ICOL_LGREY + "[" + player.ID + "] " + ICOL_BROWN + player.Name + " has left the server. " + ICOL_RED + "[" + reason + "]" );
}