EventScripts Forums
Mattie's EventScripts and Source Forums
Mattie recommends...
Premier Sponsor:Platinum Sponsor:
 
Script Categories
16000 (15) abilities (15) addon (71) addons (17) admin (348) admins (23) advert (27) adverts (26) afk (17) alerts (12) ammo (25) anti (20) armor (11) auth (16) automatic (15) awp (29) ban (24) ba_jail (34) bhop (45) block (27) bomb (47) bonus (25) boost (21) bot (35) bot-management (20) bots (24) bullet (13) bunnyhop (18) Buy (27) buymenu (13) c4 (12) cash (76) Change (14) chat (75) cheat (15) clan (17) classes (24) color (30) colors (20) command (23) commands (20) config (28) configurable (11) connect (54) counter (11) Counter-Strike-Source (18) CS:S (20) css (3313) custom (13) Damage (48) database (14) dead (19) Deagle (11) death (19) deathmatch (79) deathrun (17) deutsch (13) dice (11) disconnect (24) Dissolve (12) dm (24) dod:s (11) dods (494) download (12) easy (26) effect (14) effects (125) English (16) entity (24) est (12) es_tools (14) Eventscript (12) exploit (11) flashbang (27) français (104) french (36) fun (312) funny (18) Gabeee (11) game (12) gamemode (11) gameplay (175) German (11) give (20) gravity (15) grenade (28) grenades (32) gun (15) GunGame (31) GunGame5 (11) guns (20) Hack (16) headshot (37) health (70) hegrenade (15) help (11) hit (13) hl2dm (432) HP (25) hudhint (11) hungarian (22) info (52) information (17) invisible (11) IP (13) jail (79) jailbreak (14) join (44) jump (19) kick (25) kill (50) kills (23) knife (65) leveling (38) LnD (14) lol (11) magyar (32) management (14) manager (11) mani (16) map (31) map-management (26) maps (17) match (21) Memphis-84 (13) menu (139) message (30) messaging (52) minecraft (12) mod (121) model (18) models (32) modye (16) money (50) motd (13) music (32) mute (20) nades (20) name (15) new (13) noblock (53) orangebox (23) player (46) player-management (31) player-tracking (28) popup (70) prop (13) propmenu (14) props (34) protect (11) protection (31) punish (11) punishment (51) python (79) quake (32) QuakeSounds (12) race (13) races (20) radio (29) random (47) rank (41) rates (15) rcon (12) realism (22) Regeln (22) respawn (67) restrict (40) round (26) rpg (32) rules (60) say (16) score (15) scout (29) Script (25) script-helper (25) scriptpack (33) sdk (171) server (60) server-tools (42) shop (12) showdamage (19) silly (31) simple (31) skin (17) skins (34) slay (13) soccer (14) sound (63) sounds (106) source (13) spanish (18) spawn (81) speed (25) statistics (13) stats (55) status (15) Steam (11) STEAMID (29) Superhero (15) surf (41) Team (29) team-balance (14) teleport (16) text (17) TF2 (142) time (22) timer (15) tools (15) tracers (19) triggers (11) uedi (17) uses_auth (18) vip (23) vote (39) voting (22) war (25) Warcraft (12) warcraft-source (20) wc3 (14) wcs (47) wcs:Python (32) weapon (87) weapons (116) web (16) welcome (12) wuerfeln (11) zm (26) zombie (99) zombiemod (55) zombies (12)
Script Authors
*XYZ*SaYnt (12) .:MiB:. (20) .:modye:. (14) .eMko* (6) 101satoon101 (12) 3R10N (24) 4u571n91 (5) 7355608 (9) Absolute (9) Ace Rimmer (40) adminc (5) Adz (8) AgathaKnuppelkuh (8) aidden (8) ajax (5) ak_47 (6) Al3c Tr3v3lyan (6) allstareng (5) ashbash1987 (9) ATAMAH (7) Ayuto (5) aznone (5) B00M (5) BackRaw (41) BFH_RedBull (8) bigfabi (8) Bioko (10) blackshoxx (9) Blade (10) bladesback (13) bobdole (11) bodzsar1 (8) bonbon (36) Brainsucker (32) cagemonkey (8) capo azzlack (7) captain master (6) carbon-14 (10) CaskioUTF (5) cbirou (15) CbRRR (16) ChaCaLz2psy4 (5) CharlesT (5) Chrisber (5) chrismrulz (10) Chun (6) cladiron (10) clipz934 (8) Colster (21) Cookieman8 (7) CrAzD (6) craziest (11) dani12356 (12) DanielB (19) Darkness123 (8) Dave (9) dbozan99 (7) deathx9 (5) Deathyy (16) dhack (17) Di[M]aN (12) DJ Fire-Black prod (8) DoCky (31) Don (15) dordtcore (9) DragonFreddo (8) Drassil (5) dretax14 (11) Einlanzers (47) EmbouT (10) emilplov (7) Errant (10) Eun (6) Fantole (10) FMIS (5) Franc1sco (17) freddukes (18) Frequency (6) Fugi91 (6) Fulmine (5) G4ME (5) GAMEREN2 (8) german9114 (13) GODJonez (40) GoodfellaDeal (5) Hansi (6) Hisoka (6) HitThePipe (7) HOLLDIDAY (24) Icetouch (6) ichthys (25) Im the new guy (14) iNexus (13) infamous1 (9) isivisi (13) ispaine (7) Jackmaster (9) Jeff91 (45) JoeyT2006 (30) Juba_PornBorn (12) jxl180 (11) KDBFame (6) L'In20Cible (11) L.P.H (8) Largo Usagi (10) LnD (14) Lobe (11) loKkdoKk (8) lolo-le-haricot (7) LosNir (5) Lumpi@Work (9) M4rc3L-XCN (7) macshot (7) magyar-oneill (9) Matth (7) Mattie (21) mave1993 (5) MBchrono (15) McFly (20) Medda (5) Memphis-84 (15) Messiah93 (19) Mickyy (5) micmacx (6) Mitchell (5) Mixer57 (5) modye (6) Monster_Bitch1 (9) Mordavolt (7) motomoto (10) MrScriptaz (6) mryoung (6) MyTechZone.de (8) Nicolous (23) ojii (31) oliVier (10) Omega68 (6) Omega_K2 (11) Owned|Myself (8) P3N (7) pand3mic (6) parsimba (5) Pascal257 (9) PatPeter (7) PDrop (10) Phaedrus (18) PhantOm Fury (7) phoenix131 (9) pinkyyy -.- (5) pitbull0993 (7) PixelGamer (7) randomknifer (9) Raptor150 (31) Ratzee (6) ReaCtioN2oo9 (6) RedCliff (5) Rennnyyy (17) revolutionfighters (8) RideGuy (12) Rio (9) Roeliekt (6) roof (16) runamagic (13) Ryezin (5) sandking220 (6) Sarcasm_Poisoning (10) saRs| Johnny-5 (13) Schubaal (10) sea212 (5) sega74rus (15) sgt.angel (6) Shad0w (11) ShoTaXx# (7) sicilia (7) sicman_adrian (22) skillz92 (7) sn4k3 (18) Snake12 (7) snake38 (10) sonicsight (7) SpeedFreak (9) spoonman184 (10) stabby (22) stas (27) Stirni (6) stonedegg (7) Strontium Dog (30) SumGuy14 (25) SuperDave (49) surfteam (5) TaCo (5) TanaToS (17) Tealk (6) teowow (16) TheCheeTaH (27) TheDonFather (5) theresthatguy (6) Tiny Tod (7) tooshkan4uk (8) Totyahun (9) uedi (38) ultimatebuster (6) Undead (25) usernamesaretaken (15) wanted241 (9) Warren (13) westham (6) WhiteAvenger (7) Wonder (14) Wundermaxe (5) X-Mania (5) XE_ManUp (14) xfalcon61 (5) zSweetXz (5) ZZMatty (6) [Cs]Lord_Inferno2 (11) [DAP]Kickbutt (5) [NATO]Hunter (28) ||Wolf|| (10)
Search

