Thank you very much, can I ask one more thing? Off topic though?
Beiträge von Frenzy
-
-
do you use an framework like altis life?
Yes. I have an altis life server
-
do you use ace medial or just vanilla?
vanilla
-
-
Thank you bro.
-
Are you running XAMPP on PHP8?
I can warmly recommend Native Servers Webhosting (https://native-servers.com/webhosting-webspace-mieten). They should have PHP7 if not the support should accomplish that
So, if I install AppServ : Apache + PHP + MySQL, will it work?
-
Sooo you could kill the server process and restart it after or use BEC OR the way i would recommend is to use Firedaemon Pro.
You can try it for 30day and buy it afterwards if you like it.
https://www.firedaemon.com/products
taskkill /IM "arma3server.exe" /F
Code
Alles anzeigen@echo off chdir /c "C:\Arma3\A3Server" COLOR 0B TITLE Altis Auto Server Restart SETLOCAL EnableExtensions enabledelayedexpansion set EXE=arma3server_x64.exe timeout 1 goto CheckServerRunning timeout 1 :CheckServerRunning echo "Arma 3.exe Status under review..." FOR /F %%x IN ('tasklist /NH /FI "IMAGENAME eq %EXE%"') DO IF %%x == %EXE% goto KillRestartServer goto StartArma3Server timeout 1 :StartArma3Server echo "Starting the server..." start C:\Arma3\A3Server\arma3server_x64.exe -port=2302 -servermod=@life_server;@extDB3;@infiSTAR_A3 -config=C:\Arma3\A3Server\config\server.cfg -cfg=C:\Arma3\A3Server\config\basic.cfg -bepath=C:\Arma3\A3Server\battleye -profiles=C:\Arma3\A3Server\Default -name=default -autoinit+ exit timeout 1 :KillRestartServer echo "Starting the server..." timeout 1 >nul taskkill /F /IM %EXE% >nul timeout 5 >nul cls goto StartArma3Server
It seems to be working fine, but the server is not showing up at all.
-
Hello,
I want server start .bat for my altis life server, but it doesn't work even though I set it. Can anyone help me in this position?
-
Code
if (str(player) in (LIFE_SETTINGS(getArray,"slots_justiz"))) then { if (FETCH_CONST(life_justizlevel) isEqualTo 0) then { ["NotWhitelisted",false,true] call BIS_fnc_endMission; sleep 35; }; };
This is a part of my old altis life script, it is nearly the same.
Maybe add debug messages like systemChat "DEBUG 1"...
Also check the result of systemChat (str player)
str player gives you the unit name (from the init) back.
Sorry, it didn't. It was working before, I set it up. But now it doesn't. Is there a script difference? Or am I using an old script, how do I find out?
-
Code
Alles anzeigen#include "..\script_macros.hpp" /* File: fn_initCop.sqf Author: Bryan "Tonic" Boardwine Description: Cop Initialization file. */ player addRating 9999999; waitUntil {!(isNull (findDisplay 46))}; if((str(player) in ["cop_1"])) then { if((FETCH_CONST(life_coplevel) < 8) && (FETCH_CONST(life_adminlevel) < 5)) then { ["NotWhitelisted",false,true] call BIS_fnc_endMission; sleep 35; }; player setVariable ["admin_level",(FETCH_CONST(life_adminlevel)),true]; player setVariable ["rank",(FETCH_CONST(life_coplevel)),true]; switch (FETCH_CONST(life_coplevel)) do { case 2: { life_paycheck = LIFE_SETTINGS(getNumber,"paycheck_cop_2"); }; case 3: { life_paycheck = LIFE_SETTINGS(getNumber,"paycheck_cop_3"); }; case 4: { life_paycheck = LIFE_SETTINGS(getNumber,"paycheck_cop_4"); }; case 5: { life_paycheck = LIFE_SETTINGS(getNumber,"paycheck_cop_5"); }; case 6: { life_paycheck = LIFE_SETTINGS(getNumber,"paycheck_cop_6"); }; case 7: { life_paycheck = LIFE_SETTINGS(getNumber,"paycheck_cop_7"); }; case 8: { life_paycheck = LIFE_SETTINGS(getNumber,"paycheck_cop_8"); }; case 9: { life_paycheck = LIFE_SETTINGS(getNumber,"paycheck_cop_9"); }; default { life_paycheck = LIFE_SETTINGS(getNumber,"paycheck_cop_default"); }; }; life_paycheck = life_paycheck; // life_paycheck = life_paycheck + LIFE_SETTINGS(getNumber,"ALRPG_paycheck_etkinlik"); // if (call life_adminlevel != 0) then { player_Twitteradminpwr = true;";}; [] call life_fnc_spawnMenu; waitUntil{!isNull (findDisplay 38500)}; //Wait for the spawn selection to be open. waitUntil{isNull (findDisplay 38500)}; //Wait for the spawn selection to be done. [] spawn life_fnc_welcome; [] spawn life_fnc_welcome_info; [] spawn life_fnc_placeablesInit;
-
It doesn't work even if I level it. Where else can I go wrong?
-
-
in your case you check if your player is not using slot cop_1. If this is true you check if the player has an admin level = 5 OR a cop level >= 8, when true -> allow play
Did you check whether you have an adminlevel equal to 5?
Pls send your RPT Log
Yes, I wanted to give administrators a level they can enter, I know that. But the problem is, for example; I assign a level to the cop_1 slot and it can be entered without leveling. am i doing something wrong?
-
Hello,
I carefully arranged the Cyberworks installation. But I faced such problem in web panel.
Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in C:\xampp\htdocs\cyberworks\vendor\twig\twig\lib\Twig\Node.php on line 42
Spoiler anzeigen
<?php
/*
* This file is part of Twig.
*
* (c) Fabien Potencier
* (c) Armin Ronacher
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Represents a node in the AST.
*
* @author Fabien Potencier <[email protected]>
*/
class Twig_Node implements Countable, IteratorAggregate
{
protected $nodes;
protected $attributes;
protected $lineno;
protected $tag;
private $name;
/**
* Constructor.
*
* The nodes are automatically made available as properties ($this->node).
* The attributes are automatically made available as array items ($this['name']).
*
* @param array $nodes An array of named nodes
* @param array $attributes An array of attributes (should not be nodes)
* @param int $lineno The line number
* @param string $tag The tag name associated with the Node
*/
public function __construct(array $nodes = array(), array $attributes = array(), $lineno = 0, $tag = null)
{
foreach ($nodes as $name => $node) {
if (!$node instanceof self) {
throw new InvalidArgumentException(sprintf('Using "%s" for the value of node "%s" of "%s" is not supported. You must pass a Twig_Node instance.', is_object($node) ? get_class($node) : null === $node ? 'null' : gettype($node), $name, get_class($this)));
}
}
$this->nodes = $nodes;
$this->attributes = $attributes;
$this->lineno = $lineno;
$this->tag = $tag;
}
public function __toString()
{
$attributes = array();
foreach ($this->attributes as $name => $value) {
$attributes[] = sprintf('%s: %s', $name, str_replace("\n", '', var_export($value, true)));
}
$repr = array(get_class($this).'('.implode(', ', $attributes));
if (count($this->nodes)) {
foreach ($this->nodes as $name => $node) {
$len = strlen($name) + 4;
$noderepr = array();
foreach (explode("\n", (string) $node) as $line) {
$noderepr[] = str_repeat(' ', $len).$line;
}
$repr[] = sprintf(' %s: %s', $name, ltrim(implode("\n", $noderepr)));
}
$repr[] = ')';
} else {
$repr[0] .= ')';
}
return implode("\n", $repr);
}
public function compile(Twig_Compiler $compiler)
{
foreach ($this->nodes as $node) {
$node->compile($compiler);
}
}
public function getTemplateLine()
{
return $this->lineno;
}
public function getNodeTag()
{
return $this->tag;
}
/**
* @return bool
*/
public function hasAttribute($name)
{
return array_key_exists($name, $this->attributes);
}
/**
* @return mixed
*/
public function getAttribute($name)
{
if (!array_key_exists($name, $this->attributes)) {
throw new LogicException(sprintf('Attribute "%s" does not exist for Node "%s".', $name, get_class($this)));
}
return $this->attributes[$name];
}
/**
* @param string $name
* @param mixed $value
*/
public function setAttribute($name, $value)
{
$this->attributes[$name] = $value;
}
public function removeAttribute($name)
{
unset($this->attributes[$name]);
}
/**
* @return bool
*/
public function hasNode($name)
{
return isset($this->nodes[$name]);
}
/**
* @return Twig_Node
*/
public function getNode($name)
{
if (!isset($this->nodes[$name])) {
throw new LogicException(sprintf('Node "%s" does not exist for Node "%s".', $name, get_class($this)));
}
return $this->nodes[$name];
}
public function setNode($name, self $node)
{
$this->nodes[$name] = $node;
}
public function removeNode($name)
{
unset($this->nodes[$name]);
}
public function count()
{
return count($this->nodes);
}
public function getIterator()
{
return new ArrayIterator($this->nodes);
}
public function setTemplateName($name)
{
$this->name = $name;
foreach ($this->nodes as $node) {
$node->setTemplateName($name);
}
}
public function getTemplateName()
{
return $this->name;
}
}
class_alias('Twig_Node', 'Twig\Node\Node', false);
class_exists('Twig_Compiler');
-
Creating a really new level is quite hard. You first have to add this level in your database like a copy from the coplevel.
Next you have to add this level to your data request on server side and client side (mission).
Try search for coplevel in your project to get an idea how to implement a new level.
Problem solved, thanks.
May I ask one more thing? I want to adjust the police slots by level. E.g; cop_1 = coplevel 5
Codeif(!(str(player) in ["cop_1"])) then { if((FETCH_CONST(life_coplevel) < 8) && (FETCH_CONST(life_adminlevel) < 5)) then { ["NotWhitelisted",false,true] call BIS_fnc_endMission; sleep 35; };
I'm trying to set it this way, but it's not working.
-
Hey. I will briefly translate you existing tutorials.
New license
Open your Config_Licenses.hpp in your config folder.
In this file you can add a new config entry:
Codeclass tutorial { // Classname variable = "tutorial"; // Var Name displayName = "STR_License_Tutorial"; Stringname price = 1500; // Price illegal = true; // Illegal true/false side = "civ"; // for which side? civ / cop / med };
In your stringtable.xml you add another entry as well (in this case STR_License_Tutorial)
(original thread: Einsteiger Tutorial: Neue Lizenzen einfügen Ab 4.4 + Spawnpunkt + Shops)
More cop levels
Go in your database and edit your coplevel (following the existing pattern).
And thats all. Maybe add the new levels to your id card system or comparable.
(original thread: [Tutorial] Mehr Polizeiränge)
If you also mean add more slots to join:
Just place down more units on your spawn island and group them with the main blufor unit.Thank you,
Also, I also want to create a database. Police level system is available, But I want to add a new one. E.g; Special operations level system? -
I want to upgrade the police slots. Also, I want to create one more police license. How can I do that? If you tell me where to do it, I will try to do it. Also, I want to add levels to Police slots.
-
It sounds like your using a custom framework, and you're giving us very little to work with to help you.
This sounds like a config setting to me where when you are a donator your prices are reduced.
Yes, that's the problem. I want to set donator price, but it doesn't work. Which script is it set in? It doesn't happen in the config weapon file.
-
These are not issues or problems.
I'll gladly help if you run into issues but I don't have the time and patience to do basic configuration stuff for you.
Please look into this yourself.
When a player is given a donor level, the prices of the weapons in the rebel region automatically change. I want to set this with the price I gave myself, but it doesn't work.
-
no, apparently not
There are currently two types of problems. When a donor whitelist is written to a player, weapons in the rebel zone also turn into a low price, where are these donator settings?