edit: nvm, didnt realise this was a topic in the script showroom
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
<?php
$host = "38.103.164.119";
$port = 80;
$sock = fsockopen($host, $port, $errorid, $error, 30);
if (!$sock) die("Could not open socket to mast server list, errorid='$errorid' error='$error'");
$packet = "GET /servers.php HTTP/1.1\r\n";
$packet .= "Content-Type: text/html\r\n";
$packet .= "Host: 38.103.164.119\r\n";
$packet .= "Accept: text/html, */*\r\n";
$packet .= "User-Agent: Mozilla/3.0 (compatible; VC:MP v0.3z BETA)\r\n";
$packet .= "\r\n";
fwrite($sock, $packet);
while (!feof($sock)) {
echo fgets($sock, 128);
}
fclose($sock);
?>
Quote from: Windlord on March 03, 2009, 09:12:24 AM
lol you don't need that extra bracket.
if (($len($3) < 3) || ($left($3,1) isnum) || ($chr(35) isin $3) || ($chr(36) isin $3) || ($chr(37) isin $3) || ($3 == none)) {
vcmp.say *** $3 has been auto-kicked. [Invalid Nick]
vcmp.announce %id ~y~Please change your nick-name..
.timer 1 2 /vcmp.kick %id
}
Quote from: Zack on February 10, 2009, 06:17:44 PM
Is it maybe becouse i am the only one in the server?
.timer 1 20 vcmp.cmdsay $2 %id The choosen player is: $vcmp.name($vcmp.randomid)
Quote from: Zack on February 10, 2009, 03:48:47 PM
There's a problem with thijn's Alias.
* /vcmp.check.ini: not connected to server (line 33, vcmp.mrc)
on *:SIGNAL:vcmp.command:{
if ($2 == !badplayer) {
var %a = 0, %b = $vcmp.maxplayers, %c, %randomid
while (%a < %b) {
if ($vcmp.name(%a) != Unknown) { %c = $addtok(%c, %a, 32) }
!inc %a
}
if (%c == $null) { ;no players in server }
else {
%randomid = $gettok(%c, $rand(1, $numtok(%c, 32)), 32)
; the %randomid variable contains a random player id
}
}
}