Cerere 2 pluginuri[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
User avatar
RAZVANN.
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 3610
Joined: 03 Nov 2008, 21:07
Detinator Steam: Da
CS Status: Excelent
SteamID: Privat
Reputatie: Fost moderator ajutator
Utilizator neserios ( tepar )
Has thanked: 206 times
Been thanked: 179 times

27 Sep 2009, 15:35

Am tot cautat 2 pluginuri si nu le-am gasit mi le puteti da voi ? :)>-
Image
pluginul de jos din stanga ecranului cu FIRE IN THE HOLE [FLASH]
si 2 Cel din dreapta sus cu Jucatorii pot avertiza .... ms >:D<
RoyalServer 2
User avatar
Ciprian
Fost administrator
Fost administrator
Posts: 5172
Joined: 10 May 2008, 21:29
Detinator Steam: Da
CS Status: ^^
SteamID: crazycipry
Reputatie: Fost administrator
Fost Scripter eXtreamCS
Fost Supervizor CS.eXtreamCS.com
Fost Unbanner ZM.eXtreamCS.com
Fost Contribuitor
Nume anterior: crazy.cipry
Location: Baia Mare
Has thanked: 177 times
Been thanked: 405 times

27 Sep 2009, 15:38

1.
descriptive_fire_in_the_hole | Afiseaza codul
/* AMX Mod X
*   Descriptive 'Fire in the hole!'
*
* (c) Copyright 2006 by VEN
*
* This file is provided as is (no warranties)
*
*     DESCRIPTION
*       Plugin provides additional colored text for "Fire in the hole!" radio chat message.
*       The color and the text is different for each grenade type and can be altered.
*       This will help teammates to get the throwed grenade type and act accordingly.
*       Search for "EDITABLE" mark in the plugin's source code to configure text and color.
*
*     CREDITS
*       Damaged Soul - colored chat text method
*       p3tsin - team color override method
*/

#include <amxmodx>

#define PLUGIN_NAME "Descriptive 'Fire in the hole!'"
#define PLUGIN_VERSION "0.1"
#define PLUGIN_AUTHOR "VEN"

enum grenade {
	GRENADE_HE,
	GRENADE_FLASH,
	GRENADE_SMOKE
}

// EDITABLE: grenade description
new const g_grenade_description[_:grenade][] = {
	" [he]",
	" [flash]",
	" [smoke]"
}

enum color {
	COLOR_NORMAL,
	COLOR_RED,
	COLOR_BLUE,
	COLOR_GRAY,
	COLOR_GREEN
}

// EDITABLE: grenade description text color
new const g_grenade_desccolor[_:grenade] = {
	COLOR_RED,
	COLOR_GRAY,
	COLOR_GREEN
}

new const g_grenade_weaponid[_:grenade] = {
	CSW_HEGRENADE,
	CSW_FLASHBANG,
	CSW_SMOKEGRENADE
}

#define COLORCODE_NORMAL 0x01
#define COLORCODE_TEAM 0x03
#define COLORCODE_LOCATION 0x04

new const g_color_code[_:color] = {
	COLORCODE_NORMAL,
	COLORCODE_TEAM,
	COLORCODE_TEAM,
	COLORCODE_TEAM,
	COLORCODE_LOCATION
}

new const g_color_teamname[_:color][] = {
	"",
	"TERRORIST",
	"CT",
	"SPECTATOR",
	""
}

#define RADIOTEXT_MSGARG_NUMBER 5

enum radiotext_msgarg {
	RADIOTEXT_MSGARG_PRINTDEST = 1,
	RADIOTEXT_MSGARG_CALLERID,
	RADIOTEXT_MSGARG_TEXTTYPE,
	RADIOTEXT_MSGARG_CALLERNAME,
	RADIOTEXT_MSGARG_RADIOTYPE,
}

new const g_required_radiotype[] = "#Fire_in_the_hole"
new const g_radiotext_template[] = "%s (RADIO): Fire in the hole!"

