Jump to content

OmigaaaD

Member
  • Posts

    7
  • Joined

  • Last visited

Posts posted by OmigaaaD

  1. So i made some quick modifications to the script to check for safezones but i have not tried it yet, we're using Andre's Safezones

     

    multiPlyWith = 1;
    _i=0;
    
    while {_i < 7} do
    {
    	if ( _i == 1) then 
    	{
    		if	(inSafeZone = true) exitWith {
    				_msg2 = parseText format ["<t align='center' color='#FFFFFF' shadow='2' size='1.75'>Loyalty time reward!</t><br/><t align='center' color='#17FF41'>------------------------------</t><br/><t align='center' color='#FFFFFF'>%1 thank you for playing on THGz! You are in a Safezone! No reward this time!</t><t align='center' color='#40FF00'>$%2</t>"];
    				hint _msg2;
    		} else {
    			_reward = (5000 * multiPlyWith);
    			player setVariable ["cashMoney", ((player getVariable ["cashMoney", 0]) + _reward), true];
    			_msg = parseText format ["<t align='center' color='#FFFFFF' shadow='2' size='1.75'>Loyalty time reward!</t><br/><t align='center' color='#17FF41'>------------------------------</t><br/><t align='center' color='#FFFFFF'>%1 thank you for playing on THGz! Your loyalty has been rewarded with: </t><t align='center' color='#40FF00'>$%2</t>", name player, _reward];
    			hint _msg;
    			multiPlyWith = multiPlyWith + 1;
    			_i = 0;
    		};
    	};
    	sleep 1800;
    	_i = _i + 1;
    };

     

    Edit: Does not work, gonna redo it when im not as tired :P

  2. Big up to maca134 for posting how to add custom right click options to items!

     

    I've made a simple script(s) that add right click upgrade/downgrade options to most of the guns with different variations, at the moment you only need scrap metal to upgrade and canvas to add camo to the M4 and SVD's.

     

    1. Override player_selectSlot in your compiles.sqf

     

    2. Replace your ui_selectSlot.sqf with http://pastebin.com/08rt8awZ

     

    3. Add 

    #include "OWS\ows.hpp"

     to your Description.ext.

     

    4. Download http://d01.megashares.com/dl/BcfBloJ/OWS.rar and extract it to your mission file.

     

    5. Compile your PBO and gooo.

     

    I know it is not the most well made script so feel free to edit or make it better, all I ask is that you share your fixes/changes :) I hope someone finds any use for this.

×
×
  • Create New...