[rezolvat] [Cerere]Plugin mesaj de bun venit

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
codrutzz
Membru, skill +2
Membru, skill +2
Posts: 539
Joined: 29 Jan 2014, 18:27
Detinator Steam: Da
CS Status: Nu citesc forumu xtreamCS* =]]]
Detinator server CS: In curand
SteamID: Personal
Location: Iasi<3
Has thanked: 68 times
Been thanked: 9 times
Contact:

04 Feb 2014, 18:12

  • Nickname:
codrut
  • Numele pluginului cerut:
un plugin de mesaj de bun venit
  • Descriere plugin cerut:
de fiecare data cand intri pe server o sa apara gen : http://postimg.org/image/45pw30qvz/
  • Alte informatii:
mesajul sa il setez eu
Multumesc si respect la toti cei care incearca sa ma ajute:D
Last edited by CsN^ ;x on 04 Feb 2014, 18:21, edited 1 time in total.
Reason: rezolvat
RoyalServer 2
#Vali
Fost moderator
Fost moderator
Posts: 2611
Joined: 24 Jan 2012, 11:00
Detinator Steam: Da
SteamID: id/spryt3
Reputatie: Fost Moderator
Fost Scripter eXtreamCS.com
1.2 / 3
Location: root
Has thanked: 81 times
Been thanked: 144 times
Contact:

04 Feb 2014, 18:19

| Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>

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


new spawn[33];

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	RegisterHam(  Ham_Spawn,  "player",  "Ham_PlayerSpawnPost",  1  );
}
public client_connect(id){
	spawn[id] = 0;
}
public Ham_PlayerSpawnPost(id)
	{
	spawn[id]++;
	if(spawn[id] == 1)
		{
		new name[32];
		get_user_name(id,name,31)
		Color(id,"^4[NUME]^3 Salut ^4%s^4 ! Bun venit pe ^3nume.ro!Distractie placyta",name)
		return PLUGIN_HANDLED;
	}
	return PLUGIN_CONTINUE;
}
stock Color(const id, const input[], any:...)
	{
	new count = 1, players[32]
	static msg[191]
	vformat(msg, 190, input, 3)
	
	replace_all(msg, 190, "!g", "^4") // Green Color
	replace_all(msg, 190, "!y", "^1") // Default Color
	replace_all(msg, 190, "!team", "^3") // Team Color
	
	
	if (id) players[0] = id; else get_players(players, count, "ch")
	{
		for (new i = 0; i < count; i++)
			{
			if (is_user_connected(players))
				{
				message_begin(MSG_ONE_UNRELIABLE, get_user_msgid( "SayText" ), _, players)  
				write_byte(players);
				write_string(msg);
				message_end();
			}
		}
	}
}
User avatar
codrutzz
Membru, skill +2
Membru, skill +2
Posts: 539
Joined: 29 Jan 2014, 18:27
Detinator Steam: Da
CS Status: Nu citesc forumu xtreamCS* =]]]
Detinator server CS: In curand
SteamID: Personal
Location: Iasi<3
Has thanked: 68 times
Been thanked: 9 times
Contact:

04 Feb 2014, 18:20

"Distractie placyta" :)) e langa u ;) ms rezolvat
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 36 guests