Problema Server. [rezolvat]

Discutii legate de instalarea, configurarea si modificarea unui server de Counter-Strike.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
ionutalexandru
Membru, skill +1
Membru, skill +1
Posts: 440
Joined: 10 Jul 2014, 13:43
Detinator Steam: Da
CS Status: Counter Strike 1.6
Detinator server CS: Furien.LaLeagane.Ro
SteamID: BBcode
Fond eXtream: 0
Location: Craiova, Romania
Has thanked: 15 times
Been thanked: 1 time
Contact:

13 Sep 2014, 00:47

Salut
Intru pe cs am 4000 money si daca imi dau kill fac 14000 money.
Cum fac sa nu mai dea asa mult cand cineva isi da kill.
Multumesc.
Last edited by Nubo on 14 Sep 2014, 20:12, edited 1 time in total.
Reason: rezolvat
Image
http://csmaster.biz MasterServer Romanesc Free Add
RoyalServer
User avatar
Nubo
Fost moderator
Fost moderator
Posts: 2734
Joined: 11 Jul 2012, 18:45
Detinator Steam: Da
CS Status: [əˈnɒn.ɪ.məs]
Reputatie: Fost scripter eXtreamCS
Fost eXtream Mod
Has thanked: 8 times
Been thanked: 27 times

13 Sep 2014, 03:00

Cauti pluginul care face asta si il modifici (daca ai .sma).
Cand nu merge acest forum sunt online aici:
  • * Skype: nubo_cs
    * Y!M ID: nubo_cs
User avatar
ionutalexandru
Membru, skill +1
Membru, skill +1
Posts: 440
Joined: 10 Jul 2014, 13:43
Detinator Steam: Da
CS Status: Counter Strike 1.6
Detinator server CS: Furien.LaLeagane.Ro
SteamID: BBcode
Fond eXtream: 0
Location: Craiova, Romania
Has thanked: 15 times
Been thanked: 1 time
Contact:

13 Sep 2014, 10:02

De la ce plugin crezi ca e ?

Lista cu pluginuri.
| Afiseaza codul
; AMX Mod X plugins

; Admin Base - Always one has to be activated
amx_who.amxx		; admini  online
admin.amxx		; admin base (required for any admin-related)
;admin_sql.amxx		; admin base - SQL version (comment admin.amxx)

; Basic
adminvote.amxx		; vote colorat
Gag_Manager.amxx 	; sa iei gag
admincmd.amxx		; basic admin console commands
adminhelp.amxx		; help command for admin console commands
adminslots.amxx		; slot reservation
multilingual.amxx	; Multi-Lingual management

; Menus
menufront.amxx		; front-end for admin menus
cmdmenu.amxx		; command menu (speech, settings)
plmenu.amxx		; players menu (kick, ban, client cmds.)
;telemenu.amxx		; teleport menu (Fun Module required!)
mapsmenu.amxx		; maps menu (vote, changelevel)
pluginmenu.amxx		; Menus for commands/cvars organized by plugin

; Chat / Messages
adminchat.amxx		; console chat commands
antiflood.amxx		; prevent clients from chat-flooding the server
adminvote.amxx		; vote commands

; Map related
nextmap.amxx		; displays next map in mapcycle
mapchooser.amxx		; allows to vote for next map
timeleft.amxx		; displays time left on map

; Configuration
pausecfg.amxx		; allows to pause and unpause some plugins
statscfg.amxx		; allows to manage stats plugins via menu and commands

; Counter-Strike
;restmenu.amxx		; restrict weapons menu
statsx.amxx		; stats on death or round end (CSX Module required!)
;miscstats.amxx		; bunch of events announcement for Counter-Strike
;stats_logging.amxx	; weapons stats logging (CSX Module required!)

; Enable to use AMX Mod plugins
;amxmod_compat.amxx	; AMX Mod backwards compatibility layer

