Affichage des articles dont le libellé est scripts. Afficher tous les articles
Affichage des articles dont le libellé est scripts. Afficher tous les articles

jeudi 30 janvier 2014

[Scripts] Some troll script for altis topic




Hello guys i looked at the Altis mod files and found some pretty fun stuff to do on cops or civilian. Retrain anybody, Escort them, and add "Fake coops" gears


Note codes are togglable, i suggest to bind them ;)
Restrain :


Code:


                        private["_unit"];
                        _unit = cursorTarget;
                        player setVariable["restrained",false,true];//unrestrain you
                        if(isNull _unit) exitWith {}; //Not valid
                       
                        //if(!(_unit isKindOf "Man")) exitWith {}; //Not a unit
                        if(!isPlayer _unit) exitWith {}; //Not a human
                        if(_unit getVariable "restrained") exitWith
                        {
                                if(isNull _unit) exitWith {}; //Not valid
                                _unit setVariable["restrained",false,true];
                        };
                        _unit setVariable["restrained",true,true];
                        [[player], "life_fnc_restrain", _unit, false] spawn life_fnc_MP;
                        [[0,format["%1 was restrained by %1", name _unit, name player]],"life_fnc_broadcast",west,false] spawn life_fnc_MP;


Escort :


Code:


                        private["_unit"];
                        _unit = cursorTarget;
                        if(isNull _unit) exitWith {}; //Not valid
                       
                        if(!(_unit isKindOf "Man")) exitWith {}; //Not a unit
                        if(!isPlayer _unit) exitWith {}; //remove that and you'll be able to escrot everything

                        if(_unit getVariable "Escorting") exitWith
                        {
                                if(isNull _unit) exitWith {}; //Not valid
                                detach _unit;
                                _unit setVariable["Escorting",false,true];
                        };
                       
                        _unit attachTo [player,[0,1,0]];
                        _unit setVariable["Escorting",true,true];
                        player reveal _unit;


Fake Cops :


Code:


_unit=player;
removeallweapons _unit;
removeVest _unit;

_unit addVest "V_Rangemaster_belt";
removebackpack _unit;

removeuniform _unit;
_unit addUniform "U_Rangemaster";

//_unit addBackpack "B_Carryall_Base";//you can add a backpack if you want to
_unit addWeapon "hgun_P07_snds_F";
player addWeapon "Binocular";


_magazines = getArray (configFile >> "CfgWeapons" >> "hgun_P07_snds_F" >> "magazines");

{
player addmagazine _x;
player addmagazine _x;
player addmagazine _x;
player addmagazine _x;
}foreach _magazines;

reload player;

hint format ["","You're now a Fake Cops"];


for more stuff like that look at the mod itself ;)





mercredi 29 janvier 2014

Scripts Updates topic




With the new update a lot of scripts do not work anymore. While patiently waiting for V00d00 work on new source codes, let's see if we can fix some of them.

I'm right now working on fixing these following scripts (Not made by me):

Winning Current Heist


Code:


if managers.platform:presence() == "Playing" then
    local num_winners = managers.network:game():amount_of_alive_players()
    managers.network:session():send_to_peers( "mission_ended", true, num_winners )
    game_state_machine:change_state_by_name( "victoryscreen", { num_winners = num_winners, personal_win = true } )
end


Take your mask off


Code:


faceoff = function()
    managers.player:set_player_state( "clean" )
end


Strangely enough instant Lose Current Heist still works.
And they're pretty similar:

Code:


if managers.platform:presence() == "Playing" then
    managers.network:session():send_to_peers( "mission_ended", false, 0 )
    game_state_machine:change_state_by_name( "gameoverscreen" )
end


If anyone somehow managed to fix any of these could you please share? So i can move on and try to troubleshoot others scripts not working anymore. :)





lundi 27 janvier 2014

Re: Help: python 3.3.3 (AMD64) scripts fail as non-admin user onWindows Server 2012 R2 topic




On 26/01/2014 22:30, Luis Marsano wrote:
> I've installed python for all users with full permissions to all users
> (see picture).
> Python runs for all users.
> However, scripts only work when I run as Administrator.
> Running a script always results in an "ImportError: cannot import name" error.


As Steven's pointed out, this looks more like a Windows permissions
issue. However, it would still be worth identifying what's going on, as
I haven't run Python on a 2012 box (and I doubt if many other people
have either). I'm getting a VM run up to try it out but that will take a
while.

It may be that some hardened security is preventing Python from reading
its own files. Could you, please, do the simplest of imports which
fails, and post the traceback from the console in its entirety? (In
other words, something like this):

"""
Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:18:40) [MSC v.1600 32
bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import willnotimport

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'willnotimport'
>>>

"""

It would be good to know whether *anything* imports, ie whether stdlib
imports work, or whether it's just user-installed modules.


Thanks

TJG





dimanche 26 janvier 2014

Re: Help: python 3.3.3 (AMD64) scripts fail as non-admin user onWindows Server 2012 R2 topic




On Sun, 26 Jan 2014 17:30:21 -0500, Luis Marsano wrote:

> I've installed python for all users with full permissions to all users
> (see picture).
> Python runs for all users.
> However, scripts only work when I run as Administrator. Running a script
> always results in an "ImportError: cannot import name" error. Here, for
> example, is the output of "pip -h" run as an unprivileged user:



This does not appear to be a Python problem. This appears to be a generic
Windows permissions problem. My guess is that you've made sure that the
Python .exe is executable by all users, but the standard library files
are only readable by the Administrator user.



--
Steven





vendredi 24 janvier 2014

[Help] Again Updating Scripts topic




Hi guys! Me and my friend are tryng to understand lowbits updating script thread but we need to ask few questions about them. Because its not clear enough for US. Maybe it is enough for ou but not for us. So pls just come over to skype for 5 min and let us ask few questions about them. If you think you can help add me over skype pls :)

Skype: samedgagger