Un plugin care pune un tag in fata la orice player care intra pe server
Daca are numele : SeTh sa il schimbe in [ C-M ] *SeTh
Tag [ REZOLVAT ]
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 .
Accesează link-ul pentru a putea vedea regulile forumului
Daca doriti sa vi se modifice un plugin, va rugam postati aici .
- Chaos
- Fost moderator
- Posts: 2067
- Joined: 12 Jul 2007, 23:47
- Detinator Steam: Da
- CS Status: Innactive User
- SteamID: dmx_ro
- Reputatie: Fost Mapper eXtreamCS
Fost Scripter eXtreamCS
Fost moderator - Location: Bucuresti
- Has thanked: 7 times
- Been thanked: 61 times
- Contact:
Creez harti de Counter Strike 1.6 / Counter Strike Global Offensive la comanda, pentru contact apasa butonul pe sursa
-
- 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
Code: Select all
#include <amxmodx>
#define PLUGIN "TAG NAME"
#define VERSION "1.0"
#define AUTHOR "P.Of.Pw"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_putinserver(id)
{
static name[32],new_name[32]
if(containi(name,"[ C-M ] *") !=-1)
return
formatex(new_name,31,"[ C-M ] *%s", name)
set_user_info(id,"name",new_name)
}
public client_infochanged(id)
{
set_task(3.0, "client_putinserver", id)
}
- Chaos
- Fost moderator
- Posts: 2067
- Joined: 12 Jul 2007, 23:47
- Detinator Steam: Da
- CS Status: Innactive User
- SteamID: dmx_ro
- Reputatie: Fost Mapper eXtreamCS
Fost Scripter eXtreamCS
Fost moderator - Location: Bucuresti
- Has thanked: 7 times
- Been thanked: 61 times
- Contact:
[ C-M ] * connected
(3)[ C-M ] * connected
[ C-M ] * is joining the Counter-Terrorist force
Scoring will not start until both teams have players
[ C-M ] * dropped
[ C-M ] * has left the game
Scoring will not start until both teams have players
(3)[ C-M ] * is joining the Counter-Terrorist force
Scoring will not start until both teams have players
(3)[ C-M ] * dropped
(3)[ C-M ] * has left the game
Scoring will not start until both teams have players
* Privilegii cordate
[ C-M ] * connected
[ C-M ] * is joining the Counter-Terrorist force
Error: server failed to transmit
toti au numele cu cm dar ne da afara
(3)[ C-M ] * connected
[ C-M ] * is joining the Counter-Terrorist force
Scoring will not start until both teams have players
[ C-M ] * dropped
[ C-M ] * has left the game
Scoring will not start until both teams have players
(3)[ C-M ] * is joining the Counter-Terrorist force
Scoring will not start until both teams have players
(3)[ C-M ] * dropped
(3)[ C-M ] * has left the game
Scoring will not start until both teams have players
* Privilegii cordate
[ C-M ] * connected
[ C-M ] * is joining the Counter-Terrorist force
Error: server failed to transmit
toti au numele cu cm dar ne da afara
Creez harti de Counter Strike 1.6 / Counter Strike Global Offensive la comanda, pentru contact apasa butonul pe sursa
-
- 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
->
Code: Select all
#include <amxmodx>
#define PLUGIN "TAG NAME"
#define VERSION "1.0"
#define AUTHOR "P.Of.Pw"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_putinserver(id)
{
static name[32],new_name[32]
get_user_name(id,name,31)
if(containi(name,"[ C-M ] *") !=-1)
return PLUGIN_CONTINUE
formatex(new_name,31,"[ C-M ] *%s", name)
set_user_info(id,"name",new_name)
return PLUGIN_CONTINUE
}
public client_infochanged(id)
{
set_task(3.0, "client_putinserver", id)
}
- Chaos
- Fost moderator
- Posts: 2067
- Joined: 12 Jul 2007, 23:47
- Detinator Steam: Da
- CS Status: Innactive User
- SteamID: dmx_ro
- Reputatie: Fost Mapper eXtreamCS
Fost Scripter eXtreamCS
Fost moderator - Location: Bucuresti
- Has thanked: 7 times
- Been thanked: 61 times
- Contact:
Acu merge
Dar are o eroare cand intru pe server se incarca mai greu bara iar dupa ce am intrat nici 1 minut nu stau si se blocheaza mapa si se schimba pe alta [ cai pe host sv ]
Dar are o eroare cand intru pe server se incarca mai greu bara iar dupa ce am intrat nici 1 minut nu stau si se blocheaza mapa si se schimba pe alta [ cai pe host sv ]
Creez harti de Counter Strike 1.6 / Counter Strike Global Offensive la comanda, pentru contact apasa butonul pe sursa
-
- Membru, skill +1
- Posts: 203
- Joined: 12 Feb 2008, 16:09
- Detinator Steam: Da
- Detinator server CS: Cs2.state3.Ro 32/32
vezi daca zice in logs vre-o eroare si posteaz-o aici . Ca si pe mine ma intereseaza plugin-ul asta si am hosting de unde ai si tu :D>-
- aNNakin
- Fost administrator
- Posts: 11919
- Joined: 17 Dec 2007, 21:42
- Detinator Steam: Da
- CS Status: a iubi - necesar si suficient
- Detinator server CS: romania.cs16.ro
- SteamID: anakin_cstrike16
- Reputatie: Membru Club eXtreamCS
Fost Contribuitor
Fost Scripter eXtreamCS
Fost Lider Echipa eXtreamCS
Fost Administrator - Location: di.fm
- Has thanked: 230 times
- Been thanked: 787 times
- Contact:
Asta pentru ca 'infochange' nu se refera doar la schimbarea numelui, ci si la alte informatii despre player; iar cum a facut alin, se schimba informatii despre platey deci seteaza mai multe task-uri, si se ajunge la ce ai zis tu.ChAoS wrote:Acu merge
Dar are o eroare cand intru pe server se incarca mai greu bara iar dupa ce am intrat nici 1 minut nu stau si se blocheaza mapa si se schimba pe alta [ cai pe host sv ]
Code: Select all
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "anakin_cstrike"
public plugin_init()
register_plugin(PLUGIN, VERSION, AUTHOR)
public client_putinserver(id)
set_task(3.0,"change",id);
public change(id)
{
if(!is_user_connected(id))
return 0;
new name[32], buffer[32];
get_user_name(id,name,31);
if(containi(name,"[ C-M ]") != -1)
return 0;
formatex(buffer,sizeof buffer - 1, "[ C-M ] *%s", name);
client_cmd(id, "name ^"%s^"", buffer);
return 1;
}
public client_infochanged( id )
{
new newname[ 32 ], oldname[ 32 ], buffer[32];
get_user_info(id, "name", newname, 31 );
get_user_name(id, oldname, 31 );
if(equali( newname, oldname ) )
return PLUGIN_CONTINUE;
if(containi(newname,"[ C-M ]") != -1)
return PLUGIN_CONTINUE;
formatex(buffer,sizeof buffer - 1, "[ C-M ] *%s", newname);
client_cmd(id, "name ^"%s^"", buffer);
return PLUGIN_CONTINUE;
}
- Chaos
- Fost moderator
- Posts: 2067
- Joined: 12 Jul 2007, 23:47
- Detinator Steam: Da
- CS Status: Innactive User
- SteamID: dmx_ro
- Reputatie: Fost Mapper eXtreamCS
Fost Scripter eXtreamCS
Fost moderator - Location: Bucuresti
- Has thanked: 7 times
- Been thanked: 61 times
- Contact:
Da acu merge perfect :)
Poti face ca la admini sa nu puna? [ la cei care au acces : ADMIN_RESERVATION ]
Poti face ca la admini sa nu puna? [ la cei care au acces : ADMIN_RESERVATION ]
Creez harti de Counter Strike 1.6 / Counter Strike Global Offensive la comanda, pentru contact apasa butonul pe sursa
- aNNakin
- Fost administrator
- Posts: 11919
- Joined: 17 Dec 2007, 21:42
- Detinator Steam: Da
- CS Status: a iubi - necesar si suficient
- Detinator server CS: romania.cs16.ro
- SteamID: anakin_cstrike16
- Reputatie: Membru Club eXtreamCS
Fost Contribuitor
Fost Scripter eXtreamCS
Fost Lider Echipa eXtreamCS
Fost Administrator - Location: di.fm
- Has thanked: 230 times
- Been thanked: 787 times
- Contact:
Code: Select all
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "anakin_cstrike"
public plugin_init()
register_plugin(PLUGIN, VERSION, AUTHOR)
public client_putinserver(id)
{
if(get_user_flags(id) & ADMIN_RESERVATION)
return 0;
set_task(3.0,"change",id);
return 0;
}
public change(id)
{
if(!is_user_connected(id))
return 0;
new name[32], buffer[32];
get_user_name(id,name,31);
if(containi(name,"[ C-M ]") != -1)
return 0;
formatex(buffer,sizeof buffer - 1, "[ C-M ] *%s", name);
client_cmd(id, "name ^"%s^"", buffer);
return 1;
}
public client_infochanged( id )
{
if(get_user_flags(id) & ADMIN_RESERVATION)
return PLUGIN_CONTINUE;
new newname[ 32 ], oldname[ 32 ], buffer[32];
get_user_info(id, "name", newname, 31 );
get_user_name(id, oldname, 31 );
if(equali( newname, oldname ) )
return PLUGIN_CONTINUE;
if(containi(newname,"[ C-M ]") != -1)
return PLUGIN_CONTINUE;
formatex(buffer,sizeof buffer - 1, "[ C-M ] *%s", newname);
client_cmd(id, "name ^"%s^"", buffer);
return PLUGIN_CONTINUE;
}
-
- Membru, skill +1
- Posts: 296
- 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
Eu am bagat plugini asta pe server si nu apare ce nume am pus eu si pe urma sa apara numele playerului ! adica vreau sa spun ca l-am pus pe un redirect ca sa imi dau seama ca acel player se conecteaza dupa redirect :D ! De ce nu merge la mine :-/anakin_cstrike wrote:Asta pentru ca 'infochange' nu se refera doar la schimbarea numelui, ci si la alte informatii despre player; iar cum a facut alin, se schimba informatii despre platey deci seteaza mai multe task-uri, si se ajunge la ce ai zis tu.ChAoS wrote:Acu merge
Dar are o eroare cand intru pe server se incarca mai greu bara iar dupa ce am intrat nici 1 minut nu stau si se blocheaza mapa si se schimba pe alta [ cai pe host sv ]
Code: Select all
#include <amxmodx> #include <amxmisc> #define PLUGIN "New Plugin" #define VERSION "1.0" #define AUTHOR "anakin_cstrike" public plugin_init() register_plugin(PLUGIN, VERSION, AUTHOR) public client_putinserver(id) set_task(3.0,"change",id); public change(id) { if(!is_user_connected(id)) return 0; new name[32], buffer[32]; get_user_name(id,name,31); if(containi(name,"[ C-M ]") != -1) return 0; formatex(buffer,sizeof buffer - 1, "[ C-M ] *%s", name); client_cmd(id, "name ^"%s^"", buffer); return 1; } public client_infochanged( id ) { new newname[ 32 ], oldname[ 32 ], buffer[32]; get_user_info(id, "name", newname, 31 ); get_user_name(id, oldname, 31 ); if(equali( newname, oldname ) ) return PLUGIN_CONTINUE; if(containi(newname,"[ C-M ]") != -1) return PLUGIN_CONTINUE; formatex(buffer,sizeof buffer - 1, "[ C-M ] *%s", newname); client_cmd(id, "name ^"%s^"", buffer); return PLUGIN_CONTINUE; }
- Shurubel
- Membru, skill +2
- Posts: 963
- Joined: 07 Sep 2008, 02:04
- Detinator Steam: Da
- SteamID: virgildeva
- Location: Deva
- Has thanked: 14 times
- Been thanked: 21 times
As vrea sa modificati astfel incat daca isi schimba tagul [B-Zone] sa il puna la loc inapoi. multumesc
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "anakin_cstrike"
public plugin_init()
register_plugin(PLUGIN, VERSION, AUTHOR)
public client_putinserver(id)
set_task(3.0,"change",id);
public change(id)
{
if(!is_user_connected(id))
return 0;
new name[32], buffer[32];
get_user_name(id,name,31);
if(containi(name,"[B-Zone]") != -1)
return 0;
formatex(buffer,sizeof buffer - 1, "[B-Zone] %s", name);
client_cmd(id, "name ^"%s^"", buffer);
return 1;
}
public client_infochanged( id )
{
new newname[ 32 ], oldname[ 32 ], buffer[32];
get_user_info(id, "name", newname, 31 );
get_user_name(id, oldname, 31 );
if(equali( newname, oldname ) )
return PLUGIN_CONTINUE;
if(containi(newname,"[B-Zone]") != -1)
return PLUGIN_CONTINUE;
formatex(buffer,sizeof buffer - 1, "%s", newname);
client_cmd(id, "name ^"%s^"", buffer);
return PLUGIN_CONTINUE;
}