SA-MP Forums Archive
Connected players log - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Connected players log (/showthread.php?tid=59148)



Connected players log - flakey - 24.12.2008

Can anyone create a function for OnPlayerConnect, it writes to a file, like "players.txt" to scriptfiles folder, any player that connects to the server

The format is:

Player: , IP:
Player: , IP:
Player: , IP:

For example:

In players.txt in scriptfiles folder:

Player: pujan, IP: xxx.xxx.x.xx
Player: you IP: xxx.xxx.x.xx
etc.

Write the full function please.


Re: Connected players log - FUNExtreme - 24.12.2008

Quote:
Originally Posted by pujan
Write the full function please.
We are here to help not to give copy paste codes.

fcreate,
fopen,
GetPlayerName,
GetPlayerIp,
fwrite,
fclose

There you go a good start. Now start searching so you can learn from it.


Re: Connected players log - flakey - 24.12.2008

Help!


Re: Connected players log - hamptonin - 24.12.2008

look first you look what he say

We are here to help not to give copy paste codes.

fcreate,
fopen,
GetPlayerName,
GetPlayerIp,
fwrite,
fclose

There you go a good start. Now start searching so you can learn from it.

we help with scripting we don't make scripts


Re: Connected players log - dugi - 24.12.2008

Post in the script request topic.