It is currently 16 Dec 2018 05:31



Forum rules


Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .



Reply to topic  [ 4 posts ] 
 Cerere plugin VIP cu arme GOLD 
Author Message
Super moderator
Super moderator
User avatar

Joined: 13 Feb 2016 16:52
Posts: 1805
Location: Mediaş, Sibiu, România
Detinator Steam: Da
CS Status: Connection lost
Reputatie: Super moderator
Fost Membru Club eXtreamCS ( o luna )
Fond eXtream: 0
Salutare!
Aș dori un plugin VIP pentru modul clasic cu următoarele beneficii:

1) Meniu cu arme (rundă de rundă)
a) M4A1 + Deagle (GOLD)
b) AK47 + Deagle (GOLD)
c) AWP + Deagle (GOLD)
* Modelele le am eu.

2) Grenade gratuite (rundă de rundă)
3) Să aibe tag „VIP” acolo unde arată scorul, decese etc.
4) Să se deschidă un motd (.html) cu detalii despre VIP. Motd-ul îl fac eu, verau doar să adăugați comanda ca atunci când dau /vipinfo să se deschidă motd-ul.

P.S: Am tot căutat dar nu am găsit ceea ce vreau eu. Țin foarte mult să am plugin VIP cu arme gold. Dacă e să nu fi văzut ceva lăsați un reply cu link și mă uit. :)

Thanks! :ok_hand_tone2:

_________________
Castiga bani din completarea de chestionare si sondaje! Plata prin PayPal la minim 200 puncte (~2 eur).


30 Nov 2018 11:18
Profile multumesc WWW
Fost moderator
Fost moderator
User avatar

Joined: 08 Nov 2013 20:43
Posts: 3423
Detinator Steam: Da
CS Status: Activitate scăzută
SteamID: /id/FurienMaster
Reputatie: Nick anterior: DnD. Gold, Emrys
0.5/3
Fost moderator ajutator
Fost Membru Club eXtreamCS (doua luni)
Fond eXtream: 0
pluginuri-extream/vip-t225547.html

Daca vrea cineva sa-ti puna armele gold.

Sunt sigur ca este undeva pe forum un plugin exact cu ce ai cerut tu. Facut de mine si altele. Cauta pe la mine prin posturile vechi daca ai timp ca-s 99% sigur ca am facut asa ceva pe undeva. Eu n-am timp sa caut.

_________________
Contact:

Activitate scazuta.


03 Dec 2018 18:53
Profile multumesc WWW
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 11 Oct 2013 10:08
Posts: 815
Location: Sibiu
Detinator Steam: Da
SteamID: Ezeru
Reputatie: Moderator ajutator
Membru Club eXtreamCS (4 luni)
Nume anterior: HyperioN.
Scripter eXtreamCS
0.2 / 3
Fond eXtream: 0
Testeaza | Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <fakemeta_util>
#include <hamsandwich>
#include <cstrike>


#define PLUGIN "VIP"
#define VERSION "1.0"
#define AUTHOR "Truth*"

#define SCOREATTRIB_NONE 0
#define SCOREATTRIB_DEAD ( 1 << 0 )
#define SCOREATTRIB_BOMB ( 1 << 1 )
#define SCOREATTRIB_VIP ( 1 << 2 )


#define VIP_ACCESS ADMIN_LEVEL_H


new const vGoldenAk[ 64 ] = "models/v_golden_ak47.mdl";
new const pGoldenAk[ 64 ] = "models/p_golden_ak47.mdl";

new const vGoldenM4[ 64 ] = "models/v_golden_m4a1.mdl";
new const pGoldenM4[ 64 ] = "models/p_golden_m4a1.mdl";

new const vGoldenAWP[ 64 ] = "models/v_golden_mp5.mdl";
new const pGoldenAWP[ 64 ] = "models/p_golden_mp5.mdl";

new const vGDeagle[ 64 ] = "models//v_golden_deagle.mdl";
new const pGDeagle[ 64 ] = "models/p_golden_deagle.mdl";


new bool: HaveWeapon[ 33 ];
new bool: AreGoldenAK[ 33 ];
new bool: AreGoldenM4[ 33 ];
new bool: AreGoldenAWP[ 33 ];
new bool: AreGoldenD[ 33 ];


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)


