Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
Modificare Plugin VIP Gold/Silver
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Counter-Strike: Help zone
Author
Message
753
p1ticus
[Mentally Stable]
Status: Offline
(since 10-03-2019 21:18)
Joined: 24 Mar 2016
Posts: 26
,
Topics: 7
Location:
Romania
Reputation:
23.6
Votes
: 2
Posted: 24-03-2016, 21:53:19
| Translate post to:
... (
Click for more languages
)
Salut, As dori niste schimbari la acest plugin si niste adaugari !
VIP GOLD
Sa incep cu modificarile:
150 HP ; 180 AP -> Sa se modifice in : 100 HP ; 100 AP
Sa se adauge :
1) La meniul /vipgold:
CONTINE:
AK47+deagle
M4A1+deagle
SA SE ADAUGE:
AWP+deagle
Pachet de grenazi: 2he; 2fb; 2smk.
+ Sa se adauge si Bhop la categoria asta de VIP
+ Sa i se regenereze viata cu 10hp/kill Si sa revina la 100 cand da hs
VIP SILVER
Sa incep cu modificarile:
150 HP ; 180 AP -> Se se modifice in : 100 HP ; 100 AP
1) La meniul /vipsilver:
CONTINE:
M4A1
AWP
SA SE ADAUGE:
AK47
Pachet de grenazi: 1he ; 2fb; 1 smk
+ Sa se adauge 2x jump la categoria asta de VIP
+ Sa i se regenereze viata cu 5hp/kill Si 50 hp/hs ,dar sa nu urce mai mult de 100 HP
MULTUMESC !
Spoiler:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#define PLUGIN "Vip"
#define VERSION "1.0"
#define AUTHOR "C0sm1N"
#define ADMIN_GOLD ADMIN_LEVEL_H
#define ADMIN_SILVER ADMIN_LEVEL_G
new bool:g_iRunda[ 33 ], bool:g_iRound[ 33 ];
new const GoldTag[] = "[!gGold!teamVip!y]"
new const SilverTag[] = "[!gSilver!teamVip!y]"
public plugin_init () {
register_plugin ("PLUGIN", "VERSION", "AUTHOR");
register_clcmd ("say /vipgold","Gold");
register_clcmd ("say /vipsilver","Silver");
RegisterHam(Ham_Spawn, "player", "cmdSpawn", 1);
register_logevent("RoundStart", 2, "1=Round_Start")
}
public Gold ( id )
{
if (get_user_flags(id) & ADMIN_GOLD)
{
GoldMenu( id );
g_iRunda[id] = true
}
else
{
Chat_Color(id, "%sNu ai acces la aceasta comanda",GoldTag)
return 1;
}
return 0
}
public Silver ( id )
{
if (get_user_flags(id) & ADMIN_SILVER)
{
SilverMenu( id )
g_iRound[id] = true
}
else
{
Chat_Color(id, "%sNu ai acces la aceasta comanda",SilverTag)
return 1;
}
return 0
}
public GoldMenu( id )
{
if(g_iRunda[id])
{
Chat_Color(id, "%sAi folosit deja odata,incearca runda urmatoare",GoldTag)
return 1
}
static menu;
menu = menu_create ("\yVIPMENU\r Gold","menu_gold");
menu_additem ( menu,"\w M3\r +\w Deagle","1", 0 );
menu_additem ( menu,"\w AWP\r +\w Deagle","2", 0 );
menu_setprop ( menu, MPROP_NUMBER_COLOR,"\y");
menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );
return 0;
}
public menu_gold ( id, menu, item )
{
if ( item == MENU_EXIT )
{
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:
{
give_item ( id,"weapon_deagle" );
cs_set_user_bpammo( id, CSW_DEAGLE, 35 );
give_item ( id,"weapon_m3" )
cs_set_user_bpammo( id, CSW_M3, 32 );
}
case 2:
{
give_item ( id,"weapon_deagle" );
cs_set_user_bpammo( id, CSW_DEAGLE, 35 );
give_item ( id,"weapon_awp" )
cs_set_user_bpammo( id, CSW_AWP, 30 )
}
}
menu_destroy ( menu );
return 1;
}
public cmdSpawn(id) {
if(get_user_flags(id) & ADMIN_GOLD && is_user_alive(id)) {
set_user_armor(id, 180)
set_user_health(id, 150)
give_item ( id,"weapon_hegrenade" )
give_item ( id,"weapon_flashbang" )
cs_set_user_bpammo(id, CSW_FLASHBANG, 2)
}
else if(get_user_flags(id) & ADMIN_SILVER && is_user_alive(id))
{
set_user_armor(id, 150)
set_user_health(id, 120)
give_item ( id,"weapon_hegrenade" )
}
}
public SilverMenu ( id )
{
if(g_iRound[id])
{
Chat_Color(id, "%sAi folosit deja odata,incearca runda urmatoare",SilverTag)
return 1;
}
static menu;
menu = menu_create ("\yVIPMENU\r Silver","menu_silver");
menu_additem ( menu,"\w M4A1","1", 0 );
menu_additem ( menu,"\w AK47","2", 0 );
menu_setprop ( menu, MPROP_NUMBER_COLOR,"\y");
menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL );
menu_display ( id, menu, 0 );
return 0;
}
public menu_silver ( id, menu, item )
{
if ( item == MENU_EXIT )
{
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:
{
give_item ( id,"weapon_m4a1" )
cs_set_user_bpammo( id, CSW_M4A1, 90 );
}
case 2:
{
give_item ( id,"weapon_ak47" )
cs_set_user_bpammo( id, CSW_AK47, 90 );
}
}
menu_destroy ( menu );
return 1;
}
public RoundStart( )
{
new iPlayers[32], iNum;
get_players( iPlayers, iNum)
for( new i = 0; i < iNum;i++ )
{
g_iRunda[ iPlayers[ i ] ] = false;
g_iRound[ iPlayers[ i ] ] = false;
}
}
stock Chat_Color(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[191]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!y", "^1")
replace_all(msg, 190, "!team", "^3")
if (id) players[0] = id; else get_players(players, count, "ch")
{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
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: 24-03-2016, 22:18:40
| Translate post to:
... (
Click for more languages
)
Aici e sectiunea pentru serverele afiliate Freakz. Poti posta la help zone -> cs
0
0
Back to top
Topic locked
Topic is closed, you cannot post any messages in it anymore
Locked by
-P!C@-
, 24 March 2016 20:18
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Counter-Strike: Help zone
The time now is 10-01-2025, 23:49:49
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