Post new topic Reply to topic
Author Message
User avatar
Guru
Guru
Profile

Posts: 1505
 
New postPosted: 2008-07-14, 6:23 pm 
   Post subject: Anti Retry

Anti Retry 1.0.2
Posted by: Sc0pE on 2008-07-14 19:15:59.

Requirements:Description:
    Slays players who retry after death to play the same round twice.
________Image
Download: Installation:
    Extract the zip file to your cstrike folder so that your addons folders line up
    Add es_load anti_retry to your autoexec.cfg
    Restart your server.
Find Servers:Version Notes:
  • 1.0.2 - Uses a new (improved) method of slaying.
  • 1.0.1 - Now checks to ensure that the player has disconnected as well as died during the round they are trying to respawn into.
  • 1.0.0 - First Version


Last edited by Warren on 2008-08-14, 2:40 pm, edited 4 times in total.




User avatar
Mentat
Mentat
Profile

Posts: 4249
Location:
Graveyard...?

Steam Friends Name: undead46
 
New postPosted: 2008-07-14, 7:31 pm 

Remove set and makepublic from load and use:

PYTHON:

    info = es.AddonInfo()

    info.name = 'Anti Retry'

    info.version = '1.0.0'

    info.url = 'http://forums.mattie.info/cs/forums/viewtopic.php?t=24766'

    info.basename = 'anti_retry'

    info.author = 'Sc0pE'



    es.ServerVar('anti_retry_ver', info['version'], 'Anti Retry Addon Script').makepublic()