register_event( "CurWeapon", "CurrWeapon", "be", "1=1" );

RegisterHam( Ham_Spawn, "player", "Spawn", true );

register_clcmd( "say_team /vipmenu", "VipMenu" );
register_clcmd( "say_team /vipinfo", "VipMOTD" );


register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib" );

// Add your code here...
}

public VipMOTD(id) show_motd(id, "addons/amxmodx/configs/vip.html", "VIP");

public plugin_precache( )
{
//-- | Arme Gold | --//
precache_model( vGoldenAk );
precache_model( pGoldenAk );
precache_model( vGoldenM4 );
precache_model( pGoldenM4 );
precache_model( vGoldenAWP );
precache_model( pGoldenAWP );
precache_model( vGDeagle );
precache_model( pGDeagle );

}

public Spawn ( id )
{
AreGoldenAK[ id ] = false;
AreGoldenM4[ id ] = false;
AreGoldenAWP[ id ] = false;
HaveWeapon[ id ] = false;
AreGoldenD[ id ] = false;

if( is_user_alive(id) && get_user_flags(id) & VIP_ACCESS )
{
fm_give_item( id, "weapon_hegrenade" );
fm_give_item( id, "weapon_flashbang" );
fm_give_item( id, "weapon_smokegrenade" );
}


}

public CurrWeapon ( id ) {
new Arma = read_data( 2 )

if( Arma == CSW_AK47 && AreGoldenAK[ id ] )
{
set_pev( id, pev_viewmodel2, vGoldenAk )
set_pev( id, pev_weaponmodel2, pGoldenAk )
}

if( Arma == CSW_M4A1 && AreGoldenM4[ id ] )
{
set_pev( id, pev_viewmodel2, vGoldenM4 )
set_pev( id, pev_weaponmodel2, pGoldenM4 )
}

if( Arma == CSW_AWP && AreGoldenAWP[ id ] )
{
set_pev( id, pev_viewmodel2, vGoldenAWP )
set_pev( id, pev_weaponmodel2, pGoldenAWP )
}

if ( Arma == CSW_DEAGLE && AreGoldenD [ id ] ) {

set_pev ( id, pev_viewmodel2, vGDeagle );
set_pev ( id, pev_weaponmodel2, pGDeagle );

}
}

public VipMenuCMD( id ) {
new MeniuVIP = menu_create( "\r* V.I.P. * \yMenu", "VipMenuCMDHandler" )

if(get_user_flags(id) & VIP_ACCESS )
{
menu_additem( MeniuVIP, "\yGolden [\r AK47\y ] ", "1", 0 )
}
else
{
menu_additem( MeniuVIP, "\yGolden [\r AK47\y ] - \d( Only VIP )", "1", 0 )
}
if(get_user_flags(id) & VIP_ACCESS )
{
menu_additem( MeniuVIP, "\yGolden [\r M4A1\y ] ", "2", 0 )
}
else
{
menu_additem( MeniuVIP, "\yGolden [\r M4A1\y ] - \d( Only VIP )", "2", 0 )
}
if(get_user_flags(id) & VIP_ACCESS )
{
menu_additem( MeniuVIP, "\yGolden [\r AWP\y ] ", "3", 0 )
}
else
{
menu_additem( MeniuVIP, "\yGolden [\r AWP\y ] - \d( Only VIP )", "3", 0 )
}

menu_setprop( MeniuVIP, MPROP_EXIT, MEXIT_ALL )
menu_display( id, MeniuVIP, 0 )
}

