Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Author: Reklez
- Title: KickEx
- Created: March 7, 2012
- */
- #include <a_samp>
- #if defined _RKickEx_included
- #endinput
- #endif
- #define _RKickEx_included
- stock KickEx(playerid, const reason[])
- {
- new
- string[128],
- Month,
- Day,
- Year,
- name[MAX_PLAYER_NAME],
- File:kicklog;
- getdate(Year, Month, Day);
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "[%d/%d/%d]: %s has been kicked | Reason: %s\r\n", Day, Month, Year, name, reason);
- kicklog = fopen("KickEx.txt", io_append);
- fwrite(kicklog, string);
- fclose(kicklog);
- return Kick(playerid);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement