It is currently 19 Oct 2018 16:16






Reply to topic  [ 3 posts ] 
 [rezolvat] Modificare plugin beneficii free 
Author Message
Membru, skill 0
Membru, skill 0

Joined: 14 Feb 2018 16:56
Posts: 99
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
imi modificati acest plugin va rog frumos.

gradele acestea
| Afiseaza codul
"abcdefghijklmnopqrstuv"
"abcdefghijklmnopqrst"
"abcdefghijklmnopqrs"
"abcdefghijklmnopqr"
"bcdefghijklmnopq"
"bcdefghijklmnop"
sa nu primeasca beneficii cand am pornit eu eventul beneficii free

ci sa primeasca beneficii plaiery cu acces-ul "z" si gradele acestea:
| Afiseaza codul
"bcdefghijklmno"
"bcdefghijklmn"
"ccdefghijklm"
"xhelper"
"xslot"


gradele cele de sus care nu vreau sa primeasca beneficii ele au deja beneficiile lor permanente si daca primeste si ele i-se v-a dupla viata banii ETC...

pluginul de beneficii:
| Afiseaza codul
#include < amxmodx >

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

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

}

public EV_DeathMsg( )

{

new idKiller = read_data( 1 );

if( get_user_flags( idKiller ) == read_flags( "abcdefghijklmnopqrstuv" ) )
{
cs_set_user_money( idKiller, cs_get_user_money( idKiller ) + 8000 );
set_user_health( idKiller, get_user_health( idKiller ) + 70 );
set_user_armor( idKiller, get_user_armor( idKiller ) + 80 );
}
else if( get_user_flags( idKiller ) == read_flags( "abcdefghijklmnopqrst" ) )
{
cs_set_user_money( idKiller, cs_get_user_money( idKiller ) + 7000 );
set_user_health( idKiller, get_user_health( idKiller ) + 60 );
set_user_armor( idKiller, get_user_armor( idKiller ) + 70 );
}
else if( get_user_flags( idKiller ) == read_flags( "abcdefghijklmnopqrs" ) )
{
cs_set_user_money( idKiller, cs_get_user_money( idKiller ) + 7000 );
set_user_health( idKiller, get_user_health( idKiller ) + 60 );
set_user_armor( idKiller, get_user_armor( idKiller ) + 70 );
}
else if( get_user_flags( idKiller ) == read_flags( "abcdefghijklmnopqr" ) )
{
cs_set_user_money( idKiller, cs_get_user_money( idKiller ) + 6000 );
set_user_health( idKiller, get_user_health( idKiller ) + 50 );
set_user_armor( idKiller, get_user_armor( idKiller ) + 60 );
}
else if( get_user_flags( idKiller ) == read_flags( "bcdefghijklmnopq" ) )
{
cs_set_user_money( idKiller, cs_get_user_money( idKiller ) + 5000 );
set_user_health( idKiller, get_user_health( idKiller ) + 40 );
set_user_armor( idKiller, get_user_armor( idKiller ) + 50 );
}
else if( get_user_flags( idKiller ) == read_flags( "bcdefghijklmnop" ) )
{
cs_set_user_money( idKiller, cs_get_user_money( idKiller ) + 4000 );
set_user_health( idKiller, get_user_health( idKiller ) + 30 );
set_user_armor( idKiller, get_user_armor( idKiller ) + 40 );
}

}

amx_who:
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#define MAX_GROUPS 11
new g_groupNames[MAX_GROUPS][] = {

"---------- .: [DETINATOR] :. ----------",
"---------- .: [FONDATOR] :. ----------",
"---------- .: [LEADER] :. ----------",
"---------- .: [DIAMOND MEMBER] :. ----------",
"---------- .: [PLATINUM MEMBER] :. ----------",
"---------- .: [GOLD MEMBER] :. ----------",
"---------- .: [ADMINISTRATOR] :. ----------",
"---------- .: [SUPER-MODERATOR] :. ----------",
"---------- .: [MODERATOR] :. ----------",
"---------- .: [HELPER - TESTER] :. ----------",
"---------- .: [SLOT - NUME REZERVAT] :. ----------"
}
new g_groupFlags[MAX_GROUPS][] = {
"abcdefghijklmnopqrstuv",
"abcdefghijklmnopqrst",
"abcdefghijklmnopqrs",
"abcdefghijklmnopqr",
"bcdefghijklmnopq",
"bcdefghijklmnop",
"bcdefghijklmno",
"bcdefghijklmn",
"ccdefghijklm",
"xhelper",
"xslot"
}
new g_groupFlagsValue[MAX_GROUPS]
public plugin_init() {
register_plugin("amx_who", "2.0", "CoD2.0")
register_concmd("amx_who", "cmdWho", 0)
for(new i = 0; i < MAX_GROUPS; i++) {
g_groupFlagsValue[i] = read_flags(g_groupFlags[i])
}
}
public cmdWho(id) {
new players[32], inum, player, name[32], i, a
get_players(players, inum)
console_print(id, "STAFF ONLINE IS")
for(i = 0; i < MAX_GROUPS; i++) {
console_print(id, "[%d]%s", i+1, g_groupNames[i])
for(a = 0; a < inum; ++a) {
player = players[a]
get_user_name(player, name, 31)
if(get_user_flags(player) == g_groupFlagsValue[i]) {
console_print(id, "%s", name)
}
}
}
console_print(id, "STAFF ONLINE IS")
return PLUGIN_HANDLED
}

beneficii free:
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>

#define PLUGIN "Beneficii"
#define VERSION "1.0"
#define AUTHOR "cyby"

new const MsgON[] = "Se desfasoara eventul 'Beneficii Free'!"
new const MsgOFF[] = "Eventul 'Beneficii Free' ruleaza intre orele 19 - 09!"

new bool:beneficii = false

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);

register_event("DeathMsg","EDeathMsg","a");
register_event("HLTV", "RundaNoua", "a", "1=0", "2=0");

}

public RundaNoua() {
check_time();
}

public client_putinserver(id)
{
set_task( 10.0, "info_task", id )
}

public info_task(id)
{
if(beneficii)
ColorChat( id, "^x04[Beneficii Free]^x01 Primesti^x04 +20 HP^x01 ,^x04 +20 AP^x01 si^x04 +2500$^x01 pentru fiecare frag!" )
}

public check_time() {
static preluare_ora[3], ora;
get_time("%H", preluare_ora, 2);
ora = str_to_num(preluare_ora);
if(19 <= ora || ora < 09)
{
beneficii = true
set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 1.0, 6.0)
show_hudmessage(0, MsgON)
}
else
{
beneficii = false
set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 1.0, 6.0)
show_hudmessage(0, MsgOFF)
}
}

public EDeathMsg()
{
new Killer = read_data( 1 );
if(beneficii)
{
if( get_user_flags(Killer) == read_flags( "bcd") || get_user_flags(Killer) == read_flags( "cdc" ) == read_flags( "zic") ) {
return;
}

set_user_health(Killer, get_user_health(Killer) + 20);
set_user_armor(Killer, get_user_armor(Killer) + 20);
cs_set_user_money(Killer, cs_get_user_money(Killer) + 2500);
}
}

stock ColorChat(const id, const input[], any:...) {
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);

replace_all(msg, 190, "!x04", "^4");
replace_all(msg, 190, "!x01", "^1");
replace_all(msg, 190, "!x03", "^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();
}
}
}
}


multumesc.


Last edited by YONTU on 16 Apr 2018 23:46, edited 1 time in total.

marcat ca rezolvat la cererea autorului



15 Apr 2018 15:01
Profile multumesc WWW
Jan Darmu'
Jan Darmu'
User avatar

Joined: 25 Aug 2014 21:31
Posts: 5964
Location: Ploiesti
Detinator Steam: Da
CS Status: All i ever wanted was a Rolly Rolly
SteamID: Jandarmeria
Reputatie: Fost Membru Club eXtreamCS ( o luna )
Fost Moderator ajutator
Fost Super Moderator
eXtream Mod
Fost Intermediar
Nume anterior : Christmas,
A k c 3 n 7
Fond eXtream: 0
ce e asa greu sa inlocuiesti accesele?

_________________
ImageImage

Lista intermediari
Nu ezita sa ma contactezi la 112 pentru interventii speciale: S.I.A.S
REGULI GENERALE
REGULILE SECTIUNII ANUNTURI



15 Apr 2018 20:21
Profile multumesc
Membru, skill 0
Membru, skill 0

Joined: 14 Feb 2018 16:56
Posts: 99
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Sorinel wrote:
ce e asa greu sa inlocuiesti accesele?


cei care au beneficii permanente primesc si ei beneficii cand este free
mai citeste odata ma intreb ca, n-ai inteles.


15 Apr 2018 20:33
Profile multumesc WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: ImparctVirtual and 47 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