public VipMenuCMDHandler( id, MeniuVIP, item )
{
if( !is_user_alive( id ) )
{
ColorChat( id, "^x01[^x04 Vip Menu^x01 ] Nu poti accesa meniul cand esti mort!" )
return PLUGIN_HANDLED
}

if( item == MENU_EXIT )
{
menu_destroy( MeniuVIP )
return PLUGIN_HANDLED
}

switch( item )
{
case 0 :
{
if(get_user_flags(id) & VIP_ACCESS )
{
fm_strip_user_weapons(id);
fm_give_item(id, "weapon_knife");
fm_give_item( id, "weapon_hegrenade" );
fm_give_item( id, "weapon_flashbang" );
fm_give_item( id, "weapon_smokegrenade" );
fm_give_item(id, "weapon_deagle");
cs_set_user_bpammo( id, CSW_DEAGLE, 70 );
fm_give_item(id, "weapon_ak47" );
cs_set_user_bpammo( id, CSW_AK47, 90 );
set_pev( id, pev_viewmodel2, vGoldenAk );
set_pev( id, pev_weaponmodel2, pGoldenAk );
HaveWeapon[ id ] = true;
AreGoldenAK[ id ] = true;
AreGoldenM4[ id ] = false;
AreGoldenAWP[ id ] = false;
AreGoldenD[ id ] = true;
CurrWeapon( id );
}
else
{
ColorChat(id, "^x01[^x04 Vip Menu^x01 ] Nu ai acces la acest meniu !" );
}
}
case 1 :
{
if(get_user_flags(id) & VIP_ACCESS )
{
fm_strip_user_weapons(id);
fm_give_item(id, "weapon_knife");
fm_give_item( id, "weapon_hegrenade" );
fm_give_item( id, "weapon_flashbang" );
fm_give_item( id, "weapon_smokegrenade" );
fm_give_item(id, "weapon_deagle");
cs_set_user_bpammo( id, CSW_DEAGLE, 70 );
fm_give_item(id, "weapon_m4a1");
cs_set_user_bpammo( id, CSW_M4A1, 90 );
set_pev( id, pev_viewmodel2, vGoldenM4 );
set_pev( id, pev_weaponmodel2, pGoldenM4 );
HaveWeapon[ id ] = true;
AreGoldenAK[ id ] = false;
AreGoldenM4[ id ] = true;
AreGoldenAWP[ id ] = false;
AreGoldenD[ id ] = true;
CurrWeapon( id );
}
else
{
ColorChat(id, "^x01[^x04 Vip Menu^x01 ] Nu ai acces la acest meniu !" );
}
}
case 2 :
{
if(get_user_flags(id) & VIP_ACCESS )
{
fm_strip_user_weapons(id);
fm_give_item(id, "weapon_knife");
fm_give_item( id, "weapon_hegrenade" );
fm_give_item( id, "weapon_flashbang" );
fm_give_item( id, "weapon_smokegrenade" );
fm_give_item(id, "weapon_deagle");
cs_set_user_bpammo( id, CSW_DEAGLE, 70 );
fm_give_item(id, "weapon_mp5navy");
cs_set_user_bpammo( id, CSW_AWP, 90 );
set_pev( id, pev_viewmodel2, vGoldenAWP );
set_pev( id, pev_weaponmodel2, pGoldenAWP );
HaveWeapon[ id ] = true;
AreGoldenAK[ id ] = false;
AreGoldenM4[ id ] = false;
AreGoldenAWP[ id ] = true;
AreGoldenD[ id ] = true;
CurrWeapon( id );
}
else
{
ColorChat(id, "^x01[^x04 Vip Menu^x01 ] Nu ai acces la acest meniu !" );
}
}
}
menu_destroy( MeniuVIP )
return PLUGIN_HANDLED
}

public VipMenu( id )
{
if( !is_user_alive( id ) )
{
ColorChat( id, "^x01[^x04 Vip Menu^x01 ] Nu poti accesa meniul cand esti mort !" );
return
}

if( HaveWeapon[ id ] )
{
ColorChat( id, "^x01[^x04 Vip Menu^x01 ] Ti-ai ales deja arma pe runda aceasta." );
return
}
VipMenuCMD( id );
}


public MessageScoreAttrib( iMsgID, iDest, iReceiver ) {
new iPlayer = get_msg_arg_int( 1 );
if( is_user_connected( iPlayer ) && ( get_user_flags( iPlayer ) & VIP_ACCESS ) )
{
set_msg_arg_int( 2, ARG_BYTE, is_user_alive( iPlayer ) ? SCOREATTRIB_VIP : SCOREATTRIB_DEAD );
}
}

stock ColorChat(const id, const input[], any:...) {
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);

replace_all(msg, 190, "!x04", "^4");
replace_all(msg, 190, "!x01", "^1");
replace_all(msg, 190, "!x03", "^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();
}
}
}
}


04 Dec 2018 02:53
Profile multumesc YIM
Scripter eXtreamCS
Scripter eXtreamCS
User avatar

Joined: 02 Nov 2014 18:21
Posts: 508
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Reputatie: Scripter eXtreamCS
Fost Membru Club eXtreamCS (doua luni)
Nume anterior: IIiFF
Fond eXtream: 0
Truth* wrote:
Testeaza | Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <fakemeta_util>
#include <hamsandwich>
#include <cstrike>


#define PLUGIN "VIP"
#define VERSION "1.0"
#define AUTHOR "Truth*"

#define SCOREATTRIB_NONE 0
#define SCOREATTRIB_DEAD ( 1 << 0 )
#define SCOREATTRIB_BOMB ( 1 << 1 )
#define SCOREATTRIB_VIP ( 1 << 2 )


#define VIP_ACCESS ADMIN_LEVEL_H


new const vGoldenAk[ 64 ] = "models/v_golden_ak47.mdl";
new const pGoldenAk[ 64 ] = "models/p_golden_ak47.mdl";

new const vGoldenM4[ 64 ] = "models/v_golden_m4a1.mdl";
new const pGoldenM4[ 64 ] = "models/p_golden_m4a1.mdl";

new const vGoldenAWP[ 64 ] = "models/v_golden_mp5.mdl";
new const pGoldenAWP[ 64 ] = "models/p_golden_mp5.mdl";

new const vGDeagle[ 64 ] = "models//v_golden_deagle.mdl";
new const pGDeagle[ 64 ] = "models/p_golden_deagle.mdl";


new bool: HaveWeapon[ 33 ];
new bool: AreGoldenAK[ 33 ];
new bool: AreGoldenM4[ 33 ];
new bool: AreGoldenAWP[ 33 ];
new bool: AreGoldenD[ 33 ];


public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)


register_event( "CurWeapon", "CurrWeapon", "be", "1=1" );

RegisterHam( Ham_Spawn, "player", "Spawn", true );

register_clcmd( "say_team /vipmenu", "VipMenu" );
register_clcmd( "say_team /vipinfo", "VipMOTD" );


register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib" );

// Add your code here...
}

public VipMOTD(id) show_motd(id, "addons/amxmodx/configs/vip.html", "VIP");

public plugin_precache( )
{
//-- | Arme Gold | --//
precache_model( vGoldenAk );
precache_model( pGoldenAk );
precache_model( vGoldenM4 );
precache_model( pGoldenM4 );
precache_model( vGoldenAWP );
precache_model( pGoldenAWP );
precache_model( vGDeagle );
precache_model( pGDeagle );

}

public Spawn ( id )
{
AreGoldenAK[ id ] = false;
AreGoldenM4[ id ] = false;
AreGoldenAWP[ id ] = false;
HaveWeapon[ id ] = false;
AreGoldenD[ id ] = false;

if( is_user_alive(id) && get_user_flags(id) & VIP_ACCESS )
{
fm_give_item( id, "weapon_hegrenade" );
fm_give_item( id, "weapon_flashbang" );
fm_give_item( id, "weapon_smokegrenade" );
}


}

public CurrWeapon ( id ) {
new Arma = read_data( 2 )

if( Arma == CSW_AK47 && AreGoldenAK[ id ] )
{
set_pev( id, pev_viewmodel2, vGoldenAk )
set_pev( id, pev_weaponmodel2, pGoldenAk )
}

if( Arma == CSW_M4A1 && AreGoldenM4[ id ] )
{
set_pev( id, pev_viewmodel2, vGoldenM4 )
set_pev( id, pev_weaponmodel2, pGoldenM4 )
}

if( Arma == CSW_AWP && AreGoldenAWP[ id ] )
{
set_pev( id, pev_viewmodel2, vGoldenAWP )
set_pev( id, pev_weaponmodel2, pGoldenAWP )
}

if ( Arma == CSW_DEAGLE && AreGoldenD [ id ] ) {

set_pev ( id, pev_viewmodel2, vGDeagle );
set_pev ( id, pev_weaponmodel2, pGDeagle );

}
}

public VipMenuCMD( id ) {
new MeniuVIP = menu_create( "\r* V.I.P. * \yMenu", "VipMenuCMDHandler" )

if(get_user_flags(id) & VIP_ACCESS )
{
menu_additem( MeniuVIP, "\yGolden [\r AK47\y ] ", "1", 0 )
}
else
{
menu_additem( MeniuVIP, "\yGolden [\r AK47\y ] - \d( Only VIP )", "1", 0 )
}
if(get_user_flags(id) & VIP_ACCESS )
{
menu_additem( MeniuVIP, "\yGolden [\r M4A1\y ] ", "2", 0 )
}
else
{
menu_additem( MeniuVIP, "\yGolden [\r M4A1\y ] - \d( Only VIP )", "2", 0 )
}
if(get_user_flags(id) & VIP_ACCESS )
{
menu_additem( MeniuVIP, "\yGolden [\r AWP\y ] ", "3", 0 )
}
else
{
menu_additem( MeniuVIP, "\yGolden [\r AWP\y ] - \d( Only VIP )", "3", 0 )
}

menu_setprop( MeniuVIP, MPROP_EXIT, MEXIT_ALL )
menu_display( id, MeniuVIP, 0 )
}

public VipMenuCMDHandler( id, MeniuVIP, item )
{
if( !is_user_alive( id ) )
{
ColorChat( id, "^x01[^x04 Vip Menu^x01 ] Nu poti accesa meniul cand esti mort!" )
return PLUGIN_HANDLED
}

if( item == MENU_EXIT )
{
menu_destroy( MeniuVIP )
return PLUGIN_HANDLED
}

switch( item )
{
case 0 :
{
if(get_user_flags(id) & VIP_ACCESS )
{
fm_strip_user_weapons(id);
fm_give_item(id, "weapon_knife");
fm_give_item( id, "weapon_hegrenade" );
fm_give_item( id, "weapon_flashbang" );
fm_give_item( id, "weapon_smokegrenade" );
fm_give_item(id, "weapon_deagle");
cs_set_user_bpammo( id, CSW_DEAGLE, 70 );
fm_give_item(id, "weapon_ak47" );
cs_set_user_bpammo( id, CSW_AK47, 90 );
set_pev( id, pev_viewmodel2, vGoldenAk );
set_pev( id, pev_weaponmodel2, pGoldenAk );
HaveWeapon[ id ] = true;
AreGoldenAK[ id ] = true;
AreGoldenM4[ id ] = false;
AreGoldenAWP[ id ] = false;
AreGoldenD[ id ] = true;
CurrWeapon( id );
}
else
{
ColorChat(id, "^x01[^x04 Vip Menu^x01 ] Nu ai acces la acest meniu !" );
}
}
case 1 :
{
if(get_user_flags(id) & VIP_ACCESS )
{
fm_strip_user_weapons(id);
fm_give_item(id, "weapon_knife");
fm_give_item( id, "weapon_hegrenade" );
fm_give_item( id, "weapon_flashbang" );
fm_give_item( id, "weapon_smokegrenade" );
fm_give_item(id, "weapon_deagle");
cs_set_user_bpammo( id, CSW_DEAGLE, 70 );
fm_give_item(id, "weapon_m4a1");
cs_set_user_bpammo( id, CSW_M4A1, 90 );
set_pev( id, pev_viewmodel2, vGoldenM4 );
set_pev( id, pev_weaponmodel2, pGoldenM4 );
HaveWeapon[ id ] = true;
AreGoldenAK[ id ] = false;
AreGoldenM4[ id ] = true;
AreGoldenAWP[ id ] = false;
AreGoldenD[ id ] = true;
CurrWeapon( id );
}
else
{
ColorChat(id, "^x01[^x04 Vip Menu^x01 ] Nu ai acces la acest meniu !" );
}
}
case 2 :
{
if(get_user_flags(id) & VIP_ACCESS )
{
fm_strip_user_weapons(id);
fm_give_item(id, "weapon_knife");
fm_give_item( id, "weapon_hegrenade" );
fm_give_item( id, "weapon_flashbang" );
fm_give_item( id, "weapon_smokegrenade" );
fm_give_item(id, "weapon_deagle");
cs_set_user_bpammo( id, CSW_DEAGLE, 70 );
fm_give_item(id, "weapon_mp5navy");
cs_set_user_bpammo( id, CSW_AWP, 90 );
set_pev( id, pev_viewmodel2, vGoldenAWP );
set_pev( id, pev_weaponmodel2, pGoldenAWP );
HaveWeapon[ id ] = true;
AreGoldenAK[ id ] = false;
AreGoldenM4[ id ] = false;
AreGoldenAWP[ id ] = true;
AreGoldenD[ id ] = true;
CurrWeapon( id );
}
else
{
ColorChat(id, "^x01[^x04 Vip Menu^x01 ] Nu ai acces la acest meniu !" );
}
}
}
menu_destroy( MeniuVIP )
return PLUGIN_HANDLED
}

