Raised This Month: $51 Target: $400
 12% 

Lose frags for TK


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
neverminde
Senior Member
Join Date: Feb 2011
Location: St.Piter
Old 06-08-2011 , 16:12   Lose frags for TK
Reply With Quote #1

Lose frags for TK

Current version
1.0c

Short Description
Then somebody get a team kill, he lose some frags.

Cvars
amx_frags_tk - Lost frags for teamkill.

//amx_frags_tk 10 = amx_frags_tk -10 ( the same as )
// defualt:10
// 0 -> nothing lose

Sorry, if it have already been. if it so, delete it please. I made it by myself.
Attached Files
File Type: sma Get Plugin or Get Source (frags_tk.sma - 601 views - 738 Bytes)
neverminde is offline
neverminde
Senior Member
Join Date: Feb 2011
Location: St.Piter
Old 06-08-2011 , 16:15   Re: Lose frags for TK
Reply With Quote #2

Oh no.
Modification: ALL Category: Admin Commands
should be
Modification: Counter-Strike Category: Fun Stuff
neverminde is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-08-2011 , 18:02   Re: Lose frags for TK
Reply With Quote #3

Cache the value of read_data(1) and read_data(2) in variables.
and if this is gonna be cs only, you should include cstrike and use cs_get_user_team()
__________________

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 06-08-2011 , 18:31   Re: Lose frags for TK
Reply With Quote #4

Quote:
Originally Posted by drekes View Post
and if this is gonna be cs only, you should include cstrike and use cs_get_user_team()
It's fine how it is.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-08-2011 , 19:13   Re: Lose frags for TK
Reply With Quote #5

I though get_user_team() could return false results on counter-strike.

EDIT: read it here a while ago: https://forums.alliedmods.net/showpo...15&postcount=6
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.

Last edited by drekes; 06-08-2011 at 19:15.
drekes is offline
Send a message via MSN to drekes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-08-2011 , 19:25   Re: Lose frags for TK
Reply With Quote #6

Quote:
Originally Posted by drekes View Post
I though get_user_team() could return false results on counter-strike.

EDIT: read it here a while ago: https://forums.alliedmods.net/showpo...15&postcount=6
That's only when a player switches team while alive, and it kills the player.
The player's new team is not updated to the get_user_team() value until the next round (or maybe next spawn, not exactly sure).
In this case, you are only checking when players kill each other, so get_user_team() is fine.

Another example of people giving advice about things they don't know about.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-08-2011 , 19:57   Re: Lose frags for TK
Reply With Quote #7

My bad, sorry
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-04-2011 , 10:17   Re: Lose frags for TK
Reply With Quote #8

Kind of redundant and doesn't serve real purpose.

Unapproved.
__________________
Arkshine 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 04:19.


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