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

Anti Gangbang Protection


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Aqwire
New Member
Join Date: Apr 2016
Location: Denmark
Old 04-26-2016 , 13:14   Anti Gangbang Protection
Reply With Quote #1

I'm looking for a simple plugin for my 35hp knife CS:GO server, so when you kill someone you get 1 second protection + a color to show people you have protection.

I already have a plugin that does the job, but it was made for another server that is now closed and sometimes it bugs after the 3rd kill and doesnt re-add the protection to the player.
It also posts a message in the chat.

I have attached the plugin I already have.

Thanks in advance!
Attached Files
File Type: smx gangbang.smx (7.6 KB, 163 views)

Last edited by Aqwire; 04-26-2016 at 13:19. Reason: Didnt have CS:GO in the post
Aqwire is offline
Artifact
Veteran Member
Join Date: Jul 2010
Old 04-26-2016 , 13:37   Re: Anti Gangbang Protection
Reply With Quote #2

SourceMod section
__________________
Artifact is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 04-26-2016 , 13:45   Re: Anti Gangbang Protection
Reply With Quote #3

Sorry , didn't read attentively, It's cs:Go server , i made it for cs 1.6, anyway i won't delete the post maybe someone needs this plugin for cs 1.6.


PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

#define THICKNESS 20 //Change it to another value if you think protection colour is not enough or too thick.
#define PROTECTION_TIME 1.0 //Change it if you want to make protection stay longer or less

public plugin_init()
{
   
register_plugin("Spawn Protection""1.0""siriusmd99"// Plugin Information
   
register_event("DeathMsg""event_death""a""1>0"
}

public 
event_death(){

  new 
i_Killer read_data(1
  if(
is_user_connected(i_Killer) && is_user_alive(i_Killer) && i_Killer != read_data(2))
  {
   
   
set_user_godmode(i_Killer1)

   switch(
cs_get_user_team(i_Killer)){
   case 
CS_TEAM_T set_user_rendering(i_KillerkRenderFxGlowShell25500kRenderNormalTHICKNESS)
   case 
CS_TEAM_CT set_user_rendering(i_KillerkRenderFxGlowShell00255kRenderNormalTHICKNESS)
   }

   
set_task(PROTECTION_TIME"Remove_Protection"i_Killer)
   }  

}

public 
Remove_Protection(id
{
   if(!
is_user_connected(id))
   {
      return 
PLUGIN_HANDLED
   
}

   else
   {
      
set_user_godmode(id0)
      
set_user_rendering(idkRenderFxGlowShell00,0kRenderNormalTHICKNESS)
      return 
PLUGIN_HANDLED
   
}

   return 
PLUGIN_HANDLED


Last edited by siriusmd99; 04-26-2016 at 13:47.
siriusmd99 is offline
Aqwire
New Member
Join Date: Apr 2016
Location: Denmark
Old 04-26-2016 , 13:56   Re: Anti Gangbang Protection
Reply With Quote #4

Quote:
Originally Posted by Artifact View Post
SourceMod section
Sh*t I didn't even notice I wasnt in the Sourcemod section, sorry guys
Aqwire is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 04-26-2016 , 14:11   Re: Anti Gangbang Protection
Reply With Quote #5

Stop using models of women in your server, that should fix the problem.
__________________
Jhob94 is offline
SkumTomteN
Veteran Member
Join Date: Oct 2013
Location: Asgard
Old 04-26-2016 , 14:17   Re: Anti Gangbang Protection
Reply With Quote #6

Quote:
Originally Posted by Jhob94 View Post
Stop using models of women in your server, that should fix the problem.
Yeah, goldsrc can deliever sometimes.

__________________
Contact: Steam
Videos: Youtube
SkumTomteN 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 20:23.


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