Monthly Target: $400 Donations: $282
 70% 

Knife Fight 1.5 (09/10/09 Last Update)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Brad (55)
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 04-12-2009 , 15:11   Knife Fight 1.5 (09/10/09 Last Update)
Reply With Quote #1

Knife Fight 1.5
by alan_el_more

Description:
When you are admin and wrote in the say /kf, all players threw their weapons and may not take any of the floor. When you write again /kf, will turn off the Knife Fight.

Cvar/Command:
say /kf - Active/Desactive Knife Fight
kf_enable <1> - Enable/disable the plugin
kf_showhud <1> - Enable/disable hud show on/off Knife Fight
kf_offnoadm <1> - Disable Knife Fight when no admins online

Modules:
Fakemeta
Fun
Hamsandwich

Changelog:

1.0 - 04 / 10 / 09 - First Release
1.1 - 04 / 19 / 09 - Corrected some small errors
1.2 - 06 / 09 / 09 - Fixed some bugs and block buy
1.3 - 06 / 13 / 09 - Save the weapons before throw and give them
1.4 - 08 / 08 / 09 - Removed unnecessary things and optimized code
1.5 - 09 / 10 / 09 - Block buy fixed (thanks fezh), added 2 new cvars, fix some little bugs

Credits:
Arkshine, Exolent[jNr], Bugsy, Brad & fezh

Servers running this plugin:
Here

v 1.1: +70 views
v 1.2: +24 views
v 1.3: +70 views
v 1.4: +450 views :O

Total = +610 views
Attached Files
File Type: sma Get Plugin or Get Source (Knife_Fight.sma - 6484 views - 5.0 KB)
File Type: txt Knife_Fight.txt (1.1 KB, 3267 views)
__________________

Last edited by alan_el_more; 09-16-2009 at 10:29. Reason: Update version
alan_el_more is offline
glorian
BANNED
Join Date: Mar 2009
Location: Surfplace.se
Old 04-12-2009 , 15:13   Re: Knife Fight
Reply With Quote #2

That's look nice
glorian is offline
Send a message via MSN to glorian
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 04-12-2009 , 15:21   Re: Knife Fight
Reply With Quote #3

- Cache is_user_connected and is_user_bot
- Maybe save the weapons of the players and regive them on next round? :O
__________________
In Flames we trust!
Nextra is offline
Send a message via ICQ to Nextra
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 04-12-2009 , 15:22   Re: Knife Fight
Reply With Quote #4

You have defined

PHP Code:
#define fm_create_entity(%1) engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, %1)) 
and you have put

PHP Code:
ent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocStringitem)) 
then, may also put directly ---->

PHP Code:
ent fm_create_entity(item
__________________
Find my plugins here..

Ex - Spanish Moderator.

Last edited by Starsailor; 04-12-2009 at 15:28.
Starsailor is offline
xPaw
AMX Mod X Moderator
Join Date: Jul 2008
Old 04-12-2009 , 15:24   Re: Knife Fight
Reply With Quote #5

Code:
[ru]
HUD_FK = Vojna na nozhah !!!
HUD_ENABLE = %s aktiviroval vojnu na nozhah!
ALREADY_ENABLE = Vojna na nozhah aktivirovana!
CMD_NOT = U tebja net prav chtoby ispol'zovat' jetu komandu.
@Starsailor: why?
xPaw is offline
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 04-12-2009 , 15:29   Re: Knife Fight
Reply With Quote #6

@xPaw read again
__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 04-12-2009 , 15:33   Re: Knife Fight
Reply With Quote #7

Quote:
[nl]
HUD_FK = Messen Gevecht!!!
HUD_ENABLE = %s heeft het messengevecht aangezet
ALREADY_ENABLE = Messengevecht is al aangezet
CMD_NOT = Je hebt niet genoeg rechten voor dit.
And [en] is rong:

Quote:
[en]
HUD_FK = Knife Fight !!!
HUD_ENABLE = %s has actived the Knife Fight
ALREADY_ENABLE = Knife Fight is active
CMD_NOT = You dont have anought rights for this.
---->

Quote:
[en]
HUD_FK = Knife Fight!!!
HUD_ENABLE = %s has actived the Knife Fight
ALREADY_ENABLE = Knife Fight is already active
CMD_NOT = You dont have enought rights for this.
__________________

Last edited by crazyeffect; 04-12-2009 at 15:38.
crazyeffect is offline
Send a message via MSN to crazyeffect
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 04-12-2009 , 15:46   Re: Knife Fight
Reply With Quote #8

thanks to all

@ Nextra
How do I do that?
__________________
alan_el_more is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 04-12-2009 , 15:46   Re: Knife Fight
Reply With Quote #9

If you want to be picky:

Code:
[en]
HUD_FK = Knife Fight!!!
HUD_ENABLE = %s has actived the Knife Fight
ALREADY_ENABLE = Knife Fight is already active
CMD_NOT = You dont have enought rights for this.

Code:
[en]
HUD_FK = Knife Fight!!!
HUD_ENABLE = %s has activated the Knife Fight
ALREADY_ENABLE = Knife Fight is already active
CMD_NOT = You dont have enough rights for this.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 04-12-2009 , 15:54   Re: Knife Fight
Reply With Quote #10

Quote:
Originally Posted by alan_el_more View Post
thanks to all

@ Nextra
How do I do that?
PHP Code:
new bool:g_IsBot[33], g_IsConnected[33]

//...

public client_putinserverid )
{
    
g_IsConnected[id] = true;

    if( 
is_user_botid ) )
        
g_IsBot[id] = true;
}

public 
client_disconnectid )
    
g_IsBot[id] = g_IsConnected[id] = false
Then replace every is_user_connected and is_user_bot (this can be a biggy as you use both of these in an entity touch hook).
__________________
In Flames we trust!
Nextra is offline
Send a message via ICQ to Nextra
Reply


Thread Tools
Display Modes

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 06:32.


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