; Custom - Add 3rd party plugins here
money_hp_armor.amxx	; bani hp si armura
furienx.amxx		; plugin baza
furien_shop.amxx	; shopu
boti_fake.amxx		; boti spec
f_weapons.amxx		; arme
multijump.amxx		; saritura dubla
nademodes.amxx		; modele bombe
admin_chat_colors.amxx	; chat color
admin_ip.amxx		; ip
admin_spec_esp.amxx	; spec codati
admins_activit.amxx	; vezi ce fac adimini
advanced_blind.amxx	; blind
amx_lastip.amxx		; ultimele ip
amx_parachute.amxx 	; parsuta	
amx_pika.amxx		; comanda smechera
amx_slayteam.amxx	; slay toata echipa	
amx_ss.amxx		; faci ss
amx_toggleimmune.amxx	; imunitate
antiguard.amxx		; ceva bun...
bcd_hudtimer.amxx	; ceva la bomba
bet.amxx		; pariezi
bomb_time_set.amxx	; bomba
bonusbombkill.amxx	; bani la bomba
team_join.amxx		; automat la echipa
camp.amxx		; anti camp
cfg_hse.amxx		; rosu la hs
file_watcher.amxx	; e el bun la ceva
gamenamechanger.amxx	; e bun lasal aici
GHW_Message_Disp.amxx	; asta la fel
give_money.amxx		; pentru saraci sa le dai bani
high_ping_kicker.amxx	; pentru lagari
InformatiPlayer.amxx	; hudu
lastmap.amxx		; ultimele harti
preturi_ranguri_motd.amxx	; preturile admine
semiclip.amxx 		; treci prin alti
sillyc4.amxx		; miste si pui bmb
special_rr_colored.amxx ; rr colorat
resetscore2.amxx	; reset score
Image
http://csmaster.biz MasterServer Romanesc Free Add
User avatar
WISHEXEC
Membru, skill +4
Membru, skill +4
Posts: 1683
Joined: 12 Nov 2011, 19:37
Detinator Steam: Da
CS Status: AmxModX
Detinator server CS: DAEVA.RO
Reputatie: Fost Moderator ajutator
Nume anterior : ONEMDX
Location: România
Has thanked: 84 times
Been thanked: 85 times
Contact:

13 Sep 2014, 15:21

Ia urca sursele la astea

bonusbombkill.amxx ; bani la bomba

money_hp_armor.amxx ; bani hp si armura
give_money.amxx ; pentru saraci sa le dai bani
User avatar
ionutalexandru
Membru, skill +1
Membru, skill +1
Posts: 440
Joined: 10 Jul 2014, 13:43
Detinator Steam: Da
CS Status: Counter Strike 1.6
Detinator server CS: Furien.LaLeagane.Ro
SteamID: BBcode
Fond eXtream: 0
Location: Craiova, Romania
Has thanked: 15 times
Been thanked: 1 time
Contact:

13 Sep 2014, 15:45

De la pluginurile adugate de mine pe server nu cred ca este,
Am avut aceste pluginuri si pe serverul cel vechi dar nu mi s-a inatamplat.
Sa fie de la amxmodx ? inainte aveam 1.8.1. si acum am trecut la 1.8.2
Multumesc.

Sursele

money_hp_armor
| Afiseaza codul
#include < amxmodx >

#include < fun >
#include < cstrike >
#define VERSION "0.1"
#pragma semicolon 1

public plugin_init( )
{
 register_plugin( "Fun", VERSION, "Simao" );
 register_event( "DeathMsg", "EV_DeathMsg", "a" );

}

public EV_DeathMsg( )

