Meniu arme [rezolvat]

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
JaponezuEnd
Membru, skill 0
Membru, skill 0
Posts: 21
Joined: 29 Jul 2018, 12:28
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

28 Aug 2018, 22:01

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.
Reason: Cerere rezolvată.
Envato
JaponezuEnd
Membru, skill 0
Membru, skill 0
Posts: 21
Joined: 29 Jul 2018, 12:28
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

31 Aug 2018, 21:19

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

11 Sep 2018, 12:06

up !
*Or!g!naL*
Fost moderator
Fost moderator
Posts: 1537
Joined: 16 Feb 2014, 16:28
Detinator Steam: Nu
CS Status: N-avem!
Detinator server CS: Zm.Darkcs.ro
Reputatie: Fost moderator ajutator
Has thanked: 2 times

13 Sep 2018, 16:04

| 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;
		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.
JaponezuEnd
Membru, skill 0
Membru, skill 0
Posts: 21
Joined: 29 Jul 2018, 12:28
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

23 Sep 2018, 14:12

Merge Multumesc
User avatar
Laurentiu P.
Super moderator
Super moderator
Posts: 2468
Joined: 10 Jul 2013, 20:26
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Super moderator
Nume anterior: Do[N]e ;3
Location: Constanta
Has thanked: 2 times

23 Sep 2018, 15:38

JaponezuEnd wrote:Merge Multumesc
Marcat ca rezolvat.
Image
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: Baidu [Spider] and 51 guests