Printing commands?
#2

pawn Код:
public OnPlayerCommandText( playerid, cmdtext[ ] )
{
    new string[ 128 ];
    new pName[ 24 ];
    GetPlayerName( playerid, pName, sizeof pName );
    format( string, sizeof string, "Player %s typed a command: %s", pName, cmdtext );
    print( string );
    return 0;
}
Try it
Reply


Messages In This Thread
Printing commands? - by LZLo - 10.02.2011, 15:12
Re: Printing commands? - by Mean - 10.02.2011, 15:14
Re: Printing commands? - by LZLo - 10.02.2011, 15:15
Re: Printing commands? - by Mean - 10.02.2011, 15:16

Forum Jump:


Users browsing this thread: 1 Guest(s)