Cerere Plugin Motd

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
User avatar
King Innsane
Membru, skill 0
Membru, skill 0
Posts: 20
Joined: 30 Mar 2019, 15:34
Detinator Steam: Da
Detinator server CS: 193.203.39.156:27015
Fond eXtream: 0
Been thanked: 1 time

17 Jul 2020, 23:52

Shadows Adi wrote:
14 Jul 2020, 22:45
Eu am facut meniul ala =)))), pm daca esti interesat.
Dă-i msj că sigur îţi dă ceva trash-uri pe 5/10e

Code: Select all

#include <amxmodx>

new _Menu, a_Menu // meniul 

static const OWNER[] = "IDK",	COUNTRY[] = "Romania", FORUM[] = "www.eXtreamCS.com", MOD[] = "DR", DNS[] = "CS.COMUNITATE.RO", IP[] = "x.x.x.x:x", YEAR[] ="2020";

public plugin_init () {

	_Menu = register_menuid("INFO")
	register_menucmd(_Menu, 1023, "info")
	
	a_Menu = register_menuid("SV")
	register_menucmd(a_Menu, 1023, "sv")

	register_clcmd("say /info", "INFO")

}

public INFO(id) {

	new menuBody[555],	_m[255]
	formatex(_m,charsmax(_m), "\d[\r%s\d] \wMENIU INFO PANEL^n", DNS)
	add(menuBody, charsmax(menuBody), _m)

	formatex(_m,charsmax(_m), "\d[\r*\d] \wDetinator: \r%s^n^n", OWNER)
	add(menuBody, charsmax(menuBody), _m)

	formatex(_m,charsmax(_m), "\r1. \wContact: %s^n", OWNER)
	add(menuBody, charsmax(menuBody), _m)

	formatex(_m,charsmax(_m), "\r2. \wDetalii Server^n")
	add(menuBody, charsmax(menuBody), _m)
	
	formatex(_m,charsmax(_m), "\r3. \wAvantaje \yV.I.P^n")
	add(menuBody, charsmax(menuBody), _m)
	
	formatex(_m,charsmax(_m), "\r4. \wPreturi \yGrade^n")
	add(menuBody, charsmax(menuBody), _m)
	
	formatex(_m,charsmax(_m), "\r5. \wOre Necesare^n")
	add(menuBody, charsmax(menuBody), _m)
	
	formatex(_m,charsmax(_m), "\r6. \wLa cine donez ?^n")
	add(menuBody, charsmax(menuBody), _m)
	
	formatex(_m,charsmax(_m), "\r7. \wMetoda de plata^n")
	add(menuBody, charsmax(menuBody), _m)
	
	add(menuBody, charsmax(menuBody), "^n^n\r0.\wIesire")
	
	new keys = ( 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<5 | 1<<6 | 1<<9 )
	show_menu(id, keys, menuBody, -1, "INFO")
	
}

public info(id, key) {

	switch(key)
	{
		case 0: 
		{
		
			//xd
		
		}
		case 1:
		{
		
			SV(id)
		
		}
		case 2:
		{
		
		
			show_motd(id, "site url / file location ", "title")
			
		}
		case 3:
		{
		
			show_motd(id, "site url / file location ", "title")
		
		}
		case 4:
		{
		
		
			show_motd(id, "site url / file location ", "title")
		
		}
		case 5:
		{
		
		
			show_motd(id, "site url / file location ", "title")
		
		}
		case 6:
		{
		
			show_motd(id, "site url / file location ", "title");
		
		}
		case 7:
		{
		
			show_motd(id, "site url / file location ", "title");
		
		}
	}
}

