Salvatorul Craciunului [Xmas Random]

Pluginuri facute de utilizatorii forumului eXtream.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

User avatar
S3ekEr^
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 3475
Joined: 06 Dec 2009, 12:47
Detinator Steam: Nu
Reputatie: Nume anterior: The Seeker , Reptyle
Fost Scripter
Fost super moderator
Utilizator neserios ( tepar )
Has thanked: 117 times
Been thanked: 329 times

26 Oct 2013, 14:26

Image
Descriere: La fiecare inceput de runda serverul alege aleatoriu un jucator de la CT/T si ii ofera un costum de "Mos Craciun" + niste abilitati default alese de mine FULL HE,150 HP,100 ARMURA.. l-am testat din toate punctele de vedere sa nu apara erori sau modelul sa nu dispara deci merge 100%
Am pus mesajul care anunta jucatorul ales in chat deoarece in hud mai avea tendinta sa dispara din cauza altor mesaje

Download: MediaFire.com / GirlShare.ro

Nume: Xmas Random
Versiune: 1.1
Autor: S3ekEr^
Link oficial: eXtreamCS.com
Credite: Chaos (pentru idea cu "Salvatorul Craciunului")
sKz (pentru banner si ajutorul la teste)

SURSA ! | Afiseaza codul
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
#include <fun>

#define PLUGIN "Xmas Random"
#define VERSION "1.0"
#define AUTHOR "Reptyle"

new const g_szModel[] = "xmas_red";

new g_iLastSaverId;

public plugin_init() {
	
	register_plugin(PLUGIN, VERSION, AUTHOR);
	
	register_logevent("logevent_RoundStart", 2, "1=Round_Start");
	
	RegisterHam(Ham_Spawn, "player", "fwd_HamPlayerSpawnPost", 1);
}

public plugin_precache()
{
	new szBuff[128];
	formatex(szBuff, charsmax(szBuff), "models/player/%s/%s.mdl", g_szModel, g_szModel);
	
	precache_model(szBuff);
}

//lower the SVC_BAD error / maybe?
public logevent_RoundStart()
	set_task(0.1, "task_SetSanta");

public fwd_HamPlayerSpawnPost(id)
{
	if(!is_user_connected(id))
		return HAM_IGNORED;
	
	if(id == g_iLastSaverId)
		cs_reset_user_model(id);
	
	return HAM_IGNORED;
}

public task_SetSanta()
{
	//get random player and don't get it twice in a row
	new iPlayer;
	do {
		iPlayer = GetRandomPlayer("ah");
	}
	while((iPlayer == g_iLastSaverId || !is_user_connected(iPlayer)) && iPlayer != 0);
	if(!iPlayer)
		return;
	
	set_user_health(iPlayer, 150);
	cs_set_user_armor(iPlayer, 100, CS_ARMOR_VESTHELM);
	
	give_item(iPlayer, "weapon_hegrenade");
	give_item(iPlayer, "weapon_smokegrenade");
	give_item(iPlayer, "weapon_flashbang");
	
	cs_set_user_model(iPlayer, g_szModel);
	
	new szName[32];
	get_user_name(iPlayer, szName, charsmax(szName));
	
	player_color( 0, ".g----------------------------------------------------------------------------");
	player_color( 0, ".g[.vXmas.g] .e%s .ga fost ales salvatorul .vCraciunului! .g.v150HP.g+.v100ARMURA.g-HE-FLASH! .eHo Ho Ho.g!", szName);
	player_color( 0, ".g----------------------------------------------------------------------------");
	
	g_iLastSaverId = iPlayer;
}

//get random player
stock GetRandomPlayer(const flags[] = "", const team[]= "")
{
	new iPlayers[32], iNum;
	get_players(iPlayers, iNum, flags, team);
	
	return iNum ? iPlayers[random_num(0, iNum - 1)] : 0;
}

stock player_color( const id, const input[ ], any:... )
{
	new count = 1, players[ 32 ]

	static msg[ 191 ]
	vformat( msg, 190, input, 3 )
	
	replace_all( msg, 190, ".v", "^4" ) /* verde */
	replace_all( msg, 190, ".g", "^1" ) /* galben */
	replace_all( msg, 190, ".e", "^3" ) /* ct=albastru | t=rosu */
	replace_all( msg, 190, ".x", "^0" ) /* normal-echipa */
	
	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( );
			}
		}
	}
}
Instalare:
1. Fisierul Xmas-Random.sma il puneti in addons/amxmodx/scripting
2. Fisierul Xmas-Random.amxx il puneti in addons/amxmodx/plugins
3. Fiserul xmas_red.mdl il puneti in cstrike/models/player
4. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:

Code: Select all

Xmas-Random.amxx
Module necesare (se sterge ; din fata modulului de mai jos; acestea le gasiti in fisierul amxmodx\configs\modules.ini):
cstrike
hamsandwich
fun
IMAGINI | Afiseaza codul
Image
Image
Informatii:[/b]
Nu prea am gasit niste modele atat de frumoase ca sa le pun,acesta a fost cel mai acceptabil dintre toate asa ca fiecare poate sa puna ce model doreste dar sa nu uitati sa pastrati numele sau sa-l modificati de aici la model new const g_szModel[] = "xmas_red";, v-am mai lasat aici inca un model pentr plugin,acum fiecare pune ce doreste Download
Initial am facut acest plugin pentru serverul meu de deathrun si din acest motiv nu i-am adaugat alte beneficii mai specaculoase sa zic asa,daca cineva doreste sa-i mai adaug si alte lucruri il rog sa-mi trimita PM Aici cu modificarile dorite
Last edited by S3ekEr^ on 26 Oct 2013, 19:19, edited 3 times in total.
RoyalServer
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

26 Oct 2013, 14:28

Nice, pe 1 decembrie o sa fie bagat pe serverul meu.
munir
Membru eXtream
Membru eXtream
Posts: 3193
Joined: 30 Aug 2012, 22:16
Detinator Steam: Da
CS Status: Fost scripter
Detinator server CS: Nu
SteamID: -
Reputatie: Fost super moderator
Restrictie schimbare nume
Nume anterior: falseq, cruyff
Location: Bucuresti
Has thanked: 342 times
Been thanked: 571 times
Contact:

26 Oct 2013, 14:30

Impecabil :)>-, mi-ai dat o idee de craciun :-?
Retras
Cosmin
Fost moderator
Fost moderator
Posts: 9362
Joined: 06 Jul 2013, 22:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 492 times
Been thanked: 547 times

26 Oct 2013, 14:32

Super misto. :X
ciprianmisaru
Membru, skill 0
Membru, skill 0
Posts: 25
Joined: 10 Aug 2013, 14:03
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 2 times
Been thanked: 1 time
Contact:

26 Oct 2013, 14:40

Frumos bravo
User avatar
roberteeel
Membru eXtream
Membru eXtream
Posts: 4438
Joined: 05 Sep 2012, 11:39
Detinator Steam: Nu
Reputatie: Nick anterior: QAZW, Robert.ultrasFarul, CT 18 ROS
Restrictie schimbare nume
Fost moderator
Fost Membru Club eXtreamCS (doua luni)
Has thanked: 313 times
Been thanked: 357 times

26 Oct 2013, 17:08

Sincer, plugin-ul este foarte folositor zic eu, mai ales că oferă și model acelui player, îl face mai special. Felicitări pentru munca depusă! :)
User avatar
DaNe
Membru, skill 0
Membru, skill 0
Posts: 71
Joined: 22 Sep 2013, 18:29
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 7 times
Been thanked: 2 times
Contact:

26 Oct 2013, 17:50

Multumesc, il convertesc pentru furien :D
[ New Damage Effect ] - [ 100 % ] [ Public ] [ Click Aici ]
User avatar
MarYuS996
Fost moderator
Fost moderator
Posts: 257
Joined: 05 Feb 2013, 15:30
Detinator Steam: Da
CS Status: INACTIV
Detinator server CS: 89.40.233.5
SteamID: maryus9966
Reputatie: Fost Moderator
Restrictie moderator(3 mai)
Location: Berca
Has thanked: 6 times
Been thanked: 12 times
Contact:

26 Oct 2013, 18:32

E diferit de al meu prietene :> \:d/ \:d/
| Afiseaza codul
CONTACT: Y!M => [email protected], Skype => maryussukaru996
User avatar
S3ekEr^
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 3475
Joined: 06 Dec 2009, 12:47
Detinator Steam: Nu
Reputatie: Nume anterior: The Seeker , Reptyle
Fost Scripter
Fost super moderator
Utilizator neserios ( tepar )
Has thanked: 117 times
Been thanked: 329 times

26 Oct 2013, 18:52

MarYuS996 wrote:E diferit de al meu prietene :> \:d/ \:d/
Crezi ca l-am facut pentru tine ? uite sa-ti explic... eu am vrut de ceva vreme sa fac asa ceva pentru dr si din acest motiv este simplu, la voi are trail etc..
Am specificat cine vrea chestii de genul sa ma contacteze prin pm,te rog citeste tot topicul ca n-am scris atat degeaba


@Va multumesc pentru pareri voi mai incerca sa fac niste updateuri
OWNX
Utilizator restrictionat
Utilizator restrictionat
Posts: 247
Joined: 24 Aug 2013, 00:09
Detinator Steam: Da
CS Status: [email protected]
Detinator server CS: Server Privat
SteamID: Privat
Reputatie: Utilizator Restrictionat: WishExec
Location: Bragadiru
Has thanked: 10 times
Been thanked: 24 times

26 Oct 2013, 18:54

destul de ok pluginu
Email :[/color] [email protected]


* Privat War3FT V5.0 ( 10 Euro AMXX + SMA ) : http://www.extreamcs.com/forum/anunturi ... 15532.html
DEMO : 93.119.26.151
* Privat UWC3X V4.0 ( 15 Euro AMXX ) : http://www.extreamcs.com/forum/anunturi ... l#p1810595
DEMO : 89.39.13.139

Accept Oferte si Negocieri prin PM
User avatar
S3ekEr^
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 3475
Joined: 06 Dec 2009, 12:47
Detinator Steam: Nu
Reputatie: Nume anterior: The Seeker , Reptyle
Fost Scripter
Fost super moderator
Utilizator neserios ( tepar )
Has thanked: 117 times
Been thanked: 329 times

26 Oct 2013, 22:44

OWNX wrote:destul de ok pluginu
Eram atat de aproape sa te impresionez :d
User avatar
Doctor whO? <3
Membru, skill +3
Membru, skill +3
Posts: 1196
Joined: 21 Jun 2013, 12:40
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Reputatie: Fost Membru Club eXtreamCS (doua luni)
Has thanked: 109 times
Been thanked: 75 times
Contact:

26 Oct 2013, 23:19

#define AUTHOR "Reptyle" , frumos...
Last edited by OneShot. on 27 Oct 2013, 00:51, edited 2 times in total.
Reason: Ai dat un fail doctore =))
Post Reply

Return to “Pluginuri eXtream”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 11 guests