Cerere Plugin VIP clasic

Cereri de pluginuri noi, skinuri in CS, etc.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
BonBonel03
Membru, skill 0
Membru, skill 0
Posts: 20
Joined: 15 Apr 2023, 06:15
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: Da
SteamID: 231255654
Fond eXtream: 0
Location: Faro, Portugal.
Discord: BonBonel03#5809
Has thanked: 10 times
Contact:

22 Apr 2023, 21:43

Nume: Strumfu!

Plugin cerut:Vip Free , permanent pentru toti playeri care intra pe Server , fara sa trebuiasca sa-i trec eu vriun flag.

Contact: Danut#0042

Da am cautat , da n-am gasiti nici unu de care sa imi placa.

AmxModx / SourceMod: Amx MoodeServerul

Alte precizari: As-i dorii ca pluginul sa contina M416+deagle+flash+he ,Ak46+deagle+flash+he, AWP+deagle+flash+he !

-Sa nu aibe nici un bns cand faci vriun killl

-Sa poti avea o singura arma si un singur pistol(Am gasit o gramada in care aveam toate 3 arme o data ,ak47 ,m416 si AWP )

-Sa arate dmg-ul pe care il faci ,atat tie cat si lui!

-Sa aibe in TAB VIP!

-Nu vreau sa contina vreo chestie cu /vips sau /vipmenu

-As mai dori sa scrie ca un mesaj in chat automat in chat /VIP Fre pentru toti playeri nostri (si sa apara din 60 in 60 de secunde)

-Sa fie prima runda doar deagle , si din a 2a runda sa-ti dea armele !
-Și dacă acest plugin merge și cu cvr ceva, am nevoie și de ele .
-Interesul este sa fie clasic fără 2xjump fără parasuta sau alte nebuni .
//////
Știu ca vor posta unu ca este Topic special pentru calasa VIP . Dar nu am găsit ce am nevoie , v-am enunțat mai sus de ce am nevoie . Rog răutăcioși sa nu comenteze aiureli.
RoyalServer 2
User avatar
BonBonel03
Membru, skill 0
Membru, skill 0
Posts: 20
Joined: 15 Apr 2023, 06:15
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: Da
SteamID: 231255654
Fond eXtream: 0
Location: Faro, Portugal.
Discord: BonBonel03#5809
Has thanked: 10 times
Contact:

23 Apr 2023, 02:41

Up!
User avatar
A k c 3 n 7
Super moderator
Super moderator
Posts: 5137
Joined: 25 Aug 2014, 21:31
Detinator Steam: Da
CS Status: who dares wins
SteamID: Jandarmeria
Reputatie: Super moderator
Moderatorul anului 2023
Fost Membru Club eXtreamCS ( o luna )
Fost eXtream Mod
Fost Intermediar
Nume anterior: Sorinel
Fond eXtream: 0
Location: Unknown
Discord: remusakcent
Has thanked: 4 times
Been thanked: 46 times

23 Apr 2023, 16:17

Code: Select all

#include < amxmodx >
#include < cstrike >
#include < hamsandwich >
#include < fakemeta_util >

new g_round[33]

const WEAPON_BITSUM = (1<<CSW_SCOUT) | (1<<CSW_XM1014) | (1<<CSW_MAC10) | (1<<CSW_AUG) | (1<<CSW_UMP45) | (1<<CSW_SG550) | (1<<CSW_P90) | 
(1<<CSW_FAMAS) | (1<<CSW_AWP) | (1<<CSW_MP5NAVY) | (1<<CSW_M249) | (1<<CSW_M3) | (1<<CSW_M4A1) | (1<<CSW_TMP) | (1<<CSW_G3SG1) | (1<<CSW_SG552) | 
(1<<CSW_AK47) | (1<<CSW_GALIL);

enum {
    SCOREATTRIB_ARG_PLAYERID = 1,
    SCOREATTRIB_ARG_FLAGS
}
 
