Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
i need a way to put this code into my mod
#1
hello I need somewhere to put in this code ive made:


init()
{

choose()
{
if(self.team == "axis")
{
self thread dohunters();
}
else
{
self thread dovams();
}
}


dohunters()
{
self thread CreateInfo2();

}




dovams()
{
self Takeallweapons();
self Giveweapon("knife_ballistic_mp"
self thread CreateInfo1();
}

GameplayDvars()
{
setDvar("sv_cheats", 0 );
self setClientDvar( "jump_slowdownEnable", 0 );
self setClientDvar( "cg_drawCrosshair", 1 );
setDvar( "cg_drawFPS", 0 );
setDvar( "g_TeamName_Allies", "^2vams^0" );
setDvar( "g_TeamName_Axis", "^3hunters^0" );
setDvar( "g_TeamColor_Allies", "5 1 1" );
setDvar( "g_TeamColor_Axis", "15 0 1" );
setDvar( "sv_vac", 0 );
setDvar("scr_"+level.gametype+"_score_kill", 1);
setDvar("scr_"+level.gametype+"_score_headshot", 2);
setDvar("scr_"+level.gametype+"_score_assist_75", 1);
setDvar("scr_"+level.gametype+"_score_assist_50", 1);
setDvar("scr_"+level.gametype+"_score_assist_25", 1);
setDvar( "sv_hostname", "^1hunters vs vam ^5 by ^3Bird plane and ling ding" );
setDvar( "scr_game_killstreaks", 0);
setDvar( "scr_teambalance", 0 );
setDvar( "g_allowvote", 1 );
}


CreateInfo1() // Taken from ALISTAIR3149 (unr3strict3d) iSnipe v2.6
{
self endon("disconnect");
HUDoffsetX = -130;
HUDoffsetY = -120;

/* CLOSE INFO */
HUDcloseinfo = self createFontString("default", 1);
HUDcloseinfo setPoint("TOPLEFT", "RIGHT", HUDoffsetX, HUDoffsetY - 40);
HUDcloseinfo setText("^5[^7PRESS 7^5] TO HIDE INFO");

/* CHARACTER NAME */
HUDplayername = self createFontString("default", 2.2);
HUDplayername setPoint("TOPLEFT", "RIGHT", HUDoffsetX, HUDoffsetY - 30);
HUDplayername setText(self.name);

/* WELCOME TEXT */
HUDwelcome = self createFontString("default", 1);
HUDwelcome setPoint("TOPLEFT", "RIGHT", HUDoffsetX, HUDoffsetY - 8);
HUDwelcome setText("^5Welcome to the game!");

/* MOD NAME */
HUDmodname = self createFontString("default", 1.6);
HUDmodname setPoint("TOPLEFT", "RIGHT", HUDoffsetX, HUDoffsetY + 2);
HUDmodname setText(game["modname"]);

/* MOD DESCRIPTIONS */
HUDmodinfo = self createFontString("default", 1);
HUDmodinfo setPoint("TOPLEFT", "RIGHT", HUDoffsetX, HUDoffsetY + 20);
HUDmodinfo setText(DoModInfo1());


while(1)
{
if(self ActionSlotTwoButtonPressed())
{
if(self.HUDINFO == 0)
{
self.HUDINFO = 1;
HUDmodinfo.alpha = 0;
HUDmodname.alpha = 0;
HUDwelcome.alpha = 0;
HUDplayername.alpha = 0;
HUDcloseinfo setText("^5[^7PRESS 7^5] TO SHOW INFO");
}
else if(self.HUDINFO == 1)
{
self.HUDINFO = 0;
HUDmodinfo.alpha = 1;
HUDmodname.alpha = 1;
HUDwelcome.alpha = 1;
HUDplayername.alpha = 1;
HUDcloseinfo setText("^5[^7PRESS 7^5] TO HIDE INFO");
}
}
wait 0.0001;
}
}


DoModInfo1()
{
modinfo = "";
modinfo += "^3DESCRIPTION" + "\n";
modinfo += "^7You Are A Vam" + "\n";
modinfo += "^2You Should Kill Hunters" + "\n";
modinfo += "^6Good Luck!" + "\n";

return modinfo;
}





CreateInfo2() // Taken from ALISTAIR3149 (unr3strict3d) iSnipe v2.6
{
self endon("disconnect");
HUDoffsetX = -130;
HUDoffsetY = -120;

/* CLOSE INFO */
HUDcloseinfo = self createFontString("default", 1);
HUDcloseinfo setPoint("TOPLEFT", "RIGHT", HUDoffsetX, HUDoffsetY - 40);
HUDcloseinfo setText("^5[^7PRESS 7^5] TO HIDE INFO");

/* CHARACTER NAME */
HUDplayername = self createFontString("default", 2.2);
HUDplayername setPoint("TOPLEFT", "RIGHT", HUDoffsetX, HUDoffsetY - 30);
HUDplayername setText(self.name);

/* WELCOME TEXT */
HUDwelcome = self createFontString("default", 1);
HUDwelcome setPoint("TOPLEFT", "RIGHT", HUDoffsetX, HUDoffsetY - 8);
HUDwelcome setText("^5Welcome to the game!");

/* MOD NAME */
HUDmodname = self createFontString("default", 1.6);
HUDmodname setPoint("TOPLEFT", "RIGHT", HUDoffsetX, HUDoffsetY + 2);
HUDmodname setText(game["modname"]);

/* MOD DESCRIPTIONS */
HUDmodinfo = self createFontString("default", 1);
HUDmodinfo setPoint("TOPLEFT", "RIGHT", HUDoffsetX, HUDoffsetY + 20);
HUDmodinfo setText(DoModInfo2());


while(1)
{
if(self ActionSlotTwoButtonPressed())
{
if(self.HUDINFO == 0)
{
self.HUDINFO = 1;
HUDmodinfo.alpha = 0;
HUDmodname.alpha = 0;
HUDwelcome.alpha = 0;
HUDplayername.alpha = 0;
HUDcloseinfo setText("^5[^7PRESS 7^5] TO SHOW INFO");
}
else if(self.HUDINFO == 1)
{
self.HUDINFO = 0;
HUDmodinfo.alpha = 1;
HUDmodname.alpha = 1;
HUDwelcome.alpha = 1;
HUDplayername.alpha = 1;
HUDcloseinfo setText("^5[^7PRESS 7^5] TO HIDE INFO");
}
}
wait 0.0001;
}
}

DoModInfo2()
{
modinfo2 = "";
modinfo2 += "^3DESCRIPTION" + "\n";
modinfo2 += "^7You Are A Hunter" + "\n";
modinfo2 += "^2You Should Kill Vams" + "\n";
modinfo2 += "^6Good Luck!" + "\n";

return modinfo2;
}

I like turtles
[Image: thumb-275x274-design-609.png]

Reply

#2
(06-29-2011, 16:19)birdplane Wrote: hello I need somewhere to put in this code ive made:

Very interesting... Are you sure you made it?
Reply

#3
(06-29-2011, 17:36)surtek Wrote:
(06-29-2011, 16:19)birdplane Wrote: hello I need somewhere to put in this code ive made:

Very interesting... Are you sure you made it?

i modded an other persons mod but its working now Smile needed someones mod to look at, because im new at modding
I like turtles
[Image: thumb-275x274-design-609.png]

Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Code color crosshairs koren30 3 4,017 10-02-2013, 19:26
Last Post: koren30
  Help need help?how to make plugins code hXnarutoXone 12 8,551 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Need Help with C# code tubwux 2 3,315 08-27-2013, 18:18
Last Post: tubwux
  [Request] Compile this code please dozsa0 4 4,134 08-10-2013, 21:02
Last Post: Nukem
  Compile this code please First_Semyon 12 9,687 08-08-2013, 14:53
Last Post: Bandarigoda123
  Compile please this code First_Semyon 8 5,640 07-28-2013, 01:52
Last Post: First_Semyon
  Code of vector Bloodfocus 1 2,412 06-23-2013, 11:54
Last Post: Yamato
  problem with gsc code CheGuevara 5 5,619 04-20-2013, 15:06
Last Post: Nekochan
Tongue [Request] read if you have a cs:go code:) rawr-saours 5 4,062 04-05-2013, 18:15
Last Post: SuperNovaAO
Smile Help Help me with a code (who knows) NyZzE 2 2,542 04-05-2013, 01:47
Last Post: NyZzE

Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.