Deci mi-am facut un server furien cu addons psycho vs kage a avut cateva buguri recunosc dar le-am rezolvat :-b , totul era Ok .
Insa o chestie nu prea o pot rezolva adica nu pot sa schimb meniul asta de arme de la Anti-Furien pluginul se numeste FTW.amxx iar in addons nu exista .sma , daca sterg acest plugin si il inlocuiesc cu altul plugin anti-furien-menu sau furien_weapons nu mai am cutit la Furien si nici Grenazi , am incercat tot ce se putea credetima ;;) si nu am reusit asa ca am apelat la voi stiind ca va pricepeti foarte bine in scriptare .
Deci as dori un plugin la fel ca si ftw.amxx , care la respawn sa le dea la Ct un meniu cu armele M4a1 Ak47 Shotgun XM.. Mp5Navy si un set de grenazi ( flash si smoke) + cutit , iar la tero un set de grenazi (flash +smoke+He) + Cutit . ( armele sa aiba 250 de gloantze)
PS: Nu trebuie neaparat sa fie exact la fel pluginu dacă nu puteți :-j , Va multumesc si sper sa reusiti .
Cerere plugin ! Nevoie mare >:D< .
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
Forum rules
Accesează link-ul pentru a putea vedea regulile forumului
Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Accesează link-ul pentru a putea vedea regulile forumului
Daca doriti sa vi se modifice un plugin, va rugam postati aici .
-
- Membru, skill 0
- Posts: 70
- Joined: 14 Jul 2013, 13:08
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Has thanked: 1 time
- Contact:
- DaNNe.
- Fost moderator
- Posts: 2811
- Joined: 08 Nov 2013, 20:43
- 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) - Has thanked: 244 times
- Been thanked: 129 times
- Contact:
-
- Membru, skill 0
- Posts: 70
- Joined: 14 Jul 2013, 13:08
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Has thanked: 1 time
- Contact:
Multumesc mult DnD pluginul functioneaza perfect ! esti cel mai tare sa stii ;)
PS: Doar o micutza modificare daca poti sa-i faci sa scoti de la Anti-Furien Grenada He ! Mersi
PS: Doar o micutza modificare daca poti sa-i faci sa scoti de la Anti-Furien Grenada He ! Mersi
- Truth*
- Scripter eXtreamCS
- Posts: 766
- Joined: 11 Oct 2013, 11:08
- Detinator Steam: Da
- SteamID: Ezeru
- Reputatie: Fost moderator ajutator
Membru Club eXtreamCS (4 luni)
Nume anterior: HyperioN.
Scripter eXtreamCS
0.2 / 3 - Fond eXtream: 0
- Location: Sibiu
- Has thanked: 44 times
- Been thanked: 122 times
Poftim fara He la CT :
P.S.: Netestat = Nu am avut timp să mă uit atent peste cod. Deci ceea ce am scris este posibil să fie greşit sau să aibă erori.
If i helped you and you wanna thank me, you can donate at this link : here
This will motivate me to help you in the future.
[If you want a private plugin send me a PM.(No complex plugins please, I am a student and I don't have the time to make those)]
If i helped you and you wanna thank me, you can donate at this link : here
This will motivate me to help you in the future.
[If you want a private plugin send me a PM.(No complex plugins please, I am a student and I don't have the time to make those)]
-
- Membru, skill 0
- Posts: 70
- Joined: 14 Jul 2013, 13:08
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Has thanked: 1 time
- Contact:
Multumesc mult Survivor dar nu stiti unu dintre voi doi de ce nu mi se schimba echipele ?
Adica cand sunt CT se termina minutele scrie ca Anti-Furienii au castigat . Dar nu ma baga teroo.
Mersi
Adica cand sunt CT se termina minutele scrie ca Anti-Furienii au castigat . Dar nu ma baga teroo.
Mersi
- Truth*
- Scripter eXtreamCS
- Posts: 766
- Joined: 11 Oct 2013, 11:08
- Detinator Steam: Da
- SteamID: Ezeru
- Reputatie: Fost moderator ajutator
Membru Club eXtreamCS (4 luni)
Nume anterior: HyperioN.
Scripter eXtreamCS
0.2 / 3 - Fond eXtream: 0
- Location: Sibiu
- Has thanked: 44 times
- Been thanked: 122 times
P.S.: Netestat = Nu am avut timp să mă uit atent peste cod. Deci ceea ce am scris este posibil să fie greşit sau să aibă erori.
If i helped you and you wanna thank me, you can donate at this link : here
This will motivate me to help you in the future.
[If you want a private plugin send me a PM.(No complex plugins please, I am a student and I don't have the time to make those)]
If i helped you and you wanna thank me, you can donate at this link : here
This will motivate me to help you in the future.
[If you want a private plugin send me a PM.(No complex plugins please, I am a student and I don't have the time to make those)]
-
- Membru, skill 0
- Posts: 70
- Joined: 14 Jul 2013, 13:08
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Has thanked: 1 time
- Contact:
Survivor .. Nu merge tot asa face , alta modalitate? sau iti las id daca tie mai usor? si iti dau tw?
Mersi ca incerci sa ma ajuti
Mersi ca incerci sa ma ajuti
- Truth*
- Scripter eXtreamCS
- Posts: 766
- Joined: 11 Oct 2013, 11:08
- Detinator Steam: Da
- SteamID: Ezeru
- Reputatie: Fost moderator ajutator
Membru Club eXtreamCS (4 luni)
Nume anterior: HyperioN.
Scripter eXtreamCS
0.2 / 3 - Fond eXtream: 0
- Location: Sibiu
- Has thanked: 44 times
- Been thanked: 122 times
Hmmm vezi in addons/amxmodx/configs/furien.ini daca ai setata aceasta linie pe 1 daca nu seteazo !
Code: Select all
SWITCH_TEAMS 1
P.S.: Netestat = Nu am avut timp să mă uit atent peste cod. Deci ceea ce am scris este posibil să fie greşit sau să aibă erori.
If i helped you and you wanna thank me, you can donate at this link : here
This will motivate me to help you in the future.
[If you want a private plugin send me a PM.(No complex plugins please, I am a student and I don't have the time to make those)]
If i helped you and you wanna thank me, you can donate at this link : here
This will motivate me to help you in the future.
[If you want a private plugin send me a PM.(No complex plugins please, I am a student and I don't have the time to make those)]
-
- Membru, skill 0
- Posts: 70
- Joined: 14 Jul 2013, 13:08
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Has thanked: 1 time
- Contact:
Am rezolvat faza cu mutatu`l :D era vorba de alt plugin , infine
Mai am o problema nu stii de ce imi ramane meniul de arme si la tero? adica daca nu foloessc nici o arma din meniu cand sunt la CT si ma muta la tero pot sa folosesc si acolo arme ..
mersii !
Mai am o problema nu stii de ce imi ramane meniul de arme si la tero? adica daca nu foloessc nici o arma din meniu cand sunt la CT si ma muta la tero pot sa folosesc si acolo arme ..
mersii !
- Truth*
- Scripter eXtreamCS
- Posts: 766
- Joined: 11 Oct 2013, 11:08
- Detinator Steam: Da
- SteamID: Ezeru
- Reputatie: Fost moderator ajutator
Membru Club eXtreamCS (4 luni)
Nume anterior: HyperioN.
Scripter eXtreamCS
0.2 / 3 - Fond eXtream: 0
- Location: Sibiu
- Has thanked: 44 times
- Been thanked: 122 times
Posteaza sursa de la pluginul de arme.
P.S.: Netestat = Nu am avut timp să mă uit atent peste cod. Deci ceea ce am scris este posibil să fie greşit sau să aibă erori.
If i helped you and you wanna thank me, you can donate at this link : here
This will motivate me to help you in the future.
[If you want a private plugin send me a PM.(No complex plugins please, I am a student and I don't have the time to make those)]
If i helped you and you wanna thank me, you can donate at this link : here
This will motivate me to help you in the future.
[If you want a private plugin send me a PM.(No complex plugins please, I am a student and I don't have the time to make those)]
-
- Membru, skill 0
- Posts: 70
- Joined: 14 Jul 2013, 13:08
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Has thanked: 1 time
- Contact:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <fun>
#include <cstrike>
#include <hamsandwich>
#define PLUGIN "Furien Weapons Menu"
#define VERSION "1.0"
#define AUTHOR "tre3fla"
#define ADMIN_FLAG ADMIN_KICK
#define VIP_FLAG ADMIN_LEVEL_H
#define is_valid_player(%1) (1 <= %1 <= 32)
/* AK47 Golden pentru VIP */
new const vGoldenAk[ 64 ] = "models/AntiFurienWeapons/v_Golden-AK.mdl"
new const pGoldenAk[ 64 ] = "models/AntiFurienWeapons/p_Golden-AK.mdl"
/* M4A1 Golden pentru VIP */
new const vGoldenM4[ 64 ] = "models/AntiFurienWeapons/v_Golden-M4.mdl"
new const pGoldenM4[ 64 ] = "models/AntiFurienWeapons/p_Golden-M4.mdl"
/* MP5 Navy Golden pentru VIP */
new const vGoldenMP5[ 64 ] = "models/AntiFurienWeapons/v_Golden-MP5.mdl"
new const pGoldenMP5[ 64 ] = "models/AntiFurienWeapons/p_Golden-MP5.mdl"
/* AWP Golden pentru VIP */
new const vGoldenAWP[ 64 ] = "models/AntiFurienWeapons/v_Golden-AWP.mdl"
new const pGoldenAWP[ 64 ] = "models/AntiFurienWeapons/p_Golden-AWP.mdl"
new m_spriteTexture
new bool: ArmaPrimita[ 33 ]
new bool: AreGoldenAK[ 33 ]
new bool: AreGoldenM4[ 33 ]
new bool: AreGoldenMP5[ 33 ]
new bool: AreGoldenAWP[ 33 ]
public plugin_init( ) {
register_plugin( PLUGIN, VERSION, AUTHOR )
register_event( "CurWeapon", "Event_CurWeapon", "be", "1=1" )
register_event("CurWeapon", "GoldenEffect", "be", "1=1", "3>0" )
RegisterHam( Ham_Spawn, "player", "fwPlayerSpawn", true )
RegisterHam( Ham_TakeDamage, "player", "fwTakeDamage" )
register_clcmd( "say /weapons", "ClcmdWeaponsMenus" )
}
public plugin_precache( ) {
precache_model( vGoldenAk )
precache_model( pGoldenAk )
precache_model( vGoldenM4 )
precache_model( pGoldenM4 )
precache_model( vGoldenMP5 )
precache_model( pGoldenMP5 )
precache_model( vGoldenAWP )
precache_model( pGoldenAWP )
m_spriteTexture = precache_model( "sprites/dot.spr" )
}
public fwPlayerSpawn( id ) {
AreGoldenAK[ id ] = false
AreGoldenM4[ id ] = false
AreGoldenMP5[ id ] = false
AreGoldenAWP[ id ] = false
ArmaPrimita[ id ] = false
if( is_user_alive( id ) && cs_get_user_team( id ) == CS_TEAM_CT ) {
PopUpWeaponsMenu( id )
}
}
public PopUpWeaponsMenu( id ) {
new FurienWeaponsMenu = menu_create( "\yAnti-Furien\r Weapons", "FurienWeaponsHandler" )
menu_additem( FurienWeaponsMenu, "Arme\y Normale", "1", 0 )
menu_additem( FurienWeaponsMenu, "Arme\r V.I.P", "2", 0 )
menu_setprop( FurienWeaponsMenu, MPROP_EXIT, MEXIT_ALL )
menu_display( id, FurienWeaponsMenu, 0 )
}
public FurienWeaponsHandler( id, FurienWeaponsMenu, item ) {
if( item == MENU_EXIT ) {
menu_destroy( FurienWeaponsMenu )
return PLUGIN_HANDLED
}
switch( item ) {
case 0 : {
ArmeNormale( id )
}
case 1 : {
if( get_user_flags( id ) & VIP_FLAG ) {
ArmeVIP( id )
}
else {
ColorChat( id, "^4[Furien Weapons]^1 Aceste arme sunt rezervate numai pentru^3 V.I.P^1." )
return PLUGIN_HANDLED
}
}
}
menu_destroy( FurienWeaponsMenu )
return PLUGIN_HANDLED
}
public ArmeNormale( id ) {
new MeniuArmeNormale = menu_create( "\yArme\r Normale", "ArmeNormaleHandler" )
menu_additem( MeniuArmeNormale, "Kalashnikov\r (\yAK47\r)", "1", 0 )
menu_additem( MeniuArmeNormale, "Carabina\r (\yM4A1\r)", "2", 0 )
menu_additem( MeniuArmeNormale, "MP5\r (\yNavy\r)", "3", 0 )
menu_additem( MeniuArmeNormale, "Magnum Sniper\r (\yAWP\r)", "4", 0 )
menu_setprop( MeniuArmeNormale, MPROP_EXIT, MEXIT_ALL )
menu_display( id, MeniuArmeNormale, 0 )
}
public ArmeNormaleHandler( id, MeniuArmeNormale, item ) {
if( !is_user_alive( id ) ) {
ColorChat( id, "^4[Furien Weapons]^1 Nu iti poti alege arma atunci cand esti mort!" )
return PLUGIN_HANDLED
}
if( item == MENU_EXIT ) {
menu_destroy( MeniuArmeNormale )
return PLUGIN_HANDLED
}
switch( item ) {
case 0 : {
give_item( id, "weapon_ak47" )
cs_set_user_bpammo( id, CSW_AK47, 90 )
ArmaPrimita[ id ] = true
}
case 1 : {
give_item( id, "weapon_m4a1" )
cs_set_user_bpammo( id, CSW_M4A1, 90 )
ArmaPrimita[ id ] = true
}
case 2 : {
give_item( id, "weapon_mp5navy" )
cs_set_user_bpammo( id, CSW_MP5NAVY, 120 )
ArmaPrimita[ id ] = true
}
case 3 : {
give_item( id, "weapon_awp" )
cs_set_user_bpammo( id, CSW_AWP, 30 )
ArmaPrimita[ id ] = true
}
}
menu_destroy( MeniuArmeNormale )
return PLUGIN_HANDLED
}
public ArmeVIP( id ) {
new MeniuArmeVIP = menu_create( "\yArme \r*\w V\r.\wI\r.\wP\r *", "ArmeVIPHandler" )
menu_additem( MeniuArmeVIP, "Golden AK47\r (\y2x DMG\r)", "1", 0 )
menu_additem( MeniuArmeVIP, "Golden M4A1\r (\y2x DMG\r)", "2", 0 )
menu_additem( MeniuArmeVIP, "Golden MP5\r (\y2x DMG\r)", "3", 0 )
menu_additem( MeniuArmeVIP, "Golden AWP\r (\y2x DMG\r)", "4", 0 )
menu_setprop( MeniuArmeVIP, MPROP_EXIT, MEXIT_ALL )
menu_display( id, MeniuArmeVIP, 0 )
}
public ArmeVIPHandler( id, MeniuArmeVIP, item ) {
if( !is_user_alive( id ) ) {
ColorChat( id, "^4[Furien Weapons]^1 Nu iti poti alege arma atunci cand esti mort!" )
return PLUGIN_HANDLED
}
if( item == MENU_EXIT ) {
menu_destroy( MeniuArmeVIP )
return PLUGIN_HANDLED
}
switch( item ) {
case 0 : {
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 )
ArmaPrimita[ id ] = true
AreGoldenAK[ id ] = true
}
case 1 : {
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 )
ArmaPrimita[ id ] = true
AreGoldenM4[ id ] = true
}
case 2 : {
give_item( id, "weapon_mp5navy" )
cs_set_user_bpammo( id, CSW_MP5NAVY, 120 )
set_pev( id, pev_viewmodel2, vGoldenMP5 )
set_pev( id, pev_weaponmodel2, pGoldenMP5 )
ArmaPrimita[ id ] = true
AreGoldenMP5[ id ] = true
}
case 3 : {
give_item( id, "weapon_awp" )
cs_set_user_bpammo( id, CSW_AWP, 30 )
set_pev( id, pev_viewmodel2, vGoldenAWP )
set_pev( id, pev_weaponmodel2, pGoldenAWP )
ArmaPrimita[ id ] = true
AreGoldenAWP[ id ] = true
}
}
menu_destroy( MeniuArmeVIP )
return PLUGIN_HANDLED
}
public ClcmdWeaponsMenus( id ) {
if( !is_user_alive( id ) ) {
ColorChat( id, "^4[Furien Weapons]^1 Nu poti sa-ti alegeti arma atunci cand esti mort!" )
return
}
if( ArmaPrimita[ id ] ) {
ColorChat( id, "^4[Furien Weapons]^1 Ti-ai ales deja arma in aceasta runda!" )
return
}
if( cs_get_user_team( id ) == CS_TEAM_CT ) {
PopUpWeaponsMenu( id )
}
}
public Event_CurWeapon( 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_MP5NAVY && AreGoldenMP5[ id ] ) {
set_pev( id, pev_viewmodel2, vGoldenMP5 )
set_pev( id, pev_weaponmodel2, pGoldenMP5 )
}
if( Arma == CSW_AWP && AreGoldenAWP[ id ] ) {
set_pev( id, pev_viewmodel2, vGoldenAWP )
set_pev( id, pev_weaponmodel2, pGoldenAWP )
}
}
public fwTakeDamage( Victim, Inflictor, Attacker, Float:Damage ) {
if( is_valid_player( Attacker ) && get_user_weapon( Attacker ) == CSW_AK47 && AreGoldenAK[ Attacker ] ) {
SetHamParamFloat( 4, Damage * 2 )
}
if( is_valid_player( Attacker) && get_user_weapon( Attacker ) == CSW_M4A1 && AreGoldenM4[ Attacker ] ) {
SetHamParamFloat( 4, Damage * 2 )
}
if( is_valid_player( Attacker ) && get_user_weapon( Attacker ) == CSW_MP5NAVY && AreGoldenMP5[ Attacker ] ) {
SetHamParamFloat( 4, Damage * 2 )
}
if( is_valid_player( Attacker ) && get_user_weapon( Attacker) == CSW_AWP && AreGoldenAWP[ Attacker ] ) {
SetHamParamFloat( 4, Damage * 2 )
}
}
public GoldenEffect( id ) {
new clip,ammo
new Arma = get_user_weapon(id,clip,ammo)
if (Arma == CSW_AK47 && AreGoldenAK[ id ] || Arma == CSW_M4A1 && AreGoldenM4[ id ] || Arma == CSW_MP5NAVY && AreGoldenMP5[ id ] || Arma == CSW_AWP && AreGoldenAWP[ 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( )
}
}
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)) {
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players);
write_byte(players);
write_string(msg);
message_end();
}
}
}
}
#include <amxmisc>
#include <fakemeta>
#include <fun>
#include <cstrike>
#include <hamsandwich>
#define PLUGIN "Furien Weapons Menu"
#define VERSION "1.0"
#define AUTHOR "tre3fla"
#define ADMIN_FLAG ADMIN_KICK
#define VIP_FLAG ADMIN_LEVEL_H
#define is_valid_player(%1) (1 <= %1 <= 32)
/* AK47 Golden pentru VIP */
new const vGoldenAk[ 64 ] = "models/AntiFurienWeapons/v_Golden-AK.mdl"
new const pGoldenAk[ 64 ] = "models/AntiFurienWeapons/p_Golden-AK.mdl"
/* M4A1 Golden pentru VIP */
new const vGoldenM4[ 64 ] = "models/AntiFurienWeapons/v_Golden-M4.mdl"
new const pGoldenM4[ 64 ] = "models/AntiFurienWeapons/p_Golden-M4.mdl"
/* MP5 Navy Golden pentru VIP */
new const vGoldenMP5[ 64 ] = "models/AntiFurienWeapons/v_Golden-MP5.mdl"
new const pGoldenMP5[ 64 ] = "models/AntiFurienWeapons/p_Golden-MP5.mdl"
/* AWP Golden pentru VIP */
new const vGoldenAWP[ 64 ] = "models/AntiFurienWeapons/v_Golden-AWP.mdl"
new const pGoldenAWP[ 64 ] = "models/AntiFurienWeapons/p_Golden-AWP.mdl"
new m_spriteTexture
new bool: ArmaPrimita[ 33 ]
new bool: AreGoldenAK[ 33 ]
new bool: AreGoldenM4[ 33 ]
new bool: AreGoldenMP5[ 33 ]
new bool: AreGoldenAWP[ 33 ]
public plugin_init( ) {
register_plugin( PLUGIN, VERSION, AUTHOR )
register_event( "CurWeapon", "Event_CurWeapon", "be", "1=1" )
register_event("CurWeapon", "GoldenEffect", "be", "1=1", "3>0" )
RegisterHam( Ham_Spawn, "player", "fwPlayerSpawn", true )
RegisterHam( Ham_TakeDamage, "player", "fwTakeDamage" )
register_clcmd( "say /weapons", "ClcmdWeaponsMenus" )
}
public plugin_precache( ) {
precache_model( vGoldenAk )
precache_model( pGoldenAk )
precache_model( vGoldenM4 )
precache_model( pGoldenM4 )
precache_model( vGoldenMP5 )
precache_model( pGoldenMP5 )
precache_model( vGoldenAWP )
precache_model( pGoldenAWP )
m_spriteTexture = precache_model( "sprites/dot.spr" )
}
public fwPlayerSpawn( id ) {
AreGoldenAK[ id ] = false
AreGoldenM4[ id ] = false
AreGoldenMP5[ id ] = false
AreGoldenAWP[ id ] = false
ArmaPrimita[ id ] = false
if( is_user_alive( id ) && cs_get_user_team( id ) == CS_TEAM_CT ) {
PopUpWeaponsMenu( id )
}
}
public PopUpWeaponsMenu( id ) {
new FurienWeaponsMenu = menu_create( "\yAnti-Furien\r Weapons", "FurienWeaponsHandler" )
menu_additem( FurienWeaponsMenu, "Arme\y Normale", "1", 0 )
menu_additem( FurienWeaponsMenu, "Arme\r V.I.P", "2", 0 )
menu_setprop( FurienWeaponsMenu, MPROP_EXIT, MEXIT_ALL )
menu_display( id, FurienWeaponsMenu, 0 )
}
public FurienWeaponsHandler( id, FurienWeaponsMenu, item ) {
if( item == MENU_EXIT ) {
menu_destroy( FurienWeaponsMenu )
return PLUGIN_HANDLED
}
switch( item ) {
case 0 : {
ArmeNormale( id )
}
case 1 : {
if( get_user_flags( id ) & VIP_FLAG ) {
ArmeVIP( id )
}
else {
ColorChat( id, "^4[Furien Weapons]^1 Aceste arme sunt rezervate numai pentru^3 V.I.P^1." )
return PLUGIN_HANDLED
}
}
}
menu_destroy( FurienWeaponsMenu )
return PLUGIN_HANDLED
}
public ArmeNormale( id ) {
new MeniuArmeNormale = menu_create( "\yArme\r Normale", "ArmeNormaleHandler" )
menu_additem( MeniuArmeNormale, "Kalashnikov\r (\yAK47\r)", "1", 0 )
menu_additem( MeniuArmeNormale, "Carabina\r (\yM4A1\r)", "2", 0 )
menu_additem( MeniuArmeNormale, "MP5\r (\yNavy\r)", "3", 0 )
menu_additem( MeniuArmeNormale, "Magnum Sniper\r (\yAWP\r)", "4", 0 )
menu_setprop( MeniuArmeNormale, MPROP_EXIT, MEXIT_ALL )
menu_display( id, MeniuArmeNormale, 0 )
}
public ArmeNormaleHandler( id, MeniuArmeNormale, item ) {
if( !is_user_alive( id ) ) {
ColorChat( id, "^4[Furien Weapons]^1 Nu iti poti alege arma atunci cand esti mort!" )
return PLUGIN_HANDLED
}
if( item == MENU_EXIT ) {
menu_destroy( MeniuArmeNormale )
return PLUGIN_HANDLED
}
switch( item ) {
case 0 : {
give_item( id, "weapon_ak47" )
cs_set_user_bpammo( id, CSW_AK47, 90 )
ArmaPrimita[ id ] = true
}
case 1 : {
give_item( id, "weapon_m4a1" )
cs_set_user_bpammo( id, CSW_M4A1, 90 )
ArmaPrimita[ id ] = true
}
case 2 : {
give_item( id, "weapon_mp5navy" )
cs_set_user_bpammo( id, CSW_MP5NAVY, 120 )
ArmaPrimita[ id ] = true
}
case 3 : {
give_item( id, "weapon_awp" )
cs_set_user_bpammo( id, CSW_AWP, 30 )
ArmaPrimita[ id ] = true
}
}
menu_destroy( MeniuArmeNormale )
return PLUGIN_HANDLED
}
public ArmeVIP( id ) {
new MeniuArmeVIP = menu_create( "\yArme \r*\w V\r.\wI\r.\wP\r *", "ArmeVIPHandler" )
menu_additem( MeniuArmeVIP, "Golden AK47\r (\y2x DMG\r)", "1", 0 )
menu_additem( MeniuArmeVIP, "Golden M4A1\r (\y2x DMG\r)", "2", 0 )
menu_additem( MeniuArmeVIP, "Golden MP5\r (\y2x DMG\r)", "3", 0 )
menu_additem( MeniuArmeVIP, "Golden AWP\r (\y2x DMG\r)", "4", 0 )
menu_setprop( MeniuArmeVIP, MPROP_EXIT, MEXIT_ALL )
menu_display( id, MeniuArmeVIP, 0 )
}
public ArmeVIPHandler( id, MeniuArmeVIP, item ) {
if( !is_user_alive( id ) ) {
ColorChat( id, "^4[Furien Weapons]^1 Nu iti poti alege arma atunci cand esti mort!" )
return PLUGIN_HANDLED
}
if( item == MENU_EXIT ) {
menu_destroy( MeniuArmeVIP )
return PLUGIN_HANDLED
}
switch( item ) {
case 0 : {
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 )
ArmaPrimita[ id ] = true
AreGoldenAK[ id ] = true
}
case 1 : {
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 )
ArmaPrimita[ id ] = true
AreGoldenM4[ id ] = true
}
case 2 : {
give_item( id, "weapon_mp5navy" )
cs_set_user_bpammo( id, CSW_MP5NAVY, 120 )
set_pev( id, pev_viewmodel2, vGoldenMP5 )
set_pev( id, pev_weaponmodel2, pGoldenMP5 )
ArmaPrimita[ id ] = true
AreGoldenMP5[ id ] = true
}
case 3 : {
give_item( id, "weapon_awp" )
cs_set_user_bpammo( id, CSW_AWP, 30 )
set_pev( id, pev_viewmodel2, vGoldenAWP )
set_pev( id, pev_weaponmodel2, pGoldenAWP )
ArmaPrimita[ id ] = true
AreGoldenAWP[ id ] = true
}
}
menu_destroy( MeniuArmeVIP )
return PLUGIN_HANDLED
}
public ClcmdWeaponsMenus( id ) {
if( !is_user_alive( id ) ) {
ColorChat( id, "^4[Furien Weapons]^1 Nu poti sa-ti alegeti arma atunci cand esti mort!" )
return
}
if( ArmaPrimita[ id ] ) {
ColorChat( id, "^4[Furien Weapons]^1 Ti-ai ales deja arma in aceasta runda!" )
return
}
if( cs_get_user_team( id ) == CS_TEAM_CT ) {
PopUpWeaponsMenu( id )
}
}
public Event_CurWeapon( 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_MP5NAVY && AreGoldenMP5[ id ] ) {
set_pev( id, pev_viewmodel2, vGoldenMP5 )
set_pev( id, pev_weaponmodel2, pGoldenMP5 )
}
if( Arma == CSW_AWP && AreGoldenAWP[ id ] ) {
set_pev( id, pev_viewmodel2, vGoldenAWP )
set_pev( id, pev_weaponmodel2, pGoldenAWP )
}
}
public fwTakeDamage( Victim, Inflictor, Attacker, Float:Damage ) {
if( is_valid_player( Attacker ) && get_user_weapon( Attacker ) == CSW_AK47 && AreGoldenAK[ Attacker ] ) {
SetHamParamFloat( 4, Damage * 2 )
}
if( is_valid_player( Attacker) && get_user_weapon( Attacker ) == CSW_M4A1 && AreGoldenM4[ Attacker ] ) {
SetHamParamFloat( 4, Damage * 2 )
}
if( is_valid_player( Attacker ) && get_user_weapon( Attacker ) == CSW_MP5NAVY && AreGoldenMP5[ Attacker ] ) {
SetHamParamFloat( 4, Damage * 2 )
}
if( is_valid_player( Attacker ) && get_user_weapon( Attacker) == CSW_AWP && AreGoldenAWP[ Attacker ] ) {
SetHamParamFloat( 4, Damage * 2 )
}
}
public GoldenEffect( id ) {
new clip,ammo
new Arma = get_user_weapon(id,clip,ammo)
if (Arma == CSW_AK47 && AreGoldenAK[ id ] || Arma == CSW_M4A1 && AreGoldenM4[ id ] || Arma == CSW_MP5NAVY && AreGoldenMP5[ id ] || Arma == CSW_AWP && AreGoldenAWP[ 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( )
}
}
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)) {
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players);
write_byte(players);
write_string(msg);
message_end();
}
}
}
}
- Truth*
- Scripter eXtreamCS
- Posts: 766
- Joined: 11 Oct 2013, 11:08
- Detinator Steam: Da
- SteamID: Ezeru
- Reputatie: Fost moderator ajutator
Membru Club eXtreamCS (4 luni)
Nume anterior: HyperioN.
Scripter eXtreamCS
0.2 / 3 - Fond eXtream: 0
- Location: Sibiu
- Has thanked: 44 times
- Been thanked: 122 times
Netestat :
P.S.: Netestat = Nu am avut timp să mă uit atent peste cod. Deci ceea ce am scris este posibil să fie greşit sau să aibă erori.
If i helped you and you wanna thank me, you can donate at this link : here
This will motivate me to help you in the future.
[If you want a private plugin send me a PM.(No complex plugins please, I am a student and I don't have the time to make those)]
If i helped you and you wanna thank me, you can donate at this link : here
This will motivate me to help you in the future.
[If you want a private plugin send me a PM.(No complex plugins please, I am a student and I don't have the time to make those)]