Raised This Month: $32 Target: $400
 8% 

[CSS] Rebel is attacking xy


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
2NASTY4U
Senior Member
Join Date: Mar 2014
Old 03-11-2014 , 19:07   [CSS] Rebel is attacking xy
Reply With Quote #1

Hi,

I need a little help. There is a eventscripts plugin, with the following code:

Code:
import es, playerlib

##################################################
############### Config ###########################
# Use True or False !
rebel_getred = True # Make Rebels red?
rebel_announce=True # Announce when a Rebel attacks a CT?
##################################################


def load():
    msg('#green[Rebel] #lightgreenActivated!')
    
def unload():
    msg('#green[Rebel] #lightgreenDeactivated!')
    
def player_hurt(ev):
    if ev['es_userteam'] == '3' and ev['es_attackerteam'] == '2':
        att = playerlib.getPlayer(ev['attacker'])
        pla = playerlib.getPlayer(ev['userid'])
        if rebel_getred == False:
             att.setColor(255, 0, 0, 255)
        if rebel_announce == True:
             msg('#green[Rebel] #default%s #lightgreenattackiert #green%s' % (att.name, pla.name))
             
def msg(txt):
    for uid in es.getUseridList():
          es.tell(uid, '#multi', txt)
I have dropped eventscripts from my jailserver now, but I need this little plugin. If any T is attacking a CT, the plugin should write in chat "[Rebel] T-Name attackiert CT-Name" (attackiert is the german word for "is attacking"). I am already using the rebel announcer in sm_hosties2, but this plugin is just writing one message (xy is now a rebel) in chat per round.

Best regards
2NASTY4U
2NASTY4U is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 03-12-2014 , 11:54   Re: [CSS] Rebel is attacking xy
Reply With Quote #2

Post in the Suggestions/Requests forum in the SourceMod section. This is for AMXModX
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-12-2014 , 11:56   Re: [CSS] Rebel is attacking xy
Reply With Quote #3

Quote:
Originally Posted by joshknifer View Post
Post in the Suggestions/Requests forum in the SourceMod section. This is for AMXModX
No, don't do this. This is the only section this post fits
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 03-12-2014 , 12:02   Re: [CSS] Rebel is attacking xy
Reply With Quote #4

Why is that yami? He is requesting a plugin that announces when Ts are attacking CTs in Jailbreak correct?

Quote:
but I need this little plugin. If any T is attacking a CT, the plugin should write in chat "[Rebel] T-Name attackiert CT-Name" (attackiert is the german word for "is attacking"). I am already using the rebel announcer in sm_hosties2, but this plugin is just writing one message (xy is now a rebel) in chat per round.
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-12-2014 , 13:13   Re: [CSS] Rebel is attacking xy
Reply With Quote #5

Because he posted an EventScripts plugin and asked for assistance on that? At least that is how I understood it
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 03-12-2014 , 13:22   Re: [CSS] Rebel is attacking xy
Reply With Quote #6

I read: I want this eventscript turned into a normal pluigin.
__________________
Black Rose is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-12-2014 , 14:03   Re: [CSS] Rebel is attacking xy
Reply With Quote #7

Quote:
Originally Posted by Black Rose View Post
I read: I want this eventscript turned into a normal pluigin.
Now that I have re-read it, I agree. Moved (again)
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 03-12-2014 , 17:53   Re: [CSS] Rebel is attacking xy
Reply With Quote #8

Done
Attached Files
File Type: sp Get Plugin or Get Source (rebels.sp - 251 views - 889 Bytes)
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
2NASTY4U
Senior Member
Join Date: Mar 2014
Old 03-16-2014 , 09:52   Re: [CSS] Rebel is attacking xy
Reply With Quote #9

Quote:
Originally Posted by joshknifer View Post
[...] He is requesting a plugin [...]
Quote:
Originally Posted by YamiKaitou View Post
Because he posted an EventScripts plugin and asked [...]
He? Thanks.

Quote:
Originally Posted by Franc1sco View Post
Done
Oh damn. You are great! Muchas gracias, seņor Franc1sco. This is exactly what I was searching for.
2NASTY4U is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode