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
Cerere Plugin
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 .
Accesează link-ul pentru a putea vedea regulile forumului
Daca doriti sa vi se modifice un plugin, va rugam postati aici .
-
- Membru, skill 0
- Posts: 76
- Joined: 22 Feb 2019, 18:40
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Location: Harlau
- Contact:
- LNd #
- Membru, skill +1
- Posts: 126
- Joined: 07 Sep 2017, 23:33
- Detinator Steam: Da
- SteamID: eXeDLL [1337]
- Fond eXtream: 0
- Has thanked: 3 times
- Been thanked: 9 times
Code: Select all
register_event("TextMsg", "bomb_planted", "a", "2&%!MRAD_BOMBPL");
register_event("TextMsg", "bomb_defused", "a", "2&%!MRAD_BOMBDEF");
Code: Select all
public bomb_defused(defuser)
{
}
public bomb_planted(planter)
{
}
Last edited by levin 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
Reason: nu e de acele register din init pt că eventurile apelate sunt deja din stock csx
Legends never die
- LNd #
- Membru, skill +1
- Posts: 126
- Joined: 07 Sep 2017, 23:33
- Detinator Steam: Da
- SteamID: eXeDLL [1337]
- Fond eXtream: 0
- Has thanked: 3 times
- Been thanked: 9 times
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()
}
}
}
Legends never die
-
- Membru, skill 0
- Posts: 76
- Joined: 22 Feb 2019, 18:40
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Location: Harlau
- Contact:
multumeac functioneaza