UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Custom made script help! Please!

broken avatar :(
Created 10 years ago
by idogftw
0 Members and 1 Guest are viewing this topic.
1,336 views
broken avatar :(
×
broken avatar :(
Location: usLouisiana
Date Registered: 1 January 2014
Last active: 1 year ago
Posts
65
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Beginner Scripter && A7X Deathbat
×
idogftw's Groups
idogftw's Contact & Social LinksIdogftw00
I made a script to troll a friend where he could only buy jug (I am using myself as a test subject atm) but yea this is the script so far!

Code Snippet
Plaintext
#include common_scripts\utility;
#include maps\_utility;
#include maps\_zombiemode_utility;
     
main()
{
    flag_wait( "all_players_connected" );

players = GetPlayers();
    for(k=0;k<players.size;k++)
{
//OUTSIDE LOOP SO MESSAGE DOES NOT REPEAT
if(players[k].playername == "[kirk]Idogftw")
{
IPrintLnBold("Detected kirk ... Running special subroutines...");
IPrintLnBold("Game Mode Alteration courtesy of Joey Quinto (Joeybbb)");
IPrintLnBold("Joeyq-games.site50.net");

perks = [];
        perks[0] = "specialty_rof";  // double tap
        perks[1] = "specialty_fastreload"; // speed cola
        perks[2] = "specialty_quickrevive";  // quick revive
        perks[3] = "specialty_detectexplosive";  // phd flopper
        perks[4] = "specialty_bulletaccuracy";  // deadshot
        perks[5] = "specialty_longersprint"; // staminup
        perks[6] = "specialty_extraammo";  // mule kick
//perks[7] = "specialty_armorvest";  // juggernog

}
}

    //START LOOP
for(;;)
    {
players = GetPlayers();
for(k=0;k<players.size;k++)
        {     
if(isDefined(players[k].playername))
{
if(players[k].playername == "[kirk]Idogftw")
{
    for( i = 0; i < perks.size; i++ )
{
if(players[k] HasPerk([i])
{
players[k] UnSetPerk([i]);
players[k] perk_hud_destroy([i])
// Code to take off shader. In _zombiemode_perks.gsc
}
}
}
}
}
        wait .05;
    }
}
also the
Code Snippet
Plaintext
//DebugLog("Initialize warn, players might not have spawned in yet!");

wait_for_all_players();

//DebugLog("Done waiting for players");

players = GetPlayers();
for(k=0;k<player.size;k++)
{

temp = 0;
for(i = 0; i < players.size; i++)
{
player[k] = players;
if(isDefined(player[k].playername))
{
//DebugLog("Detected player name:");
//DebugLog(player.playername);

if(player[k].playername == "[kirk]Idogftw")
{
temp = 1;
break;
}
}

if(temp == 1)
{
IPrintLnBold("Detected kirk... Running special subroutines...");
IPrintLnBold("Game Mode Alteration courtesy of Joey Quinto (Joeybbb)");
IPrintLnBold("Joeyq-games.site50.net");
}
}
Is from a script joey made me for a different thing!
Last Edit: June 03, 2014, 02:01:16 pm by idogftw
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 21 March 2014
Last active: 2 years ago
Posts
227
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I the Mighty
×
ConvictioNDR's Groups
So what's the problem? I think you left that part out.
broken avatar :(
×
broken avatar :(
Location: usLouisiana
Date Registered: 1 January 2014
Last active: 1 year ago
Posts
65
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Beginner Scripter && A7X Deathbat
×
idogftw's Groups
idogftw's Contact & Social LinksIdogftw00
In game when I test it the script doesn't work I drink the perk but it doesn't take it away right after I drink it which its supposed to do so.
broken avatar :(
×
broken avatar :(
Location: usYork, SC
Date Registered: 15 March 2014
Last active: 5 years ago
Posts
214
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
WaW Scriptor
Signature
WaW Scriptor
×
PROxFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
PROxFTW's Contact & Social LinksPROxFTWPROxFTWPROxFTWPROxFTW
You just need to find out how to take off the shader. This will disable perk, but will leave shader until fixed. This should do what you want. But also there is an easier way to just disable the hint string but I don't have the gsc so someone else will have to help if you want that.
Code Snippet
Plaintext
// Simpler way by just disabling the trigger for that player. Something with setInvisibleToPlayer I believe
main()
{
//DebugLog("Initialize warn, players might not have spawned in yet!");

wait_for_all_players();

//DebugLog("Done waiting for players");

for(;;)
{
player = GetPlayers();
for(k=0;k<player.size;k++)
{

temp = 0;
if(isDefined(player[k].playername))
{
//DebugLog("Detected player name:");
//DebugLog(player.playername);

if(player[k].playername == "[kirk]Idogftw")
{
temp = 1;
break;
}
}

if(temp == 1)
{
IPrintLnBold("Detected kirk ... Running special subroutines...");
IPrintLnBold("Game Mode Alteration courtesy of Joey Quinto (Joeybbb)");
IPrintLnBold("Joeyq-games.site50.net");
}

perks = [];
perks[0] = "specialty_rof";  // double tap
perks[1] = "specialty_fastreload"; // speed cola
perks[2] = "specialty_quickrevive";  // quick revive
perks[3] = "specialty_detectexplosive";  // phd flopper
perks[4] = "specialty_bulletaccuracy";  // deadshot
perks[5] = "specialty_longersprint"; // staminup
perks[6] = "specialty_extraammo";  // mule kick
for( i = 0; i < perks.size; i++ )
{


//DebugLog("Detected player name:");
//DebugLog(player.name);
if(isDefined(player[k].playername))
{
if(player[k] HasPerk(perks[i]) && player[k].playername == "[kirk]Idogftw" )
{
player[k] UnSetPerk( perks[i] );
// Code to take off shader. In _zombiemode_perks.gsc
}
}
}
}
wait .05;
}
}
Last Edit: June 03, 2014, 02:14:04 am by PROxFTW

 
Loading ...