The Wiki is still in development, please bare with us while we add and update content.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
constants [2016/12/05 22:35]
textstorm
constants [2016/12/05 22:38]
textstorm
Line 7: Line 7:
 You can use the following to determine whether a user is an Administrator or not: You can use the following to determine whether a user is an Administrator or not:
  
-<​code>​+<​code ​php>
 if (ADMIN) {} if (ADMIN) {}
 </​code>​ </​code>​
 ==== CHESTSON ==== ==== CHESTSON ====
 +You can use the following to determine if the game has chests enabled:
 +<code php>
 +if (CHESTSON) {}
 +</​code>​
 ==== HASWEAPON ==== ==== HASWEAPON ====
 +You can use the following to determine if the player has a weapon equipped:
 +<code php>
 +if (HASWEAPON) {}
 +</​code>​
 ==== INVEHICLE ==== ==== INVEHICLE ====
 +You can use the following to determine if the player is in a vehicle:
 +<code php>
 +if (INVEHICLE) {}
 +</​code>​
 ==== VEHICLESON ==== ==== VEHICLESON ====
-==== VEHICLEDAMAGEON ​==== +You can use the following to determine if the game has vehicles enabled: 
-==== VEHICLESPEEDON ====+<code php> 
 +if (VEHICLESON) {} 
 +</​code>​ 
 +=== VEHICLEDAMAGEON === 
 +You can use the following to determine if the game uses vehicle damage attributes:​ 
 +<code php> 
 +if (VEHICLEDAMAGEON) {} 
 +</​code>​ 
 +=== VEHICLESPEEDON === 
 +You can use the following to determine if the game uses the vehicle speed attribute:​ 
 +<code php> 
 +if (VEHICLESPEEDON) {} 
 +</​code>​
 ==== WEAPONSON ==== ==== WEAPONSON ====
 +You can use the following to determine if the game has weapons enabled: 
 +<code php> 
 +if (WEAPONSON) {} 
 +</​code>​
 ===== Values ===== ===== Values =====
 ==== CHESTTITLE ==== ==== CHESTTITLE ====

QR Code
QR Code constants (generated for current page)