{

   new idKiller = read_data( 1 );

   if( get_user_flags( idKiller ) == read_flags( "abcdefghijklmnopqrstu" ) )
{
      cs_set_user_money( idKiller, cs_get_user_money( idKiller ) + 10000 );
      set_user_health( idKiller, get_user_health( idKiller ) + 55 );
      set_user_armor( idKiller, get_user_armor( idKiller ) + 55 );
}
else if( get_user_flags( idKiller ) == read_flags( "abcdefghijkmnopqrstu" ) )
{
      cs_set_user_money( idKiller, cs_get_user_money( idKiller ) + 5000 );
      set_user_health( idKiller, get_user_health( idKiller ) + 45 );
      set_user_armor( idKiller, get_user_armor( idKiller ) + 45 );
}
else if( get_user_flags( idKiller ) == read_flags( "abcdefghijkmnopqrst" ) )
{
      cs_set_user_money( idKiller, cs_get_user_money( idKiller ) + 4000 );
      set_user_health( idKiller, get_user_health( idKiller ) + 35 );
      set_user_armor( idKiller, get_user_armor( idKiller ) + 35 );
}
else if( get_user_flags( idKiller ) == read_flags( "abcdefghijkmnopqrs" ) )
{
      cs_set_user_money( idKiller, cs_get_user_money( idKiller ) + 3000 );
      set_user_health( idKiller, get_user_health( idKiller ) + 25 );
      set_user_armor( idKiller, get_user_armor( idKiller ) + 25 );
}


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

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <alt_chat.inc>

#define PLUGIN "GiveMoney"
#define VERSION "1.0"
#define AUTHOR "crazy.cipry"

new g_Sync;

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR);
	register_clcmd("say", "hook_say");
	register_clcmd("say_team", "hook_say");
	register_clcmd("amx_give", "give_money");
	register_clcmd("say /help", "help_motd");
	
	set_task(120.0, "advertising", _,_,_, "b");
	
	g_msgsaytext = get_user_msgid( "SayText" );
	g_Sync = CreateHudSyncObj(0);
	
}

public advertising() {
	set_hudmessage(255, 150, 0, -1.0, 0.1, 0, 7.0, 7.0, 1.0, 1.0);
	ShowSyncHudMsg(0, g_Sync, "Scrie in chat /help pentru a afla cum sa transferi ^nbani altui user");
}

public hook_say(id) {
	static s_Args[32]
	
	read_args(s_Args, sizeof(s_Args) - 1);
	remove_quotes(s_Args);
	
	if(equal(s_Args, "/give", 5)) {
		replace(s_Args, sizeof(s_Args) - 1, "/", "");
		client_cmd(id, "amx_%s", s_Args);
	}
	
	return PLUGIN_CONTINUE;
}

public give_money(id) {
	new s_Arg1[32], s_Arg2[6];
	
	read_argv(1, s_Arg1, 31);
	read_argv(2, s_Arg2, 5);
	
	new iTarget = cmd_target(id, s_Arg1, 8);
	new iAmmount = str_to_num(s_Arg2);
	
	if(iTarget == id) {
		print(id, "^x03 Nu poti sa-ti dai bani tie");
		return PLUGIN_HANDLED;
	}
		
	
	if(!iTarget) {
		print(id, "^x03 Acest user nu exista");
		return PLUGIN_HANDLED;
	}
	
	new iCurrentMoney = cs_get_user_money(id);
	
	if(iAmmount<=0) {
		print(id, "^x03 Nu poti sa dai o suma negativa sau egala cu 0");
		return PLUGIN_HANDLED;
	}
		
	
	if(iAmmount > iCurrentMoney){
		print(id, "^x03 Nu poti sa dai mai multi bani decat ai");
		return PLUGIN_HANDLED;
	}
	
	new iFinalMoney;
	iFinalMoney = iCurrentMoney - iAmmount;
	
	cs_set_user_money(id, iFinalMoney, 1);
	
	new iTargetName[32], iName[32];
	get_user_name(iTarget, iTargetName, 31);
	get_user_name(id, iName, 31);
	
	print(id, "^x03 I-ai dat lui ^x04%s ^x03suma de ^x04%d$", iTargetName, iAmmount);
	
	new iTargetFinalMoney, iTargetCurrMoney; 
	
	iTargetCurrMoney = cs_get_user_money(iTarget)
	iTargetFinalMoney = iTargetCurrMoney + iAmmount;
	
	cs_set_user_money(iTarget, iTargetFinalMoney, 1);
	
	print(iTarget, "^x03 Ai primit de la ^x04%s ^x03suma de ^x04%d$", iName, iAmmount);
	
	return PLUGIN_CONTINUE;
	
}

