Raised This Month: $404 Target: $400
 101% 

Modify team names when players join


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
andreyc9
New Member
Join Date: Oct 2018
Old 10-12-2018 , 15:14   Modify team names when players join
Reply With Quote #1

Hello!

When a player join on my server i don't want to appear teammenu : Select a team , terrorist force or counter terrorist.
I want to appear my text. Like here : https://imgur.com/a/L4BhhUhi

I think the code is here :
HTML Code:
public server_teamselect_new(id)
{
	new szText[555 char];

	formatex(szText, charsmax(szText), "\rAlege Echipa: ^n\rRatie Prizonieri: \w3 Prizonieri \r= \w1 Gardian");
	new menu = menu_create(szText, "team_select");

	formatex(szText, charsmax(szText), "\wPrizonieri \w[\r%i\w]", CountT)
	menu_additem(menu, szText, "0", 0);

	if(get_user_team(id) & read_flags("h") || get_user_team(id) != 2 && !get_bit(g_PlayerFreeday, id) && !get_bit(g_PlayerWanted, id) && CountCT < CountT/3 || CountCT == 0)
	{
		formatex(szText, charsmax(szText), "\wGardieni \w[\r%i\w]^n", CountCT)
		menu_additem(menu, szText, "1", 0);
	}
	else
	{
		formatex(szText, charsmax(szText), "Gardieni \d[\r%i\d]^n", CountCT)
		menu_additem(menu, szText, "1", ADMIN_ADMIN);
	}

	if(get_user_team(id) == 0)
	{
		formatex(szText, charsmax(szText), "Vizitatori Inchisoare \r[\dDISABLED\r]")
		menu_additem(menu, szText, "2", ADMIN_ADMIN);
	}
	else
	{
		formatex(szText, charsmax(szText), "Vizitatori Inchisoare \r[\dDISABLED\r]")
		menu_additem(menu, szText, "2", ADMIN_ADMIN);
	}

	menu_display(id, menu, 0)
	return PLUGIN_HANDLED
}
For 3 terrorists - 1 ct , from 2 in 2
andreyc9 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:33.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode