Money Per Time

Pluginuri pentru modul AmxModX.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
LordOfNothing
Membru, skill +1
Membru, skill +1
Posts: 387
Joined: 19 Jul 2013, 14:51
Detinator Steam: Nu
Reputatie: Restrictie PM
Has thanked: 11 times
Been thanked: 34 times

07 Dec 2013, 14:04

Descriere: acest plugin iti ofera o suma de bani dupa un anumit timp de joc(setat prin cvar)

Descarcare:
| Afiseaza codul
#include <amxmodx>
#include <cstrike>
#include <colorchat>

new cvar_time;
new sum;
new enable;
new tag;

public plugin_init()
{
	register_plugin("Money Per Time","1.1","LordOfNothing");
	
	cvar_time = register_cvar("mt_time","60.0") // 60.0 = 1 minut !
	sum = register_cvar("mt_money","3000") // 3000$ !
	enable = register_cvar("mt_enable","1"); // 1=activat,0=dezactivat
	tag = register_cvar("mt_tag","[MONEY]");  // tagul mesajului !

}

public client_putinserver(id)
	set_task(get_pcvar_float(cvar_time),"function_give_money",0,"",0,"b",id)


public function_give_money(id)
{
	new ptag[40];
	get_pcvar_string(tag, ptag,39);
	
	if(!get_pcvar_num(enable))
		return PLUGIN_HANDLED
	
	cs_set_user_money(id, cs_get_user_money(id) + get_pcvar_num(sum));
	ColorChat(id, GREY, "%s ^4Serverul nostru iti ofera gratuit un bonus de ^3%i ^4$",ptag,get_pcvar_num(sum));
	return PLUGIN_CONTINUE
}
Nume: Money Per Time
Versiune: 1.0
Link oficial: http://www.extreamcs.com/forum

Instalare:
1. Fisierul mt.sma il puneti in addons/amxmodx/scripting
2. Fisierul mt.amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:

Code: Select all

mt.amxx
Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg):

  • mt_tag "[MONEY"] - tagul mesajului
    mt_time "60.0" - la cat timp sa va dea banii (1 minut default)
    mt_money "3000" - cati bani sa va dea dupa ce trece timpu (3000$ default !)
    mt_enable 1/0 - 1=plugin on, 0=plugin off
Imagini :

acu lucrez -
Last edited by LordOfNothing on 10 Dec 2013, 10:56, edited 2 times in total.
Rapidserver
User avatar
sN1kkeRs.
Membru, skill +3
Membru, skill +3
Posts: 1058
Joined: 19 Sep 2013, 18:43
Detinator Steam: Da
Detinator server CS: Da
SteamID: bzk15
Location: Brăila
Has thanked: 124 times
Been thanked: 36 times
Contact:

07 Dec 2013, 20:08

Oho frumos plugin :x
Mersii !
Post Reply

Return to “AmxModX”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests