Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward JoinsLog(string[]);
- public JoinsLog(string[])
- {
- new entry[128];
- format(entry, sizeof(entry), "%s\n",string);
- new File:hFile;
- hFile = fopen("/logs/joins.log", io_append);
- fwrite(hFile, entry);
- fclose(hFile);
- }
- //
- OnPlayerConnect:
- new IP[16];
- GetPlayerName(playerid,name,sizeof name);
- GetPlayerIp(playerid, IP, 16);
- format(msg,sizeof(msg),"%s has joined - IP: %s", playerid,name,IP);
- IRC_GroupSay(gGroupID, IRC_LOGIN_CHANNEL, msg);
- JoinsLog(msg);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement