User
Pass
2FA
 
 

[rezolvat]cerere plugin mesaje

 
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) -> Plugins - Help / Support
Author Message1088
*XavI*

[Mentally Stable]



Status: Offline
(since 31-10-2016 17:53)
Joined: 07 Apr 2014
Posts: 291, Topics: 19
Location: Romania

Reputation: 196.2
Votes: 7

Post Posted: 18-05-2015, 20:35:29 | Translate post to: ... (Click for more languages)

Salut vreau si eu un plugin care sa trimita in chatu normal mesaje pentru oameni .

- Dar in chatul normal . Si as dorii mesajele sa fie de culoare rosie , la 60 de secunde .

Va rog un plugin care sa nu dea crashuri sau sa flodeze serverul , am mai auzit de asta dar nu stiu cat de adevarat este .

Vreau sa va intreb exista posibilitatea ca accest plugin sa flodeze sau sa dea chras la server ?





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

[Mentally Stable]



Status: Offline
(since 03-03-2019 23:50)
Joined: 10 Dec 2014
Posts: 289, Topics: 44
Location: Germany

Reputation: 159
Votes: 5

     
Post Posted: 18-05-2015, 22:25:32 | Translate post to: ... (Click for more languages)

Poftim http://www10.zippyshare.com/v/FMs0imBa/file.html
Incearca acest plugin.
Instalare :
1 : Copiem fisierul ad_manager.sma in addons/amxmodx/scripting.
2 : Copiem fisierul ad_manager.amxx in addons/amxmodx/plugins.
3 : Copiem fisierul advertisements.ini in addons/amxmodx/configs
4 : Adaugam, la sfarsit, in fisierul cstrike/addons/amxmodx/configs/plugins.ini urmatoarea linie:

I-l poti modifica cum vrei tu , poti pune ori ce mesaj doresti sa para pe server si nu flodeaza sv si nici nu da crash , sper ca te.am ajutat.

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

[Mentally Stable]



Status: Offline
(since 31-10-2016 17:53)
Joined: 07 Apr 2014
Posts: 291, Topics: 19
Location: Romania

Reputation: 196.2
Votes: 7

Post Posted: 19-05-2015, 02:34:51 | Translate post to: ... (Click for more languages)

Se poate sa dea mesajele numai scris cu rosu ?




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: 19-05-2015, 08:30:45 | Translate post to: ... (Click for more languages)

Poftim baga pluginul asta: http://www51.zippyshare.com/v/AADl6jaD/file.html Ti-am lasat un model pentru a introduce textul, merge foarte bine, eu folosesc pluginul. Pentru a pune si alta culoare in loc de red poti scrie green, blue sau white. De asemenea daca vrei ca mesajele sa aiba o culoare diferita la fiecare aparitie pui de ex red in fata si blue la final.
Spor!




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

[Mentally Stable]



Status: Offline
(since 31-10-2016 17:53)
Joined: 07 Apr 2014
Posts: 291, Topics: 19
Location: Romania

Reputation: 196.2
Votes: 7

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

Si durata unde o trec ? Imi lasi un exemplu ? Cum scriu ca mesajele sa fie date unele la 60 sec ,,,altele 75 sec ..


Ciudat e ca l-am adaugat zice ca ruleaza ...mesages..runing ,,, Dar nu apare nici-un mesaj ...





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: 20-05-2015, 09:33:51 | Translate post to: ... (Click for more languages)

Durata e setatata automat la 1 minut sau 2. Toate mesajele sunt date la acelasi interval de timp iar mesajele apar, testeaza cu o persoana cel putin si vor aparea.



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

[Mentally Stable]



Status: Offline
(since 31-10-2016 17:53)
Joined: 07 Apr 2014
Posts: 291, Topics: 19
Location: Romania

Reputation: 196.2
Votes: 7

Post Posted: 20-05-2015, 19:26:22 | Translate post to: ... (Click for more languages)

Am testat , nu apar , conteaza ordinea ceva ?
Ca nu merge ...





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: 20-05-2015, 19:45:04 | Translate post to: ... (Click for more languages)

Poftim ,iti scrii mesajele si o sa iti apara random am pus 5 daca vrei mai multe sau mai putine imi spui.
Code:

#include<amxmodx>

new const Tag[] = "[nume.svr]";
new timer;

public plugin_init()
{
 register_plugin("Mesaje","1.0","D3luxe");
 timer = register_cvar("timp_mesaj","60")
}

public client_putinserver(id)
{
   set_task(get_pcvar_float(timer),"mesaj",id);
}

public mesaj(id)
{
  switch(random_num(1,5))
  {
  case 1: ChatColor(id,"!g%s!teamMESAJ1.",Tag);
  case 2: ChatColor(id,"!g%s!teamMESAJ2.",Tag);
  case 3: ChatColor(id,"!g%s!teamMESAJ3.",Tag);
  case 4: ChatColor(id,"!g%s!teamMESAJ4.",Tag);
  case 5: ChatColor(id,"!g%s!teamMESAJ5.",Tag);
  }
  return PLUGIN_HANDLED;
}

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();
            }
        }
    }
}

PS:60 sec nu e bine cel putin 2-4 minute ar fii bine.
NOTA:2-4 minute = 120-240 secunde asa treci in cvar el calculeaza in secunde nu minute.



Retired from Amxmodx

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

[GOOGLE SEARCHER]



Status: Offline
(online 3 weeks ago)
Joined: 04 May 2007
Posts: 6962, Topics: 147
Location: Romania

Reputation: 2724.4
Votes: 231

 
Post Posted: 20-05-2015, 20:17:59 | Translate post to: ... (Click for more languages)

Nu îþi recomand deloc sã pui 60 acolo, poþi avea probleme.
Îþi recomand sã ai mãcar 120 de secunde pentru a evita problemele de overflow, de asta e fãcut GWH în felul ãla.
Trebuie sã întelegeþi cã pluginurile care sunt aprobate pe siteul sursã sunt verificate de mai multe ori, în mai multe condiþii.



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: 20-05-2015, 20:36:34 | Translate post to: ... (Click for more languages)

destroi112 wrote:
Poftim ,iti scrii mesajele si o sa iti apara random am pus 5 daca vrei mai multe sau mai putine imi spui.
PS:60 sec nu e bine cel putin 2-4 minute ar fii bine.
NOTA:2-4 minute = 120-240 secunde asa treci in cvar el calculeaza in secunde nu minute.

Imi spui daca iti merge si daca e ok cum ti-am pus.



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: 21-05-2015, 11:17:22 | Translate post to: ... (Click for more languages)

Poti seta la GHW_Message_Disp frecventa mesajelor:
Cvars:
Quote:
advertise_hud_len - standard 120 sec
advertise_text_len - standard 200 sec




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

[Mentally Stable]



Status: Offline
(since 31-10-2016 17:53)
Joined: 07 Apr 2014
Posts: 291, Topics: 19
Location: Romania

Reputation: 196.2
Votes: 7

Post Posted: 21-05-2015, 23:18:31 | Translate post to: ... (Click for more languages)

Destroy unde trec ca sa inlocuiesc mesajul ??
Astea le vreau cu rosu .


PENTRU DETALI ADMIN CONTACT ID MESS love_vyrus SAU INTRATI PE FORUM http://WWW.TITAN.FREAKZ.RO


CAUTAM ADMINI ACTIVI !!! FORUMUL NOSTRU http://WWW.TITAN.FREAKZ.RO


ADAUGATI SERVERUL LA FAVORIT TITAN.FREAKZ.RO


PENTRU A FOLOSI PUTERILE , SCRIETI IN CONSOLA "BIND C ULTIMATE" SI APASATI "C"


DORIM SA FORMAM O ECHIPA DE ADMINI SI JUCATORI STABILI CU BUN SIMT !!





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: 22-05-2015, 00:12:43 | Translate post to: ... (Click for more languages)

Code:

#include<amxmodx>

new const Tag[] = "[nume.svr]";
new timer;

public plugin_init()
{
 register_plugin("Mesaje","1.0","D3luxe");
 timer = register_cvar("timp_mesaj","240")
}

public client_putinserver(id)
{
   set_task(get_pcvar_float(timer),"mesaj",id);
}

public mesaj(id)
{
  switch(random_num(1,5))
  {
  case 1: ChatColor(id,"!g%s!teamPENTRU DETALI ADMIN CONTACT ID MESS love_vyrus SAU INTRATI PE FORUM http://WWW.TITAN.FREAKZ.RO .",Tag);
  case 2: ChatColor(id,"!g%s!teamCAUTAM ADMINI ACTIVI !!! FORUMUL NOSTRU http://WWW.TITAN.FREAKZ.RO .",Tag);
  case 3: ChatColor(id,"!g%s!teamADAUGATI SERVERUL LA FAVORIT TITAN.FREAKZ.RO .",Tag);
  case 4: ChatColor(id,"!g%s!teamPENTRU A FOLOSI PUTERILE , SCRIETI IN CONSOLA BIND C ULTIMATE SI APASATI [C]",Tag);
  case 5: ChatColor(id,"!g%s!teamDORIM SA FORMAM O ECHIPA DE ADMINI SI JUCATORI STABILI CU BUN SIMT !! .",Tag);
  }
  return PLUGIN_HANDLED;
}

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();
            }
        }
    }
}

Poftim.



Retired from Amxmodx

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 May 2015 15:45



 
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) -> Plugins - Help / Support  


The time now is 04-12-2024, 01:41:31
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password