It is currently 17 Aug 2018 14:24



Forum rules


Accesează link-ul pentru a putea vedea regulile forumului

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



Reply to topic  [ 6 posts ] 
 Plugin - vip 
Author Message
Membru, skill 0
Membru, skill 0

Joined: 19 Jul 2018 17:22
Posts: 22
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Cand dau /vmenu si aleg arme si am bomba ca tero, dispare bomba, cum fac sa ramana cand iei arme din /vmenu?


02 Aug 2018 10:02
Profile multumesc WWW
Membru, skill 0
Membru, skill 0
User avatar

Joined: 30 Sep 2017 22:12
Posts: 50
Location: Resita
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Depinde ce plugin de vip ai, si posibil ca bomba sa pice pe jos nu sa dispara.


02 Aug 2018 12:08
Profile multumesc WWW
Membru, skill 0
Membru, skill 0

Joined: 19 Jul 2018 17:22
Posts: 22
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Nu pica pe jos, dispare.
| Afiseaza codul
public menu_ammunition ( id, menu, item ) 
{
new tag[32];
get_pcvar_string(cvar_tag, tag, charsmax(tag));

if(use[id])
{
ColorChat(id, GREEN,"^3[%s] ^1Ai folosit deja meniul in aceasta runda.", tag);
return PLUGIN_HANDLED;
}

if(item == MENU_EXIT)
{
return PLUGIN_HANDLED;
}

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

if(cs_get_user_team(id) == CS_TEAM_CT)
switch(key)
{
case 1:
{
strip_user_weapons(id)
give_item(id, "weapon_knife");
give_item(id, "weapon_m4a1");
give_item(id, "weapon_deagle");
give_item(id, "weapon_hegrenade");
give_item(id, "weapon_flashbang");
cs_set_user_bpammo(id, CSW_HEGRENADE, 1);
cs_set_user_bpammo(id, CSW_FLASHBANG, 2);
cs_set_user_bpammo(id, CSW_M4A1, 90);
cs_set_user_bpammo(id, CSW_DEAGLE, 35);
ColorChat(id,GREEN,"^3[%s] ^1Ai ales ^4M4A1^1+^4DEAGLE^1+^4GRENAZI^1.",tag);
}
case 2:
{
strip_user_weapons(id)
give_item(id, "weapon_knife");
give_item(id, "weapon_famas");
give_item(id, "weapon_deagle");
give_item(id, "weapon_hegrenade");
give_item(id, "weapon_flashbang");
cs_set_user_bpammo(id, CSW_HEGRENADE, 1);
cs_set_user_bpammo(id, CSW_FLASHBANG, 2);
cs_set_user_bpammo(id, CSW_FAMAS, 90);
cs_set_user_bpammo(id, CSW_DEAGLE, 35);
ColorChat(id,GREEN,"^3[%s] ^1Ai ales ^4FAMAS^1+^4DEAGLE^1+^4GRENAZI^1.",tag);
}
case 3:
{
strip_user_weapons(id)
give_item(id, "weapon_knife");
give_item(id, "weapon_awp");
give_item(id, "weapon_deagle");
give_item(id, "weapon_hegrenade");
give_item(id, "weapon_flashbang");
cs_set_user_bpammo(id, CSW_HEGRENADE, 1);
cs_set_user_bpammo(id, CSW_FLASHBANG, 2);
cs_set_user_bpammo(id, CSW_AWP, 30);
cs_set_user_bpammo(id, CSW_DEAGLE, 35);
ColorChat(id,GREEN,"^3[%s] ^1Ai ales ^4AWP^1+^4DEAGLE^1+^4GRENAZI^1.",tag);
}
}
if(cs_get_user_team(id) == CS_TEAM_T)
switch(key)
{
case 1:
{
strip_user_weapons(id)
give_item(id, "weapon_knife");
give_item(id, "weapon_ak47");
give_item(id, "weapon_deagle");
give_item(id, "weapon_hegrenade");
give_item(id, "weapon_flashbang");
cs_set_user_bpammo(id, CSW_HEGRENADE, 1);
cs_set_user_bpammo(id, CSW_FLASHBANG, 2);
cs_set_user_bpammo(id, CSW_AK47, 90);
cs_set_user_bpammo(id, CSW_DEAGLE, 35);
ColorChat(id,GREEN,"^3[%s] ^1Ai ales ^4AK47^1+^4DEAGLE^1+^4GRENAZI^1.",tag);
}
case 2:
{
strip_user_weapons(id)
give_item(id, "weapon_knife");
give_item(id, "weapon_gail");
give_item(id, "weapon_deagle");
give_item(id, "weapon_hegrenade");
give_item(id, "weapon_flashbang");
cs_set_user_bpammo(id, CSW_HEGRENADE, 1);
cs_set_user_bpammo(id, CSW_FLASHBANG, 2);
cs_set_user_bpammo(id, CSW_GALIL, 90);
cs_set_user_bpammo(id, CSW_DEAGLE, 35);
ColorChat(id,GREEN,"^3[%s] ^1Ai ales ^4GAIL^1+^4DEAGLE^1+^4GRENAZI^1.",tag);
}
case 3:
{
strip_user_weapons(id)
give_item(id, "weapon_knife");
give_item(id, "weapon_awp");
give_item(id, "weapon_deagle");
give_item(id, "weapon_hegrenade");
give_item(id, "weapon_flashbang");
cs_set_user_bpammo(id, CSW_HEGRENADE, 1);
cs_set_user_bpammo(id, CSW_FLASHBANG, 2);
cs_set_user_bpammo(id, CSW_AWP, 30);
cs_set_user_bpammo(id, CSW_DEAGLE, 35);
ColorChat(id,GREEN,"^3[%s] ^1Ai ales ^4AWP^1+^4DEAGLE^1+^4GRENAZI^1.",tag);
}
}
menu_destroy(menu);
use[id] = true;
return PLUGIN_HANDLED;
}


