/me command
#3

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;
}
I think something like that will works
Reply


Messages In This Thread
/me command - by ColdIce - 21.06.2011, 14:24
Re: /me command - by Wesley221 - 21.06.2011, 14:27
Re: /me command - by Basicz - 21.06.2011, 14:32
Re: /me command - by ColdIce - 21.06.2011, 14:48
Re: /me command - by Wesley221 - 21.06.2011, 15:06
Re: /me command - by ColdIce - 21.06.2011, 15:16
Re: /me command - by RoleplayEditor - 21.06.2011, 15:44
Re: /me command - by ColdIce - 21.06.2011, 16:10
Re: /me command - by ColdIce - 21.06.2011, 16:13

Forum Jump:


Users browsing this thread: 1 Guest(s)