new g_msgid_saytext
new g_msgid_teaminfo

public plugin_init() {
	register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)

	register_message(get_user_msgid("TextMsg"), "message_text")

	g_msgid_saytext = get_user_msgid("SayText")
	g_msgid_teaminfo = get_user_msgid("TeamInfo")
}

public message_text(msgid, dest, id) {
	if (get_msg_args() != RADIOTEXT_MSGARG_NUMBER || get_msg_argtype(RADIOTEXT_MSGARG_RADIOTYPE) != ARG_STRING)
		return PLUGIN_CONTINUE

	static arg[32]
	get_msg_arg_string(RADIOTEXT_MSGARG_RADIOTYPE, arg, sizeof arg - 1)
	if (!equal(arg, g_required_radiotype))
		return PLUGIN_CONTINUE

	get_msg_arg_string(RADIOTEXT_MSGARG_CALLERID, arg, sizeof arg - 1)
	new caller = str_to_num(arg)
	if (!is_user_alive(caller))
		return PLUGIN_CONTINUE

	new clip, ammo, weapon
	weapon = get_user_weapon(caller, clip, ammo)
	for (new i; i < sizeof g_grenade_weaponid; ++i) {
		if (g_grenade_weaponid == weapon) {
			static text[192]
			new pos = 0
			text[pos++] = g_color_code[COLOR_NORMAL]

			get_msg_arg_string(RADIOTEXT_MSGARG_CALLERNAME, arg, sizeof arg - 1)
			pos += formatex(text[pos], sizeof text - pos - 1, g_radiotext_template, arg)
			copy(text[++pos], sizeof text - pos - 1, g_grenade_description)

			new desccolor = g_grenade_desccolor
			if ((text[--pos] = g_color_code[desccolor]) == COLORCODE_TEAM) {
				static teamname[12]
				get_user_team(id, teamname, sizeof teamname - 1)

				if (!equal(teamname, g_color_teamname[desccolor])) {
					msg_teaminfo(id, g_color_teamname[desccolor])
					msg_saytext(id, text)
					msg_teaminfo(id, teamname)

					return PLUGIN_HANDLED
				}
			}

			msg_saytext(id, text)

			return PLUGIN_HANDLED
		}
	}

	return PLUGIN_CONTINUE
}

msg_teaminfo(id, teamname[]) {
	message_begin(MSG_ONE, g_msgid_teaminfo, _, id)
	write_byte(id)
	write_string(teamname)
	message_end()
}

msg_saytext(id, text[]) {
	message_begin(MSG_ONE, g_msgid_saytext, _, id)
	write_byte(id)
	write_string(text)
	message_end()
}


2.
server_messages | Afiseaza codul
#include <amxmodx>

// *** mesajele ***
new const messages[][] =  {
	"Nu injurati pe server!  (gag/llama/kick/banip)",
	"Nu faceti reclama! (banip permanent)",
	"Nu folositi programe de avantajare (coduri)! (banip permanent)",
	"Echipele trebuie sa isi indeplineasca obiectivele in timpul rundei! (slayteam automat)",
	"Daca un jucator este codat il raportati adminului! (u@ mesaj - vor vedea doar adminii)"
}
#define TASK_MESSAGES 30 // timpul de afisare a mesajelor (secunde)

#define TUTOR_MESSAGES_COLOR GREEN // culoarea mesajelor (poate sa fie rosu = RED ; albastru = BLUE ; galben = YELLOW ; si verde = GREEN - implicit)
#define TUTOR_MESSAGES_HOLD 3 // cat timp sa afiseze mesajele (secunde)

enum {
	RED = 1,
	BLUE,
	YELLOW,
	GREEN
} 

