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

1 shot 1 kill


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
czcorum
New Member
Join Date: Aug 2011
Old 03-10-2012 , 13:08   1 shot 1 kill
Reply With Quote #1

Hi, i need plugin for 1 shot 1 kill mod to CS 1,6.

Players will take some guns ( AK47,M4A1 or something from cvars) with one bullet in magazine... everyone have 10hp ( same in cvars)... when player kill someone he get one bullet back.. when he miss.. he must reload magazine... of course with ultimate ammo.

Thank you
czcorum is offline
Old 03-12-2012, 05:17
czcorum
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
czcorum
New Member
Join Date: Aug 2011
Old 04-11-2012 , 05:23   Re: 1 shot 1 kill
Reply With Quote #2

Hmm nothing? Itīs mix of plugins from gungame, aim, DM

Last edited by czcorum; 04-11-2012 at 05:23.
czcorum is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 04-11-2012 , 05:43   Re: 1 shot 1 kill
Reply With Quote #3

okay
Code:
#include <amxmodx> #include <hamsandwich> #define PLUGIN   "Growbar Gibs" #define AUTHOR   "LetiletiLepestok" #define VERSION   "1.0" new gMaxPlayers public plugin_init() {    register_plugin(PLUGIN, VERSION, AUTHOR)    RegisterHam(Ham_TraceAttack, "player", "fw_TraceAttack")    gMaxPlayers = get_maxplayers() } public fw_TraceAttack(victim, inflictor, Float:damage, Float:direction[3], traceresult, damagebits) {    if(1 <= inflictor <= gMaxPlayers)       SetHamParamFloat(3, 1000.0)    return HAM_IGNORED }

PS: dont kill me
__________________
The functional way is the right way

Last edited by GordonFreeman (RU); 04-11-2012 at 05:43.
GordonFreeman (RU) is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 04-11-2012 , 06:31   Re: 1 shot 1 kill
Reply With Quote #4

Since he said "one shot one kill", I think you should hook Ham_TakeDamage instead.

Also, returning HAM_IGNORED is not required here.
__________________
You can do anything you set your mind to, man.

Devil259 is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 04-11-2012 , 07:08   Re: 1 shot 1 kill
Reply With Quote #5

Quote:
Originally Posted by Devil259 View Post
Since he said "one shot one kill", I think you should hook Ham_TakeDamage instead.

Also, returning HAM_IGNORED is not required here.
i can add DMG_BULLET check
also is not my code
__________________
The functional way is the right way
GordonFreeman (RU) is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 04-11-2012 , 08:09   Re: 1 shot 1 kill
Reply With Quote #6

Yes you can, but it's useless to hook TraceAttack then check if damage type is DMG_BULLET.
__________________
You can do anything you set your mind to, man.

Devil259 is offline
czcorum
New Member
Join Date: Aug 2011
Old 04-12-2012 , 03:39   Re: 1 shot 1 kill
Reply With Quote #7

OK i will try that today.
czcorum is offline
czcorum
New Member
Join Date: Aug 2011
Old 04-23-2012 , 12:54   Re: 1 shot 1 kill
Reply With Quote #8

Itīs working but. players donīt have only one bullet in magazine, and its really problem
czcorum is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-24-2012 , 11:58   Re: 1 shot 1 kill
Reply With Quote #9

Search for ConnorMcLeod's Weapons MaxClip
__________________
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 12:08.


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