It is currently 18 Oct 2018 21:01



Forum rules


Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .



Reply to topic  [ 7 posts ] 
 Cerere plugin /donate [rezolvat!] 
Author Message
Membru, skill +1
Membru, skill +1
User avatar

Joined: 24 Aug 2017 16:38
Posts: 136
Detinator Steam: Da
CS Status: .....
Detinator server CS: FURIEN.FREAKZ.RO
SteamID: AstarothRTH
Fond eXtream: 0
Salut. Doresc si eu un plugin de transferare credite catre alt jucator pentru sistemul lui Aragon.

_________________
<< Tranzactii efectuate cu succes >>

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

Code:
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


Last edited by Laurentiu P. on 03 Apr 2018 19:39, edited 1 time in total.

Marcat ca "cerere rezolvata".



24 Mar 2018 22:07
Profile multumesc WWW
Online
Moderator
Moderator
User avatar

Joined: 10 Jul 2013 21:26
Posts: 1908
Location: Constanta
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Moderator
Nume anterior: Do[N]e ;3
Fond eXtream: 0
Lasă nativele de la pluginul de credite si te rezolv.

_________________


29 Mar 2018 18:27
Profile multumesc
Membru, skill +1
Membru, skill +1
User avatar

Joined: 24 Aug 2017 16:38
Posts: 136
Detinator Steam: Da
CS Status: .....
Detinator server CS: FURIEN.FREAKZ.RO
SteamID: AstarothRTH
Fond eXtream: 0
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:
1. https://www.extreamcs.com/forum/security-zone/astaroth-tepar-t347242.html

Code:
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


30 Mar 2018 10:09
Profile multumesc WWW
Online
Moderator
Moderator
User avatar

Joined: 10 Jul 2013 21:26
Posts: 1908
Location: Constanta
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Moderator
Nume anterior: Do[N]e ;3
Fond eXtream: 0
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[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}

_________________


Last edited by Laurentiu P. on 02 Apr 2018 22:46, edited 2 times in total.

+ MUTAT IN "Board index » eXtream - Counter-Strike 1.6 » Pluginuri » Cereri"



02 Apr 2018 22:44
Profile multumesc
Membru, skill +1
Membru, skill +1
User avatar

Joined: 24 Aug 2017 16:38
Posts: 136
Detinator Steam: Da
CS Status: .....
Detinator server CS: FURIEN.FREAKZ.RO
SteamID: AstarothRTH
Fond eXtream: 0
Functioneaza. Mersi frumos !

_________________
<< Tranzactii efectuate cu succes >>

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

Code:
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


03 Apr 2018 18:42
Profile multumesc WWW
Membru, skill +1
Membru, skill +1
User avatar

Joined: 22 Jul 2015 00:01
Posts: 242
Detinator Steam: Da
CS Status: Tot ce se poate.
Detinator server CS: 89.34.25.238:27015
SteamID: Da
Fond eXtream: 0
Avertismente: 1 din 3
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[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}

_________________
ZOMBIE CROWN ROMANIA.
The NeW Wolrd Zombie
view server | Afiseaza codul
[ Mod: Image] [Statistici: Image ][IP: Image ]


16 Sep 2018 00:02
Profile multumesc WWW
Online
Moderator
Moderator
User avatar

Joined: 10 Jul 2013 21:26
Posts: 1908
Location: Constanta
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Moderator
Nume anterior: Do[N]e ;3
Fond eXtream: 0
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[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}


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

_________________


16 Sep 2018 07:00
Profile multumesc
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: faThug and 66 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group