Raised This Month: $32 Target: $400
 8% 

[HELP] MIX


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
extream87
Senior Member
Join Date: Aug 2011
Old 05-09-2012 , 03:53   [HELP] MIX
Reply With Quote #1

Code:
#include <amxmodx> 
#include <amxmisc> 
#include <fun> 
#include <fakemeta> 
 
#define PLUGIN "KnifeRound" 
#define VERSION "1.0" 
#define AUTHOR "extream87" 
#define ACCESS_LEVEL ADMIN_LEVEL_C 
 
new bool:g_knife 
 
public plugin_init() 
{ 
register_plugin(PLUGIN, VERSION, AUTHOR) 
 
register_message(get_user_msgid("StatusIcon"), "Message_StatusIcon") 
register_logevent("logevent_round_end", 2, "1=Round_End") 
} 
 
public logevent_round_end() 
{ 
if (g_knife == true) 
g_knife = false 
} 
 
public Message_StatusIcon(iMsgId, iMsgDest, id) 
{ 
if (g_knife == true) 
{ 
static szIcon[8]; 
get_msg_arg_string(2, szIcon, charsmax(szIcon)); 
if( equal(szIcon, "buyzone") ) 
{ 
if( get_msg_arg_int(1) ) 
{ 
set_pdata_int(id, 235, get_pdata_int(id, 235) & ~(1<<0)); 
return PLUGIN_HANDLED; 
} 
} 
} 
return PLUGIN_CONTINUE; 
} 
 
public RestartRound(id) 
{ 
if (get_user_flags(id) & ACCESS_LEVEL) 
{ 
server_cmd( "sv_restart 1" ) 
server_cmd("mp_freezetime 0") 
} 
} 
 
public Knife_Round(id) 
{ 
if (get_user_flags(id) & ACCESS_LEVEL) 
{ 
g_knife = true; 
set_task(1.0, "RestartRound") 
set_task(3.0, "block_weapons_all") 
set_task(4.0, "knife_msg") 
 
} 
} 
 
public block_weapons_all() 
{ 
new plist_public[32], pnum_public 
get_players(plist_public, pnum_public) 
for (new i = 0; i < pnum_public; i++) { 
if (is_user_connected(plist_public[i]) == 1 && is_user_alive(plist_public[i]) == 1){ 
strip_user_weapons(plist_public[i]) 
give_item(plist_public[i], "weapon_knife") 
give_item(plist_public[i], "item_kevlar")
} 
} 
} 
 
public knife_msg() 
{ 
client_print(0,print_chat,">>>>>>>> KNIFE ROUND!! <<<<<<<<") 
client_print(0,print_chat,">>>>>>>> KNIFE ROUND!! <<<<<<<<") 
client_print(0,print_chat,">>>>>>>> KNIFE ROUND!! <<<<<<<<") 
client_print(0,print_chat,">>>>>>>> KNIFE ROUND!! <<<<<<<<") 
client_print(0,print_chat,">>>>>>>> KNIFE ROUND!! <<<<<<<<") 
}
I need a code for when 10 players are on the server:
- Menu choice of captain.
- Choice of after Captain Captain chooses four players each.
- When 10 players are chosen start kniferound

Last edited by extream87; 05-09-2012 at 06:03.
extream87 is offline
Silent9681
Member
Join Date: Jan 2012
Location: Hungary
Old 05-09-2012 , 04:12   Re: [HELP] MIX
Reply With Quote #2

XDDDDDDDDDDDD

Use
PHP Code:
 code 
to highlighting xDDDDDDD
__________________
Sorry for my bad english
Hungarian/Magyar forum:
http://amxmodx.crys.hu/site/forum/

Last edited by Silent9681; 05-09-2012 at 04:14.
Silent9681 is offline
Send a message via MSN to Silent9681
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 05-09-2012 , 04:16   Re: [HELP] MIX
Reply With Quote #3

Nice highlighting
__________________
kiki33hun is offline
extream87
Senior Member
Join Date: Aug 2011
Old 05-09-2012 , 06:03   Re: [HELP] MIX
Reply With Quote #4

Updated
extream87 is offline
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 00:49.


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