Page 1 of 1

Cerere Plugins

Posted: 21 Feb 2019, 17:15
by Sp1ke.Yt
Plugin Cerut: Nu stiu cum se numeste cred ca HUD
Descriere (adica ce face el mai exact): Era un plugins cand scriai /contact ti se deschidea un hud cu toate detalile fisierul html il am eu.
Serverul ruleaza (HLDS/ReHLDS): ReHLDS
Versiune AMX Mod X:
Modul Serverului: -


Edit:Am rezolvat nu mai este nevoie.

Re: Cerere Plugins

Posted: 21 Feb 2019, 18:41
by e931ff07
Poftim folosește funcția search bosulica
| Afiseaza codul
#include < amxmodx >

#define PLUGIN "Preturi Motd"
#define VERSION "0.1"
#define AUTHOR "ExtreamCS"

public plugin_init() 
{
	register_plugin(PLUGIN, VERSION, AUTHOR);
	register_clcmd("say /contact","motd");
        register_clcmd("say_team /contact", "motd");
}

public motd(id)
{ 
		show_motd(id,"addons/amxmodx/configs/contact.html");
}
public client_connect(id)
{
       set_task(30.0,"Functie",id)
}
 
public Functie(id)
{
       ColorChat(id,"!v[INFO]: !eScrie in CHAT !v/contact!epentru a afla informatiile despre !vbeneficiile dispuse pe server!")
} 
public client_disconnect(id)
{
      remove_task(id)
}


stock ColorChat( const id, const input[ ], any:... )
{
new count = 1, players[ 32 ]

static msg[ 191 ]
vformat( msg, 190, input, 3 )

replace_all( msg, 190, "!v", "^4" ) //- verde
replace_all( msg, 190, "!g", "^1" ) //- galben
replace_all( msg, 190, "!e", "^3" ) //- echipa
replace_all( msg, 190, "!n", "^0" ) //- normal

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

Re: Cerere Plugins

Posted: 21 Feb 2019, 19:06
by levin
n-are cum să afișeze un html în hud