cerere plugin /comenzi

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 .
Post Reply
User avatar
darkemy14
Membru, skill +1
Membru, skill +1
Posts: 269
Joined: 02 Oct 2011, 16:20
Detinator Steam: Nu
Detinator server CS: Da
Has thanked: 82 times
Been thanked: 1 time
Contact:

21 Sep 2012, 18:28

salutare,
as vrea si eu acel plugin care tastezi in chat /comenzi si dupa iti zice (parca intr-un motd) ce comenzi poata sa foloseasca playerii (gen: /parachute /zspawn ... etc)

multumesc
RoyalServer 2
User avatar
BioLoGic
Membru, skill 0
Membru, skill 0
Posts: 64
Joined: 07 Feb 2012, 21:18
Detinator Steam: Da
CS Status: Ocupat..!
Detinator server CS: Da
Has thanked: 13 times
Been thanked: 3 times
Contact:

21 Sep 2012, 18:33

Poftim!

Code: Select all

#include <amxmodx>

public plugin_init()
{
	
	register_plugin("MOTD", "1.0", "BioLoGic");
	
	register_clcmd("say /comenzi", "comenzi");
	register_clcmd("say_team /comenzi", "comenzi");
	
}

public comenzi(id)
{
	show_motd(id, "addons/amxmodx/configs/comenzi.html", "Comenzile server-ului");
}
Iar in "comenzi.html" din addons/amxmodx/configs/comenzi.html , iti treci tu codul!
User avatar
S3ekEr^
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 3475
Joined: 06 Dec 2009, 12:47
Detinator Steam: Nu
Reputatie: Nume anterior: The Seeker , Reptyle
Fost Scripter
Fost super moderator
Utilizator neserios ( tepar )
Has thanked: 117 times
Been thanked: 329 times

21 Sep 2012, 20:30

| Afiseaza codul
#include <amxmodx>

public plugin_init() {
register_plugin("Motd", "0.1", "Author")

register_clcmd("say /comenzi","motd");
}

public motd(id) {
new iMotd[650], iLen;

iLen = formatex(iMotd, sizeof iMotd - 1,"<body bgcolor=#000000><font color=33FF00><pre>");
iLen += formatex(iMotd[iLen], (sizeof iMotd - 1) - iLen, "<center><b><font color=#FF0033>Comenzile Serverului !!!</b></font></center>^n^n^n");
iLen += formatex(iMotd[iLen], (sizeof iMotd - 1) - iLen, "<center><b>/blabla</b></center>^n^n");
iLen += formatex(iMotd[iLen], (sizeof iMotd - 1) - iLen, "<center><b>/zspawn</b></center>^n^n");
iLen += formatex(iMotd[iLen], (sizeof iMotd - 1) - iLen, "<center><b>/parachute</b></center>^n^n");
iLen += formatex(iMotd[iLen], (sizeof iMotd - 1) - iLen, "<center><b>/trail</b></center>^n^n");
iLen += formatex(iMotd[iLen], (sizeof iMotd - 1) - iLen, "<center><b>/admins</b></center>^n^n");
iLen += formatex(iMotd[iLen], (sizeof iMotd - 1) - iLen, "<center><b>/glow</b></center>^n^n");
iLen += formatex(iMotd[iLen], (sizeof iMotd - 1) - iLen, "<center><b>/trivia</b></center>^n^n");
iLen += formatex(iMotd[iLen], (sizeof iMotd - 1) - iLen, "<center><b>/resetscore</b></center>^n^n");

show_motd(id, iMotd, "Comenzile publice");

}
User avatar
CamPagNe
Fost moderator
Fost moderator
Posts: 329
Joined: 12 Jun 2012, 15:20
Detinator Steam: Da
CS Status: Fuck yeah !
Reputatie: Fost Moderator ajutator
Has thanked: 13 times
Been thanked: 71 times

21 Sep 2012, 21:52

Vezi si asta :)
help.sma | Afiseaza codul
#include <amxmodx>

public plugin_init() 
{
	register_plugin("Motd Help Commands", "1.0", "Unhask")
	
	register_dictionary("help.txt")
	
	register_clcmd("say /help", "cmdHELP")
}

public cmdHELP(id)
{
	new motd[101]
	
	formatex(motd, 100, "%L", id, "HELP_MOTD")

	show_motd(id, motd, "Help Commands")
}
addons/amxmodx/data/lang/help.txt | Afiseaza codul
[en]
HELP_MOTD :
<html>
	<head>
		<style type="text/css">
			pre
			{
				font-family:Verdana,Tahoma;
				color:#FFFFFF;
			}

			body
			{
				background:#000000;
				margin-left:8px;
				margin-top:0px;
			}
		</style>
	</head>

	<body scroll="no">
		<pre>
			<h2><center>Lista Comenzi</center></h2>
			^n^n^n
			Comenzi in Chat:^n^n
			say /comanda1 - descriere.^n^n
			say /comanda2 - descriere.^n^n
		
		</pre>
	</body>
</html>
:[/sursa]
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 37 guests