06-29-2011, 16:19
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;
}
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