21.06.2011, 14:32
pawn Код:
public OnPlayerCommandText( playerid, cmdtext[ ] )
{
if ( !strcmp( cmdtext, "/me", true, 3 ) )
{
if ( cmdtext[ 3 ] != ' ' || cmdtext[ 4 ] )
{
return SendClientMessage( playerid, 0xFFFFFFAA, "/me < action >" );
}
else
{
new
szStr[ 128 ],
pName[ 24 ]
;
GetPlayerName( playerid, pName, sizeof pName );
format( szStr, sizeof szStr, "* %s %s", pName, szStr );
SendClientMessageToAll( 0xFFFFFFAA, szStr );
}
return 1;
}
return 0;
}