Reason: Turn 2 lines into 1 :wink:

_________________
Venjax wrote:
Try again grasshopper.

Image


User avatar
Guru
Guru
Profile

Posts: 1505
 
New postPosted: 2008-07-15, 1:23 am 

I'm not worried about it. :D

_________________
Addons: 1v1 Sound || Anti Retry || Bombsite Limiter || GunGame5 || GunGame5 Cheap Equip || GunGame5 Join Message || GunGame5 Knife/Nade Bonus || GunGame5 Multi Nade || GunGame5 Winner Display || GunGame5 Winner Menu || Mani Fire Fix || Reinforcement Waves || Tagme Python


User avatar
Mentat
Mentat
Profile

Posts: 4782
Location:
C:/Program Files/Bonbon/Bonbon.exe
 
New postPosted: 2008-07-15, 1:39 am 

how bout something for if they disconnect by user,an drejoin it punishes them.

PYTHON:
    import es



    retries = []



    def player_spawn(ev):

            userid = int(ev['userid'])

            if userid in retries:

                    es.sexec(userid, 'kill')

                    es.tell(userid, 'nub')



    def round_start(ev):

            global retries

            retries = []



    def player_disconnect(ev):

            if ev['reason'] == 'Disconnect by user':

                    retries.append(int(ev['userid']))


I've never used ev['reason'] for player_disconnect, so good luck :P (It'd give you my woot :))

_________________
SicmanAdrian wrote:
I don't think it is possible but maybe SuperDave could try?

abcdefghijklmnopqrstuvwxyz
"It doesn't work" doesn't help us out, help us help you, be more specific!
Remember, when posting non Python code, post in the ES 1.x discussion forum, you'll get better help!
SuperDave wrote:
It's very difficult to see errors in that script because it is some of the worst looking code I have ever seen. And I've seen bonbon's code

Please do not PM for free private scripts/help!


User avatar
Guru
Guru
Profile

Posts: 1505
 
New postPosted: 2008-07-15, 2:59 am 

I might later. I know this is barely a script, but I know mani uses it and it can be a problem on my server. Therefore I checked here and didn't find anything that did this.

This script isn't for people just retrying. It is for those who have played and died already, and therefore shouldn't come back and play again in the round.

_________________
Addons: 1v1 Sound || Anti Retry || Bombsite Limiter || GunGame5 || GunGame5 Cheap Equip || GunGame5 Join Message || GunGame5 Knife/Nade Bonus || GunGame5 Multi Nade || GunGame5 Winner Display || GunGame5 Winner Menu || Mani Fire Fix || Reinforcement Waves || Tagme Python


User avatar
Guru
Guru
Profile

