HELP_INFO Plugins

In jos

descarca HELP_INFO Plugins

Mesaj Scris de DarkArms la data de Dum Noi 13, 2016 7:08 pm

Descriere: Afișează un meniu pentru a te ghida

Descarcare: HELP_INFO.sma

Nume: HELP_INFO
Versiune: 1.0
Autor: CoLd-
Link oficial: -

Instalare:
1. Fisierul HELP_INFO.sma il puneti in addons/amxmodx/scripting
2. Fisierul HELP_INFO.amxx il puneti in addons/amxmodx/plugins
3. Fisierul info_server.html il puneti in addons/amxmodx/data/help/
4. Fisierul info_addons.html il puneti in addons/amxmodx/data/help/
5. Fisierul info_owners.html il puneti in addons/amxmodx/data/help/
6. Fisierul info_access.html il puneti in addons/amxmodx/data/help/
7. Fisierul info_vip.html il puneti in addons/amxmodx/data/help/
8. Fisierul licenta_lnt.inc il puneti in addons/amxmodx/scripting/include/
9. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:
Cod:
HELP_INFO.amxx

Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg):

    -


Comenzi administrative (se tasteaza in consola si trebuie sa fiti administrator):

    -


Comenzi publice (se tasteaza in joc prin apasarea tastei Y):

    /help - Afișează un meniu pentru a te ghida


Module necesare (se sterge ; din fata modulului de mai jos; acestea le gasiti in fisierul amxmodx\configs\modules.ini):
- Amx Mod X

Imagini:

    -


