Page 1 of 1

[SCRIPT] Punishment

Posted: Tue Jan 07, 2014 10:16 am
by Bori
Hey guys,

it's me again Bori.
So this script is called "Punishment". Whenever you crouch, sneak, jump or sprint, you get hit. So here, you really have to use your aiming skills.
Code: Select all
"""
Punishment made by Bori
"""
DO_NOT_USE_SKILLS = "Don't crouch, sneak, jump or sprint, use your skills"
ME_EXPLAIN = "Fight like a real man and don't do anything forbidden"


def apply_script(protocol, connection, config):
        
			
	class punishConnection(connection):
		def on_animation_update(self, jump, crouch, sneak, sprint):
			if jump or crouch or sneak or sprint:
				if self.hp>=1:
					self.hit(5)
					self.send_chat(DO_NOT_USE_SKILLS)
			return connection.on_animation_update(self,jump, crouch, sneak, sprint)		
		
		def on_kill(self, killer, type, grenade):
			killer.send_chat("Punish him more")
			return connection.on_kill(self, killer, type, grenade)
		
		
		def on_refill(self):
			return False
		
		def on_spawn(self, pos):
			self.send_chat(ME_EXPLAIN)
		
	return protocol, punishConnection
See ya Next time guys
Bori

Re: [SCRIPT] Punishment

Posted: Tue Jan 07, 2014 2:32 pm
by Zekamalikyd
wow

Re: [SCRIPT] Punishment

Posted: Fri Jan 17, 2014 2:24 am
by Ballistic
Zekamalikyd wrote:
wow

Re: [SCRIPT] Punishment

Posted: Sun Jan 19, 2014 1:46 pm
by matthew0901
This should be a gamemode.

Re: [SCRIPT] Punishment

Posted: Sun Jan 19, 2014 3:04 pm
by Dominis
matthew0901 wrote:
This should be a gamemode.

Re: [SCRIPT] Punishment

Posted: Sun Jan 19, 2014 3:30 pm
by IceCream
This shouldn't be a gamemode.

Re: [SCRIPT] Punishment

Posted: Sat Feb 22, 2014 3:05 pm
by learn_more
also give punishment for every gun that is not an smg, for using nades and for aiming.

Re: [SCRIPT] Punishment

Posted: Sat Feb 22, 2014 4:24 pm
by scrawl
Zekamalikyd wrote:
wow