Connected players log
#1

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.
Reply
#2

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.
Reply
#3

Help!
Reply
#4

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
Reply
#5

Post in the script request topic.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)