Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OnPlayerCommandPerformed(playerid, cmdtext[], success)
- {
- new File:log = fopen("cmd.txt", io_write);
- if(log)
- {
- new str[56], name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(str,sizeof(str),"%s has used %s command. \r\n",name,cmdtext);
- fwrite(log, str);
- fclose(log);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment