Printing commands?
#1

how can i print the coommands, i want to see them in server log
Reply
#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
#3

ok thanks that's cool
Reply
#4

Anytime
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)