Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
[rezolvat]Cerere plugin
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
Author
Message
533
Pavel. #
[Mentally Stable]
Status: Offline
(since 27-02-2017 11:34)
Joined: 04 Dec 2015
Posts: 38
,
Topics: 17
Location:
Romania
Reputation:
16.3
Posted: 03-01-2016, 14:32:58
| Translate post to:
... (
Click for more languages
)
As dori un plugin vip care poate fi accesat prin comanda /vmenu . Sa nu aibe limita de folosire.
Meniu:
1.Awp
2.Deagle
3.Set Grenade (2He,2FB,2SMOKE)
Flagul vipului sa fie T
Last edited by
Pavel. #
on 04-01-2016, 22:36:48; edited 1 time in total
0
0
Back to top
Adryyy
[HLDS EXPLOITER]
Status: Offline
(since 16-09-2024 14:37)
Joined: 09 Apr 2012
Posts: 128
,
Topics: 6
Location:
Romania
Reputation:
117.3
Votes
: 10
Posted: 03-01-2016, 21:01:16
| Translate post to:
... (
Click for more languages
)
Cauta pe forum si o sa gasesti
( -_・) ︻デ═一 ▸❀ヅ❤♫
0
0
Back to top
jy0nsS
[Mentally Stable]
Status: Offline
(since 30-08-2017 16:06)
Joined: 26 Nov 2015
Posts: 222
,
Topics: 63
Location:
Romania
Reputation:
75.4
Votes
: 1
Posted: 03-01-2016, 21:44:39
| Translate post to:
... (
Click for more languages
)
Plugin-ul meu
) ai dat copy paste la cerere
. E facut dar nu merge sa dai vip-ul in vips.ini
0
0
Back to top
-P!C@-
[Simply Normal]
Status: Offline
(since 21-04-2022 19:07)
Joined: 28 May 2012
Posts: 21086
,
Topics: 1601
Location:
Constanta
Reputation:
1870.3
Votes
: 781
Posted: 03-01-2016, 22:04:02
| Translate post to:
... (
Click for more languages
)
Try:
Spoiler:
#include <amxmodx>
#include <fun>
#define PLUGIN "VIP"
#define VERSION "1.0"
#define AUTHOR "cs"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /vmenu", "Menu")
register_clcmd("say_team /vmenu", "Menu")
}
public Menu( id ) {
if(!is_user_alive( id ))
return 1;
if(Vip( id )) {
new menu = menu_create( "\rMeniul Vip", "MenuHandler");
new Awp[ 64 ], Deagle[ 64 ], Grenade[ 64 ];
formatex(Awp, sizeof( Awp ) -1, "\wAwp");
formatex(Deagle, sizeof( Deagle ) -1, "\wDeagle");
formatex(Grenade, sizeof( Grenade ) -1, "\wSet Grenade (2He,2FB,2SMOKE)");
menu_additem( menu, Awp, "0", 0 );
menu_additem( menu, Deagle, "1", 0 );
menu_additem( menu, Grenade, "2", 0 );
menu_setprop( menu, MPROP_EXITNAME, "\wIesire" );
menu_display( id, menu );
}
return 0;
}
public MenuHandler( id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy( menu );
return 1;
}
static _access, info[4], callback;
menu_item_getinfo(menu, item, _access, info, sizeof( info ) - 1, _, _, callback);
new iKey = str_to_num( info );
switch( iKey ) {
case 0:
give_item(id, "weapon_awp");
case 1:
give_item(id, "weapon_deagle");
case 2: {
give_item(id, "weapon_hegrenade");
give_item(id, "weapon_hegrenade");
give_item(id, "weapon_flashbang");
give_item(id, "weapon_flashbang");
give_item(id, "weapon_smokegrenade");
give_item(id, "weapon_smokegrenade");
}
}
return 0;
}
stock bool:Vip( id ) {
if(get_user_flags( id ) == read_flags( "t" ))
return true;
return false;
}
0
0
Back to top
Pavel. #
[Mentally Stable]
Status: Offline
(since 27-02-2017 11:34)
Joined: 04 Dec 2015
Posts: 38
,
Topics: 17
Location:
Romania
Reputation:
16.3
Posted: 04-01-2016, 22:36:17
| Translate post to:
... (
Click for more languages
)
-P!C@- wrote:
Try:
Spoiler:
#include <amxmodx>
#include <fun>
#define PLUGIN "VIP"
#define VERSION "1.0"
#define AUTHOR "cs"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /vmenu", "Menu")
register_clcmd("say_team /vmenu", "Menu")
}
public Menu( id ) {
if(!is_user_alive( id ))
return 1;
if(Vip( id )) {
new menu = menu_create( "\rMeniul Vip", "MenuHandler");
new Awp[ 64 ], Deagle[ 64 ], Grenade[ 64 ];
formatex(Awp, sizeof( Awp ) -1, "\wAwp");
formatex(Deagle, sizeof( Deagle ) -1, "\wDeagle");
formatex(Grenade, sizeof( Grenade ) -1, "\wSet Grenade (2He,2FB,2SMOKE)");
menu_additem( menu, Awp, "0", 0 );
menu_additem( menu, Deagle, "1", 0 );
menu_additem( menu, Grenade, "2", 0 );
menu_setprop( menu, MPROP_EXITNAME, "\wIesire" );
menu_display( id, menu );
}
return 0;
}
public MenuHandler( id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy( menu );
return 1;
}
static _access, info[4], callback;
menu_item_getinfo(menu, item, _access, info, sizeof( info ) - 1, _, _, callback);
new iKey = str_to_num( info );
switch( iKey ) {
case 0:
give_item(id, "weapon_awp");
case 1:
give_item(id, "weapon_deagle");
case 2: {
give_item(id, "weapon_hegrenade");
give_item(id, "weapon_hegrenade");
give_item(id, "weapon_flashbang");
give_item(id, "weapon_flashbang");
give_item(id, "weapon_smokegrenade");
give_item(id, "weapon_smokegrenade");
}
}
return 0;
}
stock bool:Vip( id ) {
if(get_user_flags( id ) == read_flags( "t" ))
return true;
return false;
}
nu imi merge
0
0
Back to top
Adryyy
[HLDS EXPLOITER]
Status: Offline
(since 16-09-2024 14:37)
Joined: 09 Apr 2012
Posts: 128
,
Topics: 6
Location:
Romania
Reputation:
117.3
Votes
: 10
Posted: 05-01-2016, 17:53:07
| Translate post to:
... (
Click for more languages
)
Inlocuieste asa :
menu_additem( menu, Awp, "0", 0 );
menu_additem( menu, Deagle, "1", 0 );
menu_additem( menu, Grenade, "2", 0 );
CU
menu_additem( menu, Awp, "1" );
menu_additem( menu, Deagle, "2" );
menu_additem( menu, Grenade, "3" );
0
0
Back to top
Topic locked
Topic is closed, you cannot post any messages in it anymore
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
The time now is 15-08-2025, 02:41:58
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