User
Pass
2FA
 
 

[rezolvat]Cerere Plugin
Go to page Previous  1, 2, 3  Next    
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Counter-Strike: Help zone
Author Message3050
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 07-06-2015, 00:32:47 | Translate post to: ... (Click for more languages)

EDUTz wrote:
Da, asa ar trebui sa fie f ok, sper sa intelegi de ce -

O mentiune am, if-ul trebuia sa fie primul ca sa nu mai incarce memoria cu ceva inutil gen hms

Code:
public verifica(id)
{
new h, m, s;
time(h, m, s);
if(terminat) return;


A da si a 2-a, new bool:terminat ar fi corect nu ? -

@Aleex Armanu totul e ok acum ? Vezi daca merge si scrie-ne.

New Bool e un booleans ce face o constanta x sa ia valoarea true/false ,nu(asta e definitia din punctul meu de vedere) .Dar merge si normal new x (cel putin eu pana acum daca am facut asa nu am intalnit vreo eroare sau bug)
PS:Da mi-am dat seama.
@Aleex Armanu uite aici tot.
Spoiler:



Retired from Amxmodx



Last edited by destroi112 on 09-06-2015, 13:07:20; edited 1 time in total
0 0
  
Back to top
View user's profile Send private message
Aleex Armanu

[Detinator Server]



Status: Offline
(since 16-05-2022 10:06)
Joined: 25 Feb 2015
Posts: 2285, Topics: 267
Location: Cluj Napoca

Reputation: 844.2
Votes: 96

       
Post Posted: 07-06-2015, 20:47:26 | Translate post to: ... (Click for more languages)

destroi112 wrote:
EDUTz wrote:
Da, asa ar trebui sa fie f ok, sper sa intelegi de ce -

O mentiune am, if-ul trebuia sa fie primul ca sa nu mai incarce memoria cu ceva inutil gen hms

Code:
public verifica(id)
{
new h, m, s;
time(h, m, s);
if(terminat) return;


A da si a 2-a, new bool:terminat ar fi corect nu ? -

@Aleex Armanu totul e ok acum ? Vezi daca merge si scrie-ne.

New Bool e un booleans ce face o contanta x sa ia valoarea true/false ,nu(asta e definitia din punctul meu de vedere) .Dar merge si normal new x (cel putin eu pana acum daca am facut asa nu am intalnit vreo eroare sau bug)
PS:Da mi-am dat seama.
@Aleex Armanu uite aici tot.
Spoiler:


L-am pus, am setat de la 21 la 22 si degeaba nu ofera nimic.


ZOMBIE.FREAKZ.RO # INTERNATIONAL ZM



0 0
  
Back to top
View user's profile Send private message
EDUTz

[HardcoreAmxxScripter]



Status: Offline
(since 15-08-2021 16:34)
Joined: 27 Dec 2010
Posts: 4306, Topics: 244
Location: Jud. Miserupia, sat Bagadanc

Reputation: 4085
Votes: 179

         
Post Posted: 07-06-2015, 20:54:26 | Translate post to: ... (Click for more languages)

Vezi asa:

Code:
#include<amxmodx>

new interval_1,interval_2;
new const Tag[] = "[Server.freakz.ro]";
new bool:terminat;

public plugin_init()
{
register_plugin("Vip la ore fixe","1.0","D3luxe");
interval_1 = register_cvar("amx_firsthour","21");
interval_2 = register_cvar("amx_lasthour","22");
set_task(60.0, "finish");
set_task(60.0, "start");
}

public client_authorized(id)
{
   
      
        if(terminat) return;
   new h, m, s;    
   time(h, m, s)
   if(get_pcvar_num(interval_1) <= h < get_pcvar_num(interval_2)) {
         
      set_user_flags(id, ADMIN_LEVEL_H)
   }

}

public start()
{
new h, m, s;
time(h, m, s);
if(h >= get_pcvar_num(interval_1) && h < get_pcvar_num(interval_2))
ChatColor(0,"!g%s!yA inceput !teamHappy Hour !y!",Tag);
else set_task(60.0, "start");
}

public finish()
{
new h, m, s;
time(h, m, s);
if(h == get_pcvar_num(interval_2) && m == 00)
{
ChatColor(0,"!g%s!yS-a terminat !teamHappy Hour !y!",Tag);
terminat = true;
}else{
terminat = false;
set_task(60.0, "finish");
}
}

stock ChatColor(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, "!team", "^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();
}
}
}
}




