Thread: GSC Jail Mod

Results 1 to 3 of 3
  1. #1
    Enibald's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0

    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

  2. #2
    Arcton's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    SomeWhere In Your Heart
    Posts
    2,111
    Reputation
    194
    Thanks
    2,615
    My Mood
    Stressed
    looking from what you written this mode should be quite easy =/ to you
    But it's really hard

  3. #3
    Enibald's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    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!

Similar Threads

  1. Gsc modding codes
    By Abstract in forum Call of Duty Modern Warfare 2 Server / GSC Modding
    Replies: 92
    Last Post: 07-24-2013, 04:55 AM
  2. [Solved] How to create more gsc in à mod?
    By alvarogt1995 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 3
    Last Post: 09-10-2011, 06:35 PM
  3. [SOLVED] combinign 2 mods in 1 gsc file
    By xbeatsszzx in forum Call of Duty Modern Warfare 2 Help
    Replies: 32
    Last Post: 07-22-2010, 01:31 AM
  4. I need help with GSC MODDING
    By schiz in forum Call of Duty Modern Warfare 2 Help
    Replies: 1
    Last Post: 06-23-2010, 02:47 AM
  5. Custom GSC Mods
    By martin1308 in forum Call of Duty Modern Warfare 2 Private Servers
    Replies: 1
    Last Post: 06-15-2010, 12:05 AM