Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Plugin generated by AMXX-Studio */
- #include < amxmodx >
- #include < fakemeta >
- #include < ColorChat >
- #include < hamsandwich >
- #include < cstrike >
- #include < fun >
- #define PLUGIN "Menu "
- #define VERSION "1.0"
- #define AUTHOR "@.TheBomb`"
- #define PREFIX "Titaniums"
- public plugin_init() {
- register_plugin(PLUGIN, VERSION, AUTHOR)
- set_task(12.0, "amirshai", _,_,_, "b");
- register_clcmd("say /box","Menu");
- register_logevent("evRound", 2, "1=Round_Start");
- RegisterHam(Ham_TakeDamage, "player", "FwDTakeDamage");
- }
- public FwDTakeDamage(victim, inflictor, killer, Flot:AmirShaiGever, AmirShaiBatata)
- {
- if( killer != victim && cs_get_user_team( killer ) == CS_TEAM_CT && cs_get_user_team( victim ) == CS_TEAM_CT) return HAM_SUPERCEDE
- return HAM_IGNORED
- }
- public evRound() server_cmd("mp_friendlyfire 0")
- public Menu(id) {
- if(get_user_team(id) ==2)
- {
- new szItem[255]
- formatex(szItem, charsmax(szItem), "\yTitaniums\d -\r Box Menu ");
- new mMenu = menu_create("Main Help","MenuHandler");
- formatex(szItem, charsmax(szItem), "Box Start");
- menu_additem(mMenu, szItem);
- formatex(szItem, charsmax(szItem), "Box Stop");
- menu_additem(mMenu, szItem);
- formatex(szItem, charsmax(szItem), "Reset Health \r(\y Terrorist\r )");
- menu_additem(mMenu, szItem);
- menu_display(id, mMenu, 0);
- }
- else
- ColorChat(id, NORMAL, "^4(^1 %s^4 )^1 You Have^3 No Acces^1 To This Command", PREFIX)
- }
- public MenuHandler(id,menu,item, AmirBenZona, AmirKelevYam, AmirMrKrab)
- {
- switch(item)
- {
- case 0:
- {
- Menu(id)
- server_cmd( "mp_friendlyfire 1" );
- ColorChat(0, NORMAL, "Counter Terrorist:^3 %s^1 Started The^4 Box",szName(id));
- ColorChat(0, NORMAL, "!!! ׳™׳‘׳×׳›׳ ׳™׳© ׳¨׳™׳׳ ׳×׳ ׳’׳•׳¨׳”׳")
- set_hudmessage( random_num(0, 255), random_num(0, 255), random_num(0, 255), -1.0, 0.01)
- show_hudmessage(0, "Counter Terrorist: %s Started The Box", szName(id))
- }
- case 1:
- {
- Menu(id)
- server_cmd( "mp_friendlyfire 0" );
- ColorChat(0, NORMAL, "Counter Terrorist:^3 %s^1 Stoped The^4 Box",szName(id));
- set_hudmessage( random_num(0, 255), random_num(0, 255), random_num(0, 255), -1.0, 0.01)
- show_hudmessage(0, "Counter Terrorist: %s Stoped The Box", szName(id))
- }
- case 2:
- {
- Menu(id)
- new players[ 32 ], pnum;
- get_players( players, pnum, "ae", "TERRORIST" );
- for( new i; i < pnum; i++ )
- set_user_health( players[ i ], 100 );
- ColorChat( 0, RED, "^x03[%s]^x04 %s^x01 has reset ^4terrorist's health^1.", PREFIX, szName(id) );
- }
- }
- }
- public amirshai()
- {
- ColorChat(0, NORMAL, "^4http://i.imgur.com/FGP5DUD.png^1 ׳×׳™׳“׳¢׳׳‘ ׳”׳ ׳•׳׳× ׳׳׳ ׳׳•׳¨׳™׳¢׳‘ ׳™׳‘׳×׳›׳ ׳™׳© ׳¨׳™׳׳");
- }
- stock szName( client )
- {
- static Name[ 55 ];
- get_user_name( client, Name, charsmax( Name ) );
- return Name;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement