Cerere plugin[rezolvat!]

Categoria cu cereri de pluginuri si nu numai.

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 .
Post Reply
AdY_AdY
Membru, skill 0
Membru, skill 0
Posts: 76
Joined: 26 Apr 2011, 17:24
Detinator Steam: Da
CS Status: .....
SteamID: Secret !
Has thanked: 31 times
Been thanked: 2 times

19 Jul 2012, 09:30

Salut, as dori un plugin care sa intrebe teroristul daca doreste un deagle sau daca nu doreste pentru modul Deathrun.
User avatar
tre3fla
Membru eXtream
Membru eXtream
Posts: 5333
Joined: 27 May 2012, 10:15
Detinator Steam: Da
CS Status: Allah Akbar !
Detinator server CS: Nu
SteamID: /id/tre3fla_xxx
Has thanked: 14 times
Been thanked: 129 times

19 Jul 2012, 19:57

Iti pot face un meniu in care teroristului sa-i apara optiunea 1 Deagle sau optiunea 2 Iesire..
compaq
Fost moderator
Fost moderator
Posts: 2598
Joined: 01 Dec 2008, 15:32
Detinator Steam: Da
Reputatie: Fost eXtream Mod
Fost contribuitor
Fost manager
Fost Scripter eXtreamCS
Has thanked: 15 times
Been thanked: 150 times

19 Jul 2012, 22:53

Code: Select all

#include < amxmodx >
#include < fun >


public plugin_init()
{
	register_plugin( "Deagle", "0.1", "compaq" );
	register_logevent( "roundstart", 2, "1=Round_Start" );
}

new Menu;

public plugin_cfg()
{
	Menu = menu_create( "\rDoresti un deagle?", "MENU_HANDLER" );
	menu_additem( Menu, "\wDa", "1", 0 );
	menu_additem( Menu, "\wNu", "2", 0 );
	menu_setprop( Menu, MPROP_EXIT, MEXIT_ALL );
}

public roundstart()
{
	new players[32], inum,i; get_players(players, inum);
	for(i=0;i<inum;i++)
	{
		if(get_user_team(players[i])==1)
		{
			menu_display(players[i],Menu,0);
		}
	}
}

public MENU_HANDLER(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);

	switch(str_to_num(data))
	{
		case 1:
		{
			give_item(id,"weapon_deagle");
		}

		default: return 0;
	}

	menu_destroy(Menu);
	return 1;
}
AdY_AdY
Membru, skill 0
Membru, skill 0
Posts: 76
Joined: 26 Apr 2011, 17:24
Detinator Steam: Da
CS Status: .....
SteamID: Secret !
Has thanked: 31 times
Been thanked: 2 times

19 Jul 2012, 23:13

Multumesc.
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 27 guests