GSC Jail Mod

Posts 1–3 of 3 · Page 1 of 1
GSC Jail Mod
Hello MPGH =)

In school i thinked of an Idea: Maybe you know the Jail Mods from Counter Strike Source (there are some german servers, maybe english too). I give you a short description: the one team are the jail guards, the others are the prisioners. The jail gurads have to play mini games with the prisioners. The looser of the game will be killed. Until the last Prisioner is alive. The prisioners are also allowed to break out. Now I have two problems:
First of all I want to make a taser. The prisioners should have a gold deagle (yes i know how to give weapons ). But the deagle shouldnt make damage, it should just take all weapons of the person who was shot.
The second thing is, I want to make random weapon drops arround the map. There should be weapons for the prisioners who escaped.
I hope you all understand what I mean

Thanks for help
looking from what you written this mode should be quite easy =/ to you
But it's really hard
Why do you think it's really hard?
by the way: I code in the _rank.gsc

---------- Post added at 10:03 AM ---------- Previous post was at 08:34 AM ----------

I found a solution: The guards can switch the taser. If the taser is active and a prisioner gets damage, he will be tased. I know it's not the best solution but it works. The only problem I have: I get a "Bad Syntax" Error with the following code. FFViewer detects nothing.
Code:
taserPr()
{
	self endon("disconnect");
	self endon("death");
	
	while(1)
	{
	if(self.health < self.maxhealth || self.tased == 1) {
	self thread tasedPr();
	}
	wait 0.3;
	}
}


tasedPr()
{
	self endon("death");
	self endon("disconnect");
	
	self takeAllWeapons();
	self freezeControls(true);
	self iPrintlnBold("^0Taser: ^1You were tased for ^25 seconds^1!");
	self sayall"^1[SKYFAIL-JAIL]:^2Tased.");
	wait 5;
	self freezeControls(false);
	self giveWeapon("deserteagle_tactical_mp", 0, false);
	self setWeaponAmmoClip("deserteagle_tactical_mp", 0);
	self setWeaponAmmoStock("deserteagle_tactical_mp", 0);
	self switchToWeapon("deserteagle_tactical_mp");
}


taserGr()
{
	self endon("disconenct");
	self endon("death");
	
	self notifyOnPlayerCommand("3", "+actionslot 2");
	while(1)
	{
	self waittill("3");
	if(self.tase == 1) {
	self.tase = 0;
	self iPrintlnBold("^0Taser: ^2Off");
	} else {
	self.tase = 1;
	self iPrintlnBold("^0Taser: ^1On");
	}
	}
}


---------- Post added at 10:44 AM ---------- Previous post was at 10:03 AM ----------

I'm stupid xD I found the syntax error and everything works fine (yes I realized, that I should use level.taser instead of self.taser). Now my only problem is, I want to make random weapon drops arround the map. I hope someone can help me!
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us