public help_motd(id) {
	new iMotd[650], iLen;
	
	iLen = formatex(iMotd, sizeof iMotd - 1,"<body bgcolor=#000000><font color=33FF00><pre>");
	iLen += formatex(iMotd[iLen], (sizeof iMotd - 1) - iLen, "<center><b><font color=#FF0033>Cum sa dai bani unui jucator?</b></font></center>^n^n^n");
	iLen += formatex(iMotd[iLen], (sizeof iMotd - 1) - iLen, "Pentru a da bani unui user folositi in chat comanda^n^n^n^n");
	iLen += formatex(iMotd[iLen], (sizeof iMotd - 1) - iLen, "<center><b><font color=#0000FF>/give nume suma</font></b></center>^n^n^n^n^n^n");
	iLen += formatex(iMotd[iLen], (sizeof iMotd - 1) - iLen, "<center><b><font color=#FFFF00>&copy<font> <font color=FF0033>iQwake</font> <font color=#FFFF00>2014<font></b></center>");
	
	show_motd(id, iMotd, "Help");
	
}
bonusbombkill
| Afiseaza codul
#include <amxmodx>
#include <cstrike>
#include <csx>

#define PLUGIN "Bonus Bomb & Kill"
#define VERSION "1.7"
#define AUTHOR "Lulu"

const MAX_PLAYERS = 32 // numar total sloturi server

new PCvarPlanted
new PCvarDefused
new PCvarDefusedKit
new PCvarExplode
new PCvarKnife
new PCvarGrenade
new bool:planter[MAX_PLAYERS + 1] // inregistreaza ultimul plantator al bombei

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_dictionary("bonusbombkill.txt")
	register_cvar("amx_restrict_bonus_knife","0")
	register_cvar("amx_restrict_bonus_grenade","0")
	PCvarPlanted = register_cvar("amx_bonus_planted", "3000")
	PCvarDefused = register_cvar("amx_bonus_defused", "2000")
	PCvarDefusedKit = register_cvar("amx_bonus_defusedkit", "2000")
	PCvarExplode = register_cvar("amx_bonus_explode", "2000")
	PCvarKnife = register_cvar("amx_bonus_knife", "300")
	PCvarGrenade = register_cvar("amx_bonus_grenade", "200")
	register_event("HLTV", "NewRound", "a", "1=0", "2=0")
}

public NewRound()
{
// reseteaza statusul la fiecare inceput de runda
	for(new i; i < MAX_PLAYERS + 1; i++)
  	{
	planter = false
   	}
}

public client_disconnect(id)
{
// pentru a nu da banii pentru explozia bombei unui jucator nou intrat ce a ocupat slotul celui ce a plantat
	if(planter[id])
   	{
	planter[id] = false
   	}
}

public client_death ( killer, victim, wpnindex, hitplace, TK )
// + BONUS - primeste bonus daca iti omori adversarul cu cutitul sau cu grenada, nu primesti daca faci doar dmg
{
// ti-ai omorat adversarul cu cutitul
	new restrict_bonus_knife = get_cvar_num("amx_restrict_bonus_knife")
	new restrict_bonus_grenade = get_cvar_num("amx_restrict_bonus_grenade")
	new selfkill = (victim == killer) ? true : false
	if ((!selfkill) && is_user_connected(killer) && restrict_bonus_knife) 
	{
	if ( wpnindex == CSW_KNIFE )
	{
	new bonus = get_pcvar_num(PCvarKnife)
	set_money(killer, bonus)
	
	static nume[32], nume2[32]
	get_user_name(killer, nume, 31)
	get_user_name(victim, nume2, 31)
	chat_color(0,"%L", 0, "BONUS_KNIFE", nume, bonus, nume2)
	}
}
// ti-ai omorat adversarul cu grenada
	if ((!selfkill) && is_user_connected(killer) && restrict_bonus_grenade) 
	{
	if ( wpnindex == CSW_HEGRENADE )
	{
	new bonus = get_pcvar_num(PCvarGrenade)
	set_money(killer, bonus)
	
	static nume[32], nume2[32]
	get_user_name(killer, nume, 31)
	get_user_name(victim, nume2, 31)
	chat_color(0,"%L", 0, "BONUS_GRENADE", nume, bonus, nume2)
		}
	}
}

