Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Call Of Duty: PHP Rules Checker 1.5
#31

Script works perfectly. [no "php" at beginning]. Great work Ashus.

[Image: b_350_20_D5D9EB_264BC0_110E0E_000000.png]
Reply
#32

Just edit your php.ini: short_open_tag="1" and you won't have to worry anymore.
For more info see http://www.php.net/ini.core

[Image: kavove-zrnka-lajna.jpg]
Coffee phreak!
Reply
#33

Hi.
I try using your script but i have problem.

i go to http://127.0.0.1/cod2/rcon-rules.php

Quote:0 / pan / xx.xx.xx.196 / 45
1 / os / 89.2xx.226 / 32
2 / Punik Dan / 89.xx4.53 / 51
3 / Bios / 77.xx.133 / 46
5 / WioY / 90.1xx9.178 / 46
6 / :annib/ 83.xx133 / 48
7 / Ka6 / 78.xx2.205 / 51
8 / s / 79xx05.36 / 53
9 / S / 80.xx.193 / 59
10 / er / 87.1xx.253 / 97
11 / ik / 83.xx118 / 46
12 / oko1 / 87.2xx89 / 285
13 / M / 88.19xx48 / 43
!15 / uncill / 7xx150 / 48

Fatal error: Call to undefined function: file_put_contents() in c:\usr\apache\httpd\html\cod2\rcon-rules.php on line 246

rcon-rules.php:

Quote:$rules_log_file = './rcon-rules.log'; // path to a file containing kicked players; must be writeable
$rules_warned_cache_file = './warned-cache'; // path to a file containing warned players; must be writeable
$rules_iplog_interval = 5; // this is a number of minutes the log is updated in ; 0 = disable
$rules_iplog_file = './rcon-iplog.log'; // path to a file containing log of ip addresses; must be writeable

all files in the same folder.

Files in folder:
list-of-kicked.php
rcon-rules.php
rcon-rules.log
rcon-iplog.log
iplog.php
warned-cache
Reply
#34

Function file_put_contents() is PHP 5 specific, it looks like you have PHP 4 on your hosting, ask your hosting provider for upgrade.

[Image: kavove-zrnka-lajna.jpg]
Coffee phreak!
Reply
#35

ok i reinstall PHP to 5.0.5

but I have a message
:Sorry, localhost service only.
Reply
#36

Czesc Zygus, Hi Ashus

I'm sure U have wrong path at cfg file. Study my cfg, please.

Smile

[Image: b_350_20_D5D9EB_264BC0_110E0E_000000.png]
Reply
#37

Update your paths to your needs. I've just given some examples as default.

[Image: kavove-zrnka-lajna.jpg]
Coffee phreak!
Reply
#38

I have an idea (again Wink).

Is it possible to add it that the script can see which player is killing with what kind of weapon.
And if you don't want that ppl use that weapon they get kicked.

For exaple some one is using P90 or Grenade Launcher. He gets kicked.
Do you want to make it?
Do you think it is possible to make it?
Reply
#39

Not via this script (impossible), you may want to disable the weapon using a mod. Delete all of them from the map, so the player doesn't need to get kicked. I'm using that in Kafemlynek mod; when sniper rifles are off, they are removed from the map and from hands of players carrying it (unless they spawned with snipers rifle and haven't had the chance to switch to another - still allowed - weapon).

[Image: kavove-zrnka-lajna.jpg]
Coffee phreak!
Reply
#40

Ashus,

I have a problem, I had this script working on my old dedicated server but I have a new Dedi running now and I'm unable to get it working.

When running the script I'm getting this:

Code:
Failed loading /usr/local/ioncube/lin_x86/ioncube_loader_lin_5.2.so:  /usr/local/ioncube/lin_x86/ioncube_loader_lin_5.2.so: cannot open shared object file: No such file or directory
Failed loading /usr/local/Zend/lib/ZendExtensionManager.so:  /usr/local/Zend/lib/ZendExtensionManager.so: cannot open shared object file: No such file or directory
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/curl.so' - /usr/lib/php5/20060613+lfs/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/gmp.so' - /usr/lib/php5/20060613+lfs/gmp.so: cannot open shared object file: No such file or directory in Unknown on line 0
icecpp: can't open `/var/lib/mumble-server/Murmur.ice' for reading
PHP Fatal error:  Unable to start ice module in Unknown on line 0

Do you maybe have a quick fix or something? Or any idea how I can resolve the problem?

Thnx in advanced!
Reply




Users browsing this thread: 4 Guest(s)