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
User avatar
kabeza
Membru, skill +2
Membru, skill +2
Posts: 768
Joined: 09 Dec 2012, 19:30
Detinator Steam: Da
Has thanked: 76 times
Been thanked: 23 times

05 Jan 2013, 23:38

Salut,
Doresc si eu un plugin la care sa se aleaga random din fiecare echipa,un player care sa primeasca
150hp,300speed si sa scrie un text,de genul
X este cum Ezrael,va incerca sa isi salveze echipa.
CLICK & JOIN!
Image
User avatar
Rap^
Membru, skill +2
Membru, skill +2
Posts: 621
Joined: 01 Oct 2011, 00:25
Detinator Steam: Da
Reputatie: Fost Scripter eXtreamCS
Fost Super moderator
Location: Bucuresti
Has thanked: 16 times
Been thanked: 156 times

06 Jan 2013, 18:19

| Afiseaza codul
#include <amxmodx>
#include <fakemeta>
#include <ColorChat>

#pragma semicolon 1

static const PLUGIN[ ]	= "Ezrael";
static const VERSION[ ]	= "1.0";
static const AUTHOR[ ]	= "Rap";

new const Tero[ ]	= "TERRORIST";
new const CT[ ]		= "CT";

new bool: is_user_Ezrael[33];


public plugin_init( )
{
	register_plugin(PLUGIN, VERSION, AUTHOR);
	
	register_event("HLTV", "eventNewRound", "a", "1=0", "2=0");
	
	register_forward(FM_PlayerPreThink, "FwdPreThink");
	
	eventNewRound( );
}
public client_putinserver(id)
{
	is_user_Ezrael[id] = false;
}
public eventNewRound( )
{
	new Players[32], iNum, player;
	get_players(Players, iNum, "ch");
	
	for( new i = 0; i < iNum; i++ )
	{
		player = Players;
		
		is_user_Ezrael[player] = false;
		
		set_pev(player, pev_maxspeed, 250.0);
	}
	new iRandomT = get_random(Tero);
	new iRandomCT = get_random(CT);
	
	if( iRandomT != -1 )
		set_task(5.0, "taskSetSkills", iRandomT);
	
	if( iRandomCT != -1 )
		set_task(5.0, "taskSetSkills", iRandomCT);
	
	return 0;
}
public taskSetSkills(id)
{
	is_user_Ezrael[id] = true;
	
	set_pev(id, pev_health, 150.0);
	
	ColorChat(0, BLUE, "^x04[Ezrael]^x03 %s^x01 este acum Ezrael. Va incerca sa isi salveze echipa.", get_name(id));
}
public FwdPreThink(id)
{
	if( is_user_Ezrael[id] )
	{
		set_pev(id, pev_maxspeed, 300.0);
	}
}
stock get_random(const szTeam[ ])
{
	new iPlayers[32];
	new iNum;
	
	get_players(iPlayers, iNum, "aceh", szTeam);
	
	if( !iNum )
		return -1;
	
	return iPlayers[random(iNum)];
	
}
stock get_name(id)
{
	new szName[32];
	get_user_name(id, szName, sizeof szName -1);
	
	return szName;
}
Imagination is more important than knowledge.
Knowledge is limited - Imagination encircles the world.
User avatar
lazlo1234
Membru, skill +1
Membru, skill +1
Posts: 390
Joined: 10 Jul 2012, 00:08
Detinator Steam: Da
CS Status: MISCA MISCA DIN BURIC
Detinator server CS: DA
SteamID: nu am
Location: localhost
Has thanked: 114 times
Been thanked: 7 times
Contact:

06 Jan 2013, 19:21

Nu merge speed la plugin :P
User avatar
kabeza
Membru, skill +2
Membru, skill +2
Posts: 768
Joined: 09 Dec 2012, 19:30
Detinator Steam: Da
Has thanked: 76 times
Been thanked: 23 times

06 Jan 2013, 22:50

Multumesc Rap^.
Sa imi compileze si mie cineva pluginul si sa il urce pe un site. Merci.
CLICK & JOIN!
Image
User avatar
oneeightone
Fost moderator
Fost moderator
Posts: 2547
Joined: 17 Jul 2009, 19:29
Detinator Steam: Da
Reputatie: Fost super moderator
Membru Club eXtreamCS (o luna)
Nick anterior : LiGHTERS
0.3 / 3
Has thanked: 68 times
Been thanked: 512 times

06 Jan 2013, 22:55

NoRr wrote:Multumesc Rap^.
Sa imi compileze si mie cineva pluginul si sa il urce pe un site. Merci.
Here !
User avatar
kabeza
Membru, skill +2
Membru, skill +2
Posts: 768
Joined: 09 Dec 2012, 19:30
Detinator Steam: Da
Has thanked: 76 times
Been thanked: 23 times

06 Jan 2013, 23:13

oneeightone wrote:
NoRr wrote:Multumesc Rap^.
Sa imi compileze si mie cineva pluginul si sa il urce pe un site. Merci.
Here !
Merci,il testez si revin cu EDIT.
CLICK & JOIN!
Image
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 22 guests