new const g_TutorPrecache[][] = {
	"gfx/career/icon_!.tga",
	"gfx/career/icon_!-bigger.tga",
	"gfx/career/icon_i.tga",
	"gfx/career/icon_i-bigger.tga",
	"gfx/career/icon_skulls.tga",
	"gfx/career/round_corner_ne.tga",
	"gfx/career/round_corner_nw.tga",
	"gfx/career/round_corner_se.tga",
	"gfx/career/round_corner_sw.tga",
	"resource/TutorScheme.res",
	"resource/UI/TutorTextWindow.res"
}

new g_MsgTutor, g_MsgTutorClose

public plugin_precache() {
	for(new i = 0; i < sizeof g_TutorPrecache; i++) 
		precache_generic(g_TutorPrecache)
}

public plugin_init() {
	set_task(float(TASK_MESSAGES), "show_messages", _, _, _,"b")
	
	g_MsgTutor = get_user_msgid("TutorText")
	g_MsgTutorClose = get_user_msgid("TutorClose")
}

public show_messages() {
	new Buffer[248]
	formatex(Buffer, sizeof Buffer - 1, "%s", messages[random(sizeof messages)])
	
	new players[32], num, id
	get_players(players, num)
	
	for (new i = 0 ; i < num ; i++) {
		id = players
		make_tutor(id, Buffer, TUTOR_MESSAGES_COLOR, float(TUTOR_MESSAGES_HOLD))
	}
}

stock make_tutor(id, text[], color, Float:time = 0.0) {
	message_begin(MSG_ONE_UNRELIABLE, g_MsgTutor, _, id)
	write_string(text)
	write_byte(0)
	write_short(0)
	write_short(0)
	write_short(1 << color)
	message_end()
	
	if (time != 0.0) 
		set_task(time, "remove_tutor", id + 1111)
}

public remove_tutor(taskID) {
	new id = taskID - 1111
	
	message_begin(MSG_ONE_UNRELIABLE, g_MsgTutorClose, _, id)
	message_end()
}
User avatar
RAZVANN.
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 3610
Joined: 03 Nov 2008, 21:07
Detinator Steam: Da
CS Status: Excelent
SteamID: Privat
Reputatie: Fost moderator ajutator
Utilizator neserios ( tepar )
Has thanked: 206 times
Been thanked: 179 times

27 Sep 2009, 15:40

ms boss puteti inchide topicul =D>
User avatar
VaLDeS
Fost moderator
Fost moderator
Posts: 2776
Joined: 11 Feb 2008, 18:41
Detinator Steam: Da
CS Status: pe mari si oceane
SteamID: valdes93
Reputatie: Fost moderator
Fost Membru Club eXtreamCS (doua luni)
Location: România
Has thanked: 64 times
Been thanked: 103 times

27 Sep 2009, 15:43

pluginul 2 a mai fost dezbatut in acest topic :) http://extreamcs.com/forum/viewtopic.php?f=32&t=54615
Image

STEAM ID : valdes93 :flag_ro:
User avatar
RAZVANN.
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 3610
Joined: 03 Nov 2008, 21:07
Detinator Steam: Da
CS Status: Excelent
SteamID: Privat
Reputatie: Fost moderator ajutator
Utilizator neserios ( tepar )
Has thanked: 206 times
Been thanked: 179 times

27 Sep 2009, 15:44

sry dar nu am stiu sa caut :)
User avatar
Ciprian
Fost administrator
Fost administrator
Posts: 5172
Joined: 10 May 2008, 21:29
Detinator Steam: Da
CS Status: ^^
SteamID: crazycipry
Reputatie: Fost administrator
Fost Scripter eXtreamCS
Fost Supervizor CS.eXtreamCS.com
Fost Unbanner ZM.eXtreamCS.com
Fost Contribuitor
Nume anterior: crazy.cipry
Location: Baia Mare
Has thanked: 177 times
Been thanked: 405 times

27 Sep 2009, 15:47

Valdes wrote:pluginul 2 a mai fost dezbatut in acest topic :) http://extreamcs.com/forum/viewtopic.php?f=32&t=54615
A fost mai rapid sa i-l dau de la mine din pc decat sa stau sa dau search :-@.
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 34 guests