enum ( <<= 1 ) {
    SCOREATTRIB_FLAG_NONE = 0,
    SCOREATTRIB_FLAG_DEAD = 1,
    SCOREATTRIB_FLAG_BOMB,
    SCOREATTRIB_FLAG_VIP
}

public plugin_init() {

       register_plugin("All Vip", "1.0", "A k c 3 n 7")
       RegisterHam(Ham_Spawn, "player", "PlayerPostSpawn", 1)

       register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib")
       set_task( 60.0, "message", _, _, _, "b" );
}

public menu( id ) {
                     
       new menu = menu_create( "Weapons", "menu_handler" )   
       menu_additem( menu, "\rM4A1-DG-HE-FLASH" );
       menu_additem( menu, "\rAK47-DG-HE-FLASH" );
       menu_additem( menu, "\rAWP-DG-HE-FLASH" );

       menu_setprop( menu, MPROP_EXIT, MEXIT_ALL)
       menu_display( id, menu, 0 );
}

public message(id) {

       print_color(0, "!eVIP Free pentru toti jucatorii nostri!")
} 

public MessageScoreAttrib(iMsgId, iDest, iReceiver) {
 
       set_msg_arg_int(SCOREATTRIB_ARG_FLAGS, ARG_BYTE, SCOREATTRIB_FLAG_VIP)
}

public PlayerPostSpawn(id) {
	
	if(!is_user_alive(id)) return		
	
	if( g_round[ id ] > 1 ) { 
		menu( id )
	}       
	else {
		
		g_round[ id ]++
	}
	
	if( g_round[ id ] > 0 ) {
		
		switch( cs_get_user_team( id ) )
		{	
			case  CS_TEAM_T:   fm_strip_user_gun( id, CSW_GLOCK18, "weapon_glock18"), fm_give_item( id, "weapon_deagle"), cs_set_user_bpammo( id, CSW_DEAGLE, 35 )
			case  CS_TEAM_CT:  fm_strip_user_gun( id, CSW_USP, "weapon_usp"), fm_give_item( id, "weapon_deagle"), cs_set_user_bpammo( id, CSW_DEAGLE, 35 )

			}
	}
	g_round[id]++
}
       
public menu_handler( id, menu, item )
{	
	switch( item )
	{
		case 0:
		{
                        drop_primary( id )
                        fm_give_item(id, "weapon_m4a1"), cs_set_user_bpammo(id, CSW_M4A1, 90)
                        fm_give_item(id, "weapon_deagle"), cs_set_user_bpammo( id, CSW_DEAGLE, 35 );
                        fm_give_item(id, "weapon_hegrenade"), fm_give_item(id, "weapon_flashbang")
                        
		}
		case 1:
		{ 
                        drop_primary( id )
                        fm_give_item(id, "weapon_ak47"), cs_set_user_bpammo(id, CSW_AK47, 90)
                        fm_give_item(id, "weapon_deagle"), cs_set_user_bpammo( id, CSW_DEAGLE, 35 );
                        fm_give_item(id, "weapon_hegrenade"), fm_give_item(id, "weapon_flashbang")
		}
                case 2:
		{ 
                        drop_primary( id )
                        fm_give_item(id, "weapon_awp"), cs_set_user_bpammo(id, CSW_AWP, 90)
                        fm_give_item(id, "weapon_deagle"), cs_set_user_bpammo( id, CSW_DEAGLE, 35 );
                        fm_give_item(id, "weapon_hegrenade"), fm_give_item(id, "weapon_flashbang")
		}
        }
	menu_destroy( menu ) 
        return PLUGIN_HANDLED;
}

drop_primary(id)
{
    static weapons[32], num
    get_user_weapons(id, weapons, num)
 
    for (new i = 0; i < num; i++)
    {
        if (WEAPON_BITSUM & (1<<weapons[i]))
        {
            static wname[32];
            get_weaponname(weapons[i], wname, sizeof wname - 1)
 
            engclient_cmd(id, "drop", wname)
        }
    }
}

stock print_color( const id, const input[ ], any:... )
{
	new count = 1, players[ 32 ]
	
	static msg[ 191 ]
	vformat( msg, 190, input, 3 )
	
	replace_all( msg, 190, "!v", "^4" ) //- verde
	replace_all( msg, 190, "!g", "^1" ) //- galben
	replace_all( msg, 190, "!e", "^3" ) //- echipa
	replace_all( msg, 190, "!n", "^0" ) //- normal
	
	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( );
		}
	}
}
}
iar pentru show damage iti recomand sa pui acest plugin separat, nu are rost sa l includ in asta pe care ti l am dat cereri-pluginuri/cerere-plugin-bullet-d ... 51942.html
User avatar
BonBonel03
Membru, skill 0
Membru, skill 0
Posts: 20
Joined: 15 Apr 2023, 06:15
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: Da
SteamID: 231255654
Fond eXtream: 0
Location: Faro, Portugal.
Discord: BonBonel03#5809
Has thanked: 10 times
Contact:

23 Apr 2023, 16:49

Multumesc frumos ,pentru ajutorul acordat ! ❤❤
T/C
User avatar
BonBonel03
Membru, skill 0
Membru, skill 0
Posts: 20
Joined: 15 Apr 2023, 06:15
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: Da
SteamID: 231255654
Fond eXtream: 0
Location: Faro, Portugal.
Discord: BonBonel03#5809
Has thanked: 10 times
Contact:

20 May 2023, 13:14

Salut, am descoperit că acest plugin are un bug. După moarte, când apeși Tab, apare încă statutul de Vip , cel de Dead sta acolo doar(1-2 secunde).
Am incercat mai multe metode de modificare dar n-am reusit ...
#include < amxmodx >
#include < cstrike >
#include < hamsandwich >
#include < fakemeta_util >

new g_round[33]

const WEAPON_BITSUM = (1<<CSW_SCOUT) | (1<<CSW_XM1014) | (1<<CSW_MAC10) | (1<<CSW_AUG) | (1<<CSW_UMP45) | (1<<CSW_SG550) | (1<<CSW_P90) |
(1<<CSW_FAMAS) | (1<<CSW_AWP) | (1<<CSW_MP5NAVY) | (1<<CSW_M249) | (1<<CSW_M3) | (1<<CSW_M4A1) | (1<<CSW_TMP) | (1<<CSW_G3SG1) | (1<<CSW_SG552) |
(1<<CSW_AK47) | (1<<CSW_GALIL);

enum {
SCOREATTRIB_ARG_PLAYERID = 1,
SCOREATTRIB_ARG_FLAGS
}

enum ( <<= 1 ) {
SCOREATTRIB_FLAG_NONE = 0,
SCOREATTRIB_FLAG_DEAD ,
SCOREATTRIB_FLAG_BOMB,
SCOREATTRIB_FLAG_VIP
}
public plugin_init() {

register_plugin("All Vip", "1.0", "A k c 3 n 7")
RegisterHam(Ham_Spawn, "player", "PlayerPostSpawn", 1)

register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib")
set_task( 60.0, "message", _, _, _, "b" );
}

public menu( id ) {

new menu = menu_create( "Weapons", "menu_handler" )
menu_additem( menu, "\rM4A1+Grenade" );
menu_additem( menu, "\rAK47+Grenade" );
menu_additem( menu, "\rAWP+Grenade" );

menu_setprop( menu, MPROP_EXIT, MEXIT_ALL)
menu_display( id, menu, 0 );
}

public message(id) {

print_color(0, "!eOfermi VIP gratuit pentru o experienta de joc imbunatatita si o comunitate mai activa.")
}

public MessageScoreAttrib(iMsgId, iDest, iReceiver) {

set_msg_arg_int(SCOREATTRIB_ARG_FLAGS, ARG_BYTE, SCOREATTRIB_FLAG_VIP)
}

public PlayerPostSpawn(id) {

if(!is_user_alive(id)) return

if( g_round[ id ] > 1 ) {
menu( id )
}
else {

g_round[ id ]++
}

if( g_round[ id ] > 0 ) {

switch( cs_get_user_team( id ) )
{
case CS_TEAM_T: fm_strip_user_gun( id, CSW_GLOCK18, "weapon_glock18"), fm_give_item( id, "weapon_deagle"), cs_set_user_bpammo( id, CSW_DEAGLE, 35 )
case CS_TEAM_CT: fm_strip_user_gun( id, CSW_USP, "weapon_usp"), fm_give_item( id, "weapon_deagle"), cs_set_user_bpammo( id, CSW_DEAGLE, 35 )

}
}
g_round[id]++
}

public menu_handler( id, menu, item )
{
switch( item )
{
case 0:
{
drop_primary( id )
fm_give_item(id, "weapon_m4a1"), cs_set_user_bpammo(id, CSW_M4A1, 90)
fm_give_item(id, "weapon_deagle"), cs_set_user_bpammo( id, CSW_DEAGLE, 35 );
fm_give_item(id, "weapon_hegrenade"), fm_give_item(id, "weapon_flashbang"),fm_give_item(id, "weapon_flashbang")

}
case 1:
{
drop_primary( id )
fm_give_item(id, "weapon_ak47"), cs_set_user_bpammo(id, CSW_AK47, 90)
fm_give_item(id, "weapon_deagle"), cs_set_user_bpammo( id, CSW_DEAGLE, 35 );
fm_give_item(id, "weapon_hegrenade"), fm_give_item(id, "weapon_flashbang"),fm_give_item(id, "weapon_flashbang")
}
case 2:
{
drop_primary( id )
fm_give_item(id, "weapon_awp"), cs_set_user_bpammo(id, CSW_AWP, 30)
fm_give_item(id, "weapon_deagle"), cs_set_user_bpammo( id, CSW_DEAGLE, 35 );
fm_give_item(id, "weapon_hegrenade"), fm_give_item(id, "weapon_flashbang"),fm_give_item(id, "weapon_flashbang")
}
}
menu_destroy( menu )
return PLUGIN_HANDLED;
}

drop_primary(id)
{
static weapons[32], num
get_user_weapons(id, weapons, num)

for (new i = 0; i < num; i++)
{
if (WEAPON_BITSUM & (1<<weapons))
{
static wname[32];
get_weaponname(weapons, wname, sizeof wname - 1)

engclient_cmd(id, "drop", wname)
}
}
}

stock print_color( const id, const input[ ], any:... )
{
new count = 1, players[ 32 ]

static msg[ 191 ]
vformat( msg, 190, input, 3 )

replace_all( msg, 190, "!v", "^4" ) //- verde
replace_all( msg, 190, "!g", "^1" ) //- galben
replace_all( msg, 190, "!e", "^3" ) //- echipa
replace_all( msg, 190, "!n", "^0" ) //- normal

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( );
}
}
}
}



A k c 3 n 7 wrote:
23 Apr 2023, 16:17

Code: Select all

#include < amxmodx >
#include < cstrike >
#include < hamsandwich >
#include < fakemeta_util >

new g_round[33]

const WEAPON_BITSUM = (1<<CSW_SCOUT) | (1<<CSW_XM1014) | (1<<CSW_MAC10) | (1<<CSW_AUG) | (1<<CSW_UMP45) | (1<<CSW_SG550) | (1<<CSW_P90) | 
(1<<CSW_FAMAS) | (1<<CSW_AWP) | (1<<CSW_MP5NAVY) | (1<<CSW_M249) | (1<<CSW_M3) | (1<<CSW_M4A1) | (1<<CSW_TMP) | (1<<CSW_G3SG1) | (1<<CSW_SG552) | 
(1<<CSW_AK47) | (1<<CSW_GALIL);

enum {
    SCOREATTRIB_ARG_PLAYERID = 1,
    SCOREATTRIB_ARG_FLAGS
}
 
enum ( <<= 1 ) {
    SCOREATTRIB_FLAG_NONE = 0,
    SCOREATTRIB_FLAG_DEAD = 1,
    SCOREATTRIB_FLAG_BOMB,
    SCOREATTRIB_FLAG_VIP
}

public plugin_init() {

       register_plugin("All Vip", "1.0", "A k c 3 n 7")
       RegisterHam(Ham_Spawn, "player", "PlayerPostSpawn", 1)

       register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib")
       set_task( 60.0, "message", _, _, _, "b" );
}

public menu( id ) {
                     
       new menu = menu_create( "Weapons", "menu_handler" )   
       menu_additem( menu, "\rM4A1-DG-HE-FLASH" );
       menu_additem( menu, "\rAK47-DG-HE-FLASH" );
       menu_additem( menu, "\rAWP-DG-HE-FLASH" );

       menu_setprop( menu, MPROP_EXIT, MEXIT_ALL)
       menu_display( id, menu, 0 );
}

public message(id) {

       print_color(0, "!eVIP Free pentru toti jucatorii nostri!")
} 

public MessageScoreAttrib(iMsgId, iDest, iReceiver) {
 
       set_msg_arg_int(SCOREATTRIB_ARG_FLAGS, ARG_BYTE, SCOREATTRIB_FLAG_VIP)
}

public PlayerPostSpawn(id) {
	
	if(!is_user_alive(id)) return		
	
	if( g_round[ id ] > 1 ) { 
		menu( id )
	}       
	else {
		
		g_round[ id ]++
	}
	
	if( g_round[ id ] > 0 ) {
		
		switch( cs_get_user_team( id ) )
		{	
			case  CS_TEAM_T:   fm_strip_user_gun( id, CSW_GLOCK18, "weapon_glock18"), fm_give_item( id, "weapon_deagle"), cs_set_user_bpammo( id, CSW_DEAGLE, 35 )
			case  CS_TEAM_CT:  fm_strip_user_gun( id, CSW_USP, "weapon_usp"), fm_give_item( id, "weapon_deagle"), cs_set_user_bpammo( id, CSW_DEAGLE, 35 )

			}
	}
	g_round[id]++
}
       
public menu_handler( id, menu, item )
{	
	switch( item )
	{
		case 0:
		{
                        drop_primary( id )
                        fm_give_item(id, "weapon_m4a1"), cs_set_user_bpammo(id, CSW_M4A1, 90)
                        fm_give_item(id, "weapon_deagle"), cs_set_user_bpammo( id, CSW_DEAGLE, 35 );
                        fm_give_item(id, "weapon_hegrenade"), fm_give_item(id, "weapon_flashbang")
                        
		}
		case 1:
		{ 
                        drop_primary( id )
                        fm_give_item(id, "weapon_ak47"), cs_set_user_bpammo(id, CSW_AK47, 90)
                        fm_give_item(id, "weapon_deagle"), cs_set_user_bpammo( id, CSW_DEAGLE, 35 );
                        fm_give_item(id, "weapon_hegrenade"), fm_give_item(id, "weapon_flashbang")
		}
                case 2:
		{ 
                        drop_primary( id )
                        fm_give_item(id, "weapon_awp"), cs_set_user_bpammo(id, CSW_AWP, 90)
                        fm_give_item(id, "weapon_deagle"), cs_set_user_bpammo( id, CSW_DEAGLE, 35 );
                        fm_give_item(id, "weapon_hegrenade"), fm_give_item(id, "weapon_flashbang")
		}
        }
	menu_destroy( menu ) 
        return PLUGIN_HANDLED;
}

drop_primary(id)
{
    static weapons[32], num
    get_user_weapons(id, weapons, num)
 
    for (new i = 0; i < num; i++)
    {
        if (WEAPON_BITSUM & (1<<weapons[i]))
        {
            static wname[32];
            get_weaponname(weapons[i], wname, sizeof wname - 1)
 
            engclient_cmd(id, "drop", wname)
        }
    }
}

stock print_color( const id, const input[ ], any:... )
{
	new count = 1, players[ 32 ]
	
	static msg[ 191 ]
	vformat( msg, 190, input, 3 )
	
	replace_all( msg, 190, "!v", "^4" ) //- verde
	replace_all( msg, 190, "!g", "^1" ) //- galben
	replace_all( msg, 190, "!e", "^3" ) //- echipa
	replace_all( msg, 190, "!n", "^0" ) //- normal
	
	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( );
		}
	}
}
}
iar pentru show damage iti recomand sa pui acest plugin separat, nu are rost sa l includ in asta pe care ti l am dat cereri-pluginuri/cerere-plugin-bullet-d ... 51942.html
User avatar
BonBonel03
Membru, skill 0
Membru, skill 0
Posts: 20
Joined: 15 Apr 2023, 06:15
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: Da
SteamID: 231255654
Fond eXtream: 0
Location: Faro, Portugal.
Discord: BonBonel03#5809
Has thanked: 10 times
Contact:

22 May 2023, 05:24

Up!
User avatar
A k c 3 n 7
Super moderator
Super moderator
Posts: 5137
Joined: 25 Aug 2014, 21:31
Detinator Steam: Da
CS Status: who dares wins
SteamID: Jandarmeria
Reputatie: Super moderator
Moderatorul anului 2023
Fost Membru Club eXtreamCS ( o luna )
Fost eXtream Mod
Fost Intermediar
Nume anterior: Sorinel
Fond eXtream: 0
Location: Unknown
Discord: remusakcent
Has thanked: 4 times
Been thanked: 46 times

22 May 2023, 16:17

Code: Select all

#include < amxmodx >
#include < cstrike >
#include < hamsandwich >
#include < fakemeta_util >

new g_round[33]

const WEAPON_BITSUM = (1<<CSW_SCOUT) | (1<<CSW_XM1014) | (1<<CSW_MAC10) | (1<<CSW_AUG) | (1<<CSW_UMP45) | (1<<CSW_SG550) | (1<<CSW_P90) | 
(1<<CSW_FAMAS) | (1<<CSW_AWP) | (1<<CSW_MP5NAVY) | (1<<CSW_M249) | (1<<CSW_M3) | (1<<CSW_M4A1) | (1<<CSW_TMP) | (1<<CSW_G3SG1) | (1<<CSW_SG552) | 
(1<<CSW_AK47) | (1<<CSW_GALIL);

enum {
    SCOREATTRIB_ARG_PLAYERID = 1,
    SCOREATTRIB_ARG_FLAGS
}
 
enum ( <<= 1 ) {
    SCOREATTRIB_FLAG_NONE = 0,
    SCOREATTRIB_FLAG_DEAD = 1,
    SCOREATTRIB_FLAG_BOMB,
    SCOREATTRIB_FLAG_VIP
}

public plugin_init() {

       register_plugin("All Vip", "1.0", "A k c 3 n 7")
       RegisterHam(Ham_Spawn, "player", "PlayerPostSpawn", 1)

       register_message( get_user_msgid( "ScoreAttrib" ), "MessageScoreAttrib")
       set_task( 60.0, "message", _, _, _, "b" );
}

public menu( id ) {
                     
       new menu = menu_create( "Weapons", "menu_handler" )   
       menu_additem( menu, "\rM4A1-DG-HE-FLASH" );
       menu_additem( menu, "\rAK47-DG-HE-FLASH" );
       menu_additem( menu, "\rAWP-DG-HE-FLASH" );

       menu_setprop( menu, MPROP_EXIT, MEXIT_ALL)
       menu_display( id, menu, 0 );
}