Posts: 1505
 
New postPosted: 2008-07-25, 6:37 pm 

Anti Retry Updated!
Version: 1.0.1
Updated on: 2008-07-25 19:36:35
Version Notes:
Now checks to ensure that the player has disconnected as well as died during the round they are trying to respawn into.

Thanks bonbon for the idea. Before, if you est_spawn'd a player they would be slayed.


User avatar
Professor
Professor
Profile

Posts: 1803
Location:
Belgique (Liège-Huy)
 
New postPosted: 2008-07-30, 11:27 pm 

It's doesn't work :S

Bye

_________________
Cordialement, Messiah93.

Image
Image
messiah93.com


User avatar
Mentat
Mentat
Profile

Posts: 4782
Location:
C:/Program Files/Bonbon/Bonbon.exe
 
New postPosted: 2008-07-30, 11:41 pm 

*bonbon points to sig

_________________
SicmanAdrian wrote:
I don't think it is possible but maybe SuperDave could try?

abcdefghijklmnopqrstuvwxyz
"It doesn't work" doesn't help us out, help us help you, be more specific!
Remember, when posting non Python code, post in the ES 1.x discussion forum, you'll get better help!
SuperDave wrote:
It's very difficult to see errors in that script because it is some of the worst looking code I have ever seen. And I've seen bonbon's code

Please do not PM for free private scripts/help!


User avatar
Professor
Professor
Profile

Posts: 1803
Location:
Belgique (Liège-Huy)
 
New postPosted: 2008-07-31, 1:29 am 

I don't say It doesn't work, I say It'S doesn't work :P

No, but, i'm french, my english is bad, if I make a description of the problem, you don't understand :P

I try ^^ :

The script is loaded, the round start, I retry, I join T or CT, i'm alive ^^ I'm not slayed :S

Srry for my bad english :p

Thx

bye

_________________
Cordialement, Messiah93.

Image
Image
messiah93.com


User avatar
Guru
Guru
Profile

Posts: 1505
 
New postPosted: 2008-07-31, 1:43 am 

This script only takes affect if you have died during the round.

_________________
Addons: 1v1 Sound || Anti Retry || Bombsite Limiter || GunGame5 || GunGame5 Cheap Equip || GunGame5 Join Message || GunGame5 Knife/Nade Bonus || GunGame5 Multi Nade || GunGame5 Winner Display || GunGame5 Winner Menu || Mani Fire Fix || Reinforcement Waves || Tagme Python


User avatar
Professor
Professor
Profile

Posts: 1803
Location:
Belgique (Liège-Huy)
 
New postPosted: 2008-07-31, 1:48 am 

Ho yes... i'm stupid >.<

Thx ;)

_________________
Cordialement, Messiah93.

Image
Image
messiah93.com


User avatar
Mentat
Mentat
Profile

Posts: 4782
Location:
C:/Program Files/Bonbon/Bonbon.exe
 
New postPosted: 2008-08-09, 1:15 pm 

Also, you should add an option for if a server's running zombiemod, or is blocking the command "kill". An alteration could be like this

PYTHON:
    import es



    info = es.AddonInfo()

    info.name = 'Anti Retry'

    info.version = '1.0.1'

    info.url = 'http://forums.mattie.info/cs/forums/viewtopic.php?t=24766'

    info.basename = 'anti_retry'

    info.author = 'Sc0pE'

    es.ServerVar('anti_retry_ver',info.version,' By: Sc0pE').makepublic()



    dead_players = []

    disc_players = []

    enabled = 1



    def load():

        es.msg('#multi', '#green[#lightgreenAnti Retry#green]#default Loaded')



    def unload():

        es.msg('#multi', '#green[#lightgreenAnti Retry#green]#default Unloaded')



    def round_end(ev):

        global dead_players, disc_players, enabled

        enabled = 0

        dead_players = []

        disc_players = []



    def round_start(ev):

        global enabled

        enabled = 1



    def player_disconnect(ev):

        if enabled:

            if ev['reason'] == 'Disconnect by user.':

                disc_players.append(ev['es_steamid'])



    def player_death(ev):

        if enabled:

            dead_players.append(ev['es_steamid'])



    def player_spawn(ev):

        userid = ev['userid']

        if not es.getplayerprop(userid, "CBasePlayer.pl.deadflag"):

            steamid = ev['es_steamid']

            if steamid in dead_players and steamid in disc_players:

                playerlib.getPlayer(ev['userid']).set('health', 0)

                es.server.queuecmd('es_xfire %s !self ignite'%ev['userid'])

                es.msg('#multi', '#green[#lightgreenAnti Retry#green] #lightgreen%s#default was slayed for playing the same round twice' % ev['es_username'])