Pentru pluginuri complicate le fac cu $$ pe paypal/psc. PM

0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
Aleex Armanu

[Detinator Server]



Status: Offline
(since 16-05-2022 10:06)
Joined: 25 Feb 2015
Posts: 2285, Topics: 267
Location: Cluj Napoca

Reputation: 844.2
Votes: 96

       
Post Posted: 08-06-2015, 19:33:29 | Translate post to: ... (Click for more languages)

EDUTz wrote:
Vezi asa:

Code:
#include<amxmodx>

new interval_1,interval_2;
new const Tag[] = "[Server.freakz.ro]";
new bool:terminat;

public plugin_init()
{
register_plugin("Vip la ore fixe","1.0","D3luxe");
interval_1 = register_cvar("amx_firsthour","21");
interval_2 = register_cvar("amx_lasthour","22");
set_task(60.0, "finish");
set_task(60.0, "start");
}

public client_authorized(id)
{
   
      
        if(terminat) return;
   new h, m, s;    
   time(h, m, s)
   if(get_pcvar_num(interval_1) <= h < get_pcvar_num(interval_2)) {
         
      set_user_flags(id, ADMIN_LEVEL_H)
   }

}

public start()
{
new h, m, s;
time(h, m, s);
if(h >= get_pcvar_num(interval_1) && h < get_pcvar_num(interval_2))
ChatColor(0,"!g%s!yA inceput !teamHappy Hour !y!",Tag);
else set_task(60.0, "start");
}

public finish()
{
new h, m, s;
time(h, m, s);
if(h == get_pcvar_num(interval_2) && m == 00)
{
ChatColor(0,"!g%s!yS-a terminat !teamHappy Hour !y!",Tag);
terminat = true;
}else{
terminat = false;
set_task(60.0, "finish");
}
}

stock ChatColor(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, "!team", "^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();
}
}
}
}


L-am pus acum sa-l testez.
new const Tag[] = "[Server.freakz.ro]"; - aici trebuie sa modific neaparat cu sv?


ZOMBIE.FREAKZ.RO # INTERNATIONAL ZM



0 0
  
Back to top
View user's profile Send private message
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 08-06-2015, 19:34:24 | Translate post to: ... (Click for more languages)

^pui ce vrei tu acolo,doar am pus un exemplu .


Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
Aleex Armanu

[Detinator Server]



Status: Offline
(since 16-05-2022 10:06)
Joined: 25 Feb 2015
Posts: 2285, Topics: 267
Location: Cluj Napoca

Reputation: 844.2
Votes: 96

       
Post Posted: 08-06-2015, 21:24:45 | Translate post to: ... (Click for more languages)

Code:
L 06/08/2015 - 21:54:42: Start of error session.
L 06/08/2015 - 21:54:42: Info (map "de_dust2_2007") (file "addons/amxmodx/logs/error_20150608.log")
L 06/08/2015 - 21:54:42: [AMXX] Plugin file open error (plugin "happyhour.amxx")


ZOMBIE.FREAKZ.RO # INTERNATIONAL ZM



0 0
  
Back to top
View user's profile Send private message
TwisTer

[GOOGLE SEARCHER]



Status: Offline
(since 17-05-2023 01:23)
Joined: 04 May 2007
Posts: 6962, Topics: 147
Location: Romania

Reputation: 2724.4
Votes: 231

 
Post Posted: 09-06-2015, 11:33:32 | Translate post to: ... (Click for more languages)

Sigur ai pus linia happyhour.amxx în plugins.ini?
Sau sã nu cumva sã lipseascã pluginul din amxmodx/plugins, sau sã aibã altnume.



0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 09-06-2015, 12:59:25 | Translate post to: ... (Click for more languages)