02 Aug 2018 14:06
Profile multumesc WWW
Membru, skill 0
Membru, skill 0
User avatar

Joined: 30 Sep 2017 22:12
Posts: 50
Location: Resita
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Vad ca folosesti VIP fioriginal.

Probelma este di cauza strip_user_weapons(id)

iti recomand tot din acel plugin de VIP sa iei
| Afiseaza codul
const PRIMARY_WEAPONS_BIT_SUM = (1<<CSW_SCOUT)|(1<<CSW_XM1014)|(1<<CSW_MAC10)|(1<<CSW_AUG)|(1<<CSW_UMP45)|(1<<CSW_SG550)|(1<<CSW_GALIL)|(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_P90);
const SECONDARY_WEAPONS_BIT_SUM = (1<<CSW_P228)|(1<<CSW_ELITE)|(1<<CSW_FIVESEVEN)|(1<<CSW_USP)|(1<<CSW_GLOCK18)|(1<<CSW_DEAGLE);

stock drop_weapons(id, dropwhat){
static Weapons[32], Num, i, WeaponID;
Num = 0;
get_user_weapons(id, Weapons, Num);
for(i = 0; i < Num; i ++){
WeaponID = Weapons[i];
if((dropwhat == 1 && ((1 << WeaponID) & PRIMARY_WEAPONS_BIT_SUM)) || (dropwhat == 2 && ((1 << WeaponID) & SECONDARY_WEAPONS_BIT_SUM ))){
static DropName[32], WeaponEntity;
get_weaponname(WeaponID, DropName, charsmax(DropName));
WeaponEntity = fm_find_ent_by_owner(-1, DropName, id);
set_pev(WeaponEntity, pev_iuser1, cs_get_user_bpammo (id, WeaponID));
engclient_cmd(id, "drop", DropName);
cs_set_user_bpammo(id, WeaponID, 0);
}
}
}

drop_weapons(id, 1); // Prima arma gen ak
drop_weapons(id, 2); // A doua arm,a usp,glock etc.


02 Aug 2018 19:18
Profile multumesc WWW
Jan Darmu'
Jan Darmu'
User avatar

Joined: 25 Aug 2014 21:31
Posts: 5865
Location: Ploiesti
Detinator Steam: Da
CS Status: All i ever wanted was a Rolly Rolly
SteamID: Jandarmeria
Reputatie: Fost Membru Club eXtreamCS ( o luna )
Fost Moderator ajutator
Fost Super Moderator
eXtream Mod
Fost Intermediar
Nume anterior : Christmas,
A k c 3 n 7
Fond eXtream: 0
Pune naibi tot codul daca vrei sa te ajutam, zici ca e si privat pluginul de ne dai doar un sfert de cod

_________________
ImageImage

Lista intermediari
Nu ezita sa ma contactezi la 112 pentru interventii speciale: S.I.A.S
REGULI GENERALE
REGULILE SECTIUNII ANUNTURI


02 Aug 2018 19:30
Profile multumesc
Membru, skill 0
Membru, skill 0

Joined: 19 Jul 2018 17:22
Posts: 22
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Mersi frumos, Dan !


02 Aug 2018 20:25
Profile multumesc WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: Barlap and 64 guests


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

Jump to:  

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

Powered by phpBB® Forum Software © phpBB Group