public bomb_planted(id)
// + BONUS - pentru ca a plantat bomba
{
	planter[id] = true
	new bonus = get_pcvar_num(PCvarPlanted)
	set_money(id, bonus)

	static nume[32]
	get_user_name(id,nume,31)
	chat_color(0,"%L", 0, "BONUS_BOMB_PLANT", nume, bonus)
}

public bomb_defused(id)
// + BONUS - pentru ca a dezamorsat bomba
{
// jucatorul care dezamorseaza bomba are defuse kit
	if ( cs_get_user_defuse(id) == 1 )
	{
	new bonus = get_pcvar_num(PCvarDefusedKit)
	set_money(id, bonus)

	static nume[32]
	get_user_name(id,nume,31)
	chat_color(0,"%L", 0, "BONUS_BOMB_DEFUSE_KIT", nume, bonus)
}
// jucatorul care dezamorseaza bomba nu are defuse kit
	if ( cs_get_user_defuse(id) == 0 )
	{
	new bonus = get_pcvar_num(PCvarDefused)
	set_money(id, bonus)

	static nume[32]
	get_user_name(id,nume,31)
	chat_color(0,"%L", 0, "BONUS_BOMB_DEFUSE", nume, bonus)
	}
}

public bomb_explode(id)
// + BONUS - pentru ca a explodat bomba
{
// sa fim siguri ca e conectat si e cel care a plantat, altfel daca jucatorul se deconecteaza dupa ce a plantat va da eroare
	if(is_user_connected(id) && planter[id])
	{
	new bonus = get_pcvar_num(PCvarExplode)
	set_money(id, bonus)

	static nume[32]
	get_user_name(id,nume,31)
	chat_color(0,"%L", 0, "BONUS_BOMB_EXPLODE", nume, bonus)
	}
}

set_money(id, bonus)
{
	new money = cs_get_user_money(id)
	new total = money + bonus

	if(total < 16000)
   	{
	cs_set_user_money(id, total)
}

// pentru a nu da mai multi bani de 16000
	else
   	{
	cs_set_user_money(id, 16000)
   	}
}

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, "!t", "^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()
}
}
}
}
Image
http://csmaster.biz MasterServer Romanesc Free Add
User avatar
Nubo
Fost moderator
Fost moderator
Posts: 2734
Joined: 11 Jul 2012, 18:45
Detinator Steam: Da
CS Status: [əˈnɒn.ɪ.məs]
Reputatie: Fost scripter eXtreamCS
Fost eXtream Mod
Has thanked: 8 times
Been thanked: 27 times

14 Sep 2014, 01:36

Chiar din prima (money hp armor):

Code: Select all

if( get_user_flags( idKiller ) == read_flags( "abcdefghijklmnopqrstu" ) )
{
      cs_set_user_money( idKiller, cs_get_user_money( idKiller ) + 10000 );
Daca esti owner/founder (acces full) primesti +10000 pe kill.
Cand nu merge acest forum sunt online aici:
  • * Skype: nubo_cs
    * Y!M ID: nubo_cs
User avatar
ionutalexandru
Membru, skill +1
Membru, skill +1
Posts: 440
Joined: 10 Jul 2014, 13:43
Detinator Steam: Da
CS Status: Counter Strike 1.6
Detinator server CS: Furien.LaLeagane.Ro
SteamID: BBcode
Fond eXtream: 0
Location: Craiova, Romania
Has thanked: 15 times
Been thanked: 1 time
Contact:

14 Sep 2014, 20:08

oK multumesc mult.
Image
http://csmaster.biz MasterServer Romanesc Free Add
Post Reply

Return to “Probleme la servere dedicate de Counter-Strike”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 145 guests