SHOW:
|
|
- or go back to the newest paste.
| 1 | stock CMDLog(playerid, string[]) | |
| 2 | {
| |
| 3 | new playername[MAX_PLAYER_NAME]; | |
| 4 | GetPlayerName(playerid, playername, sizeof(playername); | |
| 5 | new y, m, d; | |
| 6 | getdate(y,m,d); | |
| 7 | new h,minutes,s; | |
| 8 | gettime(h,minutes,s); | |
| 9 | new str[512]; | |
| 10 | new File:cmd, thefile[32]; | |
| 11 | format(thefile, sizeof(thefile), "cmd.html"); | |
| 12 | - | format(str, sizeof(str), "<font style='color:red'>[%d %d %d TIME: %d %d %d]</font><font style='color:aqua'> %s COMMAND: %s</font><br />", y, m, d, h, minutes,s, PlayerInfo[playerid][Name], string); |
| 12 | + | format(str, sizeof(str), "<font style='color:red'>[%d %d %d TIME: %d %d %d]</font><font style='color:aqua'> %s COMMAND: %s</font><br />", y, m, d, h, minutes,s, playername, string); |
| 13 | cmd = fopen(thefile, io_append); | |
| 14 | fwrite(cmd, str); | |
| 15 | fclose(cmd); | |
| 16 | ||
| 17 | } |