Raised This Month: $ Target: $400
 0% 

[EDIT] This Plugin (Excerpt from the idea)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sepsis
Senior Member
Join Date: Jul 2011
Old 08-07-2011 , 04:09   [EDIT] This Plugin (Excerpt from the idea)
Reply With Quote #1

Hi guys, This code add new menu?
  • 300 Spartan Mode (Open/Close) --> CT & T give Shield + deagle.
  • CT God Mode "Open/Close"
  • Give T Glow (random colors) "Open/close"
  • Zombie Mode "Open/Close" PS: CT zombies seem (models/player/CT_Zombie/CT_Zombie.mdl) ---> CT 2500 HP only knife = give T weapon m4a1 + Deagle and Dark a map , give CT nightvision )
  • Shark Mode "Open/Close" ( Only CT noclip , give T weapons m4a1+ deagle)
  • and last ----> CT's give 10 jb points --> "T" P.S = say /givejb

    Thanx

PHP Code:
#include < amxmodx > 
#include < cstrike > 
#include < fun > 
#include < fakemeta > 

new g_iChosenOption33 ]; 

new 
bool:g_bBuried33 ]; 

new 
g_pFriendlyFire

enum 

    
FRIENDLY_FIRE 1
    
NEW_CT
    
GIVE_C4
    
BURY
    
UNBURY 
}; 

public 
plugin_init() 

    
register_plugin"CT Menu""1.0""H3avY Ra1n" ); 
     
    
register_clcmd"say /ctmenu""Cmd_CTMenu" ); 
     
    
g_pFriendlyFire get_cvar_pointer"mp_friendlyfire" ); 


public 
client_connectid 

    
g_bBuriedid ] = false
    
g_iChosenOptionid ] = 0



public 
Cmd_CTMenuid 

    if( 
cs_get_user_teamid ) != CS_TEAM_CT 
    { 
        
client_printidprint_chat"You must be a guard to use this item." ); 
        return 
PLUGIN_HANDLED
    } 
     
    new 
hMenu menu_create"CT Menu""CTMenu_Handler" ); 
     
    new 
szFormat32 ]; 
     
    
formatexszFormatcharsmaxszFormat ), "Turn %s Friendly Fire"get_pcvar_numg_pFriendlyFire ) ? "Off" "On" ); 
     
    
menu_additemhMenuszFormat"1" ); 
    
menu_additemhMenu"Choose a new CT""2" ); 
    
menu_additemhMenu"Give C4""3" ); 
    
menu_additemhMenu"Bury Player""4" ); 
    
menu_additemhMenu"Unbury Player""5" ); 
     
    
menu_displayidhMenu); 
     
    return 
PLUGIN_CONTINUE


public 
CTMenu_HandleridhMenuiItem 

    if( 
iItem == MENU_EXIT || cs_get_user_teamid ) != CS_TEAM_CT 
    { 
        
menu_destroyhMenu ); 
        return 
PLUGIN_HANDLED
    } 

    new 
szData]; 
    new 
iAccesshCallback
     
    
menu_item_getinfohMenuiItemiAccessszDatacharsmaxszData ), __hCallback ); 
     
     
    
g_iChosenOptionid ] = str_to_numszData ); 
     
    if( 
g_iChosenOptionid ] == FRIENDLY_FIRE 
        
set_pcvar_numg_pFriendlyFireget_pcvar_numg_pFriendlyFire ) ? ); 
     
    else 
ShowPlayerMenuid ); 
     
    
menu_destroyhMenu ); 
    return 
PLUGIN_HANDLED


public 
ShowPlayerMenuid 

    new 
hMenu menu_create"Choose a Player:""PlayerMenu_Handler" ); 
    new 
szName32 ], szInfo]; 
     
    new 
iPlayers32 ], iNum
    
get_playersiPlayersiNum"a" ); 
     
    for( new 
0iPlayeriNumi++ ) 
    {     
        
iPlayer iPlayers]; 
                 
        switch( 
g_iChosenOptionid ] ) 
        { 
            case 
NEW_CT: if( cs_get_user_teamiPlayer ) != CS_TEAM_T ) continue; 
            case 
BURY: if( g_bBuriediPlayer ] ) continue; 
            case 
UNBURY: if( !g_bBuriediPlayer ] ) continue; 
        } 

        
get_user_nameiPlayerszNamecharsmaxszName ) ); 
         
        
num_to_striPlayerszInfocharsmaxszInfo ) ); 
         
        
menu_additemhMenuszNameszInfo ); 
    } 
     
    
menu_displayidhMenu); 


public 
PlayerMenu_HandleridhMenuiItem 

    if( 
iItem == MENU_EXIT || cs_get_user_teamid ) != CS_TEAM_CT 
    { 
        
menu_destroyhMenu ); 
        return 
PLUGIN_HANDLED
    } 

    new 
szData]; 
    new 
iAccesshCallback
     
    
menu_item_getinfohMenuiItemiAccessszDatacharsmaxszData ), __hCallback ); 
     
    new 
