Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include( "../mtasdk/mta_sdk.php" );
- $input = mta::getInput();
- $date = date("H:i dS F"); //Get the date and time.
- $file = "" . $input[1] . ".log"; //Get the log file from the player
- $open = fopen($file, "a+");
- fwrite($open, "" .$date . " - " .$input[2] . " (" .$input[0] . ")/n"); //Format (DATE - LOGMESSAGE (PLAYERNAME)
- fclose($open);
- ?>
Add Comment
Please, Sign In to add comment