Raised This Month: $ Target: $400
 0% 

CT teamkill


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FlyingHorse
Senior Member
Join Date: Apr 2010
Location: Under your bed.
Old 05-11-2010 , 16:36   CT teamkill
Reply With Quote #1

Hello. I'm still learning coding. and i have alot to learn, But i don't know how to make this, I need a plugin for my jailbreak server that enables teamkill for CT's only.. could someone please give me the code for this
FlyingHorse is offline
Send a message via Skype™ to FlyingHorse
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-11-2010 , 16:48   Re: CT teamkill
Reply With Quote #2

Code:
#include <amxmodx> #include <hamsandwich> #include <cstrike> #define IsPlayer(%1)    (1<=%1<=g_maxplayers) new g_maxplayers public plugin_init() {     register_plugin( "Team Kill - CT Only", "1.0", "Wrecked" )         RegisterHam( Ham_TakeDamage, "player", "HamTakeDamagePre", 0 )         set_pcvar_num( get_cvar_pointer( "mp_friendlyfire" ), 1 )         g_maxplayers = get_maxplayers() } public HamTakeDamagePre( victim, inflictor, attacker, Float:dmg, dmgbits ) {     return ( IsPlayer( attacker ) && ( cs_get_user_team( victim ) == CS_TEAM_T ) && ( cs_get_user_team( attacker ) == CS_TEAM_T ) )         ? HAM_SUPERCEDE;         : HAM_IGNORED; }
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
FlyingHorse
Senior Member
Join Date: Apr 2010
Location: Under your bed.
Old 05-11-2010 , 16:49   Re: CT teamkill
Reply With Quote #3

Thank you i'll try it
FlyingHorse is offline
Send a message via Skype™ to FlyingHorse
FlyingHorse
Senior Member
Join Date: Apr 2010
Location: Under your bed.
Old 05-31-2010 , 13:51   Re: CT teamkill
Reply With Quote #4

Ur code didnt work wrecked.. Didnt try it til now.. cant even compile it <.<
FlyingHorse is offline
Send a message via Skype™ to FlyingHorse
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-31-2010 , 13:59   Re: CT teamkill
Reply With Quote #5

try removing the semicolons here:

? HAM_SUPERCEDE
: HAM_IGNORED
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-31-2010 , 17:28   Re: CT teamkill
Reply With Quote #6

Quote:
Originally Posted by drekes View Post
try removing the semicolons here:

? HAM_SUPERCEDE
: HAM_IGNORED
Only the first needed to be removed.

Code:
#include <amxmodx> #include <hamsandwich> #include <cstrike> #define IsPlayer(%1)    (1<=%1<=g_maxplayers) new g_maxplayers public plugin_init() {     register_plugin( "Team Kill - CT Only", "1.0", "Wrecked" )         RegisterHam( Ham_TakeDamage, "player", "HamTakeDamagePre", 0 )         set_pcvar_num( get_cvar_pointer( "mp_friendlyfire" ), 1 )         g_maxplayers = get_maxplayers() } public HamTakeDamagePre( victim, inflictor, attacker, Float:dmg, dmgbits ) {     return ( IsPlayer( attacker ) && ( cs_get_user_team( victim ) == CS_TEAM_T ) && ( cs_get_user_team( attacker ) == CS_TEAM_T ) )         ? HAM_SUPERCEDE         : HAM_IGNORED; }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 03:34.


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