public VipMenu( id )
{
if( !is_user_alive( id ) )
{
ColorChat( id, "^x01[^x04 Vip Menu^x01 ] Nu poti accesa meniul cand esti mort !" );
return
}

if( HaveWeapon[ id ] )
{
ColorChat( id, "^x01[^x04 Vip Menu^x01 ] Ti-ai ales deja arma pe runda aceasta." );
return
}
VipMenuCMD( id );
}


public MessageScoreAttrib( iMsgID, iDest, iReceiver ) {
new iPlayer = get_msg_arg_int( 1 );
if( is_user_connected( iPlayer ) && ( get_user_flags( iPlayer ) & VIP_ACCESS ) )
{
set_msg_arg_int( 2, ARG_BYTE, is_user_alive( iPlayer ) ? SCOREATTRIB_VIP : SCOREATTRIB_DEAD );
}
}

stock ColorChat(const id, const input[], any:...) {
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);

replace_all(msg, 190, "!x04", "^4");
replace_all(msg, 190, "!x01", "^1");
replace_all(msg, 190, "!x03", "^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();
}
}
}
}


mai bine asa | Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <fakemeta_util>
#include <hamsandwich>
#include <cstrike>


#define PLUGIN "VIP"
#define VERSION "1.0"
#define AUTHOR "Truth*/Filip"


#define VIP_ACCESS ADMIN_LEVEL_H

new const Models[][] = {
"models/v_golden_ak47.mdl",
"models/p_golden_ak47.mdl",
"models/v_golden_m4a1.mdl",
"models/p_golden_m4a1.mdl",
"models/v_golden_mp5.mdl",
"models/p_golden_mp5.mdl",
"models/v_golden_deagle.mdl",
"models/p_golden_deagle.mdl"
};

new HaveWeapon[ 33 ] = 0

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)


register_event( "CurWeapon", "CurrWeapon", "be", "1=1" );

RegisterHam( Ham_Spawn, "player", "Spawn", true );

register_clcmd( "say_team /vipmenu", "VipMenu" );
register_clcmd( "say_team /vipinfo", "VipMOTD" );


register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib" );

// Add your code here...
}

public VipMOTD(id) show_motd(id, "addons/amxmodx/configs/vip.html", "VIP");

public plugin_precache( )
{
for(new i = 0; i < sizeof Models; i++) precache_model(Models[i])

}

public Spawn ( id )
{
HaveWeapon[ id ] = 0

if( is_user_alive(id) && get_user_flags(id) & VIP_ACCESS )
{
fm_give_item( id, "weapon_hegrenade" );
fm_give_item( id, "weapon_flashbang" );
fm_give_item( id, "weapon_smokegrenade" );
}


}

public CurrWeapon ( id ) {
new Arma = read_data( 2 )

if( Arma == CSW_AK47 && HaveWeapon[ id ] == 1 )
{
set_pev( id, pev_viewmodel2, Models[0] )
set_pev( id, pev_weaponmodel2, Models[1] )
}

if( Arma == CSW_M4A1 && HaveWeapon[ id ] == 2 )
{
set_pev( id, pev_viewmodel2, Models[2] )
set_pev( id, pev_weaponmodel2, Models[3] )
}

if( Arma == CSW_AWP && HaveWeapon[ id ] == 3 )
{
set_pev( id, pev_viewmodel2, Models[4] )
set_pev( id, pev_weaponmodel2, Models[5] )
}

if ( Arma == CSW_DEAGLE && HaveWeapon[ id ] != 0 ) {

set_pev ( id, pev_viewmodel2, Models[6] );
set_pev ( id, pev_weaponmodel2, Models[7] );

}
}

