Cerere rondom player

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
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:

16 Nov 2013, 19:49

Sall all :d

Am nevoie de un plugin pentru zombie plague si acesta sa fie asa:

Cand incepe runda, si cineva este zm, la ct sa se aleaga rondom[adica pe cineva] si sa primeasca urmatoarele:

300 HP 155 armura 400 gravitatie 400 speed.

Multumesc >:D<
RoyalServer 2
User avatar
Truth*
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 766
Joined: 11 Oct 2013, 11:08
Detinator Steam: Da
SteamID: Ezeru
Reputatie: Fost moderator ajutator
Membru Club eXtreamCS (4 luni)
Nume anterior: HyperioN.
Scripter eXtreamCS
0.2 / 3
Fond eXtream: 0
Location: Sibiu
Has thanked: 44 times
Been thanked: 122 times

16 Nov 2013, 21:14

Nu sunt bun in zombie asa ca am facut pluginul dar nu este adaptat pentru zombie...
| Afiseaza codul
#include <amxmodx>
#include <fun>
#include <hamsandwich>

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"

public plugin_init( )
{
	register_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR );
	
	RegisterHam( Ham_Spawn, "player", "SpawnCmd", 1 );
	// Add your code here...
}

public SpawnCmd( )
{
	new iPlayers[ 32 ], iNum;
	get_players( iPlayers, iNum, "c" );
	
	new iRandomPlayer = iPlayers[ random_num( 0, iNum -1 ) ];
	
	if( is_user_alive( iRandomPlayer ) )
	{
		set_user_health(id, 300)
		set_user_armor(id, 155)
		set_user_gravity(id, 0.5)
		set_user_maxspeed(id, 400)
		client_print( iRandomPlayer, print_chat, "Felicitari ai fost ales random!" );
	}
}
P.S.: Netestat = Nu am avut timp să mă uit atent peste cod. Deci ceea ce am scris este posibil să fie greşit sau să aibă erori.

If i helped you and you wanna thank me, you can donate at this link : here
This will motivate me to help you in the future.
[If you want a private plugin send me a PM.(No complex plugins please, I am a student and I don't have the time to make those)]
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

16 Nov 2013, 21:23

| Afiseaza codul
#include <amxmodx>
#include <fun>
#include <hamsandwich>

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Cs_SURV!V0R"

public plugin_init( )
{
	register_plugin( PLUGIN, VERSION, AUTHOR );
	
	RegisterHam( Ham_Spawn, "player", "SpawnCmd", 1 );
	// Add your code here...
}

public SpawnCmd( id )
{
	new iPlayers[ 32 ], iNum;
	get_players( iPlayers, iNum, "c" );
	
	new iRandomPlayer = iPlayers[ random_num( 0, iNum -1 ) ];
	
	if( is_user_alive( iRandomPlayer ) )
	{
		set_user_health(id, 300)
		set_user_armor(id, 155)
		set_user_gravity(id, 0.5)
		set_user_maxspeed(id, 400.0)
		client_print( iRandomPlayer, print_chat, "Felicitari ai fost ales random!" );
	}
}
Last edited by Cosmin on 16 Nov 2013, 21:54, edited 1 time in total.
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:

16 Nov 2013, 21:41

| Afiseaza codul
#include <amxmodx>
#include <fun>
#include <hamsandwich>

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Cs_SURV!V0R"

public plugin_init( )
{
	register_plugin( PLUGIN, VERSION, AUTHOR );
	
	register_logevent( "SpawnCmd", 2, "1=Round_Start" );
	// Add your code here...
}

public SpawnCmd( )
{
	new iPlayers[ 32 ], iNum;
	get_players( iPlayers, iNum, "c" );
	
	new iRandomPlayer = iPlayers[ random_num( 0, iNum -1 ) ];
	
	if( is_user_alive( iRandomPlayer ) )
	{
		set_user_health(iRandomPlayer, 300)
		set_user_armor(iRandomPlayer, 155)
		set_user_gravity(iRandomPlayer, 0.5)
		set_user_maxspeed(iRandomPlayer, 400.0)
		client_print( iRandomPlayer, print_chat, "Felicitari ai fost ales random!" );
	}
}
@Scosmynnn si CS_SURV!V0R, cand playerul este inviat, va alege un player random. Mai bine sa pui la inceputul rundei.
Retras
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:

17 Nov 2013, 08:43

Multumesc :D
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 33 guests