Cerere 2 pluginuri

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 .
User avatar
steFF
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 1578
Joined: 19 Jun 2011, 11:21
Detinator Steam: Da
CS Status: >:)
Detinator server CS: Evident
SteamID: xtzontzo
Reputatie: Ban 3 luni!
Utilizator neserios (TEPAR!)
Has thanked: 41 times
Been thanked: 54 times

22 Sep 2013, 15:00

scosmynnnn wrote:
| Afiseaza codul
#include < amxmodx >
#include < cstrike >

#define VERSION    "2.1"

native get_user_credits(id)
    native set_user_credits(id, cantitate)
    
public plugin_init()
{
    register_plugin("Kill Credite",VERSION,"Gabriel")
    
    register_event("DeathMsg","death_msg","a")
    
}

public death_msg ( )
{
    new iKiller = read_data ( 1 );
    new iVictim = read_data ( 2 );
    
    new vname [ 33 ];
    
    if ( iKiller == iVictim )
        return 1;
    
    get_user_name ( iVictim, vname, charsmax ( vname ) );
    
    set_user_credits ( iKiller, get_user_credits ( iKiller ) + 1 );
    
    client_print ( iKiller, print_chat, "[^3Furien^1] L-ai omorat pe ^3%s ^1si ai primit ^2 1 credit.", vname );
    
    return 1;
} 
stock chat_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")
 replace_all(msg, 190, "!y", "^1")
 replace_all(msg, 190, "!team", "^3")
 
 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();
  }
  }
 }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1250\\ deff0\\ deflang1048{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/
=>> colorat

Nu merge asta.
Apare textul despartit, nu e colorat.
:flag_ro: Forum: http://www.goodcs.ro

:flag_ro: Server: dr.goodcs.ro

:mega: Owner: steFF
RoyalServer 2
OneShot.
Membru, skill +2
Membru, skill +2
Posts: 719
Joined: 12 Sep 2011, 19:17
Detinator Steam: Da
Detinator server CS: drx.indungi.ro
SteamID: oneshot_01
Reputatie: Fost moderator ajutator
Nume anterior: OnlyHD
Location: Bucuresti
Has thanked: 196 times
Been thanked: 66 times
Contact:

22 Sep 2013, 15:04

| Afiseaza codul
#include < amxmodx >
#include < cstrike >

#define VERSION    "2.1"

native get_user_credits(id)
    native set_user_credits(id, cantitate)
    
public plugin_init()
{
    register_plugin("Kill Credite",VERSION,"Gabriel")
    
    register_event("DeathMsg","death_msg","a")
    
}

public death_msg ( )
{
    new iKiller = read_data ( 1 );
    new iVictim = read_data ( 2 );
    
    new vname [ 33 ];
    
    if ( iKiller == iVictim )
        return 1;
    
    get_user_name ( iVictim, vname, charsmax ( vname ) );
    
    set_user_credits ( iKiller, get_user_credits ( iKiller ) + 1 );
    
    chat_color ( iKiller, "!team[Furien]!y L-ai omorat pe!team %s!y si ai primit!g 1 credit.", vname );
    
    return 1;
} 
stock chat_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")
 replace_all(msg, 190, "!y", "^1")
 replace_all(msg, 190, "!team", "^3")
 
 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();
  }
  }
 }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1250\\ deff0\\ deflang1048{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/
User avatar
steFF
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 1578
Joined: 19 Jun 2011, 11:21
Detinator Steam: Da
CS Status: >:)
Detinator server CS: Evident
SteamID: xtzontzo
Reputatie: Ban 3 luni!
Utilizator neserios (TEPAR!)
Has thanked: 41 times
Been thanked: 54 times

22 Sep 2013, 15:21

Funcioneaza PERFECT :-BD Multumesc tuturor pentru ajutor!
:flag_ro: Forum: http://www.goodcs.ro

:flag_ro: Server: dr.goodcs.ro

:mega: Owner: steFF
User avatar
KrAiD.
Fost moderator
Fost moderator
Posts: 866
Joined: 15 Jun 2013, 12:14
Detinator Steam: Da
CS Status: Cat de cat activ :D
Detinator server CS: Nu
Reputatie: Fost Moderator ajutator
0.7 / 3
Has thanked: 14 times
Been thanked: 131 times
Contact:

22 Sep 2013, 15:27

de pluginul cu credite pe minut ai facut rost ? :D
| Afiseaza codul
#include <amxmodx>

public plugin_init()
{
	register_plugin("Credite pe minute", "1.0", "cyby")
}

native get_user_credits(id)
	native set_user_credits(id, cantitate)
	
public client_putinserver(id)
{
	set_task(60.0, "give", id, _, _, "b")
}

public client_disconnect(id)
{
	remove_task(id)
}

public give(id)
{
	color(id, ".v[TFurien].g Ai primit.e 1 credite.g pentru ca ai jucat 1 minut.")
	color(id, ".v[Furien].g Continua sa joci si primesti credite continuu.")
	set_user_credits(id, get_user_credits(id) + 1)
}

stock 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")
	replace_all(msg, 190, ".g", "^1")
	replace_all(msg, 190, ".e", "^3")
	
	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
steFF
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 1578
Joined: 19 Jun 2011, 11:21
Detinator Steam: Da
CS Status: >:)
Detinator server CS: Evident
SteamID: xtzontzo
Reputatie: Ban 3 luni!
Utilizator neserios (TEPAR!)
Has thanked: 41 times
Been thanked: 54 times

22 Sep 2013, 15:36

Multumesc!
:flag_ro: Forum: http://www.goodcs.ro

:flag_ro: Server: dr.goodcs.ro

:mega: Owner: steFF
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 19 guests