Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
Modificare beneficii VIP
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
Author
Message
568
JuNNky
[Mentally Stable]
Status: Offline
(since 23-10-2015 21:32)
Joined: 29 Jul 2015
Posts: 83
,
Topics: 17
Location:
Romania
Reputation:
6.8
Posted: 05-08-2015, 15:01:45
| Translate post to:
... (
Click for more languages
)
Salut! Imi modificati va rog la Health sa se poata selecta o singura data pe runda , va rog frumos ??
Spoiler:
#include <amxmodx>
#include <hamsandwich>
#include <fun>
#include <zombieplague>
#define PLUGIN "VIP Menu"
#define VERSION "1.0"
#define VIP_FLAG read_flags("e")
public plugin_init() {
register_plugin(PLUGIN, VERSION, "Plugin");
RegisterHam(Ham_Spawn,"player","spawn_player",1);
register_clcmd("say /power","ShowVipMenu");
}
public spawn_player(id)
{
if(is_user_connected(id) && is_user_alive(id))
set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 0);
}
public ShowVipMenu(id)
{
if(!(get_user_flags(id) & VIP_FLAG))
return 1;
if(zp_get_user_zombie(id))
return 1;
new menu = menu_create ("VIP Menu", "VipIteams");
menu_additem (menu, "55% Invizibilitate", "1");
menu_additem (menu, "Gravitatie 500", "2");
menu_additem (menu, "2500 HP", "3");
menu_setprop (menu, MPROP_EXIT, MEXIT_ALL);
menu_display (id, menu, 0);
return 1;
}
public VipIteams(id, menu, item)
{
if(item == MENU_EXIT || zp_get_user_zombie(id))
{
menu_destroy(menu);
return 1;
}
new data [6], szName [64];
new access, callback;
menu_item_getinfo (menu, item, access, data,charsmax (data), szName,charsmax (szName), callback);
new key = str_to_num (data);
switch (key)
{
case 1:
{
if(is_user_alive(id))
set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha,45)
}
case 2:
{
if(is_user_alive(id))
set_user_gravity(id, 0.5)
}
case 3:
{
if(is_user_alive(id))
set_user_health(id, 2500)
}
}
menu_destroy(menu);
return 1;
}
0
0
Back to top
GoguSM
[.: ZMGO.FREAKZ.RO :.]
Status: Offline
(since 16-03-2022 00:38)
Joined: 24 Aug 2013
Posts: 1516
,
Topics: 71
Location:
Brasov
Reputation:
1144
Votes
: 95
Posted: 05-08-2015, 15:14:00
| Translate post to:
... (
Click for more languages
)
Incearca asa
Spoiler:
#include <amxmodx>
#include <hamsandwich>
#include <fun>
#include <zombieplague>
#define PLUGIN "VIP Menu"
#define VERSION "1.0"
#define VIP_FLAG read_flags("e")
new CmdUsed[33];
public plugin_init() {
register_plugin(PLUGIN, VERSION, "Plugin");
RegisterHam(Ham_Spawn,"player","spawn_player",1);
register_clcmd("say /power","ShowVipMenu");
RegisterHam(Ham_Spawn, "player", "FwdHamSpawn_Post", 1)
}
public FwdHamSpawn_Post(id)
{
if (!is_user_alive(id))
{
return PLUGIN_CONTINUE;
}
CmdUsed[id] = false;
return PLUGIN_CONTINUE;
}
public spawn_player(id)
{
if(is_user_connected(id) && is_user_alive(id))
set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 0);
}
public ShowVipMenu(id)
{
if(!(get_user_flags(id) & VIP_FLAG))
return 1;
if(zp_get_user_zombie(id))
return 1;
new menu = menu_create ("VIP Menu", "VipIteams");
menu_additem (menu, "55% Invizibilitate", "1");
menu_additem (menu, "Gravitatie 500", "2");
menu_additem (menu, "2500 HP", "3");
menu_setprop (menu, MPROP_EXIT, MEXIT_ALL);
menu_display (id, menu, 0);
return 1;
}
public VipIteams(id, menu, item)
{
if(item == MENU_EXIT || zp_get_user_zombie(id))
{
menu_destroy(menu);
return 1;
}
new data [6], szName [64];
new access, callback;
menu_item_getinfo (menu, item, access, data,charsmax (data), szName,charsmax (szName), callback);
new key = str_to_num (data);
switch (key)
{
case 1:
{
if(is_user_alive(id))
set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha,45)
}
case 2:
{
if(is_user_alive(id))
set_user_gravity(id, 0.5)
}
case 3:
{
if(is_user_alive(id))
set_user_health(id, 2500)
CmdUsed[id] = true;
}
}
menu_destroy(menu);
return 1;
}
0
0
Back to top
YONTU
[Banned user]
Status: Offline
(since 06-08-2015 14:49)
Joined: 16 Feb 2015
Posts: 30
,
Topics: 5
Location:
Gura Humorului, Suceava
Reputation:
-6
Votes
: 2
Posted: 05-08-2015, 16:00:00
| Translate post to:
... (
Click for more languages
)
Varianta corecta: + optimizare cod
Spoiler:
Code:
#include <amxmodx>
#include <hamsandwich>
#include <fun>
#include <zombieplague>
#define PLUGIN "VIP Menu"
#define VERSION "1.0"
#define VIP_FLAG read_flags("e")
new used[33];
public plugin_init() {
register_plugin(PLUGIN, VERSION, "Plugin");
RegisterHam(Ham_Spawn,"player","spawn_player",1);
register_logevent("log_Start", 2, "1=Round_Start" );
register_clcmd("say /power","ShowVipMenu");
}
public log_Start()
{
arrayset(used, 0, 33);
}
public spawn_player(id)
{
if(is_user_alive(id))
set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 0);
}
public client_putinserver(id)
used[id] = 0;
public ShowVipMenu(id)
{
if(!(get_user_flags(id) & VIP_FLAG) || zp_get_user_zombie(id) || !is_user_alive(id))
return 1;
new menu = menu_create ("VIP Menu", "VipIteams");
menu_additem (menu, "55% Invizibilitate", "1");
menu_additem (menu, "Gravitatie 500", "2");
menu_additem (menu, "2500 HP", "3");
menu_setprop (menu, MPROP_EXIT, MEXIT_ALL);
menu_display (id, menu, 0);
return 1;
}
public VipIteams(id, menu, item)
{
if(zp_get_user_zombie(id) || !is_user_alive(id))
{
menu_destroy(menu);
return 1;
}
new data [6], szName [64];
new access, callback;
menu_item_getinfo (menu, item, access, data,charsmax (data), szName,charsmax (szName), callback);
new key = str_to_num (data);
switch (key)
{
case 1: set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha,45)
case 2: set_user_gravity(id, 0.5)
case 3:
{
if(used[id])
{
client_print(id, print_chat, "Ai folosit odata viata.");
menu_destroy(menu);
return 1;
}
set_user_health(id, 2500)
used[id] = 1;
}
}
menu_destroy(menu);
return 1;
}
VAND / MODIFIC / CREEZ [AMXX]
Creez orice plugin LEVEL MOD pentru orice MOD de CS.
Contact: sef_yontu
0
0
Back to top
JuNNky
[Mentally Stable]
Status: Offline
(since 23-10-2015 21:32)
Joined: 29 Jul 2015
Posts: 83
,
Topics: 17
Location:
Romania
Reputation:
6.8
Posted: 05-08-2015, 18:18:45
| Translate post to:
... (
Click for more languages
)
Topic Close va rog
0
0
Back to top
Topic locked
Topic is closed, you cannot post any messages in it anymore
Locked by
destroi112
, 07 August 2015 20:37
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
The time now is 07-05-2025, 20:25:50
Copyright info
Based on phpBB
ro
/
com
B
Login
I forgot my password
World of Warcraft
Login for more...
Download WoW 7.3.5
Misc
eSports
Achievements
Buy reputation with votes
Reputation trades
Forum rules
Ban list
Members list
User guide (FAQ)
World of Warcraft
View details