Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
Cerere Modificare Plugin VIP GOLD/SILVER
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
Author
Message
2053
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: 25-03-2016, 13:43:49
| 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
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: 25-03-2016, 21:55:41
| Translate post to:
... (
Click for more languages
)
CINEVA?
0
0
Back to top
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: 28-03-2016, 07:22:47
| Translate post to:
... (
Click for more languages
)
UP
CAREVA???????
VA ROG FOARTE FRUMOS AM MARE NEVOIE DE ACEST PLUGIN!!!!!
0
0
Back to top
Gathor
[Banned user]
Status: Offline
(since 04-08-2016 18:23)
Joined: 24 Mar 2016
Posts: 15
,
Topics: 2
Location:
Romania
Reputation:
7.6
Votes
: 1
Posted: 28-03-2016, 19:39:17
| Translate post to:
... (
Click for more languages
)
Am facut totul in afara de bhop si hp-ul pe kill, probeaza-l si spune-mi daca merge.
Ti-am mai pus si cvar-uri la
HP
si la armura la ambele tipuri de vip, setezi tu cat sa primeasca.
Poftim:
Spoiler:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#include <engine>
#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 cvar_viatag, cvar_armurag, cvar_viatas, cvar_armuras;
new jumpnum[33] = 0
new bool:dojump[33] = false
new const GoldTag[] = "[!gGold!teamVip!y]"
new const SilverTag[] = "[!gSilver!teamVip!y]"
public plugin_init () {
register_plugin ("PLUGIN", "VERSION", "AUTHOR");
cvar_viatag = register_cvar("CantitateViataGold", "100")
cvar_armurag = register_cvar("CantitateArmuraGold", "100")
cvar_viatas = register_cvar("CantitateViataSilver", "100")
cvar_armuras = register_cvar("CantitateArmuraSilver", "100")
register_cvar("amx_maxjumps","1")
register_cvar("amx_silveronly","1")
register_clcmd ("say /vipgold","Gold");
register_clcmd ("say /vipsilver","Silver");
RegisterHam(Ham_Spawn, "player", "cmdSpawn", 1);
register_logevent("RoundStart", 2, "1=Round_Start")
}
public client_putinserver(id)
{
jumpnum[id] = 0
dojump[id] = false
}
public client_disconnect(id)
{
jumpnum[id] = 0
dojump[id] = false
}
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 M4A1\r +\w Deagle","1", 0 );
menu_additem ( menu,"\w AK47\r +\w Deagle","2", 0 );
menu_additem ( menu,"\w AWP\r +\w Deagle","3", 0 );
menu_additem ( menu,"\w Pachet de grenazi\r 2HE+2FB+SG","4", 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_m4a1" )
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_ak47" )
cs_set_user_bpammo( id, CSW_AK47, 90 )
}
case 3:
{
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 )
}
case 4:
{
give_item ( id,"weapon_hegrenade" )
give_item ( id,"weapon_flashbang" )
give_item ( id,"weapon_smokegrenade" )
cs_set_user_bpammo(id, CSW_HEGRENADE, 2)
cs_set_user_bpammo(id, CSW_FLASHBANG, 2)
cs_set_user_bpammo(id, CSW_SMOKEGRENADE, 2)
}
}
menu_destroy ( menu );
return 1;
}
public cmdSpawn(id) {
if(get_user_flags(id) & ADMIN_GOLD && is_user_alive(id)) {
set_user_armor(id, get_pcvar_num(cvar_armurag))
set_user_health(id, get_pcvar_num(cvar_viatag))
give_item ( id,"weapon_hegrenade" )
give_item ( id,"weapon_flashbang" )
give_item ( id,"weapon_smokegrenade" )
cs_set_user_bpammo(id, CSW_FLASHBANG, 2)
}
else if(get_user_flags(id) & ADMIN_SILVER && is_user_alive(id))
{
set_user_armor(id, get_pcvar_num(cvar_armuras))
set_user_health(id, get_pcvar_num(cvar_viatas))
give_item ( id,"weapon_hegrenade" )
}
}
public SilverMenu ( id )
{
if(g_iRound[id])
{
Chat_Color(id, "%sAi folosit deja o data, 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_additem ( menu,"\w AWP","3", 0 );
menu_additem ( menu,"\w Pachet de grenazi\r 1HE+2FB+1SG","4", 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 );
}
case 3:
{
give_item ( id,"weapon_awp" )
cs_set_user_bpammo( id, CSW_AWP, 10 );
}
case 4:
{
give_item ( id,"weapon_hegrenade" )
give_item ( id,"weapon_flashbang" )
give_item ( id,"weapon_smokegrenade" )
cs_set_user_bpammo(id, CSW_HEGRENADE, 1)
cs_set_user_bpammo(id, CSW_FLASHBANG, 2)
cs_set_user_bpammo(id, CSW_SMOKEGRENADE, 1)
}
}
menu_destroy ( menu );
return 1;
}
public client_PreThink(id)
{
if(!is_user_alive(id)) return PLUGIN_CONTINUE
new nbut = get_user_button(id)
new obut = get_user_oldbutton(id)
if((nbut & IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(obut & IN_JUMP))
{
if(jumpnum[id] < get_cvar_num("amx_maxjumps"))
{
dojump[id] = true
jumpnum[id]++
return PLUGIN_CONTINUE
}
}
if((nbut & IN_JUMP) && (get_entity_flags(id) & FL_ONGROUND))
{
jumpnum[id] = 0
return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}
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
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: 29-03-2016, 20:13:05
| Translate post to:
... (
Click for more languages
)
Mulrumesc Frate, Raman Dator
+1 de la mine !
0
0
Back to top
Topic locked
Topic is closed, you cannot post any messages in it anymore
Locked by
destroi112
, 23 July 2016 08:11
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
The time now is 11-01-2025, 05:55:46
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