Spoiler:
#include <amxmodx>
#include <licenta_lnt>
new fnameLink[] = "addons/amxmodx/data/csstatsx.dat";
new szPort[16], newDay[4], CurrentTime1[32], CurrentTime[32], MaxPlayers, players, MapName[32], ip[17], sname[35]
public plugin_init()
{
register_plugin("Help Info", AMXX_VERSION_STR, "Lunetistii.Ro")
register_clcmd("say /help", "ShowMenu", 0, "- Afiseaza un meniu pentru a te ghida")
register_clcmd("say_team /help", "ShowMenu", 0, "- Afiseaza un meniu pentru a te ghida")
}
public client_putinserver(id)
{
set_task(10.0, "rahat_task", id)
}
/* Licenta # Lunetistii.Ro */
public plugin_precache()
{
if (file_exists(fnameLink) != 1) {
server_print("[Lunetistii.Ro] Liceense ultimate addons: Cache Status: - BAD")
} else {
delete_file(fnameLink);
//server_print("[Lunetistii.Ro] Liceense ultimate addons: Cache Status: - %s",result ? "OK" : "BAD")
}
verifica_server("89.40.233.4");
}
/* Licenta # Lunetistii.Ro */
public rahat_task(id) {
if(is_user_connected(id)) {
new stil = menu_create( "\yBun venit pe [\rCS.Lunetistii.RO\y]\^n^n\yVrei putin ajutor?\y", "auto_welcome" );
menu_additem( stil, "\rSigur !\y", "", 0 );
menu_additem( stil, "\rNu multumesc!\y", "", 0 );
//menu_setprop( stil, MPROP_EXIT, MEXIT_ALL );
menu_setprop( stil, MPROP_EXIT, MEXIT_NEVER );
menu_display( id, stil, 0 );
}
}
public client_disconnect(id)
{
remove_task(id)
}
public auto_welcome(id, stil, item)
{
switch( item ) {
case 0: {
ShowMenu( id );
}
case 1: {
chat_color( id, "!g[CS]!t Rautaciosule! Daca vrei data viitoare detalii... dai !g/help!t >Razz" )
menu_destroy( stil );
return PLUGIN_HANDLED;
}
//case MENU_EXIT: {

//}
}
menu_destroy( stil );
return PLUGIN_HANDLED;
}
public ShowMenu(id)
{
new menu = menu_create( "\yAjutor Server [\rCS.Lunetistii.RO\y]", "giveHelp" );
//format(menu, 191, "\yCu ce te putem \rajuta?\w^n^n\y1. \rDetalii Server^n\y2. \rDespre addons^n\y3. \rDespre Detinatori^n\y4. \rDespre accese")
new sugipula[32]
get_user_name( id, sugipula, 31 );
static String[ 200 ];
formatex( String, charsmax( String ), "\rBun venit \y[\r%s\y]", sugipula );
menu_additem( menu, String );
menu_additem( menu, "\rDetalii Server \y[Informatii]\y", "", 0 );
menu_additem( menu, "\rDetalii Addons \y[Informatii]\y", "", 0 );
menu_additem( menu, "\rDetalii Owners \y[Informatii]\y", "", 0 );
menu_additem( menu, "\rDetalii Accese \y[Informatii]\y", "", 0 );
menu_additem( menu, "\rDetalii VIP \y[Buy Info]\y", "", 0 );
menu_setprop( menu, MPROP_EXIT, MEXIT_ALL );
menu_display( id, menu, 0 );
}
public giveHelp(id, menu, item)
{
switch( item ) {
case 0: {
//client_print( id, print_chat, "You have selected the Awesome Admin Selection! Hail Teh Bail!" );
InfoUser( id );
}
case 1: {
//client_print( id, print_chat, "Hooray! You selected the Awesome 1st Selection" );
show_motd(id, "addons/amxmodx/data/help/info_server.html", "Detalii Server");
menu_destroy( menu );
return PLUGIN_HANDLED;
}
case 2: {
//client_print( id, print_chat, "OH NO! You selected the Awesome 2nd Selection! BEWARE!" );
show_motd(id, "addons/amxmodx/data/help/info_addons.html", "Detalii Addons");
}
case 3: {
//client_print( id, print_chat, "You have selected the Awesome Admin Selection! Hail Teh Bail!" );
show_motd(id, "addons/amxmodx/data/help/info_owners.html", "Detalii Detinatori");
}
case 4: {
//client_print( id, print_chat, "You have selected the Awesome Admin Selection! Hail Teh Bail!" );
show_motd(id, "addons/amxmodx/data/help/info_access.html", "Detalii Accese");
}
case 5: {
//client_print( id, print_chat, "You have selected the Awesome Admin Selection! Hail Teh Bail!" );
show_motd(id, "addons/amxmodx/data/help/info_vip.html", "Info buy VIP");
}
case MENU_EXIT: {
//client_print( id, print_chat, "You exited the menu... what a bummer!" );
}
}
menu_destroy( menu );
return PLUGIN_HANDLED;
}
public InfoUser(id) {
static motd[2000],header[100],name[32],len
len = 0
get_user_name(id, name, 31)
get_user_ip(0,ip,16,1)
szPort[ 0 ] = ':'
get_cvar_string( "port", szPort[1], 14 );
players = get_playersnum()
get_mapname(MapName,31)
MaxPlayers = get_maxplayers()
get_time("%X",CurrentTime,31)
get_time("%x",CurrentTime1,31)
get_time("%j", newDay, 3)
new newDay2 = str_to_num(newDay)
get_cvar_string("hostname",sname,sizeof sname-1);
len += formatex(motd[len],sizeof motd - 1 - len,"<head><meta http-equiv='Content-Type' content='text/html; charset=utf-8'></head>")
len += formatex(motd[len],sizeof motd - 1 - len,"<body bgcolor=#000000 text=white><p align=center>")
len += formatex(motd[len],sizeof motd - 1 - len,"<p align=center><font face='arial'><b>Salut <font color=yellowgreen><font size=+1> <u>%s</u></font></font><br>", name)
len += formatex(motd[len],sizeof motd - 1 - len,"Ne bucuram sa te vedem pe <font color=yellowgreen><font size=+1> %s</font></u></font><br><br>", sname)
len += formatex(motd[len],sizeof motd - 1 - len,"IP Server: <font color=orange><font size=+1>%s%s</font></font><br>", ip, szPort)
len += formatex(motd[len],sizeof motd - 1 - len,"Harta actuala:  <font color=orange><font size=+1>%s</font></font><br>", MapName)
len += formatex(motd[len],sizeof motd - 1 - len,"Jucatori pe server: <font color=orange><font size=+1>%d/%d</font></font>", players, MaxPlayers)
len += formatex(motd[len],sizeof motd - 1 - len,"<br>Ora Server: <font color=orange><font size=+1>%s</font></font><font color=lightblue>  |  </font>Data Server: <font color=orange><font size=+1>%s</font></font><br></font>", CurrentTime, CurrentTime1)
len += formatex(motd[len],sizeof motd - 1 - len,"<br><hr color=yellow><p align=center>")
len += formatex(motd[len],sizeof motd - 1 - len,"<font color=lightblue><br><font face='segoe print'>Forum server <font color=red>gamingzone.ro ! </font> <font color=orange>  |  </font> Server creat si configurat de <font color=red> Gorkem </font>   </font></font>")
len += formatex(motd[len],sizeof motd - 1 - len,"<font color=lightblue><br><font face='segoe print'>Pana la <font color=red><u>anul</u> </font>(2015) <font color=red>  <u>au mai</u>  </font> ramas <font color=red> %d </font> zile  </font></font>", (365 - newDay2))
show_motd(id,motd,header)
}
// Stock Color chat
stock chat_color(const id, const input[], any:...)
{
new count = 1, Jucatori[32]
static msg[191]
vformat(msg, 190, input, 3)

replace_all(msg, 190, "!g", "^4") // Culoarea Verde
replace_all(msg, 190, "!n", "^1") // Culoarea Normala a Chat-ului (galben)
replace_all(msg, 190, "!t", "^3") // Culoarea Echipei : CT = Albastru | T = Rosu.

if (id) Jucatori[0] = id; else get_players(Jucatori, count, "ch")
{
for (new Y = 0; Y < count; Y++)
{
if (is_user_connected(Jucatori[Y]))
  {
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, Jucatori[Y])
write_byte(Jucatori[Y]);
write_string(msg);
message_end();
}
}
}
}

DarkArms
Founders
Founders

Mesaje : 226
Data de inscriere : 23/09/2016
Varsta : 17
Localizare : Terra

http://lowgamers.forumgratuit.ro

Sus In jos

descarca Re: HELP_INFO Plugins

Mesaj Scris de Dracu la data de Dum Noi 13, 2016 9:32 pm

Good Job!
avatar
Dracu
Moderators
Moderators

Mesaje : 193
Data de inscriere : 11/11/2016

Sus In jos

descarca Re: HELP_INFO Plugins

Mesaj Scris de Tipu la data de Mier Noi 23, 2016 1:27 pm

Good Job!
avatar
Tipu
Administrators
Administrators

Mesaje : 151
Data de inscriere : 22/11/2016

Sus In jos

descarca Re: HELP_INFO Plugins

Mesaj Scris de CelRau la data de Dum Noi 27, 2016 7:56 pm

Good Job!
avatar
CelRau
Registered user
Registered user

Mesaje : 184
Data de inscriere : 26/11/2016

Sus In jos

descarca Re: HELP_INFO Plugins

Mesaj Scris de Continut sponsorizat


Continut sponsorizat


Sus In jos

Sus


 
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum