Вы используете устаревший браузер. Этот и другие сайты могут отображаться в нём некорректно. Вам необходимо обновить браузер или попробовать использовать другой.
public fw_TouchPre3(ent, id){
asi[id]=false
gold[id]=false
}
public vip_map(){
new mapname[33],currentmap[33];read_args(mapname,32);remove_quotes(mapname)
get_mapname(currentmap,charsmax(currentmap))
if(equal(mapname,currentmap)) en_map_r = true
}
public SpawnWeaponBox_Post(const ent)
{
state SetModelEnabled;
}
public set_model(ent, model[]) <SetModelDisabled>
return;
public set_model(ent, model[]) <SetModelEnabled>
{
if(!pev_valid(ent))
return;
if ( round_number < get_pcvar_num(cv_p[5] )){
ChatColor ( i , "%L",LANG_PLAYER,"VIP_NO_USE_IN_ROUND",get_pcvar_num(cv_p[5]) ,round_number );
return PLUGIN_HANDLED; }
if(buytime <= 0){
ChatColor ( i , "%L",LANG_PLAYER,"TIME_IS_UP",get_pcvar_num(cv_p[8]) );
return PLUGIN_HANDLED; }
if(weapon_gives == 1){
ChatColor ( i , "%L",LANG_PLAYER,"VIP_USED_WEAPON" );
return PLUGIN_HANDLED; }
if(!set_weapon){
ChatColor ( i , "%L",LANG_PLAYER,"VIP_SELECT_WEAPON" );
client_cmd(i, "weaponmenu");}
if(set_weapon==1){
strip_weapons(i,PRIMARY_ONLY)
give_item( i, "weapon_famas" )
cs_set_user_bpammo( i , CSW_FAMAS, 90 )
weapon_gives = 1
strip_weapons(i,SECONDARY_ONLY)
give_item( i, "weapon_deagle" )
cs_set_user_bpammo( i , CSW_DEAGLE, 35 )
}
if(set_weapon == 2){
strip_weapons(i,PRIMARY_ONLY)
gold = true
give_item( i, "weapon_famas" )
gold = false
cs_set_user_bpammo( i , CSW_FAMAS, 90 )
weapon_gives = 1
strip_weapons(i,SECONDARY_ONLY)
gold = true
give_item( i, "weapon_deagle" )
cs_set_user_bpammo( i , CSW_DEAGLE, 35 )
gold = false
}
if(set_weapon == 3){
strip_weapons(i,PRIMARY_ONLY)
asi = true
give_item( i, "weapon_famas" )
asi = false
cs_set_user_bpammo( i , CSW_FAMAS, 90 )
weapon_gives = 1
strip_weapons(i,SECONDARY_ONLY)
asi = true
give_item( i, "weapon_deagle" )
cs_set_user_bpammo( i , CSW_DEAGLE, 35 )
asi = false
}
}
case 3:
{
if ( ! is_user_alive ( i ) ){
ChatColor(i, "%L",LANG_PLAYER,"DEAD_VIP");
return PLUGIN_HANDLED; }
if ( round_number < get_pcvar_num(cv_p[6]) ){
ChatColor ( i , "%L",LANG_PLAYER,"VIP_NO_USE_IN_ROUND",get_pcvar_num(cv_p[6]),round_number );
client_cmd(i, "weaponmenu")
return PLUGIN_HANDLED;}
if ( awp_gives > 0 ) {
ChatColor ( i , "%L",LANG_PLAYER,"VIP_DELAY_AWP",get_pcvar_num(cv_p[7]),awp_gives );
client_cmd(i, "weaponmenu")
return PLUGIN_HANDLED; }
if(buytime <= 0){
ChatColor ( i , "%L",LANG_PLAYER,"TIME_IS_UP",get_pcvar_num(cv_p[8]) );
return PLUGIN_HANDLED; }
if(weapon_gives == 1){
ChatColor ( i , "%L",LANG_PLAYER,"VIP_USED_WEAPON" );
return PLUGIN_HANDLED; }
if(!set_weapon){
ChatColor ( i , "%L",LANG_PLAYER,"VIP_SELECT_WEAPON" );
client_cmd(i, "weaponmenu");}
if(set_weapon==1){
strip_weapons(i,PRIMARY_ONLY)
give_item( i, "weapon_awp" )
cs_set_user_bpammo( i , CSW_AWP, 30 )
weapon_gives = 1
awp_gives = get_pcvar_num(cv_p[7])
strip_weapons(i,SECONDARY_ONLY)
give_item( i, "weapon_deagle" )
cs_set_user_bpammo( i , CSW_DEAGLE, 35 )
}
if(set_weapon == 2){
strip_weapons(i,PRIMARY_ONLY)
gold = true
give_item( i, "weapon_awp" )
gold = false
cs_set_user_bpammo( i , CSW_AWP, 30 )
weapon_gives = 1
awp_gives = get_pcvar_num(cv_p[7])
strip_weapons(i,SECONDARY_ONLY)
gold = true
give_item( i, "weapon_deagle" )
cs_set_user_bpammo( i , CSW_DEAGLE, 35 )
gold = false
}
if(set_weapon == 3){
strip_weapons(i,PRIMARY_ONLY)
asi = true
give_item( i, "weapon_awp" )
asi = false
cs_set_user_bpammo( i , CSW_AWP, 30 )
weapon_gives = 1
awp_gives = get_pcvar_num(cv_p[7])
strip_weapons(i,SECONDARY_ONLY)
asi = true
give_item( i, "weapon_deagle" )
cs_set_user_bpammo( i , CSW_DEAGLE, 35 )
asi = false
}
}
case 4:
{
autoshow ? (autoshow = false) : (autoshow = true)
client_cmd(i, "weaponmenu")
}
case 5:
{
(set_weapon >= 3) ? (set_weapon = 1) : (set_weapon += 1)
client_cmd(i, "weaponmenu")
}
}
return PLUGIN_HANDLED ;
}
stock ChatColor(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[191]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4") // Green Color
replace_all(msg, 190, "!y", "^1") // Default Color
replace_all(msg, 190, "!team", "^3") // Team Color
replace_all(msg, 190, "!team2", "^0") // Team2 Color
if (id) players[0] = id; else get_players(players, count, "ch")
{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players)
write_byte(players);
write_string(msg);
message_end();
}
}
}
}
enum
{
MODEL_NULL = 0,
MODEL_AUG = 1,
MODEL_AK47 = 2,
MODEL_AWP = 3,
MODEL_MP5NAVY = 4,
MODEL_P90 = 5,
MODEL_GALIL = 6,
MODEL_M4A1 = 7,
MODEL_SG550 = 8,
MODEL_SG552 = 9,
MODEL_SCOUT = 10,
MODEL_XM1014 = 11,
MODEL_M3 = 12,
MODEL_G3SG1 = 13,
MODEL_M249 = 14,
MODEL_FAMAS = 15,
MODEL_UMP45 = 16,
MODEL_AK47GOLD = 17,
MODEL_M4A1GOLD = 18,
MODEL_AWPGOLD = 19,
MODEL_FAMASGOLD = 20,
MODEL_AK47ASI = 21,
MODEL_M4A1ASI = 22,
MODEL_AWPASI = 23,
MODEL_FAMASASI = 24
}
stock get_weapon_model(weapon)
{
switch(weapon)
{
case CSW_SCOUT: return MODEL_SCOUT
case CSW_XM1014: return MODEL_XM1014
case CSW_AUG: return MODEL_AUG
case CSW_UMP45: return MODEL_UMP45
case CSW_SG550: return MODEL_SG550
case CSW_GALIL: return MODEL_GALIL
case CSW_FAMAS: return MODEL_FAMAS
case CSW_AWP: return MODEL_AWP
case CSW_MP5NAVY: return MODEL_MP5NAVY
case CSW_M249: return MODEL_M249
case CSW_M3: return MODEL_M3
case CSW_M4A1: return MODEL_M4A1
case CSW_G3SG1: return MODEL_G3SG1
case CSW_SG552: return MODEL_SG552
case CSW_AK47: return MODEL_AK47
case CSW_P90: return MODEL_P90
}
return 0
}
stock get_weapon_modelasi(weapon)
{
switch(weapon)
{
case CSW_FAMAS: return MODEL_FAMASASI
case CSW_AWP: return MODEL_AWPASI
case CSW_M4A1: return MODEL_M4A1ASI
case CSW_AK47: return MODEL_AK47ASI
}
return 0
}
stock get_weapon_modelgold(weapon)
{
switch(weapon)
{
case CSW_FAMAS: return MODEL_FAMASGOLD
case CSW_AWP: return MODEL_AWPGOLD
case CSW_M4A1: return MODEL_M4A1GOLD
case CSW_AK47: return MODEL_AK47GOLD
}
return 0
}
public buytimer() buytime--