Advertisement
Chronos_Ouroboros

OHGODPLSNO

Nov 14th, 2015
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. #LIBDEFINE S7_BS_MAXSLOTS 15
  2. global int 4:S7_BS_Inventory [];
  3.  
  4. #LIBDEFINE S7_INVENTORYMAX 5
  5. str S7_InventoryName [S7_INVENTORYMAX] = { "S7_Raptor", "S7_Shotgun", "S7_TEC9", "S7_Medikit", "S7_Stimpack" };
  6.  
  7. function int readInventory (int first, int second, int third) {
  8. return S7_BS_Inventory [third * S7_BS_MAXSLOTS * MAXPLAYERS + second * MAXPLAYERS + first]; // My brain hurts ;-;
  9. }
  10.  
  11. function void writeInventory (int first, int second, int third, int value) {
  12. S7_BS_Inventory [third * S7_BS_MAXSLOTS * MAXPLAYERS + second * MAXPLAYERS + first] = value; //;-;
  13. }
  14.  
  15. function str classifyInventory (int index) {
  16. return S7_InventoryName [index];
  17. }
  18.  
  19. /*script "retard" (int HUE, int HURR, int DURR, int BURR) {
  20. if (HUE == 1) {
  21. print (s:classifyInventory (readInventory (PLN, HURR, DURR)));
  22. } else {
  23. writeInventory (PLN, HURR, DURR, BURR);
  24. }
  25. }*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement