Jump to content
Banner 730x90px boost

Recommended Posts

Nume: simpleConsole

Versiune: 1.2 (update+anti spam)

Autor: @DemOnJR

Descriere: Arata mesaj in consola printr-o comanda in chat!

Poze: V1.1 - V1.2 (inca nu am poza)

Download: nu necesita aveti mai jos cod

v1.2 (arata consola automat, daca clientul nu are blocata comanda cmd prin protectia de cs + anti spam)

#include <amxmodx>
#include <cstrike>

#define PLUGIN  "simpleConsole"
#define VERSION "1.0"
#define AUTHOR  "DemOnJR"

new Float:spamTime[33];
new iMes = 0

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

  register_clcmd("say /comanda", "consola")
  register_clcmd("say_team /comanda", "consola")
  // daca mai vreti sa adaugai o comanda utilizati modelul de mai sus
}

public consola(id)
{
  new Float:ttime = get_gametime()
  if (spamTime[id] <= ttime)
  {
    spamTime[id] = ttime + 10
    iMes = 0

    console_print(id, "========================")
    console_print(id, "text")
    console_print(id, "text")
    console_print(id, "text")
    console_print(id, "========================")
    // daca mai vreti sa adaugati un mesaj utizilizati modelul de mai sus
    client_cmd(id, "toggleconsole")

    iMes++
  }
  else if (iMes == 1)
  {
    client_print(id, print_chat, "[SPAM]Verifica consola, asteapta 10 secunde!")
    iMes++
  }
}

v1.1 (arata consola automat, daca clientul nu are blocata comanda cmd prin protectia de cs)

Spoiler

#include <amxmodx>

#define PLUGIN  "simpleConsole"
#define VERSION "1.0"
#define AUTHOR  "DemOnJR"

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

  register_clcmd("say /comanda", "consola")
  register_clcmd("say_team /comanda", "consola")
  // daca mai vreti sa adaugai o comanda utilizati modelul de mai sus
}

public consola(id)
{
  console_print(id, "========================")
  console_print(id, "text")
  console_print(id, "text")
  console_print(id, "text")
  console_print(id, "========================")
  // daca mai vreti sa adaugati un mesaj utizilizati modelul de mai sus
  client_cmd(id, "toggleconsole")
  // consola este aratata automat doar in cazul in care jucatorul nu are protectie la kit sau nu are blocata comanda cmd.
}

 

 

v1.0 (arata un mesaj simplu atunci cand folositi comanda in chat)

Spoiler

#include <amxmodx>

#define PLUGIN  "simpleConsole"
#define VERSION "1.0"
#define AUTHOR  "DemOnJR"

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

  register_clcmd("say /comanda", "consola")
  register_clcmd("say_team /comanda", "consola")
  // daca mai vreti sa adaugai o comanda utilizati modelul de mai sus
}

public consola(id)
{
  console_print(id, "========================")
  console_print(id, "text")
  console_print(id, "text")
  console_print(id, "text")
  console_print(id, "========================")
  // daca mai vreti sa adaugati un mesaj utizilizati modelul de mai sus
}

 

Share this post


Link to post
Share on other sites

Merge perfect. 

Cand sctii in chat /comanda, se deschide automat consola si iti arata comenzile pe care le-ai setat tu. 

Eu am apes sa pun /laser, iar atunci cand cineva scrie /laser pe server, ii apare modul de instalare. 

Foarte ultil plugin-ul. 

Multumesc!

 

Poza:

Quote

D44AiJo.jpg

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...