Show Posts

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.


Messages - lodac

Pages: [1] 2 3 4 5 ... 15
1
Hosting & Management / Re: Willing to PAY for Server Setup
« on: Jul 21, 2015, 08:23 PM »
$300 for everything requested.

2
Editing & Coding / Re: Help me Make Them Fly
« on: Jun 26, 2015, 03:46 AM »
I have been thinking about moving it server side... Anyone done that yet?

3
Addons & Mods / Re: Apoc's Airdrop Assistance - v1.4 Release
« on: Jun 23, 2015, 05:29 PM »
Been using it for a week now - no hassles or issues ;)

Added a few extra things to the config to drop in and removed the hint popup - I think the chat and radio message is cool ;)

Great going APOC :)

You like that Radio chatter and heading info? I felt adding that really made it "realistic"

4
Editing & Coding / Re: Html Loaded Welcome/Info/Stats/Etc
« on: Jun 22, 2015, 10:05 PM »
Yes, however everything works. Not sure RscHTML is able to be called that way, but it works

5
Editing & Coding / Re: Placing ATM's on Stratis
« on: Jun 21, 2015, 04:49 AM »
In mission.sqm, the positions are in {X, Z, Y} format, because fuck logic, amirite?

Also Z is from sea level, and "offsetY" is actually applied on the Z axis.

Apparently, a long long time ago, some guy decided Y would point at the sky as if Z was the depth of your vision, but another guy wanted Z to point at the sky so X and Y could be used for map coordinates. Hundreds of years later, this bullshit is still confusing everybody.
Right... Yet createMarker is [x,y,z]

https://community.bistudio.com/wiki/Position

Bis is so funny

6
antihacklog in the database you have the server connected.

7
Well then you will need to remove yourself from the table otherwise you will continue to CTD.

8
Are you deleting your self from the antihack log table? Or setting kickonjoin to 0?

9
Editing & Coding / Re: Html Loaded Welcome/Info/Stats/Etc
« on: Jun 18, 2015, 04:39 PM »
Here's an example of the stats.php

Code: [Select]
<!DOCTYPE html>
<html>
<body>
<br />
<p>Updates coming soon!!
<br />
<br />
<?php
$servername 
"dbserver";
$username "dbusername";
$password "dbpassword";
$dbname "db";

// Create connection
$conn = new mysqli($servername$username$password$dbname);
// Check connection
if ($conn->connect_error) {
    die(
"Connection failed: " $conn->connect_error);
}

$UID preg_replace('[0-9_]''',$_GET["uid"]);

$sql "SELECT
        `playerinfo`.`Name` AS `player_name`,
        TRUNCATE (
                (
                        sum(
                                `playerstats`.`PlayerKills`
                        ) / sum(`playerstats`.`DeathCount`)
                ),
                2
        ) AS `global_kill_death_ratio`,
        sum(
                `playerstats`.`PlayerKills`
        ) AS `player_kills`,
        sum(`playerstats`.`GutCount`) AS `player_kill_guts`,
        sum(`playerstats`.`AIKills`) AS `ai_kills`,
        sum(`playerstats`.`TeamKills`) AS `team_kills`,
        sum(`playerstats`.`DeathCount`) AS `player_deaths`,
        sum(
                `playerstats`.`ReviveCount`
        ) AS `revive_count`,
        sum(
                `playerstats`.`CaptureCount`
        ) AS `player_captures`,
        `playerstats`.`LastModified` AS `player_last_online`
FROM
        (
                `playerstats`
                JOIN `playerinfo` ON (
                        (
                                `playerstats`.`PlayerUID` = `playerinfo`.`UID`
                        )
                )
        )
WHERE
playerinfo.UID = '
$UID'
GROUP BY
        `playerstats`.`PlayerUID`"
;
$result $conn->query($sql);

if (
$result->num_rows 0) {
    
// output data of each row
 
while($row $result->fetch_assoc()) {
        echo 
"Player: " $row["player_name"]. " KDR: " $row["global_kill_death_ratio"]. " <br />Kills: " $row["player_kills"]. " Deaths: " $row["player_deaths"]. "<br />AI Kills: " $row["ai_kills"]. " TeamKills:</t> " $row["team_kills"]. "<br />Guts: " $row["player_kill_guts"]. " Revives: " $row["revive_count"]. "<br />Flag Captures: " $row["player_captures"]. "<br />";

    }
} else {
    echo 
"0 results";
}
$conn->close();
?>

<a href="http://toparma.com/top-stats/">Click Here for more stats</a>
</p>

</body>
</html>


10
Editing & Coding / Re: Html Loaded Welcome/Info/Stats/Etc
« on: Jun 18, 2015, 03:17 PM »
I've changed it from .php to call .html and let the webserver handle the rewrite of the .html to .php. This allows us to continue to use allowedhtmlloadext without adding php. Calling anything with .php? will not work, so no point in using that extension anyways.

Nginx
Code: [Select]
if ($http_user_agent ~ (BIGameEngine)) {
            rewrite ^/r/([0-9]+)/r\.html$ /rules.php?uid=$1 last;
            rewrite ^/n/([0-9]+)/n\.html$ /news.php?uid=$1 last;
            rewrite ^/s/([0-9]+)/s\.html$ /stats.php?uid=$1 last;
    }

11
Editing & Coding / Re: Html Loaded Welcome/Info/Stats/Etc
« on: Jun 17, 2015, 05:54 PM »
Still needs some work. Couple errors here and there, along with better coding

12
General Discussion / Re: New official map announced
« on: Jun 17, 2015, 08:18 AM »
Looking forward to it on 12/20/2016. Haha

13
Editing & Coding / Re: Html Loaded Welcome/Info/Stats/Etc
« on: Jun 16, 2015, 03:34 PM »
Sorry I meant the PHP pages for easier updating ect

thanks
Copy what's in the .html and put it in a .php.

I don't have a template that fits anyone's changes as everything we do is custom.

14
BE master is battlEye and has nothing to do with BEC. There is nothing you can do, its a BattlEye/BIS issue. We all get it

15
Editing & Coding / Re: Html Loaded Welcome/Info/Stats/Etc
« on: Jun 16, 2015, 09:56 AM »
Lodac Great job, anyway to share a template of your news and rule pages, I seem yo not be able to get them to load
The .HTML files have the formatting in them.

Pages: [1] 2 3 4 5 ... 15