Vezi sa fie .amxx extensia poate tu o ai happyhour.amxx.txt ...Incearca-le pe ambele din nou ,uitele mai jos.
primul
al 2-lea
Uite aici ^ le compilezi si nu le deschizi cu nimic dupa ce le iei testezi pe amn2 si vezi daca merge vreunu sau ambele .Pentru a verifica daca e .amxx dai click dreapta si dai proprietati si apare acolo extensia .amxx/.sma/.txt/.etc...



Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
-P!C@-

[Simply Normal]



Status: Offline
(since 21-04-2022 19:07)
Joined: 28 May 2012
Posts: 21086, Topics: 1601
Location: Constanta

Reputation: 1870.3
Votes: 781

Post Posted: 09-06-2015, 14:29:45 | Translate post to: ... (Click for more languages)

^Posibil sa fi gresit o litera la plugin cand l-a trecut in plugins.ini.(sau ai pluginul pus in plugins.ini dar nu e trecut in plugins)



0 0
  
Back to top
View user's profile Send private message
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 10-06-2015, 16:42:14 | Translate post to: ... (Click for more languages)

Ti-a functionat vreunul ?@Aleex Armanu


Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
Aleex Armanu

[Detinator Server]



Status: Offline
(since 16-05-2022 10:06)
Joined: 25 Feb 2015
Posts: 2285, Topics: 267
Location: Cluj Napoca

Reputation: 844.2
Votes: 96

       
Post Posted: 10-06-2015, 16:58:09 | Translate post to: ... (Click for more languages)

Incerca*em toate metodele *i toti nu functiona.

ZOMBIE.FREAKZ.RO # INTERNATIONAL ZM



0 0
  
Back to top
View user's profile Send private message
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 10-06-2015, 17:00:41 | Translate post to: ... (Click for more languages)

^Aparea vreo eroare in consola @Aleex Armanu?


Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
Aleex Armanu

[Detinator Server]



Status: Offline
(since 16-05-2022 10:06)
Joined: 25 Feb 2015
Posts: 2285, Topics: 267
Location: Cluj Napoca

Reputation: 844.2
Votes: 96

       
Post Posted: 10-06-2015, 18:15:01 | Translate post to: ... (Click for more languages)

Nu apar erori

ZOMBIE.FREAKZ.RO # INTERNATIONAL ZM



0 0
  
Back to top
View user's profile Send private message
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 10-06-2015, 18:17:31 | Translate post to: ... (Click for more languages)

^seteaza la o ora apropiata acum si vezi daca apare mesajul cu a inceput... sau s-a sfarsit...
PS:Ai modificat timpul ,nu?
Sau te-ai uitat sa vezi daca flagurile playerilor s-au schimbat?
Also dupa ce modifici timpul trebuie sa dai restart la server pentru a se actualiza cvar-ul.Sau pur si simplu schimbi din server cu cvar.



Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
Aleex Armanu

[Detinator Server]



Status: Offline
(since 16-05-2022 10:06)
Joined: 25 Feb 2015
Posts: 2285, Topics: 267
Location: Cluj Napoca

Reputation: 844.2
Votes: 96

       
Post Posted: 14-06-2015, 17:10:15 | Translate post to: ... (Click for more languages)

Daca puteti sa incercati altfel sa faceti, in pluginul de baza am urmatoarea chestie care ofera anumite beneficii pe accese:



Code:
else if(get_user_flags(Attacker) & VIP_GOLD_LEVEL) {

cs_set_user_money(Attacker, cs_get_user_money(Attacker) + 5500)

fm_set_user_health(Attacker, get_user_health(Attacker) + 45)

fm_set_user_armor(Attacker, get_user_armor(Attacker) + 45)

}


Puteti face ca pluginul sa ofere aceste lucruri tuturor jucatorilor? fara sa puneti pe anumita litera?


ZOMBIE.FREAKZ.RO # INTERNATIONAL ZM



0 0
  
Back to top
View user's profile Send private message

  Topic locked


Topic is closed, you cannot post any messages in it anymore

Locked by TwisTer, 22 June 2015 15:13



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Counter-Strike: Help zone  
Go to page Previous  1, 2, 3  Next    


The time now is 03-05-2024, 05:19:06
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x