public SV(id)	{

	new menuBody[555],	_m[255]
	formatex(_m,charsmax(_m), "\d[\r%s\d] \wDETALII SERVER^n", DNS)
	add(menuBody, charsmax(menuBody), _m)

	formatex(_m,charsmax(_m), "\d[\r*\d] \wFORUM: \r%s^n^n", FORUM)
	add(menuBody, charsmax(menuBody), _m)

	formatex(_m,charsmax(_m), "\d[\r*\d] \wDNS: \r%s^n", DNS)
	add(menuBody, charsmax(menuBody), _m)
	
	formatex(_m,charsmax(_m), "\d[\r*\d] \wIP: \r%s^n", IP)
	add(menuBody, charsmax(menuBody), _m)

	formatex(_m,charsmax(_m), "\d[\r*\d] \wMOD: \r%s^n", MOD)
	add(menuBody, charsmax(menuBody), _m)
	
	formatex(_m,charsmax(_m), "\d[\r*\d] \wTARA: \r%s^n", COUNTRY)
	add(menuBody, charsmax(menuBody), _m)
	
	formatex(_m,charsmax(_m), "\d[\r*\d] \wFORUM: \r%s^n", FORUM)
	add(menuBody, charsmax(menuBody), _m)
	
	formatex(_m,charsmax(_m), "\d[\r*\d] \wDETINATOR: \r%s^n", OWNER)
	add(menuBody, charsmax(menuBody), _m)
	
	formatex(_m,charsmax(_m), "\d[\r*\d] \wSERVER SINCE: \r%s^n", YEAR)
	add(menuBody, charsmax(menuBody), _m)
	
	add(menuBody, charsmax(menuBody), "^n^n\r0.\wIesire")
	
	new keys = ( 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<5 | 1<<6 | 1<<7 | 1<<9 )
	show_menu(id, keys, menuBody, -1, "SV")
	
}

public sv(id, key)	{

	switch(key)
	{
		case 0:
		{
	
		
		
		}
		case 1:
		{

			
		
		}
		case 2:
		{
	
			
		
		}
		case 3:
		{
	
		
				
		}
		case 4:
		{
	
		
		
		}
		case 5:
		{
	

		
		}
		case 6:
		{


		
		}
		case 7:
		{
	
	
		
		}
	}
}

#pragma tabsize 0
"Am făcut lucruri pe care acum le regret. Dar dacă nu învăţ din greşeli o să le repet."
RoyalServer
Shadows Adi
Membru, skill +1
Membru, skill +1
Posts: 349
Joined: 26 Jan 2020, 18:52
Detinator Steam: Da
CS Status: 0x416469
SteamID: shadowsadi120
Fond eXtream: 0
Has thanked: 14 times
Been thanked: 50 times

18 Jul 2020, 01:10

King Innsane wrote:
17 Jul 2020, 23:52

Dă-i msj că sigur îţi dă ceva trash-uri pe 5/10e

Code: Select all

#include <amxmodx>

new _Menu, a_Menu // meniul 

static const OWNER[] = "IDK",	COUNTRY[] = "Romania", FORUM[] = "www.eXtreamCS.com", MOD[] = "DR", DNS[] = "CS.COMUNITATE.RO", IP[] = "x.x.x.x:x", YEAR[] ="2020";

public plugin_init () {

	_Menu = register_menuid("INFO")
	register_menucmd(_Menu, 1023, "info")
	
	a_Menu = register_menuid("SV")
	register_menucmd(a_Menu, 1023, "sv")

	register_clcmd("say /info", "INFO")

}

public INFO(id) {

	new menuBody[555],	_m[255]
	formatex(_m,charsmax(_m), "\d[\r%s\d] \wMENIU INFO PANEL^n", DNS)
	add(menuBody, charsmax(menuBody), _m)

	formatex(_m,charsmax(_m), "\d[\r*\d] \wDetinator: \r%s^n^n", OWNER)
	add(menuBody, charsmax(menuBody), _m)

	formatex(_m,charsmax(_m), "\r1. \wContact: %s^n", OWNER)
	add(menuBody, charsmax(menuBody), _m)

	formatex(_m,charsmax(_m), "\r2. \wDetalii Server^n")
	add(menuBody, charsmax(menuBody), _m)
	
	formatex(_m,charsmax(_m), "\r3. \wAvantaje \yV.I.P^n")
	add(menuBody, charsmax(menuBody), _m)
	
	formatex(_m,charsmax(_m), "\r4. \wPreturi \yGrade^n")
	add(menuBody, charsmax(menuBody), _m)
	
	formatex(_m,charsmax(_m), "\r5. \wOre Necesare^n")
	add(menuBody, charsmax(menuBody), _m)
	
	formatex(_m,charsmax(_m), "\r6. \wLa cine donez ?^n")
	add(menuBody, charsmax(menuBody), _m)
	
	formatex(_m,charsmax(_m), "\r7. \wMetoda de plata^n")
	add(menuBody, charsmax(menuBody), _m)
	
	add(menuBody, charsmax(menuBody), "^n^n\r0.\wIesire")
	
	new keys = ( 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<5 | 1<<6 | 1<<9 )
	show_menu(id, keys, menuBody, -1, "INFO")
	
}

