• 0
Poseidon

custom server status script for FluxCP

Question

hi guys

Could i request a custom server script for FluxCP? please

what i would like is the PHP code to show something like this

<?php if
  $loginserver = 0 && $charserver = 0 && $mapserver = 0 then $ServerOffline show Red circle
  else if
    $loginserver = 1 && $Charserver = 1 && $mapserver = 1 then $ServerOnline show green circle ?>

<?php if
      $WOE = 0 then show Red circle
      else if
        $WOE= 1 then show green circle ?>

<?php vendingplayers = amount echo amount ?> 

as you can tell i understand very basic PHP so I'm unable to fully understand how to achieve what i would like

i hope someone is willing to help me

thanks in advance

Kind regards

Rob

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

so i would like to put my code here for you guys to tell me if Im on the right track please

 

<?php

$serverStatus[$groupName][$serverName] = array(
  'ServerOnline' => $athenaServer->CharServer->mapServer->isUp (),
  );
?>

should this combine all 3 to make it into one showing the server to be online or offline

hope you understand what i would like to achieve here

Kind Regard

Rob

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...