Skip to content
View in the app

A better way to browse. Learn more.

OldStyle Gaming Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
  • Administrator

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
}

 

Featured Replies

  • Founder

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

 

  • Author
  • Administrator

update, a fost adaugat un filtru de spam.

  • 1 month later...

este bun pentru rehlds?

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.