SA-MP Forums Archive
Printing commands? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Printing commands? (/showthread.php?tid=223842)



Printing commands? - LZLo - 10.02.2011

how can i print the coommands, i want to see them in server log


Re: Printing commands? - Mean - 10.02.2011

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


Re: Printing commands? - LZLo - 10.02.2011

ok thanks that's cool


Re: Printing commands? - Mean - 10.02.2011

Anytime