iPlayer str_to_numszData ); 
     
    if( !
is_user_aliveiPlayer ) ) 
    { 
        
client_printidprint_chat"That player is no longer alive." ); 
         
        
menu_destroyhMenu ); 
         
        
ShowPlayerMenuid ); 
         
        return 
PLUGIN_HANDLED
    } 
     
    switch( 
g_iChosenOptionid ] ) 
    { 
        case 
BURYbury_playeridiPlayer ); 
        case 
UNBURYunbury_playeridiPlayer ); 
        case 
GIVE_C4give_itemiPlayer"weapon_c4" ); 
        case 
NEW_CTcs_set_user_teamiPlayerCS_TEAM_CT ); 
    } 
     
    
menu_destroyhMenu ); 
    return 
PLUGIN_HANDLED


bury_player(idvictim

    new 
name[32], iwpns[32], nwpn[32], iwpn 
    get_user_name
(victim,name,31
    
get_user_weapons(victim,iwpns,iwpn
    for(new 
a=0;a<iwpn;++a) { 
        
get_weaponname(iwpns[a],nwpn,31
        
engclient_cmd(victim,"drop",nwpn
    } 
    
engclient_cmd(victim,"weapon_knife"
    new 
origin[3
    
get_user_origin(victimorigin
    
origin[2] -=    30 
    fm_set_user_origin
(victimorigin
     
    
client_printidprint_chat"You have successfully buried %s."name ); 
     
    
g_bBuriedvictim ] = true
    
Cmd_CTMenuid ); 


unbury_player(id,victim

    new 
name[32], origin[3
    
get_user_name(victim,name,31
    
get_user_origin(victimorigin
    
origin[2] +=    35 
    fm_set_user_origin
(victimorigin
     
    
client_printidprint_chat"You have successfully unburied %s."name ); 
     
    
g_bBuriedvictim ] = false
    
Cmd_CTMenuid ); 


stock fm_set_user_origin(index/* const */ origin[3]) { 
    new 
Float:orig[3
    
IVecFVec(originorig

    return 
fm_entity_set_origin(indexorig


stock fm_entity_set_origin(index, const Float:origin[3]) { 
    new 
Float:mins[3], Float:maxs[3
    
pev(indexpev_minsmins
    
pev(indexpev_maxsmaxs
    
engfunc(EngFunc_SetSizeindexminsmaxs

    return 
engfunc(EngFunc_SetOriginindexorigin


Last edited by Sepsis; 08-07-2011 at 19:13.
Sepsis is offline
Erdener
Senior Member
Join Date: Apr 2010
Location: Turkey
Old 08-07-2011 , 08:34   Re: [EDIT] CT Menu (Excerpt from the idea)
Reply With Quote #2

I need it too
__________________
Erdener is offline
Erdener
Senior Member
Join Date: Apr 2010
Location: Turkey
Old 09-12-2011 , 11:28   Re: [EDIT] CT Menu (Excerpt from the idea)
Reply With Quote #3

Quote:
Originally Posted by Erdener View Post
I need it too
__________________
Erdener is offline
deadman909
Veteran Member
Join Date: Oct 2008
Old 08-07-2011 , 08:43   Re: [EDIT] CT Menu (Excerpt from the idea)
Reply With Quote #4

Is this menu for CT or T only.

Also what does T Mic mean?
__________________

deadman909 is offline
Send a message via MSN to deadman909 Send a message via Yahoo to deadman909
Erdener
Senior Member
Join Date: Apr 2010
Location: Turkey
Old 08-07-2011 , 08:50   Re: [EDIT] CT Menu (Excerpt from the idea)
Reply With Quote #5

Quote:
Originally Posted by deadman909 View Post
Is this menu for CT or T only.

Also what does T Mic mean?
for CT Only.


T need to speak into the microphone( or mic. ).CT this close it or open it
__________________
Erdener is offline
Old 08-07-2011, 08:51
Sepsis
This message has been deleted by Sepsis.
Sepsis
Senior Member
Join Date: Jul 2011
Old 08-07-2011 , 08:53   Re: [EDIT] CT Menu (Excerpt from the idea)
Reply With Quote #7

Quote:
Originally Posted by Erdener View Post
for CT Only.


T need to speak into the microphone( or mic. ).CT this close it or open it
Yep
Sepsis is offline
wTf.
Senior Member
Join Date: Aug 2011
Location: This important?
Old 08-07-2011 , 19:18   Re: [EDIT] CT Menu (Excerpt from the idea)
Reply With Quote #8

wTf. is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 09-12-2011 , 13:23   Re: [EDIT] CT Menu (Excerpt from the idea)
Reply With Quote #9

I'm working on 300 Spartan mode, CT God mode and T glow option.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Sepsis
Senior Member
Join Date: Jul 2011
Old 09-12-2011 , 17:06   Re: [EDIT] CT Menu (Excerpt from the idea)
Reply With Quote #10

Quote:
Originally Posted by Napoleon_be View Post
I'm working on 300 Spartan mode, CT God mode and T glow option.
Thnx.

I'm waiting..
Sepsis 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 03:21.


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