[SCRIPT] Punishment

Intended for use on live public servers.
8 posts Page 1 of 1 First unread post
Bori
League Participant
League Participant
Posts: 28
Joined: Sun Nov 11, 2012 2:41 pm


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
Attachments
punish.py
(846 Bytes) Downloaded 167 times
Zekamalikyd
Modder
Modder
Posts: 4219
Joined: Mon Apr 01, 2013 3:40 pm


wow
Ballistic
3 Years of Ace of Spades
3 Years of Ace of Spades
Posts: 1207
Joined: Wed Dec 19, 2012 12:17 am


Zekamalikyd wrote:
wow
matthew0901
Deuced Up
Posts: 105
Joined: Wed Nov 21, 2012 12:23 pm


This should be a gamemode.
Dominis
League Participant
League Participant
Posts: 240
Joined: Mon Nov 11, 2013 11:48 pm


matthew0901 wrote:
This should be a gamemode.
IceCream
Hoster
Hoster
Posts: 322
Joined: Thu Nov 01, 2012 12:18 pm


This shouldn't be a gamemode.
learn_more
Coder
Coder
Posts: 891
Joined: Sun Mar 24, 2013 9:59 pm


also give punishment for every gun that is not an smg, for using nades and for aiming.
scrawl
Veterans
Veterans
Posts: 974
Joined: Mon Dec 16, 2013 12:09 pm


Zekamalikyd wrote:
wow
8 posts Page 1 of 1 First unread post
Return to “Completed Releases”

Who is online

Users browsing this forum: No registered users and 27 guests