public VipMenuCMD( id ) {
new MeniuVIP = menu_create( "\r* V.I.P. * \yMenu", "VipMenuCMDHandler" )

new gString[256]

formatex(gString, 100, "%sGolden [\r AK47\y ]", ((get_user_flags(id) & VIP_ACCESS) ? "\y" : "\d")), menu_additem( MeniuVIP, gString, "1", 0 )
formatex(gString, 100, "%sGolden [\r M4A1\y ]", ((get_user_flags(id) & VIP_ACCESS) ? "\y" : "\d")), menu_additem( MeniuVIP, gString, "2", 0 )
formatex(gString, 100, "%sGolden [\r AWP\y ]", ((get_user_flags(id) & VIP_ACCESS) ? "\y" : "\d")), menu_additem( MeniuVIP, gString, "3", 0 )

menu_setprop( MeniuVIP, MPROP_EXIT, MEXIT_ALL )
menu_display( id, MeniuVIP, 0 )
}

public VipMenuCMDHandler( id, MeniuVIP, item )
{
if( !is_user_alive( id ) )
{
ColorChat( id, "^x01[^x04 Vip Menu^x01 ] Nu poti accesa meniul cand esti mort!" )
return PLUGIN_HANDLED
}

if( item == MENU_EXIT ) {
menu_destroy( MeniuVIP )
return PLUGIN_HANDLED
}

if(get_user_flags(id) & VIP_ACCESS) return ColorChat(id, "^x01[^x04 Vip Menu^x01 ] Nu ai acces la acest meniu !" );

switch( item )
{
case 0 :
{
fm_give_item(id, "weapon_ak47" );
cs_set_user_bpammo( id, CSW_AK47, 90 );
}
case 1 :
{
fm_give_item(id, "weapon_m4a1");
cs_set_user_bpammo( id, CSW_M4A1, 90 );
}
case 2 :
{
fm_give_item(id, "weapon_mp5navy");
cs_set_user_bpammo( id, CSW_AWP, 90 );
}
}

fm_strip_user_weapons(id);
fm_give_item(id, "weapon_knife");
fm_give_item( id, "weapon_hegrenade" );
fm_give_item( id, "weapon_flashbang" );
fm_give_item( id, "weapon_smokegrenade" );
fm_give_item(id, "weapon_deagle");
cs_set_user_bpammo( id, CSW_DEAGLE, 70 );
CurrWeapon( id );
HaveWeapon[ id ] = item+1

menu_destroy( MeniuVIP )
return PLUGIN_HANDLED
}

public VipMenu( id )
{
if( !is_user_alive( id ) ) return ColorChat( id, "^x01[^x04 Vip Menu^x01 ] Nu poti accesa meniul cand esti mort !" );
if( HaveWeapon[ id ] != 0 ) return ColorChat( id, "^x01[^x04 Vip Menu^x01 ] Ti-ai ales deja arma pe runda aceasta." );

VipMenuCMD( id );

return true
}


public MessageScoreAttrib( iMsgID, iDest, iReceiver ) {
new iPlayer = get_msg_arg_int( 1 );
if( is_user_connected( iPlayer ) && ( get_user_flags( iPlayer ) & VIP_ACCESS ) )
{
set_msg_arg_int( 2, ARG_BYTE, is_user_alive( iPlayer ) ? ( 1 << 2 ) : ( 1 << 0 ) );
}
}

stock ColorChat(const id, const input[], any:...) {
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);

replace_all(msg, 190, "!x04", "^4");
replace_all(msg, 190, "!x01", "^1");
replace_all(msg, 190, "!x03", "^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();
}
}
}

return true
}

_________________


Daca vrei un plugin, poti face o cerere aici
Daca vrei o modificare la un plugin, poti face o cerere aici

Image


04 Dec 2018 03:41
Profile multumesc
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 68 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group