AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Off-Topic (https://forums.alliedmods.net/forumdisplay.php?f=15)
-   -   Write online players to .txt (https://forums.alliedmods.net/showthread.php?t=297720)

4ever16 05-22-2017 00:48

Write online players to .txt
 
Can someone help me on the way?
Im using gameQ instead of php query cause php queary doesnt work on the host i have.

Is there some solutions you can link to or anything else?
Please advice me or help me solve this.

Thanks!

PHP Code:

I need to get players from CS server and write them to a .txt file.
1 player per row.

Output should be like this. ( If there are 3 players in the server )

Playernick 1
Playernick 2
Playernick 3

Also the script 
and .txt file allways updates itself.
So if there are only 1 player in the server the output should look like this.

Playernick 1

If new player comes into the server then.

Playernick 1
Playernick 2

If 0 players then empty. 



All times are GMT -4. The time now is 01:21.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.