Descriere:Acest plugin este un shop + vip avansat care puteti sa il controlati din cvaruri,sa il lasati doar shop s'au si vip.Cititi explicatiile cvarurilor si o sa vedeti.
O sa ii fac update cat de des pot.
*
UPDATE*
LINK1:
http://www.girlshare.ro/33361907.7LINK2: http://www35.zippyshare.com/v/26761699/file.htmlLINK3: http://www.multiupload.nl/1OIGXCIQUTAm adaugat si
.AMXX si acum il puteti compila cso_shop.
*
UPDATE*
v1.9aLINK 1:
http://www.girlshare.ro/33227063.1LINK 2:
http://www.multiupload.nl/KG70UF9G1ULINK 3:
http://www75.zippyshare.com/v/40473765/file.htmlAceasta versiune contine arme cso + modele la ct/t,cititi cvarurile.
v1.6LINK1: http://www.girlshare.ro/33167435.4LINK2: http://www37.zippyshare.com/v/2487932/file.htmlLINK3: http://www.multiupload.nl/TI2EYE68V0ATENTIE !
Pentru a putea folosii aceasta versiune trebuie sa aveti instalat pluginul de credite al lui Askhanar,il gasiti aici:
http://www.extreamcs.com/forum/amxmodx/furien-credits-system-t204666.htmlv1.5 http://www.girlshare.ro/33161126.9LINK2 http://www28.zippyshare.com/v/30991049/file.htmlLINK3 http://www.multiupload.nl/73IAP336J1v1.4 http://www.girlshare.ro/33157676.2LINK2 http://www68.zippyshare.com/v/6906922/file.htmlLINK3 http://www.multiupload.nl/CNVATV08ZGv1.0Descarcare:
http://www.girlshare.ro/33068081.2Link 2:
http://fisierulmeu.ro/657VVNG9W2Z8/Vmenu-rar.htmlv1.1Link download: http://www.girlshare.ro/33105243.6
Link2: http://fisierulmeu.ro/67QQIRFJQHLV/cstrike-rar.html
[b]Resursele le gasiti aici in arhiva cu pluginul respectiv !
v1.2 gresisem ceva.
http://www.girlshare.ro/33108440.2Nume: Vmenu
Autor: C0sm1N
Versiune: 1.3 il gasiti mai sus.
Link oficial: aici
Instalare:
1. Fisierul
Vmenu.sma il puneti in
addons/amxmodx/scripting2. Fisierul
Vmenu.amxx il puneti in
addons/amxmodx/plugins3. Intrati in fisierul
addons/amxmodx/configs/plugins.ini si adaugati la urma:
- Cod:
-
Vmenu.amxx
4.Fisierul
models.rar il dezarhivati si obtineti cateva foldere pe care le adaugati in models.
Cvar-uri (se adauga in fisierul
amxmodx\configs\amxx.cfg):
Adaugati in
amxx.cfg dupa preferinte:
- Cod:
-
* cvar_preturi "0" //default 0 // 0 OFF/1 ON Cand tastezi /cumparavip arata motd.
* cvar_beneficii "0" //default 0 // 0 OFF/1 ON Cand tastezi /vip arata motd.
* cvar_health "4" // Cata viata sa primeasca cand face kill normal.
* cvar_headshot "8" // Cata viata sa primeasca cand da headshot.
* cvar_money "400" // Cati bani sa primeasca cand face kill normal.
* cvar_moneyh "500" // Cati bani sa primeasca cand da headshot.
* cvar_accesshop "0" //default 0 // 0 ON doar daca are flagurile "ab" are acces la shop // 1 ON doar daca userul este admin // 2 au toti playerii acces la shop // 3 shop dezactivat.
* cvar_healthspawn "20" // Cata viata sa primeasca la spawn.
* cvar_armorspawn "20" // Cata armura sa primeasca la spawn.
* cvar_putinserver "0" //default 0 // 0 OFF numai apare mesaj cand un vip intra pe server/1 ON apare mesaj cand un vip intra pe server.
* cvar_disconnect "0" //default 0 // 0 OFF numai apare mesajul cand un vip iese/1 ON apare mesajul cand un vip intra.
* cvar_tabscore "0" //default 0 // 0 OFF numai apare VIP in scoreboard/1 ON apare VIP in scoreboard.
* cvar_bonus "0" //default 0 // 0 OFF numai da bani si viata cand face kill/1 ON da viata si bani cand face kill/2 ON toti playerii primesc bani/viata cand fac kill.
* cvar_spawn "0" //default 0 // 0 OFF numai da viata/armura/skin knife la spawn/1 ON doar pentru vip/2 ON doar daca nu are vip/3 ON doar daca este admin/4 ON pentru toti,da la tot viata/armura/skin la spawn ( VIPI + playeri normali).
* cvar_bullets "0" //default 0 // 0 OFF numai arata liniile cand tragi cu arma gold/1 ON arata linii cand tragi cu arme gold.
* cvar_mcredite "0" //default 0 // 0 ON poti cumpara iteme pe bani/1 ON poti cumpara iteme pe credite (pluginu-l de credite al lu' askhanar).
* cvar_mmodels "0" //default 0 // 0 ON doar daca esit vip/1 OFF modele dezactivate/2 ON pentru toti playerii dupa server/3 ON doar daca esti admin.
*/
Comenzi administrative (se tasteaza in consola si trebuie sa fiti administrator):
- Nu
Comenzi publice (se tasteaza in joc prin apasarea tastei
Y):
- /shop
Module necesare (se sterge ; din fata modulului de mai jos; acestea le gasiti in fisierul amxmodx\configs\modules.ini):
-cstrike
-fakemeta
-amxmisc
-fun
-engine
-hamsandwich
Sursa o aveti aici: [sursa=]/* Credite: =>> Cyby <<= */
//Cvaruri (de adaugat in amxx.cfg)
/*
* cvar_preturi "0" //default 0 // 0 OFF/1 ON Cand tastezi /cumparavip arata motd.
* cvar_beneficii "0" //default 0 // 0 OFF/1 ON Cand tastezi /vip arata motd.
* cvar_health "4" // Cata viata sa primeasca cand face kill normal.
* cvar_headshot "8" // Cata viata sa primeasca cand da headshot.
* cvar_money "400" // Cati bani sa primeasca cand face kill normal.
* cvar_moneyh "500" // Cati bani sa primeasca cand da headshot.
* cvar_accesshop "0" //default 0 // 0 ON doar daca are flagurile "ab" are acces la shop // 1 ON doar daca userul este admin // 2 au toti playerii acces la shop // 3 shop dezactivat.
* cvar_healthspawn "20" // Cata viata sa primeasca la spawn.
* cvar_armorspawn "20" // Cata armura sa primeasca la spawn.
* cvar_putinserver "0" //default 0 // 0 OFF numai apare mesaj cand un vip intra pe server/1 ON apare mesaj cand un vip intra pe server.
* cvar_disconnect "0" //default 0 // 0 OFF numai apare mesajul cand un vip iese/1 ON apare mesajul cand un vip intra.
* cvar_tabscore "0" //default 0 // 0 OFF numai apare VIP in scoreboard/1 ON apare VIP in scoreboard.
* cvar_bonus "0" //default 0 // 0 OFF numai da bani si viata cand face kill/1 ON da viata si bani cand face kill/2 ON toti playerii primesc bani/viata cand fac kill.
* cvar_spawn "0" //default 0 // 0 OFF numai da viata/armura/skin knife la spawn/1 ON doar pentru vip/2 ON doar daca nu are vip/3 ON doar daca este admin/4 ON pentru toti,da la tot viata/armura/skin la spawn ( VIPI + playeri normali).
* cvar_bullets "0" //default 0 // 0 OFF numai arata liniile cand tragi cu arma gold/1 ON arata linii cand tragi cu arme gold.
* cvar_mcredite "0" //default 0 // 0 ON poti cumpara iteme pe bani/1 ON poti cumpara iteme pe credite (pluginu-l de credite al lu' askhanar).
* cvar_mmodels "0" //default 0 // 0 ON doar daca esit vip/1 OFF modele dezactivate/2 ON pentru toti playerii dupa server/3 ON doar daca esti admin.
*/
#include < amxmodx >
#include < amxmisc >
#include < fun >
#include < hamsandwich >
#include < fakemeta >
#include < cstrike >
#include < engine >
#include < fcs >
#include < arme >
#define PLUGIN "Sistem Shop si Vip"
#define VERSION "1.9a"
#define AUTHOR "C0sm1N"
#define IsPlayer(%0) (1 <= %0 <= g_iMaxPlayers)
new bool:g_bKnife[33], bool:g_bA1[33], bool:g_bAk47[33], bool:g_bAwp[33], bool:g_bDeagle[33], bool:g_bXm[33], bool:g_bMp5[33], bool:g_bM249[33], bool:g_bFamas[33];
new Task = 123456
new g_iMaxPlayers
new bool:bSpeed[33], bool:bInvis[33];
new bullets[33];
new m_spriteTexture;
/* Knife */
new Knife_Model[66] = "models/knifevip/v_knife.mdl"
/* M4a1 */
new M4A1_Gold1[66] = "models/golden_m4a1/v_m4a1.mdl"
new M4A1_Gold2[66] = "models/golden_m4a1/p_m4a1.mdl"
new M4A1_Gold3[66] = "models/golden_m4a1/w_m4a1.mdl"
/* Ak47 */
new Ak47_Gold1[66] = "models/golden_ak47/v_ak47.mdl"
new Ak47_Gold2[66] = "models/golden_ak47/p_ak47.mdl"
new Ak47_Gold3[66] = "models/golden_ak47/w_ak47.mdl"
/* Awp */
new Awp_Gold1[66] = "models/golden_awp/v_awp.mdl"
new Awp_Gold2[66] = "models/golden_awp/p_awp.mdl"
new Awp_Gold3[66] = "models/golden_awp/w_awp.mdl"
/* Deagle */
new Deagle_Gold1[66] = "models/golden_deagle/v_golden_deagle.mdl"
new Deagle_Gold2[66] = "models/golden_deagle/p_golden_deagle.mdl"
new Deagle_Gold3[66] = "models/golden_deagle/w_deagle.mdl"
/* Xm1014 */
new Xm_Gold1[66] = "models/golden_xm/v_golden_xm1014.mdl"
new Xm_Gold2[66] = "models/golden_xm/p_golden_xm1014.mdl"
new Xm_Gold3[66] = "models/golden_xm/w_golden_xm1014.mdl"
register_cvar("cvar_putinserver","0");
register_cvar("cvar_disconnect","0");
register_cvar("cvar_tabscore","0");
register_cvar("cvar_bonus","0");
register_cvar("cvar_spawn","0");
register_cvar("cvar_bullets","0");
register_cvar("cvar_mcredite","0");
register_cvar("cvar_mmodels","0");
g_iMaxPlayers = get_maxplayers ( )
}
public block_update(id)
return 1;
stock bool:g_Vip( id )
{
if(get_user_flags(id) & read_flags("ab"))
return true;
return false;
}
public block(id) return PLUGIN_HANDLED
public event_deathmsg( id )
{
new iKiller
new iVictim
new iHeadshot
if(g_Vip(id) && get_cvar_num("cvar_bonus") == 1 || get_cvar_num("cvar_bonus") == 2)
{
iKiller = read_data(1)
iVictim = read_data(2)
iHeadshot = read_data(3)
if(iKiller != iVictim && is_user_alive(iKiller))
{
set_user_health(iKiller, get_user_health(iKiller) + get_cvar_num("cvar_health"))
cs_set_user_money(iKiller, cs_get_user_money(iKiller) + get_cvar_num("cvar_money"))
}
if(iHeadshot)
{
set_user_health(iKiller, get_user_health(iKiller) + get_cvar_num("cvar_headshot"))
cs_set_user_money(iKiller, cs_get_user_money(iKiller) + get_cvar_num("cvar_moneyh"))
}
}
if(get_cvar_num("cvar_bonus") == 0)
return;
}
public event_new_round( )
{
new iPlayers[32], iNum;
get_players(iPlayers, iNum)
for(new i = 0;i < iNum; i++)
{
g_bAk47[iPlayers[i]] = false
g_bA1[iPlayers[i]] = false
g_bAwp[iPlayers[i]] = false
delete_balrog(iPlayers[i])
delete_coilgun(iPlayers[i])
}
}
public make_tracer(id)
{
new clip,ammo
new wpnid = get_user_weapon(id,clip,ammo)
new pteam[16]
get_user_team(id, pteam, 15)
if(get_cvar_num("cvar_bullets") == 1)
{
if((bullets[id] > clip) && (wpnid == CSW_M4A1) && g_bA1[id] || (wpnid == CSW_AK47) && g_bAk47[id] || (wpnid == CSW_XM1014) && g_bXm[id] || (wpnid == CSW_DEAGLE) && g_bDeagle[id] || (wpnid == CSW_AWP) && g_bAwp[id] || (wpnid == CSW_MP5NAVY) && g_bMp5[id] || (wpnid == CSW_M249) && g_bM249[id] || (wpnid == CSW_FAMAS) && g_bFamas[id])
{
new vec1[3], vec2[3]
get_user_origin(id, vec1, 1)
get_user_origin(id, vec2, 4)
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte (0)
write_coord(vec1[0])
write_coord(vec1[1])
write_coord(vec1[2])
write_coord(vec2[0])
write_coord(vec2[1])
write_coord(vec2[2])
write_short( m_spriteTexture )
write_byte(1)
write_byte(5)
write_byte(2)
write_byte(10)
write_byte(0)
write_byte( 255 )
write_byte( 215 )
write_byte( 0 )
write_byte(200)
write_byte(150)
message_end()
}
}
if(get_cvar_num("cvar_bullets") == 0)
return;
bullets[id] = clip
}
public cmdShop( id )
{
if(!is_user_alive(id) || is_user_bot(id) || get_user_team(id) != 2)
return;
if(g_Vip(id) && get_cvar_num("cvar_accesshop") == 0)
afiseaza( id )
if(is_user_admin(id) && get_cvar_num("cvar_accesshop") == 1)
afiseaza( id )
if(get_cvar_num("cvar_accesshop") == 2)
afiseaza( id )
if(get_cvar_num("cvar_accesshop") == 3)
return;
}
public afiseaza( id )
{
static menu;
menu = menu_create ("\yShop \r[Cumpara Iteme]","Menu_Handler")
menu_additem ( menu,"\r Echipament","0", 0 )
menu_additem ( menu,"\y Arme \r Gold","1", 0 )
menu_additem ( menu,"\y Arme \r CSO","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_Handler( id, menu, item )
{
if(!is_user_alive(id))
return
if ( item == MENU_EXIT )
{
menu_destroy ( menu );
return
}
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 0: echipament( id )
case 1: golden_arme( id )
case 2: cso_arme( id )
}
menu_destroy ( menu );
return
}
public echipament( id )
{
static menu;
menu = menu_create ("\yShop \r[Cumpara Iteme]","Menu_Echipamentid")
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w Grenada \r[2500$]","1", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w Grenada \r[2 Credite]","1", 0 )
}
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w Armura + Viata (+100 ambele) \r[10000$]","2", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w Armura + Viata (+100 ambele) \r[10 Credite]","2", 0 )
}
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w Grenada + Flash + Smoke \r[5000$]","3", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w Grenada + Flash + Smoke \r[7 Credite]","3", 0 )
}
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w Flash \r[1000$]","4", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w Flash \r[1 Credite]","4", 0 )
}
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w Smoke \r[500$]","5", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w Smoke \r[1 Credite]","5", 0 )
}
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w Viata +25 \r[4000$]","6", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w Viata +25 \r[6 Credite]","6", 0 )
}
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w Armura +20 \r[2000$]","7", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w Armura +20 \r[4 Credite]","7", 0 )
}
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w Defuse Kit \r[800$]","8", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w Defuse Kit \r[2 Credite]","8", 0 )
}
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w GodMode(10 secunde) \r[14000$]","9", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w GodMode(10 secunde) \r[25 Credite]","9", 0 )
}
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w Speed(O runda) \r[8000$]","10", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w Speed(O runda) \r[10 Credite]","10", 0 )
}
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w Invizibilitate(40 secunde) \r[10000$]","11", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w Invizibilitate(40 secunde) \r[30 Credite]","11", 0 )
}
menu_setprop ( menu, MPROP_NUMBER_COLOR,"\y")
menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL )
menu_display ( id, menu, 0 )
return 0
}
public Menu_Echipamentid(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 );
new pcredite = fcs_get_user_credits(id)
new cost = cs_get_user_money(id)
switch ( key )
{
case 1:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 2500)
{
give_item ( id,"weapon_hegrenade" )
cs_set_user_money(id, cs_get_user_money(id) - 2500)
}
else
{
new money = 2500 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item,iti mai trebuie !g%i$",money)
return 1
}
}
else if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 2)
{
give_item ( id,"weapon_hegrenade" )
fcs_set_user_credits(id, fcs_get_user_credits(id) - 2)
}
else
{
new credits = 2 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item, iti mai trebuie !g%i credite.",credits)
return 1
}
}
}
case 2:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 10000)
{
set_user_health(id, get_user_health(id) + 100)
set_user_armor(id, get_user_armor(id) + 100)
cs_set_user_money(id, cs_get_user_money(id) - 10000)
}
else
{
new money = 10000 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item, iti mai trebuie !g%i$",money)
return 1
}
}
if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 10)
{
fcs_set_user_credits(id, fcs_get_user_credits(id) - 10)
set_user_health(id, get_user_health(id) + 100)
set_user_armor(id, get_user_armor(id) + 100)
}
else
{
new credits = 10 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item, iti mai trebuie !g%i credite",credits)
return 1
}
}
}
case 3:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 5000)
{
give_item ( id,"weapon_flashbang" )
give_item ( id,"weapon_hegrenade" )
give_item ( id,"weapon_smokegrenade" )
cs_set_user_money(id, cs_get_user_money(id) - 5000)
}
else
{
new money = 5000 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item, mai ai nevoie de !g%i$",money)
return 1
}
}
if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 7)
{
fcs_set_user_credits(id, fcs_get_user_credits(id) - 7)
give_item ( id,"weapon_flashbang" )
give_item ( id,"weapon_hegrenade" )
give_item ( id,"weapon_smokegrenade" )
}
else
{
new credits = 7 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item, mai ai nevoie de !g%i credite",credits)
return 1
}
}
}
case 4:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 1000)
{
give_item ( id,"weapon_flashbang" )
cs_set_user_money(id, cs_get_user_money(id) - 1000)
}
else
{
new money = 1000 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item, mai ai nevoie de !g%i$",money)
return 1
}
}
if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 1)
{
fcs_set_user_credits(id, fcs_get_user_credits(id) - 1)
give_item ( id,"weapon_flashbang" )
}
else
{
new credits = 1 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item, mai ai nevoie de !g%i credite",credits)
return 1
}
}
}
case 5:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 500)
{
give_item ( id,"weapon_smokegrenade" )
cs_set_user_money(id, cs_get_user_money(id) - 500)
}
else
{
new money = 500 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item, mai ai nevoie de !g%i$",money)
return 1
}
}
if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 1)
{
give_item ( id,"weapon_smokegrenade" )
fcs_set_user_credits(id, fcs_get_user_credits(id) - 1)
}
else
{
new credits = 1 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item,mai ai nevoie de !g%i credite",credits)
return 1
}
}
}
case 6:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 4000)
{
set_user_health(id, get_user_health(id) + 25)
cs_set_user_money(id, cs_get_user_money(id) - 4000)
}
else
{
new money = 4000 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item,mai ai nevoie de !g%i$",money)
return 1
}
}
if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 6)
{
fcs_set_user_credits(id, fcs_get_user_credits(id) - 6)
set_user_health(id, get_user_health(id) + 25)
}
else
{
new credits = 6 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item,mai ai nevoie de !g%i credite",credits)
return 1
}
}
}
case 7:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 2000)
{
set_user_armor(id, get_user_armor(id) + 20)
cs_set_user_money(id, cs_get_user_money(id) - 2000)
}
else
{
new money = 2000 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item,mai ai nevoie de !g%i$",money)
return 1
}
}
if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 4)
{
set_user_armor(id, get_user_armor(id) + 20)
fcs_set_user_credits(id, fcs_get_user_credits(id) - 4)
}
else
{
new credits = 4 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item,mai ai nevoie de !g%i credite",credits)
return 1
}
}
}
case 8:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 800)
{
give_item(id, "item_thighpack")
cs_set_user_money(id, cs_get_user_money(id) - 800)
}
else
{
new money = 800 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item,mai ai nevoie de !g%i$",money)
return 1
}
}
if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 2)
{
fcs_set_user_credits(id, fcs_get_user_credits(id) - 2)
give_item(id, "item_thighpack")
}
else
{
new credits = 2 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item,maiia nevoie de !g%i credite",credits)
return 1
}
}
}
case 9:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 14000)
{
set_user_godmode(id, 1)
cs_set_user_money(id, cs_get_user_money(id) - 14000)
set_task(10.0,"GodmodeOFF",id)
}
else
{
new money = 14000 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item,mai ai nevoie de !g%i$",money)
return 1;
}
}
if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 25)
{
fcs_set_user_credits(id, fcs_get_user_credits(id) - 25)
set_user_godmode(id, 1)
set_task(10.0,"GodmodeOFF",id)
}
else
{
new credits = 25 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item,mai ai nevoie de !g%i credite",credits)
return 1
}
}
}
case 10:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 8000)
{
cs_set_user_money(id, cs_get_user_money(id) - 8000)
set_user_maxspeed(id, 800.0)
bSpeed[id] = true;
}
else
{
new money = 8000 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item,mai ai nevoie de !g%i$",money)
return 1;
}
}
if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 10)
{
fcs_set_user_credits(id, fcs_get_user_credits(id) - 10)
set_user_maxspeed(id, 800.0)
bSpeed[id] = true;
}
else
{
new credits = 10 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item,mai ai nevoie de !g%i cerdite",credits)
return 1
}
}
}
case 11:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 10000)
{
cs_set_user_money(id, cs_get_user_money(id) - 10000)
set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 0)
set_task(40.0,"InvisOFF",id)
bInvis[id] = true;
}
else
{
new money = 10000 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item,mai ai nevoie de !g%i$",money)
return 1;
}
}
if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 30)
{
fcs_set_user_credits(id, fcs_get_user_credits(id) - 30)
set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 0)
set_task(40.0,"InvisOFF",id)
bInvis[id] = true;
}
else
{
new credits = 30 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item,mai ai nevoie de !g%i credite",credits)
return 1
}
}
}
}
menu_destroy ( menu );
return 1;
}
public golden_arme( id )
{
static menu;
menu = menu_create ("\yShop \r[Cumpara Arme]","Menu_Golden")
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w Ak47\yGold \r[10000$]","1", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w Ak47\yGold \r[20 Credite]","1", 0 )
}
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w M4A1\yGold \r[10000$]","2", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w M4A1\yGold \r[20 Credite]","2", 0 )
}
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w Awp\yGold \r[10000$]","3", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w Awp\yGold \r[15 Credite]","3", 0 )
}
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w Deagle\yGold \r[6000$]","4", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w Deagle\yGold \r[10 Credite]","4", 0 )
}
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w Xm1014\yGold \r[11000$]","5", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w Xm1014\yGold \r[25 Credite]","5", 0 )
}
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w Dual\yMp5 \r[11000$]","6", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w Dual\yMp5 \r[15 Credite]","6", 0 )
}
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w Famas\yGold \r[10000$]","7", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w Famas\yGold \r[15 Credite]","7", 0 )
}
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w M249\yGold \r[16000$]","8", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w M249\yGold \r[35 Credite]","8", 0 )
}
menu_setprop ( menu, MPROP_NUMBER_COLOR,"\y")
menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL )
menu_display ( id, menu, 0 )
return 0
}
public Menu_Golden( 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 );
new pcredite = fcs_get_user_credits(id)
new cost = cs_get_user_money(id)
switch ( key )
{
case 1:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 10000)
{
cs_set_user_money(id, cs_get_user_money(id) - 10000)
give_item(id, "weapon_ak47")
give_item(id,"ammo_762nato")
give_item(id,"ammo_762nato")
give_item(id,"ammo_762nato")
g_bAk47[id] = true
}
else
{
new money = 10000 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item,mai ai nevoie de !g%i$",money)
return 1
}
}
if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 20)
{
fcs_set_user_credits(id, fcs_get_user_credits(id) - 20)
give_item(id, "weapon_ak47")
give_item(id,"ammo_762nato")
give_item(id,"ammo_762nato")
give_item(id,"ammo_762nato")
g_bAk47[id] = true
}
else
{
new credits = 20 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item,mai ai nevoie de !g%i credite",credits)
return 1
}
}
}
case 2:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 10000)
{
cs_set_user_money(id, cs_get_user_money(id) - 10000)
give_item(id, "weapon_m4a1")
give_item(id,"ammo_556nato")
give_item(id,"ammo_556nato")
give_item(id,"ammo_556nato")
g_bA1[id] = true
}
else
{
new money = 10000 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item,mai ai nevoie de !g%i$",money)
return 1
}
}
if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 20)
{
give_item(id, "weapon_m4a1")
give_item(id,"ammo_556nato")
give_item(id,"ammo_556nato")
give_item(id,"ammo_556nato")
g_bA1[id] = true
fcs_set_user_credits(id, fcs_get_user_credits(id) - 20)
}
else
{
new credits = 20 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item,mai ai nevoie de !g%i credite",credits)
return 1
}
}
}
case 3:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 10000)
{
cs_set_user_money(id, cs_get_user_money(id) - 10000)
give_item(id, "weapon_awp")
give_item(id,"ammo_338magnum")
give_item(id,"ammo_338magnum")
give_item(id,"ammo_338magnum")
g_bAwp[id] = true
}
else
{
new money = 10000 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item,mai ai nevoie de !g%i$",money)
return 1
}
}
if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 15)
{
give_item(id, "weapon_awp")
give_item(id,"ammo_338magnum")
give_item(id,"ammo_338magnum")
give_item(id,"ammo_338magnum")
g_bAwp[id] = true
fcs_set_user_credits(id, fcs_get_user_credits(id) - 15)
}
else
{
new credits = 15 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item,mai ai nevoie de !g%i credite",credits)
return 1
}
}
}
case 4:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 6000)
{
cs_set_user_money(id, cs_get_user_money(id) - 6000)
give_item(id, "weapon_deagle")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
g_bDeagle[id] = true;
}
else
{
new money = 6000 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item,mai ai nevoie de !g%i$",money)
return 1
}
}
if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 10)
{
fcs_set_user_credits(id, fcs_get_user_credits(id) - 10)
give_item(id, "weapon_deagle")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
give_item(id,"ammo_50ae")
g_bDeagle[id] = true;
}
else
{
new credits = 10 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item,mai ai nevoie de !g%i cerdite",credits)
return 1
}
}
}
case 5:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 11000)
{
cs_set_user_money(id, cs_get_user_money(id) - 11000)
give_item(id,"weapon_xm1014")
give_item(id,"ammo_buckshot")
give_item(id,"ammo_buckshot")
give_item(id,"ammo_buckshot")
g_bXm[id] = true
}
else
{
new money = 11000 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item,mai ai nevoie de !g%i$",money)
return 1
}
}
if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 25)
{
fcs_set_user_credits(id, fcs_get_user_credits(id) - 25)
give_item(id,"weapon_xm1014")
give_item(id,"ammo_buckshot")
give_item(id,"ammo_buckshot")
give_item(id,"ammo_buckshot")
g_bXm[id] = true
}
else
{
new credits = 25 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item,mai ai nevoie de !g%i credite",credits)
return 1
}
}
}
case 6:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 11000)
{
cs_set_user_money(id, cs_get_user_money(id) - 11000)
give_item(id,"weapon_mp5navy")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
g_bMp5[id] = true;
}
else
{
new money = 11000 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item,mai ai nevoie de !g%i$",money)
return 1;
}
}
if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 15)
{
fcs_set_user_credits(id, fcs_get_user_credits(id) - 15)
give_item(id,"weapon_mp5navy")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
give_item(id,"ammo_9mm")
g_bMp5[id] = true;
}
else
{
new credits = 15 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item,mai ai nevoie de !g%i credite",credits)
return 1
}
}
}
case 7:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 10000)
{
cs_set_user_money(id, cs_get_user_money(id) - 10000)
give_item(id, "weapon_famas")
g_bFamas[id] = true;
give_item(id,"ammo_556nato")
give_item(id,"ammo_556nato")
give_item(id,"ammo_556nato")
}
else
{
new money = 10000 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item,mai ai nevoie de !g%i$",money)
return 1;
}
}
if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 15)
{
fcs_set_user_credits(id, fcs_get_user_credits(id) - 15)
give_item(id, "weapon_famas")
g_bFamas[id] = true;
give_item(id,"ammo_556nato")
give_item(id,"ammo_556nato")
give_item(id,"ammo_556nato")
}
else
{
new credits = 15 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item,mai ai nevoie de !g%i credite",credits)
return 1
}
}
}
case 8:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 16000)
{
cs_set_user_money(id, cs_get_user_money(id) - 16000)
give_item(id, "weapon_m249")
g_bM249[id] = true;
give_item(id,"ammo_556nato")
give_item(id,"ammo_556nato")
give_item(id,"ammo_556nato")
}
else
{
new money = 16000 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item,mai ai nevoie de !g%i$",money)
return 1;
}
}
if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 35)
{
fcs_set_user_credits(id, fcs_get_user_credits(id) - 35)
give_item(id, "weapon_m249")
g_bM249[id] = true;
give_item(id,"ammo_556nato")
give_item(id,"ammo_556nato")
give_item(id,"ammo_556nato")
}
else
{
new credits = 35 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item,mai ai nevoie de !g%i credite",credits)
return 1
}
}
}
}
menu_destroy ( menu );
return 1;
}
public cso_arme( id )
{
static menu;
menu = menu_create ("\yShop \r[Cumpara Arme]","Menu_CSO")
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w Etheral \r[16000$]","1", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w Etheral \r[60 Credite]","1", 0 )
}
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w Thunder \r[14000$]","2", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w Thunder \r[40 Credite]","2", 0 )
}
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w Coil Gun \r[15000$]","3", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w Coil Gun \r[50 Credite]","3", 0 )
}
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w Plasma Gun \r[16000$]","4", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w Plasma Gun \r[55 Credite]","4", 0 )
}
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w Oicw Gun \r[14000$]","5", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w Oicw Gun \r[45 Credite]","5", 0 )
}
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w Firecracker Gun \r[16000$]","6", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w Firecracker Gun \r[60 Credite]","6", 0 )
}
if(get_cvar_num("cvar_mcredite") == 0)
{
menu_additem ( menu,"\w Balrog Gun \r[16000$]","7", 0 )
}
if(get_cvar_num("cvar_mcredite") == 1)
{
menu_additem ( menu,"\w Balrog Gun \r[55 Credite]","7", 0 )
}
menu_setprop ( menu, MPROP_NUMBER_COLOR,"\y")
menu_setprop ( menu, MPROP_EXIT, MEXIT_ALL )
menu_display ( id, menu, 0 )
return 0
}
public Menu_CSO( 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 );
new pcredite = fcs_get_user_credits(id)
new cost = cs_get_user_money(id)
switch ( key )
{
case 1:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 16000)
{
cs_set_user_money(id, cs_get_user_money(id) - 16000)
give_etheral(id)
}
else
{
new money = 16000 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item,mai ai nevoie de !g%i$",money)
return 1;
}
}
if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 60)
{
fcs_set_user_credits(id, fcs_get_user_credits(id) - 60)
give_etheral(id)
}
else
{
new credits = 60 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item,mai ai nevoie de !g%i credite",credits)
return 1
}
}
}
case 2:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 14000)
{
cs_set_user_money(id, cs_get_user_money(id) - 14000)
givee_tunder(id)
}
else
{
new money = 14000 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item,mai ai nevoie de !g%i$",money)
return 1;
}
}
if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 40)
{
fcs_set_user_credits(id, fcs_get_user_credits(id) - 40)
givee_tunder(id)
}
else
{
new credits = 40 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item,mai ai nevoie de !g%i credite",credits)
return 1
}
}
}
case 3:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 15000)
{
cs_set_user_money(id, cs_get_user_money(id) - 15000)
give_coilgun(id)
}
else
{
new money = 15000 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item,mai ai nevoie de !g%i$",money)
return 1;
}
}
if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 50)
{
fcs_set_user_credits(id, fcs_get_user_credits(id) - 50)
give_coilgun(id)
}
else
{
new credits = 50 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item,mai ai nevoie de !g%i credite",credits)
return 1
}
}
}
case 4:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 16000)
{
cs_set_user_money(id, cs_get_user_money(id) - 16000)
give_plasmagun(id)
}
else
{
new money = 16000 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item,mai ai nevoie de !g%i$",money)
return 1;
}
}
if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 55)
{
fcs_set_user_credits(id, fcs_get_user_credits(id) - 55)
give_plasmagun(id)
}
else
{
new credits = 55 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item,mai ai nevoie de !g%i credite",credits)
return 1
}
}
}
case 5:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 14000)
{
cs_set_user_money(id, cs_get_user_money(id) - 14000)
give_oicw(id)
}
else
{
new money = 14000 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item,mai ai nevoie de !g%i$",money)
return 1;
}
}
if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 45)
{
fcs_set_user_credits(id, fcs_get_user_credits(id) - 45)
give_oicw(id)
}
else
{
new credits = 45 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item,mai ai nevoie de !g%i credite",credits)
return 1
}
}
}
case 6:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 16000)
{
cs_set_user_money(id, cs_get_user_money(id) - 16000)
give_fire(id)
}
else
{
new money = 16000 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item,mai ai nevoie de !g%i$",money)
return 1;
}
}
if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 60)
{
fcs_set_user_credits(id, fcs_get_user_credits(id) - 60)
give_fire(id)
}
else
{
new credits = 60 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item,mai ai nevoie de !g%i credite",credits)
return 1
}
}
}
case 7:
{
if(get_cvar_num("cvar_mcredite") == 0)
{
if(cs_get_user_money(id) >= 16000)
{
cs_set_user_money(id, cs_get_user_money(id) - 16000)
give_balrog(id)
}
else
{
new money = 16000 - cost
chat_color(id, "!gNu !yai suficienti !teambani !ypentru a cumpara acest item,mai ai nevoie de !g%i$",money)
return 1;
}
}
if(get_cvar_num("cvar_mcredite") == 1)
{
if(fcs_get_user_credits(id) >= 55)
{
fcs_set_user_credits(id, fcs_get_user_credits(id) - 55)
give_fire(id)
}
else
{
new credits = 55 - pcredite
chat_color(id, "!gNu !yai suficiente !teamcredite !ypentru a cumpara acest item,mai ai nevoie de !g%i credite",credits)
return 1
}
}
}
}
menu_destroy ( menu );
return 1;
}
public GodmodeOFF(id) set_user_godmode(id, 0)
public InvisOFF(id) {
set_user_rendering(id)
bInvis[id] = false;
}
public event_resethud( id )
{
if(get_cvar_num("cvar_tabscore") == 1)
set_task(1.0,"cmdTabscore",id+Task)
if(get_cvar_num("cvar_tabscore") == 0)
return;
}
public cmdTabscore(taskid)
{
new id = taskid - Task
if(g_Vip(id) && is_user_connected(id))
{
message_begin(MSG_ALL, get_user_msgid("ScoreAttrib"))
write_byte( id )
write_byte( 4 )
message_end()
}
}
public Player_TakeDamage ( iVictim, iInflictor, iAttacker, Float:fDamage )
{
if( iInflictor == iAttacker && IsPlayer ( iAttacker ) )
SetHamParamFloat ( 4, fDamage * 1.1 );
if( iInflictor == iAttacker && IsPlayer ( iAttacker ) && get_user_weapon( iAttacker ) == CSW_AWP && g_bAwp[ iAttacker ])
SetHamParamFloat ( 4, fDamage * 1.3 );
if( iInflictor == iAttacker && IsPlayer ( iAttacker ) && get_user_weapon( iAttacker ) == CSW_AK47 && g_bAk47[ iAttacker ])
SetHamParamFloat ( 4, fDamage * 1.3 );
if( iInflictor == iAttacker && IsPlayer ( iAttacker ) && get_user_weapon( iAttacker ) == CSW_M4A1 && g_bA1[ iAttacker ])
SetHamParamFloat ( 4, fDamage * 1.3 );
if( iInflictor == iAttacker && IsPlayer ( iAttacker ) && get_user_weapon( iAttacker ) == CSW_DEAGLE && g_bDeagle[ iAttacker ])
SetHamParamFloat ( 4, fDamage * 1.2 );
if( iInflictor == iAttacker && IsPlayer ( iAttacker ) && get_user_weapon( iAttacker ) == CSW_XM1014 && g_bXm[ iAttacker ])
SetHamParamFloat ( 4, fDamage * 1.3 );
if( iInflictor == iAttacker && IsPlayer ( iAttacker ) && get_user_weapon( iAttacker ) == CSW_MP5NAVY && g_bMp5[ iAttacker ])
SetHamParamFloat ( 4, fDamage * 1.3 );
if( iInflictor == iAttacker && IsPlayer ( iAttacker ) && get_user_weapon( iAttacker ) == CSW_M249 && g_bM249[ iAttacker ])
SetHamParamFloat ( 4, fDamage * 1.3 );
if( iInflictor == iAttacker && IsPlayer ( iAttacker ) && get_user_weapon( iAttacker ) == CSW_FAMAS && g_bFamas[ iAttacker ])
SetHamParamFloat ( 4, fDamage * 1.3 );
return HAM_IGNORED
}
public client_disconnect( id )
{
if(g_Vip(id) && get_cvar_num("cvar_disconnect") == 1)
{
g_bKnife[id] = false
new szName[32]
get_user_name(id, szName, 31)
chat_color(0, "[!gVIP!y] !teamAtentie !g%s !ysa deconectat",szName)
}
if(get_cvar_num("cvar_disconnect") == 0)
return;
}
public client_putinserver(id)
{
if(g_Vip(id) && get_cvar_num("cvar_putinserver") == 1)
{
new szName[32]
get_user_name(id, szName,31)
chat_color(0, "[!gVIP!y] !teamAtentie !g%s !yse conecteaza",szName)
}
if(get_cvar_num("cvar_putinserver") == 0)
return;
}
public cmdAvantaje(id)
{
if(get_cvar_num("cvar_beneficii") == 1)
show_motd(id, "vip.txt")
if(get_cvar_num("cvar_beneficii") == 0)
return;
}
public cmdPreturi( id )
{
if(get_cvar_num("cvar_preturi") == 1)
show_motd(id, "preturi.html")
if(get_cvar_num("cvar_preturi") == 0)
return;
}
public PlayerPostSpawn( id )
{
if(g_Vip(id) && is_user_alive(id) && get_cvar_num("cvar_spawn") == 1)
player_spawn( id )
if(get_cvar_num("cvar_spawn") == 0)
return;
if(!g_Vip(id) && is_user_alive(id) && get_cvar_num("cvar_spawn") == 2)
player_spawn( id )
if(is_user_admin(id) && is_user_alive(id) && get_cvar_num("cvar_spawn") == 3)
player_spawn( id )
if(is_user_alive(id) && get_cvar_num("cvar_spawn") == 4)
player_spawn( id )
if(g_Vip(id) && is_user_alive(id) && get_cvar_num("cvar_mmodels") == 0 || is_user_alive(id) && get_cvar_num("cvar_mmodels") == 2 || is_user_admin(id) && is_user_alive(id) && get_cvar_num("cvar_mmodels") == 2) {
new CsTeams:userTeam = cs_get_user_team(id)
switch(userTeam)
{
case 1:
{
cs_reset_user_model(id);
cs_set_user_model(id, "vipt");
client_cmd(id, "cl_minmodels 0");
}
case 2:
{
cs_reset_user_model(id);
cs_set_user_model(id, "vipct");
client_cmd(id, "cl_minmodels 0");
}
}
if(get_cvar_num("cvar_mmodels") == 1)
return;
}
}
public player_spawn( id ) {
give_item(id, "weapon_hegrenade")
set_user_health(id, get_user_health(id) + get_cvar_num("cvar_healthspawn"))
set_user_armor(id, get_user_armor(id) + get_cvar_num("cvar_armorspawn"))
g_bKnife[id] = true
}
public plugin_precache()
{
precache_model(Knife_Model)
precache_model(M4A1_Gold1)
precache_model(M4A1_Gold2)
precache_model(M4A1_Gold3)
precache_model(Ak47_Gold1)
precache_model(Ak47_Gold2)
precache_model(Ak47_Gold3)
precache_model(Awp_Gold1)
precache_model(Awp_Gold2)
precache_model(Awp_Gold3)
precache_model(Deagle_Gold1)
precache_model(Deagle_Gold2)
precache_model(Deagle_Gold3)
precache_model(Xm_Gold1)
precache_model(Xm_Gold2)
precache_model(Xm_Gold3)
precache_model(Mp5_Dual1)
precache_model(Mp5_Dual2)
precache_model(M249_Gold1)
precache_model(M249_Gold2)
precache_model(M249_Gold3)
precache_model(Famas_Gold1)
precache_model(Famas_Gold2)
precache_model(Famas_Gold3)
precache_model("models/player/vipct/vipct.mdl");
precache_model("models/player/vipt/vipt.mdl");
precache_model("models/rpgrocket.mdl"); // pentru a functiona corect..fara asta pica server-ul cateodata.
m_spriteTexture = precache_model("sprites/dot.spr")
}
public event_curweapon( id )
{
if(get_user_weapon(id) == CSW_KNIFE && g_bKnife[id])
set_pev(id, pev_viewmodel2, Knife_Model)
else if(get_user_weapon(id) == CSW_M4A1 && g_bA1[id])
{
set_pev(id, pev_viewmodel2, M4A1_Gold1)
set_pev(id, pev_weaponmodel2, M4A1_Gold2)
}
else if(get_user_weapon(id) == CSW_AK47 && g_bAk47[id])
{
set_pev(id, pev_viewmodel2, Ak47_Gold1)
set_pev(id, pev_weaponmodel2, Ak47_Gold2)
}
else if(get_user_weapon(id) == CSW_AWP && g_bAwp[id])
{
set_pev(id, pev_viewmodel2, Awp_Gold1)
set_pev(id, pev_weaponmodel2, Awp_Gold2)
}
else if(get_user_weapon(id) == CSW_DEAGLE && g_bDeagle[id])
{
set_pev(id, pev_viewmodel2, Deagle_Gold1)
set_pev(id, pev_weaponmodel2, Deagle_Gold2)
}
else if(get_user_weapon(id) == CSW_XM1014 && g_bXm[id])
{
set_pev(id, pev_viewmodel2, Xm_Gold1)
set_pev(id, pev_weaponmodel2, Xm_Gold2)
}
else if(get_user_weapon(id) == CSW_MP5NAVY && g_bMp5[id])
{
set_pev(id, pev_viewmodel2, Mp5_Dual1)
set_pev(id, pev_weaponmodel2, Mp5_Dual2)
}
else if(get_user_weapon(id) == CSW_M249 && g_bM249[id])
{
set_pev(id, pev_viewmodel2, M249_Gold1)
set_pev(id, pev_weaponmodel2, M249_Gold2)
}
else if(get_user_weapon(id) == CSW_FAMAS && g_bFamas[id])
{
set_pev(id, pev_viewmodel2, Famas_Gold1)
set_pev(id, pev_weaponmodel2, Famas_Gold2)
}
if(bSpeed[id])
set_user_maxspeed(id, 800.0)
if(bInvis[id])
set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 0);
}
public fw_SetModel( entity, model[ ] )
{
if(!pev_valid(entity))
return FMRES_IGNORED;
static szClassName[33]
pev(entity, pev_classname, szClassName, charsmax(szClassName))
if(!equal(szClassName, "weaponbox"))
return FMRES_IGNORED;
static id;
id = pev(entity, pev_owner)
if(equal(model, "models/w_ak47.mdl"))
{
if(g_bAk47[id])
{
engfunc(EngFunc_SetModel, entity, Ak47_Gold3)
return FMRES_SUPERCEDE
}
}
else if(equal(model, "models/w_awp.mdl"))
{
if(g_bAwp[id])
{
engfunc(EngFunc_SetModel, entity, Awp_Gold3)
return FMRES_SUPERCEDE
}
}
else if(equal(model, "models/w_xm1014.mdl"))
{
if(g_bXm[id])
{
engfunc(EngFunc_SetModel, entity, Xm_Gold3)
return FMRES_SUPERCEDE
}
}
else if(equal(model, "models/w_m4a1.mdl"))
{
if(g_bA1[id])
{
engfunc(EngFunc_SetModel, entity, M4A1_Gold3)
return FMRES_SUPERCEDE
}
}
else if(equal(model, "models/w_deagle.mdl"))
{
if(g_bDeagle[id])
{
engfunc(EngFunc_SetModel, entity, Deagle_Gold3)
return FMRES_SUPERCEDE
}
}
else if(equal(model, "models/w_m249.mdl"))
{
if(g_bM249[id])
{
engfunc(EngFunc_SetModel, entity, M249_Gold3)
return FMRES_SUPERCEDE
}
}
else if(equal(model, "models/w_famas.mdl"))
{
if(g_bFamas[id])
{
engfunc(EngFunc_SetModel, entity, Famas_Gold3)
return FMRES_SUPERCEDE
}
}
return FMRES_IGNORED
}
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();
}
}
}
}[/sursa]
IMAGINI[sursa=]
[/sursa]
Daca respectati munca mea o sa ii fac update'uri noi.