public info(id, key) {

	switch(key)
	{
		case 0: 
		{
		
			//xd
		
		}
		case 1:
		{
		
			SV(id)
		
		}
		case 2:
		{
		
		
			show_motd(id, "site url / file location ", "title")
			
		}
		case 3:
		{
		
			show_motd(id, "site url / file location ", "title")
		
		}
		case 4:
		{
		
		
			show_motd(id, "site url / file location ", "title")
		
		}
		case 5:
		{
		
		
			show_motd(id, "site url / file location ", "title")
		
		}
		case 6:
		{
		
			show_motd(id, "site url / file location ", "title");
		
		}
		case 7:
		{
		
			show_motd(id, "site url / file location ", "title");
		
		}
	}
}

public SV(id)	{

	new menuBody[555],	_m[255]
	formatex(_m,charsmax(_m), "\d[\r%s\d] \wDETALII SERVER^n", DNS)
	add(menuBody, charsmax(menuBody), _m)

	formatex(_m,charsmax(_m), "\d[\r*\d] \wFORUM: \r%s^n^n", FORUM)
	add(menuBody, charsmax(menuBody), _m)

	formatex(_m,charsmax(_m), "\d[\r*\d] \wDNS: \r%s^n", DNS)
	add(menuBody, charsmax(menuBody), _m)
	
	formatex(_m,charsmax(_m), "\d[\r*\d] \wIP: \r%s^n", IP)
	add(menuBody, charsmax(menuBody), _m)

	formatex(_m,charsmax(_m), "\d[\r*\d] \wMOD: \r%s^n", MOD)
	add(menuBody, charsmax(menuBody), _m)
	
	formatex(_m,charsmax(_m), "\d[\r*\d] \wTARA: \r%s^n", COUNTRY)
	add(menuBody, charsmax(menuBody), _m)
	
	formatex(_m,charsmax(_m), "\d[\r*\d] \wFORUM: \r%s^n", FORUM)
	add(menuBody, charsmax(menuBody), _m)
	
	formatex(_m,charsmax(_m), "\d[\r*\d] \wDETINATOR: \r%s^n", OWNER)
	add(menuBody, charsmax(menuBody), _m)
	
	formatex(_m,charsmax(_m), "\d[\r*\d] \wSERVER SINCE: \r%s^n", YEAR)
	add(menuBody, charsmax(menuBody), _m)
	
	add(menuBody, charsmax(menuBody), "^n^n\r0.\wIesire")
	
	new keys = ( 1<<0 | 1<<1 | 1<<2 | 1<<3 | 1<<4 | 1<<5 | 1<<6 | 1<<7 | 1<<9 )
	show_menu(id, keys, menuBody, -1, "SV")
	
}

public sv(id, key)	{

	switch(key)
	{
		case 0:
		{
	
		
		
		}
		case 1:
		{

			
		
		}
		case 2:
		{
	
			
		
		}
		case 3:
		{
	
		
				
		}
		case 4:
		{
	
		
		
		}
		case 5:
		{
	

		
		}
		case 6:
		{


		
		}
		case 7:
		{
	
	
		
		}
	}
}

#pragma tabsize 0

Code: Select all

new menuBody[555] 
=)))))))))))
Maximul caracterelor din meniu este de 512. Nu poti trece peste limita asta, se pun si codurile de culoare ( \r, \d, \w, \y ).
amxconst.inc

Code: Select all

 #define MAX_MENU_LENGTH 512 
Si nu, daca schimbi aici in 555, etc, nu o sa mearga, este codata in baza amxmodx.
Daca treci de aceasta valoare, o sa iti apara asa:
Image
User avatar
EnTeR_
Membru, skill +2
Membru, skill +2
Posts: 577
Joined: 13 Sep 2014, 16:36
Detinator Steam: Da
Fond eXtream: 0
Has thanked: 3 times
Been thanked: 29 times

18 Jul 2020, 11:51

Va certați pe o mizerie de maxim 10 minute.
ON: Dacă mai ai nevoie lasa reply, ti l fac eu.
Discord: eyekon13
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: Bing [Bot] and 42 guests