06.01.2015, 20:03
guys,
Ive made a Ban log , and connected it to my website, and it worked
TAke a look of what i used
https://sampforum.blast.hk/showthread.php?tid=101773
its like this :
Butt,
i made a Chatlog too
ITs in : Logs/Chat.txt
And i don't know how to connect it
i made it with this :
https://sampforum.blast.hk/showthread.php?tid=264770
Someone help me?
thanks
/2 AND PLEASE
i want to know,
i saw in some websites ,
it shows the Admins list , and near EVERY Name there is a small ICon, if the admin is online it goes green,
if he's offline it goes Red, do u know how to do that?
Ive made a Ban log , and connected it to my website, and it worked
TAke a look of what i used
https://sampforum.blast.hk/showthread.php?tid=101773
its like this :
Код:
<?php $ftp_host = "serverhostname ex: could be a ip address"; //put the ip / hostname to your ftp here $ftp_user = "ftp login"; //put your login here $ftp_pass = "ftp password"; //put your password here $banfile = "samp.ban"; $con = ftp_connect($ftp_host) or die("Couldnt connect to your ftp (check your settings!"); ftp_login($con, $ftp_user, $ftp_pass); ftp_get($con, "ban.txt", $banfile, FTP_ASCII); ftp_close($con); $file = fopen("ban.txt", "r"); $bans = fread($file, filesize("ban.txt")); fclose($file); echo nl2br($bans); ?>
i made a Chatlog too
ITs in : Logs/Chat.txt
And i don't know how to connect it
i made it with this :
https://sampforum.blast.hk/showthread.php?tid=264770
Someone help me?

/2 AND PLEASE
i want to know,
i saw in some websites ,
it shows the Admins list , and near EVERY Name there is a small ICon, if the admin is online it goes green,
if he's offline it goes Red, do u know how to do that?