Modificari necesare ale pluginurilor
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
-
No_Sadyst#
- Membru, skill +1
- Posts: 294
- Joined: 08 Jul 2008, 05:08
- Detinator Steam: Da
- CS Status: Citesct forumul
- Detinator server CS: Pub.QcK-Zone.COm
- Has thanked: 6 times
- Been thanked: 2 times
17 Feb 2010, 20:11
Salut... am si eu acest plugin simple_redirect si as vrea sa stiu si eu daca se poate ,si daca se poate sa mi-l faceti si mie ca spre exemplu...eu am serverul de 32 sloturi ! vreau ca 2 sloturi sa le pun rezervate pentru admin/sloturi,iar cand serverul ajunge la 30 sloturi sa redirectioneze catre alt server ,
iar daca un admin sau slot intra pe server pe el sa nu il redirectioneze ! ! adica sa il bage pe serveru !
- | Afiseaza codul
/* AMXX Mod Script
*
* Simple Redirection Plugin for AMXX
* Orginal Code by Sonic ([email protected])
* Modified and Made for AMXX by BigBaller
*
* Place following cvars in server.cfg
*
* amx_rd_maxplayers <x> // - begin redirection when more the x ppl connected ( 0 = redirect all players )
* amx_rd_server <ip> // - redirect to this server
* amx_rd_serverport <port> // - redirect server port
* amx_rd_serverpw <password> // - password for the amx_rd_server (if needed)
*
*
* To Disable this plugin set amx_rd_maxppl to 33 or remove from plugins.ini
*/
#include <amxmodx>
public plugin_init() {
register_plugin("Simple Redirect","1.0","BigBaller")
register_cvar("amx_rd_maxplayers","0")
register_cvar("amx_rd_server","")
register_cvar("amx_rd_serverport","")
register_cvar("amx_rd_serverpw","")
}
public client_connect(id){
new rd_maxplayers = get_cvar_num("amx_rd_maxplayers")
new rd_serverport = get_cvar_num("amx_rd_serverport")
new rd_server[64], rd_serverpw[32]
get_cvar_string("amx_rd_server",rd_server,63)
get_cvar_string("amx_rd_serverpw",rd_serverpw,31)
if ( get_playersnum() >= rd_maxplayers) {
if ( !equal(rd_serverpw,"") )
client_cmd(id,"echo ^"[AMXX] Simple Redirection - Set Password to %s^";password %s",rd_serverpw,rd_serverpw)
client_cmd(id,"echo ^"[AMXX] Simple Redirection - Redirecting to %s:%d^";connect %s:%d",rd_server,rd_serverport,rd_server,rd_serverport)
}
return PLUGIN_CONTINUE
}
-
floo22
- Membru, skill +1
- Posts: 300
- Joined: 30 Dec 2008, 23:32
- Detinator Steam: Nu
- CS Status: Pauza ;x :))
- Detinator server CS: cs.goodcs.ro
- Location: gIuRgIu CiTy ;x
- Been thanked: 13 times
-
Contact:
17 Feb 2010, 20:15
- | Afiseaza codul
/* AMXX Mod Script
*
* Simple Redirection Plugin for AMXX
* Orginal Code by Sonic ([email protected])
* Modified and Made for AMXX by BigBaller
*
* Place following cvars in server.cfg
*
* amx_rd_maxplayers <x> // - begin redirection when more the x ppl connected ( 0 = redirect all players )
* amx_rd_server <ip> // - redirect to this server
* amx_rd_serverport <port> // - redirect server port
* amx_rd_serverpw <password> // - password for the amx_rd_server (if needed)
*
*
* To Disable this plugin set amx_rd_maxppl to 33 or remove from plugins.ini
*/
#include <amxmodx>
public plugin_init() {
register_plugin("Simple Redirect","1.0","BigBaller")
register_cvar("amx_rd_maxplayers","30")
register_cvar("amx_rd_server","")
register_cvar("amx_rd_serverport","")
register_cvar("amx_rd_serverpw","")
}
public client_connect(id){
new rd_maxplayers = get_cvar_num("amx_rd_maxplayers")
new rd_serverport = get_cvar_num("amx_rd_serverport")
new rd_server[64], rd_serverpw[32]
get_cvar_string("amx_rd_server",rd_server,63)
get_cvar_string("amx_rd_serverpw",rd_serverpw,31)
if ( get_playersnum() >= rd_maxplayers) {
if ( !equal(rd_serverpw,"") )
client_cmd(id,"echo ^"[AMXX] Simple Redirection - Set Password to %s^";password %s",rd_serverpw,rd_serverpw)
client_cmd(id,"echo ^"[AMXX] Simple Redirection - Redirecting to %s:%d^";connect %s:%d",rd_server,rd_serverport,rd_server,rd_serverport)
}
return PLUGIN_CONTINUE
}
„Viața e o târfă în care am intrat neprotejat.” - El Nino
„Fă-ţi timp să vezi ce vede un orb, fă-ţi timp să auzi ce aude un surd.” - Vescan
Peste tot unde mă duc, beau şi ***, că, beau şi ***. :X
Cât cai ieste într-o chăruţă-nhamaţ sau chum să zâc ... oche? :))
-
No_Sadyst#
- Membru, skill +1
- Posts: 294
- Joined: 08 Jul 2008, 05:08
- Detinator Steam: Da
- CS Status: Citesct forumul
- Detinator server CS: Pub.QcK-Zone.COm
- Has thanked: 6 times
- Been thanked: 2 times
18 Feb 2010, 13:22
La ce ai facut aici,ai bagat ca 2 sloturi sa fie pentru admini,iar cand pe server sunt 30 persoane pe admini sa nu ii redirectioneze , iar pe playeri da ?
-
PoSiTiOn Of PoWeR
- Utilizator banat
- Posts: 2467
- Joined: 28 Oct 2007, 12:18
- Detinator Steam: Nu
- Reputatie: Fost super moderator (suspendare 2 luni)
Fost scripter eXtreamCS
Nick anterior : AlinHD
1.6 / 3
- Has thanked: 4 times
- Been thanked: 116 times
18 Feb 2010, 14:09
Foloseste asta in locul pluginul de redirect
- | Afiseaza codul
#include < amxmodx >
public plugin_init()
{
register_plugin( "New Simple Redirect", "1.0", "P.Of.Pw" )
}
public client_connect( id )
{
set_task( 3.0, "client_connect2", id )
}
public client_connect2( id )
{
if( has_flag( id ) )
return PLUGIN_CONTINUE
if( get_playersnum( 1 ) >= 30 )
{
client_cmd( id, "Connect nume.idle.ro:27015" )
}
return PLUGIN_CONTINUE
}
stock has_flag( id, const flags[ ] = "b" )
{
return ( get_user_flags( id ) & read_flags( flags ) )
}
Modifici cei cu rosu
client_cmd( id, "Connect nume.idle.ro:27015" )
-
No_Sadyst#
- Membru, skill +1
- Posts: 294
- Joined: 08 Jul 2008, 05:08
- Detinator Steam: Da
- CS Status: Citesct forumul
- Detinator server CS: Pub.QcK-Zone.COm
- Has thanked: 6 times
- Been thanked: 2 times
18 Feb 2010, 15:18
pai si acolo unde modific cu rosu... bag numele serverului pe care sa redirectioneze playerii ?
-
PoSiTiOn Of PoWeR
- Utilizator banat
- Posts: 2467
- Joined: 28 Oct 2007, 12:18
- Detinator Steam: Nu
- Reputatie: Fost super moderator (suspendare 2 luni)
Fost scripter eXtreamCS
Nick anterior : AlinHD
1.6 / 3
- Has thanked: 4 times
- Been thanked: 116 times
18 Feb 2010, 16:47
Da, iar :27015 reprezinta portul.
-
No_Sadyst#
- Membru, skill +1
- Posts: 294
- Joined: 08 Jul 2008, 05:08
- Detinator Steam: Da
- CS Status: Citesct forumul
- Detinator server CS: Pub.QcK-Zone.COm
- Has thanked: 6 times
- Been thanked: 2 times
19 Feb 2010, 14:18
Puteti da REZOLVAT :X !
app.. ai inca un multumesc de la mine :X
-
Users browsing this forum: No registered users and 14 guests