It is currently 21 Feb 2019 00:21



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 ] 
 Meniu arme [rezolvat] 
Author Message
Membru, skill 0
Membru, skill 0

Joined: 29 Jul 2018 12:28
Posts: 21
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Vreau si eu doar un meniu da arme atata tot

in pirma runda sa aibe deagle cu set grenezi .
In a 3 a runda sa le apara meniu de arme

Tero
1. AK47 cu deagle set grenezi
2. Gali cu deagle set grenezi

Ct
1.M4A1 etc
2.Famas etc

doar ata vreau


Last edited by Laurentiu P. on 23 Sep 2018 15:39, edited 1 time in total.

Cerere rezolvată.



28 Aug 2018 22:01
Profile multumesc WWW
Membru, skill 0
Membru, skill 0

Joined: 29 Jul 2018 12:28
Posts: 21
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
UP !


31 Aug 2018 21:19
Profile multumesc WWW
Membru, skill 0
Membru, skill 0

Joined: 29 Jul 2018 12:28
Posts: 21
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
up !


11 Sep 2018 12:06
Profile multumesc WWW
Moderator ajutator
Moderator ajutator

Joined: 16 Feb 2014 16:28
Posts: 1534
Detinator Steam: Nu
CS Status: N-avem!
Detinator server CS: Zm.Darkcs.ro
Reputatie: Moderator Ajutator
Fond eXtream: 0
| Afiseaza codul
#include <amxmodx>
#include <cstrike>
#include <fakemeta_util>

new CurrentRound

public plugin_init(){
register_plugin("weapons","1.0","Original");


register_logevent("LogEvent_RoundStart", 2, "1=Round_Start" );
register_event("TextMsg","Event_RoundRestart","a","2&#Game_w")
register_event("TextMsg","Event_RoundRestart","a","2&#Game_C");

}


public LogEvent_RoundStart()
{
CurrentRound++;
new players[32], player, pnum;
get_players(players, pnum, "a");
for(new i = 0; i < pnum; i++)
{
player = players[i];
if(is_user_alive(player))
{
fm_give_item(player, "weapon_knife");
fm_give_item(player, "weapon_deagle");
fm_give_item(player, "weapon_hegrenade");
fm_give_item(player, "weapon_flashbang");
cs_set_user_bpammo(player, CSW_HEGRENADE, 1);
cs_set_user_bpammo(player, CSW_FLASHBANG, 2);
cs_set_user_bpammo(player, CSW_DEAGLE, 35);

if(CurrentRound >= 3)
{
VipMenu(player);
}
}
}
return PLUGIN_HANDLED
}

public Event_RoundRestart()
{
CurrentRound=0;
}

public VipMenu(id) {
new ShopMenu = menu_create("Menu Weapons", "give_items");
switch(get_user_team(id)) {
case 1: {
menu_additem(ShopMenu, "Ak47+Deagle+Set grenazi", "1");
menu_additem(ShopMenu, "Galil+Deagle+Set grenazi", "2");
}
case 2:
{
menu_additem(ShopMenu, "M4a1+Deagle+Set grenazi", "1");
menu_additem(ShopMenu, "Famas+Deagle+Set grenazi", "2");
}
}

menu_setprop(ShopMenu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, ShopMenu, 0);
return 1;
}

public give_items(id, ShopMenu, item) {
if(item == MENU_EXIT) {
menu_destroy(ShopMenu);
return 1;
}
switch(get_user_team(id)) {
case 1: {
switch(item)
{
case 0:
{
fm_give_item(id, "weapon_ak47");
cs_set_user_bpammo(id, CSW_AK47, 90);
}
case 1:
{
fm_give_item(id, "weapon_galil");
cs_set_user_bpammo(id, CSW_GALIL, 90);
}
}
}
case 2: {
switch(item)
{
case 0:
{
fm_give_item(id, "weapon_m4a1");
cs_set_user_bpammo(id, CSW_M4A1, 90);

}
case 1:
{
fm_give_item(id, "weapon_famas");
cs_set_user_bpammo(id, CSW_FAMAS, 90);

}
}
}
}
menu_destroy(ShopMenu);
return 1;
}

nu am testat nimic

_________________
Inactiv pana dupa bac.


13 Sep 2018 16:04
Profile multumesc
Membru, skill 0
Membru, skill 0

Joined: 29 Jul 2018 12:28
Posts: 21
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Merge Multumesc


23 Sep 2018 14:12
Profile multumesc WWW
Super moderator
Super moderator
User avatar

Joined: 10 Jul 2013 20:26
Posts: 2381
Location: Constanta
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Super moderator
Nume anterior: Do[N]e ;3
Fond eXtream: 0
JaponezuEnd wrote:
Merge Multumesc


Marcat ca rezolvat.


23 Sep 2018 15:38
Profile multumesc
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: Bing [Bot], DevilBoy.eXe, dim2k, e931ff07, NacKeR and 67 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