Cerere plugin /donate [rezolvat!]

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori

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
Astaroth
Membru, skill +1
Membru, skill +1
Posts: 143
Joined: 24 Aug 2017, 15:38
Detinator Steam: Da
CS Status: .....
Detinator server CS: FURIEN.FREAKZ.RO
SteamID: AstarothRTH
Fond eXtream: 0
Contact:

24 Mar 2018, 21:07

Salut. Doresc si eu un plugin de transferare credite catre alt jucator pentru sistemul lui Aragon.
Last edited by Laurentiu P. on 03 Apr 2018, 18:39, edited 1 time in total.
Reason: Marcat ca "cerere rezolvata".
<< Tranzactii efectuate cu succes >>

Code: Select all

1. https://www.extreamcs.com/forum/security-zone/astaroth-tepar-t347242.html 

Code: Select all

2.https://www.extreamcs.com/forum/anunturi/dau-paysafecard-paypal-t355179.html
Vand frustrat la 10 euro. Pret negociabil
cs_all wrote: Atunci o sa-mi pun si eu admini sa vina sa iti faca reclama si nu doar 1 :middle_finger:
| Afiseaza codul
furien.kniferz.ro server intretinut din tepe, good job cs_all aka "bani de boost"
http://www.extreamcs.com/forum/security ... 55999.html
http://www.extreamcs.com/forum/security ... 55873.html
http://www.extreamcs.com/forum/security ... 55993.html
IG-BOOST.org - Instagram Followers Best, Cheap, Reliable
User avatar
Laurentiu P.
Super moderator
Super moderator
Posts: 2475
Joined: 10 Jul 2013, 20:26
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Super moderator
Nume anterior: Do[N]e ;3
Location: Constanta
Has thanked: 2 times
Been thanked: 1 time

29 Mar 2018, 17:27

Lasă nativele de la pluginul de credite si te rezolv.
Image
User avatar
Astaroth
Membru, skill +1
Membru, skill +1
Posts: 143
Joined: 24 Aug 2017, 15:38
Detinator Steam: Da
CS Status: .....
Detinator server CS: FURIEN.FREAKZ.RO
SteamID: AstarothRTH
Fond eXtream: 0
Contact:

30 Mar 2018, 09:09

Do[N]e ;3 wrote:Lasă nativele de la pluginul de credite si te rezolv.
native get_user_credits(id);
native set_user_credits(id, cantitate);
<< Tranzactii efectuate cu succes >>

Code: Select all

1. https://www.extreamcs.com/forum/security-zone/astaroth-tepar-t347242.html 

Code: Select all

2.https://www.extreamcs.com/forum/anunturi/dau-paysafecard-paypal-t355179.html
Vand frustrat la 10 euro. Pret negociabil
cs_all wrote: Atunci o sa-mi pun si eu admini sa vina sa iti faca reclama si nu doar 1 :middle_finger:
| Afiseaza codul
furien.kniferz.ro server intretinut din tepe, good job cs_all aka "bani de boost"
http://www.extreamcs.com/forum/security ... 55999.html
http://www.extreamcs.com/forum/security ... 55873.html
http://www.extreamcs.com/forum/security ... 55993.html
User avatar
Laurentiu P.
Super moderator
Super moderator
Posts: 2475
Joined: 10 Jul 2013, 20:26
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Super moderator
Nume anterior: Do[N]e ;3
Location: Constanta
Has thanked: 2 times
Been thanked: 1 time

02 Apr 2018, 21:44

NETESTAT | Afiseaza codul
#include <amxmodx>
#include <amxmisc>

native get_user_credits (id)
native set_user_credits (id , cantitate)

public plugin_init()
{
	register_plugin("Donate Credits", "1.0", "cyby")
	
	register_clcmd("say", "donare_say")
	register_clcmd("say_team", "donare_say")
}

public donare_say(id)
{
	new citim_mesaj[64]
	
	read_args(citim_mesaj, charsmax(citim_mesaj))
	remove_quotes(citim_mesaj)
	
	new comanda[16]
	new nume[32]
	
	strbreak(citim_mesaj, comanda, charsmax(comanda), nume, charsmax(nume))
	if(equal(comanda, "/donate", 7))
		donate(id, nume)
}

public donate(id, arg[])
{
	new cui[32], count[10]
	strbreak(arg, cui, 31, count, 9)
	
	if (!cui[0] || !count[0])
	{
		color(id, "!g* !nPentru a dona credite foloseste !g/donate nume credite")
		return
	}
	new credite_trimise = get_user_credits(id)
	new credite
	if (equal(count, "all"))
		credite = credite_trimise
	else
		credite = str_to_num(count)
	
	if (credite <= 0)
	{
		color(id, "!g* !n Valoarea introdusa de tine este invalida.")
		return
	}
	credite_trimise -= credite
	if (credite_trimise < 0)
	{
		credite+=credite_trimise
		credite_trimise = 0
		
	}
	new primitor = cmd_target(id, cui, (CMDTARGET_ALLOW_SELF))
	if (!primitor || primitor == id)
	{
		color(id, "!g* !n %s.g nu exista pe server.", cui)
		return
	}
	
	set_user_credits(primitor, get_user_credits(primitor) + credite)
	set_user_credits(id, credite_trimise)
	
	new tNume[32], pNume[32]
	
	get_user_name(id, tNume, 31)
	get_user_name(primitor, pNume, 31)
	
	color(0, "!g* Jucatorul !g%s !nii trimite lui !g%s o cantitate de !g%d !ncredite", tNume, pNume, credite)
}

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");
	replace_all(msg, 190, "!n", "^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();
			}
		}
	}
}
Last edited by Laurentiu P. on 02 Apr 2018, 21:46, edited 2 times in total.
Reason: + MUTAT IN "Board index » eXtream - Counter-Strike 1.6 » Pluginuri » Cereri"
Image
User avatar
Astaroth
Membru, skill +1
Membru, skill +1
Posts: 143
Joined: 24 Aug 2017, 15:38
Detinator Steam: Da
CS Status: .....
Detinator server CS: FURIEN.FREAKZ.RO
SteamID: AstarothRTH
Fond eXtream: 0
Contact:

03 Apr 2018, 17:42

Functioneaza. Mersi frumos !
<< Tranzactii efectuate cu succes >>

Code: Select all

1. https://www.extreamcs.com/forum/security-zone/astaroth-tepar-t347242.html 

Code: Select all

2.https://www.extreamcs.com/forum/anunturi/dau-paysafecard-paypal-t355179.html
Vand frustrat la 10 euro. Pret negociabil
cs_all wrote: Atunci o sa-mi pun si eu admini sa vina sa iti faca reclama si nu doar 1 :middle_finger:
| Afiseaza codul
furien.kniferz.ro server intretinut din tepe, good job cs_all aka "bani de boost"
http://www.extreamcs.com/forum/security ... 55999.html
http://www.extreamcs.com/forum/security ... 55873.html
http://www.extreamcs.com/forum/security ... 55993.html
User avatar
ALEXVL
Membru, skill +1
Membru, skill +1
Posts: 264
Joined: 21 Jul 2015, 23:01
Detinator Steam: Da
CS Status: Tot ce se poate.
Detinator server CS: 89.34.25.238:27015
SteamID: Da
Fond eXtream: 0
Contact:

15 Sep 2018, 23:02

salut acest plugin de ce nu functioneaza si daca il pui la liber fara sa ai acel sistem de credite , am incercat sa il modific pentru un alt sistem de puncte merge perfect la compilare dar cand il urc pe server la amx_plugincvarmenu apare unknown

Acest este cel dupa ce l-am modificat
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>

native get_user_credits (id)
native set_user_credits (id , cantitate)

public plugin_init()
{
	register_plugin("Donate Credits", "1.0", "cyby")
	
	register_clcmd("say", "donare_say")
	register_clcmd("say_team", "donare_say")
}

public donare_say(id)
{
	new citim_mesaj[64]
	
	read_args(citim_mesaj, charsmax(citim_mesaj))
	remove_quotes(citim_mesaj)
	
	new comanda[16]
	new nume[32]
	
	strbreak(citim_mesaj, comanda, charsmax(comanda), nume, charsmax(nume))
	if(equal(comanda, "/donate", 7))
		donate(id, nume)
}

public donate(id, arg[])
{
	new cui[32], count[10]
	strbreak(arg, cui, 31, count, 9)
	
	if (!cui[0] || !count[0])
	{
		color(id, "!g* !nPentru a dona credite foloseste !g/donate nume credite")
		return
	}
	new credite_trimise = get_user_credits(id)
	new credite
	if (equal(count, "all"))
		credite = credite_trimise
	else
		credite = str_to_num(count)
	
	if (credite <= 0)
	{
		color(id, "!g* !n Valoarea introdusa de tine este invalida.")
		return
	}
	credite_trimise -= credite
	if (credite_trimise < 0)
	{
		credite+=credite_trimise
		credite_trimise = 0
		
	}
	new primitor = cmd_target(id, cui, (CMDTARGET_ALLOW_SELF))
	if (!primitor || primitor == id)
	{
		color(id, "!g* !n %s.g nu exista pe server.", cui)
		return
	}
	
	set_user_credits(primitor, get_user_credits(primitor) + credite)
	set_user_credits(id, credite_trimise)
	
	new tNume[32], pNume[32]
	
	get_user_name(id, tNume, 31)
	get_user_name(primitor, pNume, 31)
	
	color(0, "!g* Jucatorul !g%s !nii trimite lui !g%s o cantitate de !g%d !ncredite", tNume, pNume, credite)
}

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");
	replace_all(msg, 190, "!n", "^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();
			}
		}
	}
}
ZOMBIE CROWN ROMANIA.
The NeW Wolrd Zombie
view server | Afiseaza codul
[ Mod:[/size] Image] [Statistici:[/size] Image ][IP:[/size] Image ]
User avatar
Laurentiu P.
Super moderator
Super moderator
Posts: 2475
Joined: 10 Jul 2013, 20:26
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Super moderator
Nume anterior: Do[N]e ;3
Location: Constanta
Has thanked: 2 times
Been thanked: 1 time

16 Sep 2018, 06:00

ALEXVL wrote:salut acest plugin de ce nu functioneaza si daca il pui la liber fara sa ai acel sistem de credite , am incercat sa il modific pentru un alt sistem de puncte merge perfect la compilare dar cand il urc pe server la amx_plugincvarmenu apare unknown

Acest este cel dupa ce l-am modificat
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>

native get_user_credits (id)
native set_user_credits (id , cantitate)

public plugin_init()
{
	register_plugin("Donate Credits", "1.0", "cyby")
	
	register_clcmd("say", "donare_say")
	register_clcmd("say_team", "donare_say")
}

public donare_say(id)
{
	new citim_mesaj[64]
	
	read_args(citim_mesaj, charsmax(citim_mesaj))
	remove_quotes(citim_mesaj)
	
	new comanda[16]
	new nume[32]
	
	strbreak(citim_mesaj, comanda, charsmax(comanda), nume, charsmax(nume))
	if(equal(comanda, "/donate", 7))
		donate(id, nume)
}

public donate(id, arg[])
{
	new cui[32], count[10]
	strbreak(arg, cui, 31, count, 9)
	
	if (!cui[0] || !count[0])
	{
		color(id, "!g* !nPentru a dona credite foloseste !g/donate nume credite")
		return
	}
	new credite_trimise = get_user_credits(id)
	new credite
	if (equal(count, "all"))
		credite = credite_trimise
	else
		credite = str_to_num(count)
	
	if (credite <= 0)
	{
		color(id, "!g* !n Valoarea introdusa de tine este invalida.")
		return
	}
	credite_trimise -= credite
	if (credite_trimise < 0)
	{
		credite+=credite_trimise
		credite_trimise = 0
		
	}
	new primitor = cmd_target(id, cui, (CMDTARGET_ALLOW_SELF))
	if (!primitor || primitor == id)
	{
		color(id, "!g* !n %s.g nu exista pe server.", cui)
		return
	}
	
	set_user_credits(primitor, get_user_credits(primitor) + credite)
	set_user_credits(id, credite_trimise)
	
	new tNume[32], pNume[32]
	
	get_user_name(id, tNume, 31)
	get_user_name(primitor, pNume, 31)
	
	color(0, "!g* Jucatorul !g%s !nii trimite lui !g%s o cantitate de !g%d !ncredite", tNume, pNume, credite)
}

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");
	replace_all(msg, 190, "!n", "^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();
			}
		}
	}
}


Lasa nativele acelui plugin. Din cate vad prin sursa nu ai modificat mai nimic ...
Image
Post Reply

Return to “Cereri”

  • Information