Jump to content
View in the app

A better way to browse. Learn more.

GTAGames.nl - De Nederlandse Grand Theft Auto Community!

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

WEBBase php Rcon script

Heb iets leuks gevonden op het internet....

Als je bijv. een hosting hebt voor je samp server is dit heel handig:

<html>
<head><title>Rcon Connection Client</title></head>
<body>
<form name="rcon" method="post" action="rcon.php">
IP: <input type="text" name="ip" value="127.0.0.1">
Port: <input type="text" name="port" value="7777">
Password <input type="text" name="pass" size="25"><br />
Cmd: <input type="text" name="cmd" size="100"><br />
<input type="submit" name="submit">
</form>
</body>
</html>
<?
 $ip = $_POST['ip'];  if (!$ip) die();
 $port = $_POST['port']; if (!$port) die();

 $pass = $_POST['pass']; if (!$pass) die();
 $passlen = strlen($pass);
 $cmd = $_POST['cmd']; if (!$cmd) die();
 $cmdlen = strlen($cmd);

 $packet = 'SAMP';
 $packet .= chr(strtok($ip, '.')).chr(strtok('.')).chr(strtok('.')).chr(strtok('.'));
 $packet .= chr($port & 0xFF).chr($port >> 8 & 0xFF);
 $packet .= "x";
 $packet .= chr($passlen & 0xFF).chr($passlen >> 8 & 0xFF).$pass;
 $packet .= chr($cmdlen & 0xFF).chr($cmdlen >> 8 & 0xFF).$cmd;

 $fp =fsockopen('udp://' . $ip, $port, $errno, $errstr);
 fwrite($fp, $packet);
 while(!feof($fp)) {
$str=fread($fp,128);
$str=substr($str,13,strlen($str)-13);
if (!$str) break;
echo $str."<br>";
  }
 fclose($fp);
?>

Super simpel.... heel handig.. Credits 99.9% naar iedereen die hier iets hebt gepost:

klik

en 0.1 % voor het posten hier :puh:

Featured Replies

  • Author
Wat doet dit precies?

Je moet je ip invullen... je poort je rcon pass.. en je cmd die je wilt sturen....

dan doet hij presiec het zelfde als in je console en laat ook zien de teksten die je ook ziet als je sommige commands stuurt. hier heb je een voorbeeld:

http://mike.littlewhitey.com/phpSampAdmin/

het is veilig! omdat het van een officiele server afkomstig is... lees anders effe dit topic door:

sa-mp.com - Web based SA:MP Rcon Client

ik ben bezig met een script dat ook de chatlog weergeeft... want dat kan die nog niet

  • 3 weeks later...
Wat doet dit precies?

Je moet je ip invullen... je poort je rcon pass.. en je cmd die je wilt sturen....

dan doet hij presiec het zelfde als in je console en laat ook zien de teksten die je ook ziet als je sommige commands stuurt. hier heb je een voorbeeld:

http://mike.littlewhitey.com/phpSampAdmin/

het is veilig! omdat het van een officiele server afkomstig is... lees anders effe dit topic door:

sa-mp.com - Web based SA:MP Rcon Client

ik ben bezig met een script dat ook de chatlog weergeeft... want dat kan die nog niet

Hmm, als je dat al kan waarom doe je het niet zo:

Je vult je ip port en ww in, dan ben je ingelogt... Daar zie je een stukje waar de text van de server in verschijnt en dan een rcon command stukje, als je dan toch onder weg bent zorg dan gelijk dat je daarop je .pwn bestandje kan openen en veranderen en opslaan ect.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.