Descriere:
Comanda este /vmenu si au acces la ea doar ceu cu flagul "t". Cei care au acest flag,apar in scoretab,ca vipii.
Daca vreti sa personalizati pluginul doar scrieti in acest topic ce vrei si adaug/scot.
Din 30 in 30 secunde ve-ti primu unset de grenazi(1he,1smoke,1flash)
Totul este testat si merge foarte bine.
Meniul contine:
1. GodMode 10 secunde
2. NoClip 5 secunde
3. Deagle + 16000$
4. Deagle + M4A1
5. 150 HP + 150Ap
Autor: JusT
Veriune: 1.3
Instalare: Dupa ce ati compilat sura,cu numele VipMenu,uploadati pluginul in folderul plugin si treceti in plugin.ini:
VipMenu.amxx
Cvar-uri:
timp_god (default : 10) - Cat timp sa dureze GodMode
timp_clip (default : 5) - Cat timp sa dureze NoClip
ChangeLog:
/*
v1.0 - Prima lansare
v1.1 - Adaugare a mai multor mesaje in chat.
v1.2 - Acum primiti nade set la fiecare 30 secunde
- Adaugare 90 gloante in incarcator la m4a1 si 34 gloante in incarcator la Deagle
- Adaugare cvaruri : timp_god (default : 10)
timp_clip, (default :5)
v1.3 - Vip apare in scoreTab
Descarcare:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <engine>
#define PLUGIN "Vmenu"
#define VERSION "1.3"
#define AUTHOR "JusT"
#define ADMIN_VIP ADMIN_LEVEL_H
enum {
SCOREATTRIB_ARG_PLAYERID = 1,
SCOREATTRIB_ARG_FLAGS
};
enum ( <<= 1 ) {
SCOREATTRIB_FLAG_NONE = 0,
SCOREATTRIB_FLAG_DEAD = 1,
SCOREATTRIB_FLAG_BOMB,
SCOREATTRIB_FLAG_VIP
};
new g_szTimpGod , g_szTimpClip
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib" );
register_clcmd("say /vmenu" , "Vip")
g_szTimpGod = register_cvar("timp_god" , "10")
g_szTimpClip = register_cvar("timp_clip" , "5")
set_task(30.0 , "set" ,_,_,_, "b")
}
public Vip(id)
{
if(get_user_flags(id) & ADMIN_LEVEL_H)
{
new menu = menu_create( "\rVipMenu", "menu_handler" );
menu_additem( menu, "\wGodMode 10 secunde", "", 0 );
menu_additem( menu, "\wNoClip 5 secunde", "", 0 );
menu_additem( menu, "\wDeagle + 16000#", "",0);
menu_additem( menu, "\wDeagle + M4A1", "", 0 );
menu_additem( menu, "\w150 HP + 150 AP", "", 0 );
menu_setprop( menu, MPROP_EXIT, MEXIT_ALL );
menu_display( id, menu, 0 );
}
}
public menu_handler( id, menu, item )
{
switch (item)
{
case 0:
{
client_print(id, print_chat, "Ai ales GodMode din VipMenu" );
set_user_godmode(id,1)
set_task(get_pcvar_float(g_szTimpGod), "god", id)
}
case 1:
{
client_print( id, print_chat, "Ai ales NoClip din VipMenu" );
set_user_noclip(id,0)
set_task(get_pcvar_float(g_szTimpClip), "clip", id)
}
case 2:
{
client_print( id, print_chat, "Ai ales Deagle + 16000$ din VipMenu" );
give_item(id,"weapon_deagle")
cs_set_user_money(id,cs_get_user_money(id) + 16000)
cs_set_user_bpammo(id, CSW_DEAGLE, 34)
}
case 3:
{
client_print( id, print_chat, "Ai ales Deagle + M4A! din VipMenu" );
give_item(id,"weapon_deagle")
give_item(id,"weapon_m4a1")
cs_set_user_bpammo(id, CSW_M4A1, 90)
cs_set_user_bpammo(id, CSW_DEAGLE, 34)
}
case 4:
{
client_print( id, print_chat, "Ai ales 150 HP + 150 AP din VipMenu" );
set_user_health(id,get_user_health(id) + 150)
set_user_armor(id,get_user_armor(id)+150)
}
case MENU_EXIT:
{
client_print( id, print_chat, "Ai iesit din menu !" );
}
}
menu_destroy( menu );
return PLUGIN_HANDLED;
}
public set(id)
{
give_item(id,"weapon_hegrenade")
give_item(id,"weapon_smokegrenade")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_flashbang")
}
public god(id)
{
set_user_godmode(id,0)
client_print( id, print_chat, "Puterea GodMode a expirat !" );
return PLUGIN_HANDLED
}
public clip(id)
{
set_user_noclip(id,0)
client_print( id, print_chat, "Puterea NoClip a expirat !" );
return PLUGIN_HANDLED
}
public MessageScoreAttrib( iMsgId, iDest, iReceiver )
{
new iPlayer = get_msg_arg_int( SCOREATTRIB_ARG_PLAYERID );
if( access( iPlayer, ADMIN_VIP ) ) {
set_msg_arg_int( SCOREATTRIB_ARG_FLAGS, ARG_BYTE, SCOREATTRIB_FLAG_VIP );
Comanda este /vmenu si au acces la ea doar ceu cu flagul "t". Cei care au acest flag,apar in scoretab,ca vipii.
Daca vreti sa personalizati pluginul doar scrieti in acest topic ce vrei si adaug/scot.
Din 30 in 30 secunde ve-ti primu unset de grenazi(1he,1smoke,1flash)
Totul este testat si merge foarte bine.
Meniul contine:
1. GodMode 10 secunde
2. NoClip 5 secunde
3. Deagle + 16000$
4. Deagle + M4A1
5. 150 HP + 150Ap
Autor: JusT
Veriune: 1.3
Instalare: Dupa ce ati compilat sura,cu numele VipMenu,uploadati pluginul in folderul plugin si treceti in plugin.ini:
VipMenu.amxx
Cvar-uri:
timp_god (default : 10) - Cat timp sa dureze GodMode
timp_clip (default : 5) - Cat timp sa dureze NoClip
ChangeLog:
/*
v1.0 - Prima lansare
v1.1 - Adaugare a mai multor mesaje in chat.
v1.2 - Acum primiti nade set la fiecare 30 secunde
- Adaugare 90 gloante in incarcator la m4a1 si 34 gloante in incarcator la Deagle
- Adaugare cvaruri : timp_god (default : 10)
timp_clip, (default :5)
v1.3 - Vip apare in scoreTab
Descarcare:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <engine>
#define PLUGIN "Vmenu"
#define VERSION "1.3"
#define AUTHOR "JusT"
#define ADMIN_VIP ADMIN_LEVEL_H
enum {
SCOREATTRIB_ARG_PLAYERID = 1,
SCOREATTRIB_ARG_FLAGS
};
enum ( <<= 1 ) {
SCOREATTRIB_FLAG_NONE = 0,
SCOREATTRIB_FLAG_DEAD = 1,
SCOREATTRIB_FLAG_BOMB,
SCOREATTRIB_FLAG_VIP
};
new g_szTimpGod , g_szTimpClip
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib" );
register_clcmd("say /vmenu" , "Vip")
g_szTimpGod = register_cvar("timp_god" , "10")
g_szTimpClip = register_cvar("timp_clip" , "5")
set_task(30.0 , "set" ,_,_,_, "b")
}
public Vip(id)
{
if(get_user_flags(id) & ADMIN_LEVEL_H)
{
new menu = menu_create( "\rVipMenu", "menu_handler" );
menu_additem( menu, "\wGodMode 10 secunde", "", 0 );
menu_additem( menu, "\wNoClip 5 secunde", "", 0 );
menu_additem( menu, "\wDeagle + 16000#", "",0);
menu_additem( menu, "\wDeagle + M4A1", "", 0 );
menu_additem( menu, "\w150 HP + 150 AP", "", 0 );
menu_setprop( menu, MPROP_EXIT, MEXIT_ALL );
menu_display( id, menu, 0 );
}
}
public menu_handler( id, menu, item )
{
switch (item)
{
case 0:
{
client_print(id, print_chat, "Ai ales GodMode din VipMenu" );
set_user_godmode(id,1)
set_task(get_pcvar_float(g_szTimpGod), "god", id)
}
case 1:
{
client_print( id, print_chat, "Ai ales NoClip din VipMenu" );
set_user_noclip(id,0)
set_task(get_pcvar_float(g_szTimpClip), "clip", id)
}
case 2:
{
client_print( id, print_chat, "Ai ales Deagle + 16000$ din VipMenu" );
give_item(id,"weapon_deagle")
cs_set_user_money(id,cs_get_user_money(id) + 16000)
cs_set_user_bpammo(id, CSW_DEAGLE, 34)
}
case 3:
{
client_print( id, print_chat, "Ai ales Deagle + M4A! din VipMenu" );
give_item(id,"weapon_deagle")
give_item(id,"weapon_m4a1")
cs_set_user_bpammo(id, CSW_M4A1, 90)
cs_set_user_bpammo(id, CSW_DEAGLE, 34)
}
case 4:
{
client_print( id, print_chat, "Ai ales 150 HP + 150 AP din VipMenu" );
set_user_health(id,get_user_health(id) + 150)
set_user_armor(id,get_user_armor(id)+150)
}
case MENU_EXIT:
{
client_print( id, print_chat, "Ai iesit din menu !" );
}
}
menu_destroy( menu );
return PLUGIN_HANDLED;
}
public set(id)
{
give_item(id,"weapon_hegrenade")
give_item(id,"weapon_smokegrenade")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_flashbang")
}
public god(id)
{
set_user_godmode(id,0)
client_print( id, print_chat, "Puterea GodMode a expirat !" );
return PLUGIN_HANDLED
}
public clip(id)
{
set_user_noclip(id,0)
client_print( id, print_chat, "Puterea NoClip a expirat !" );
return PLUGIN_HANDLED
}
public MessageScoreAttrib( iMsgId, iDest, iReceiver )
{
new iPlayer = get_msg_arg_int( SCOREATTRIB_ARG_PLAYERID );
if( access( iPlayer, ADMIN_VIP ) ) {
set_msg_arg_int( SCOREATTRIB_ARG_FLAGS, ARG_BYTE, SCOREATTRIB_FLAG_VIP );