_________________
SicmanAdrian wrote:
I don't think it is possible but maybe SuperDave could try?

abcdefghijklmnopqrstuvwxyz
"It doesn't work" doesn't help us out, help us help you, be more specific!
Remember, when posting non Python code, post in the ES 1.x discussion forum, you'll get better help!
SuperDave wrote:
It's very difficult to see errors in that script because it is some of the worst looking code I have ever seen. And I've seen bonbon's code

Please do not PM for free private scripts/help!


User avatar
Mentat
Mentat
Profile

Posts: 4249
Location:
Graveyard...?

Steam Friends Name: undead46
 
New postPosted: 2008-08-09, 5:06 pm 

Bonbon, I don't think setting their health to 0 will work. You would have to use damage.

_________________
Venjax wrote:
Try again grasshopper.

Image


User avatar
Mentat
Mentat
Profile

Posts: 4782
Location:
C:/Program Files/Bonbon/Bonbon.exe
 
New postPosted: 2008-08-09, 5:36 pm 

Ummmm I don't think you've looked at all of my code >.<

and no, damage wouldn't work on Zombie Mod

_________________
SicmanAdrian wrote:
I don't think it is possible but maybe SuperDave could try?

abcdefghijklmnopqrstuvwxyz
"It doesn't work" doesn't help us out, help us help you, be more specific!
Remember, when posting non Python code, post in the ES 1.x discussion forum, you'll get better help!
SuperDave wrote:
It's very difficult to see errors in that script because it is some of the worst looking code I have ever seen. And I've seen bonbon's code

Please do not PM for free private scripts/help!


User avatar
Guru
Guru
Profile

Posts: 1505
 
New postPosted: 2008-08-14, 2:39 pm 

Anti Retry Updated!
Version: 1.0.2
Updated on: 2008-08-14 15:38:06
Version Notes:
Uses a new (improved) method of slaying.


User avatar
Newbie
Profile

Posts: 63
Location:
Hannover
 
New postPosted: 2008-10-04, 12:39 am 

Could you add the feature thate the Plugin saves player scores when they leave a map then restores their scores if they then rejoin on the same map. Also include cash. If a map is restarted via mp_restartgame the saved scores are reset.
If you then also add a menu for admins where they can enable or disable the several options like slay or not this plugin will be perfect

_________________
Live and Let Die


User avatar
Newbie
Profile

Posts: 70
Location:
class LosNir extends Life("Israel", "Nir Azuelos", 17);
 
New postPosted: 2008-10-04, 8:08 am 

undead wrote:
Bonbon, I don't think setting their health to 0 will work. You would have to use damage.


It works like a charm, and you get a really nice effect to (if using mani) :P

_________________
Nir Azuelos.
Image


User avatar
New User
Profile

Posts: 6
 
New postPosted: 2008-10-05, 12:27 pm 

Hello everybody, its my first post on this forum.
I was very interested in your script, but I want some clarifications :)

Will this script work on the server where all players have the same Steam ID? (Dont ask me why :D )

I'm not a programmer and I barely can understand anything in programming, but as I looked through the code I found strings containing:

Code:
  steamid = ev['es_steamid']


So as everybody on my server have the same steam ID and if it is based on steam ID in my opinion there may occur several moments:

1) all players are slayed (because of the match of steam IDs)
2) script crashes
3) Script doesn't work at all

Yes I know you will tell me just to load it and try, but I'm asking this only because I'm using Evenscripts without Python support so I will have to upgrade them too.

Thanks in advance.


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group