Cerere Plugin

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
Shuya
Membru, skill 0
Membru, skill 0
Posts: 22
Joined: 22 Feb 2019, 18:40
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Location: Harlau
Contact:

20 Nov 2020, 21:26

Plugin Cerut: bomba
Descriere (adica ce face el mai exact): Cand cineva planteza/dezamorseaza bomba sa apara mesaj jos in chat Shuya a plantat bomba / Shuya a dezamorsat bomba daca se poate sa fie colorat multumesc
Serverul impune conditii strict HLDS/REHLDS?: rehlds
Ai cautat pluginul?(daca da, precizeaza cum): nu am gasit
Necesita mod special?: nu
User avatar
LNd #
Membru, skill 0
Membru, skill 0
Posts: 97
Joined: 07 Sep 2017, 22:33
Detinator Steam: Da
SteamID: eXeDLL [1337]
Fond eXtream: 0
Has thanked: 3 times
Been thanked: 4 times
Contact:

20 Nov 2020, 22:10

Code: Select all

	register_event("TextMsg", "bomb_planted", "a", "2&%!MRAD_BOMBPL");
	register_event("TextMsg", "bomb_defused", "a", "2&%!MRAD_BOMBDEF");
folosesti astea doua eventuri

Code: Select all

public bomb_defused(defuser)
{

}

public bomb_planted(planter)
{

}
si astea doua publicuri.
Last edited by L E V I N on 23 Nov 2020, 01:33, edited 1 time in total.
Reason: nu e de acele register din init pt că eventurile apelate sunt deja din stock csx
https://steamcommunity.com/id/eXe1337eXe -> Pentru pluginuri/probleme (Gratis AMXX / 5/10/15 euro SMA)
User avatar
LNd #
Membru, skill 0
Membru, skill 0
Posts: 97
Joined: 07 Sep 2017, 22:33
Detinator Steam: Da
SteamID: eXeDLL [1337]
Fond eXtream: 0
Has thanked: 3 times
Been thanked: 4 times
Contact:

20 Nov 2020, 22:18

Code: Select all

#include <amxmodx>
#include <amxmisc>

public plugin_init() 
{
	register_plugin("Bomba ***", "1.0", "LNd")

	register_event("TextMsg", "bomb_planted", "a", "2&%!MRAD_BOMBPL");
	register_event("TextMsg", "bomb_defused", "a", "2&%!MRAD_BOMBDEF");
}


public bomb_defused(defuser)
{
	chat_color(0, "!n[!gBOMBA!n] Player-ul !g%s !na dat defuse la bomba!", get_name(defuser))
}

public bomb_planted(planter)
{
	chat_color(0, "!n[!gBOMBA!n] Player-ul !g%s !na plantat bomba!", get_name(planter))
}

stock get_name(id)
{
	new szName[32];
	get_user_name(id, szName, charsmax(szName));
	return szName;
}

stock chat_color(const id, const input[], any:...)
{
	new count = 1, players[32]
	
	static msg[191]
	
	vformat(msg, charsmax(msg), input, 3)
	
	replace_all(msg, charsmax(msg), "!g", "^4")
	replace_all(msg, charsmax(msg), "!n", "^1")
	replace_all(msg, charsmax(msg), "!t", "^3")
	
	if(id) players[0] = id; else get_players(players, count, "ch")

	for (new i = 0; i < count; i++)
	{
		if (is_user_connected(players[i]))
		{
			message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
			write_byte(players[i])
			write_string(msg)
			message_end()
		}
	}
}
in caz ca nu te ai descurcat.
https://steamcommunity.com/id/eXe1337eXe -> Pentru pluginuri/probleme (Gratis AMXX / 5/10/15 euro SMA)
Shuya
Membru, skill 0
Membru, skill 0
Posts: 22
Joined: 22 Feb 2019, 18:40
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Location: Harlau
Contact:

21 Nov 2020, 17:42

multumeac functioneaza
Post Reply

Return to “Cereri”

  • Information