Raised This Month: $ Target: $400
 0% 

JB Shot4Shot


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 01-20-2014 , 18:31   Re: JB Shot4Shot
Reply With Quote #1

I'm glad to see your trying to learn.

When you give the player a weapon use cs_set_weapon_ammo() to set the clip ammo back to 1 or 0.
For a shot4shot system, the next step is to block a player's weapon from firing so he can't cheat - using m_flNextPrimaryAttack.
You should then register FM_CmdStart and use the UC Handle to detect a shot, in which you would give the player 1 backpack ammo ( so he will reload ), block his weapon from firing with the above method, and then allow the other player to fire.
When the shot4shot is over, you should unregister FM_CmdStart and allow both players to fire again.

Have a go at that.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.

Last edited by hornet; 01-20-2014 at 18:32.
hornet 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 10:15.


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