public message(id) {

       print_color(0, "!eVIP Free pentru toti jucatorii nostri!")
} 

public MessageScoreAttrib(iMsgId, iDest, iReceiver) {
	
	new iPlayer = get_msg_arg_int(SCOREATTRIB_ARG_PLAYERID)
	
	if(!is_user_alive(iPlayer))
		return 
	
	set_msg_arg_int(SCOREATTRIB_ARG_FLAGS, ARG_BYTE, SCOREATTRIB_FLAG_VIP)
}

public PlayerPostSpawn(id) {
	
	if(!is_user_alive(id)) return		
	
	if( g_round[ id ] > 1 ) { 
		menu( id )
	}       
	else {
		
		g_round[ id ]++
	}
	
	if( g_round[ id ] > 0 ) {
		
		switch( cs_get_user_team( id ) )
		{	
			case  CS_TEAM_T:   fm_strip_user_gun( id, CSW_GLOCK18, "weapon_glock18"), fm_give_item( id, "weapon_deagle"), cs_set_user_bpammo( id, CSW_DEAGLE, 35 )
			case  CS_TEAM_CT:  fm_strip_user_gun( id, CSW_USP, "weapon_usp"), fm_give_item( id, "weapon_deagle"), cs_set_user_bpammo( id, CSW_DEAGLE, 35 )

			}
	}
	g_round[id]++
}
       
public menu_handler( id, menu, item )
{	
	switch( item )
	{
		case 0:
		{
                        drop_primary( id )
                        fm_give_item(id, "weapon_m4a1"), cs_set_user_bpammo(id, CSW_M4A1, 90)
                        fm_give_item(id, "weapon_deagle"), cs_set_user_bpammo( id, CSW_DEAGLE, 35 );
                        fm_give_item(id, "weapon_hegrenade"), fm_give_item(id, "weapon_flashbang")
                        
		}
		case 1:
		{ 
                        drop_primary( id )
                        fm_give_item(id, "weapon_ak47"), cs_set_user_bpammo(id, CSW_AK47, 90)
                        fm_give_item(id, "weapon_deagle"), cs_set_user_bpammo( id, CSW_DEAGLE, 35 );
                        fm_give_item(id, "weapon_hegrenade"), fm_give_item(id, "weapon_flashbang")
		}
                case 2:
		{ 
                        drop_primary( id )
                        fm_give_item(id, "weapon_awp"), cs_set_user_bpammo(id, CSW_AWP, 90)
                        fm_give_item(id, "weapon_deagle"), cs_set_user_bpammo( id, CSW_DEAGLE, 35 );
                        fm_give_item(id, "weapon_hegrenade"), fm_give_item(id, "weapon_flashbang")
		}
        }
	menu_destroy( menu ) 
        return PLUGIN_HANDLED;
}

drop_primary(id)
{
    static weapons[32], num
    get_user_weapons(id, weapons, num)
 
    for (new i = 0; i < num; i++)
    {
        if (WEAPON_BITSUM & (1<<weapons[i]))
        {
            static wname[32];
            get_weaponname(weapons[i], wname, sizeof wname - 1)
 
            engclient_cmd(id, "drop", wname)
        }
    }
}

stock print_color( const id, const input[ ], any:... )
{
	new count = 1, players[ 32 ]
	
	static msg[ 191 ]
	vformat( msg, 190, input, 3 )
	
	replace_all( msg, 190, "!v", "^4" ) //- verde
	replace_all( msg, 190, "!g", "^1" ) //- galben
	replace_all( msg, 190, "!e", "^3" ) //- echipa
	replace_all( msg, 190, "!n", "^0" ) //- normal
	
	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( );
		}
	}
}
}
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest