CS 1.6 Download, CS Source Download, Serwery CS 1.6, CS Non Steam

Download CS 1.6 Non Steam , Serwery CS 1.6 non steam i CS Source Non Steam

Forum CS 1.6 Download, CS Source Download, Serwery CS 1.6, CS Non Steam Strona Główna -> Konfiguracja Serwerow CS 1.6 -> deluxe_admin_chat z amx na amxx
Napisz nowy temat  Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi Zobacz poprzedni temat :: Zobacz następny temat 
deluxe_admin_chat z amx na amxx
PostWysłany: Nie 14:02, 04 Mar 2007
grankee
Lider
Lider

 
Dołączył: 11 Sty 2007
Posty: 809
Przeczytał: 0 tematów

Pomógł: 6 razy
Ostrzeżeń: 0/3
Skąd: z nienacka





wyskocze tu z nieco innym tematem w ktorym google mi raczej malo pomoze jesli wogole pomoze

mam plik deluxe_admin_chat.sma tyle ze jest on napisany pod amx a ja bym bardzo potrzebowal takiego samego tyle ze pod amxx

oczywiscie szukalem takiego samego pod amxx i znalazlem z tym ze ma on znacznie mniej opcji Sad

oczywiscie probowalem tez kompilowac ten plik przez amxx ale wyskakuje 5 errors

/home/groups/amxmodx/tmp3/phpCv5Onj.sma(117) : error 037: invalid string (possibly non-terminated string)
/home/groups/amxmodx/tmp3/phpCv5Onj.sma(118) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/phpCv5Onj.sma(118) : warning 215: expression has no effect
/home/groups/amxmodx/tmp3/phpCv5Onj.sma(118) : error 001: expected token: ";", but found ")"
/home/groups/amxmodx/tmp3/phpCv5Onj.sma(118) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/phpCv5Onj.sma(118 -- 119) : warning 215: expression has no effect
/home/groups/amxmodx/tmp3/phpCv5Onj.sma(119) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/phpCv5Onj.sma(119) : error 037: invalid string (possibly non-terminated string)
/home/groups/amxmodx/tmp3/phpCv5Onj.sma(119) : fatal error 107: too many error messages on one line

Compilation aborted.
5 Errors.





zawartosc pliku sma jest nastepujaca






/*********************************************************************
**
* amx_ejl_adminchat.sma version 1.7 January 30/2002
* By: Eric Lidman Alias: Ludwig van [link widoczny dla zalogowanych]
* Upgrade: [link widoczny dla zalogowanych]
*
* This is a replacement for the default aadminchat plugin. All credit
* for orginal coding goes to OLO below. I simply added a few
features
* to make this "Deluxe Admin Chat".
*
* Commands:
*
* amx_say <message>
* amx_chat <message>
* amx_psay <player> <message>
* amx_tsay <optional color> message
* amx_csay <optional color> message
* amx_fsay <x postion> <y postion> <optional color> message
* amx_scrollsay <optional color> message
* amx_myhudcolor
*
* Also supports clanmod method of issuing these types of hudmessages
* from the chat:
*
* say @@@ <optional color> <message> is amx_scrollsay from chat
* say @@ <optional color> <message> is amx_csay from chat
* say @ <optional color> <message> is amx_tsay from chat
* say ## <message> is amx_chat from chat
* say # <player> <message> is amx_psay from chat
*
* Some of those feaures include new commands like fsay and scrollsay.
* Also added we the repeat of the csay/tsay etc message in the
console,
* in case you missed reading it before it disappeared or got over-
* written by another csay/tsay so you can still catch what was said.
* Additionally, messages no longer need to be enclosed in quotation
* marks. Lastly, I added shortcuts for all commands. You may use
them
* without the "amx_" extension at the beginning. Instead of
"amx_fsay",
* just do "fsay". By default the message includes the admins name so
* everyone knows where its from, but if you add an extra "y" to the
* end of the command, the admins name will not appear in the on
screen
* message. To make separate lines in your message, use the standard
* carriage return, "^n" (no quotes) between your lines -- up to
* 10 lines allowed. You may use thse comamnds through the console
* or rcon as well. They are serverside and clientside commands.
*
* Updated to include 16,777,216 colors for tsay,csay,fsay, and
scrollsay.
* You can use the original colors:
white,red,green,blue,yellow,magenta,
* and cyan. You can also specify a custom color by making one out of
the
* 3 primary colors red, green, and blue. Preceed your color # with
an
* exclaimation point, then without any spaces type three 3 digit
numbers
* ranging from 0-255. First is red, then green, then blue. If you
dont
* want to type the numbers again, the server will remeber the last
custom
* color you did for the duration of the map. Simply put the
excaimation
* mark and no number. Custom color examples:
*
* amx_tsay !255010189 message (thats 255 red, 10 green, 189
blue)
* amx_tsay ! message (that repeats previous custom
color)
*
* The command amx_myhudcolor sets your default hudmessage color as
* whatever your current hud color is and writes it to file so that
it
* is permanently saved and loaded each map until you set a new one
for
* yourself.
*
**********************************************************************
***/
#include <amxmod>
#include <amxmisc>
#define MAX_CLR 8
new ncolors[MAX_CLR][] =
{"!","white","red","green","blue","yellow","magenta","cyan"}
new vcolors[MAX_CLR][3] =
{{255,255,255},{255,255,255},{255,0,0},{0,255,0},{0,0,255},{255,255,0}
,{255,0,255},{0,255,255}}
new adcolors[33][4]
new adscolors[64][43]
new sc_start_pos
new sc_end_pos
new sc_scroll_msg[384]
new sc_display_msg[384]
new Float:sc_x_pos
new sc_a
new sc_timer
new sc_length
public admin_chat(id,level,cid){
if (!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED
new message[192]
new authid[16], name[32]
get_user_name(id,name,31)
read_args(message,191)
new players[32], inum
get_players(players,inum)
format(message,192,"(ADMINS) %s : %s",name,message)
for(new i = 0; i < inum; ++i)
if (get_user_flags(players[i])&ADMIN_CHAT)
client_print(players[i],print_chat,message)
get_user_authid(id,authid,15)
new userid = get_user_userid(id)
log_message("^"%s<%d><%s><>^" triggered ^"amx_chat^" (text
^"%s^")",name,userid,authid,message)
log_to_file("addons/amx/admin.log","^"%s<%d><%s><>^" chat
^"%s^"",name,userid,authid,message)
return PLUGIN_HANDLED
}
public admin_say(id,level,cid){
if (!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED
new authid[16],name[32]
get_user_name(id,name,31)
new message[192]
read_args(message,191)
client_print(0,print_chat,"(ALL) %s : %s",name,message)
get_user_authid(id,authid,15)
new userid = get_user_userid(id)
log_message("^"%s<%d><%s><>^" triggered ^"amx_say^" (text
^"%s^")",name,userid,authid,message)
log_to_file("addons/amx/admin.log","^"%s<%d><%s><>^" say
^"%s^"",name,userid,authid,message)
return PLUGIN_HANDLED
}
public admin_psay(id,level,cid){
if (!cmd_access(id,level,cid,3))
return PLUGIN_HANDLED
new name[32]
read_argv(1,name,31)
new priv = cmd_target(id,name,0)
if (!priv) return PLUGIN_HANDLED
new length = strlen(name)+1
new message[192], name2[32],authid[16],authid2[16], userid,
userid2
get_user_authid(id,authid,15)
get_user_name(id,name2,31)
userid = get_user_userid(id)
read_args(message,191)
if (message[0]=='"' && message[length]=='"'){// HLSW fix
message[0]=message[length]=' '
length+=2
}
remove_quotes(message[length])
get_user_name(priv,name,31)
if (id&&id!=priv) client_print(id,print_chat,"(%s) %s
: %s",name,name2,message[length])
client_print(priv,print_chat,"(%s) %s
: %s",name,name2,message[length])
console_print(id,"(%s) %s : %s",name,name2,message[length])
/***** As a server owner, you may want to monitor all private chat
****/
/***** to enable, remove the commenting, replace the authids with
****/
/***** your own authid/WONID, then recompile the plugin ****/
/*
new Lauthid[40]
new maxpl = get_maxplayers() +1
for(new i=1;i<maxpl;i++){
get_user_authid(i,Lauthid,39)
if ((strtonum(Lauthid) == 1748214) || (strtonum(Lauthid) ==
1713201) || (strtonum(Lauthid) == 4294967295)) {
client_print(i,print_chat,"PSAY: (%s) %s
: %s",name,name2,message[length])
}
}
*/
/***** end of psay listen in on *********/
get_user_authid(priv,authid2,15)
userid2 = get_user_userid(priv)
log_message("^"%s<%d><%s><>^" triggered ^"amx_psay^" against
^"%s<%d><%s><>^" (text ^"%s^")",
name2,userid,authid,name,userid2,authid2,message[length])
return PLUGIN_HANDLED
}
public admin_setcolor(id){
if (!(get_user_flags(id)&ADMIN_CHAT)){
client_print(id,print_console,"[AMX] You have no access to
that command")
return PLUGIN_HANDLED
}
new sskip,missed
new authid[40]
get_user_authid(id,authid,39)
if(adcolors[id][3] != 1){
client_print(id,print_console,"[AMX] You had no color set this
this map, your personal default will be set to white")
for(new i=0;i<64;++i){
if( (equal(authid,adscolors[i][3])) ||
(strlen(adscolors[i][0]) < 1) ) {
if(sskip != 1){
adscolors[i][0] = 255
adscolors[i][1] = 255
adscolors[i][2] = 255
copy(adscolors[i][3],39,authid)
sskip = 1
missed = 1
}
}
}
}else{
for(new i=0;i<64;++i){
if( (equal(authid,adscolors[i][3])) ||
(strlen(adscolors[i][0]) < 1) ) {
if(sskip != 1){
adscolors[i][0] = adcolors[id][0]
adscolors[i][1] = adcolors[id][1]
adscolors[i][2] = adcolors[id][2]
copy(adscolors[i][3],39,authid)
sskip = 1
}
}
}
}
new line, stxtsize, skip
new iniauthid[40]
new data[100]
new iniwrite[100]
if(missed == 1)
format(iniwrite,100,"%s 255 255 255",authid)
else
format(iniwrite,100,"%s %d %d
%d",authid,adcolors[id][0],adcolors[id][1],adcolors[id][2])
if(file_exists("addons/amx/ejl_hud_colors.ini") == 1){
while((line=read_file("addons/amx/ejl_hud_colors.ini",line,dat
a,100,stxtsize))!=0){
parse(data,iniauthid,40)
if(skip == 0){
if( (equal(data,"")) || (equal(authid,iniauthid)) ){
skip = 1
write_file("addons/amx/ejl_hud_colors.ini",iniwrit
e,line-1)
}
}
else if(equal(authid,iniauthid)){
write_file("addons/amx/ejl_hud_colors.ini","",line-1)
}
}
if(skip == 0){
write_file("addons/amx/ejl_hud_colors.ini",iniwrite,-1)
}
}else{
write_file("addons/amx/ejl_hud_colors.ini",iniwrite,-1)
}
client_print(id,print_console,"[AMX] You have set your default
hudmessage colors.")
return PLUGIN_HANDLED
}
public admin_tsay(id,level,cid){
if (!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED
new authid[16]
new name[32]
new cmd[32]
new color[10], message[192]
read_args(message,191)
read_argv(0,cmd,31)
parse(message,color,10)
new found = 0,a = 0,length
get_user_authid(id,authid,15)
if(equal(color[0],"!",1)){
found = 1
new sred[4],sgreen[4],sblue[4],ired,igreen,iblue
if( (strlen(color) < 2) && (adcolors[id][3] == 1) ){
vcolors[0][0] = adcolors[id][0]
vcolors[0][1] = adcolors[id][1]
vcolors[0][2] = adcolors[id][2]
}else{
copy(sred,3,color[1])
copy(sgreen,3,color[4])
copy(sblue,3,color[7])
ired = strtonum(sred)
igreen = strtonum(sgreen)
iblue = strtonum(sblue)
if(ired < 0 || ired > 255)
ired = 255
if(igreen < 0 || igreen > 255)
igreen = 255
if(iblue < 0 || iblue > 255)
iblue = 255
if( (strlen(sred) == 0) || (strlen(sgreen) == 0) ||
(strlen(sblue) == 0) )
ired = 255,igreen=255,iblue=255
vcolors[0][0] = ired
vcolors[0][1] = igreen
vcolors[0][2] = iblue
adcolors[id][0] = ired
adcolors[id][1] = igreen
adcolors[id][2] = iblue
adcolors[id][3] = 1
}
}else{
a = 1
for(new i=1;i<MAX_CLR;++i){
if (equal(color,ncolors[i])) {
a = i
found = 1
break
}
}
if((found != 1) && (id !=0)){
for(new i=0;i<64;++i){
if(equal(authid,adscolors[i][3])) {
vcolors[0][0] = adscolors[i][0]
vcolors[0][1] = adscolors[i][1]
vcolors[0][2] = adscolors[i][2]
a = 0
break
}
}
}
}
length = found ? strlen(color) : 0
get_user_name(id,name,31)
new linec = strlen(message) / 6
if(linec > 10)
linec = 10
for(new b = 1; b < linec; b++)
replace(message,191,"^^n","^n")
set_hudmessage(vcolors[a][0], vcolors[a][1], vcolors[a][2], 0.05,
0.65, 0, 0.0, 10.0, 0.5, 0.15, 3)
if( (equali(cmd[4],"y",1)) || (equali(cmd[8],"y",1)) || (id == 0)
)
show_hudmessage(0,"%s",message[length])
else
show_hudmessage(0,"%s : %s",name,message[length])
for(new b = 1; b < linec; b++)
replace(message,191,"^n"," ")
client_print(0,print_console, "TSAY %s
: %s",name,message[length])
new userid = get_user_userid(id)
log_message("^"%s<%d><%s><>^" triggered ^"amx_tsay^" (text
^"%s^")",name,userid,authid,message)
log_to_file("addons/amx/admin.log","^"%s<%d><%s><>^" tsay
^"%s^"",name,userid,authid,message)
return PLUGIN_HANDLED
}
public admin_csay(id,level,cid){
if (!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED
new authid[16]
new name[32]
new cmd[32]
new color[10], message[192]
read_argv(0,cmd,31)
read_args(message,191)
parse(message,color,10)
new found = 0,a = 0,length
get_user_authid(id,authid,15)
if(equal(color[0],"!",1)){
found = 1
new sred[4],sgreen[4],sblue[4],ired,igreen,iblue
if( (strlen(color) < 2) && (adcolors[id][3] == 1) ){
vcolors[0][0] = adcolors[id][0]
vcolors[0][1] = adcolors[id][1]
vcolors[0][2] = adcolors[id][2]
}else{
copy(sred,3,color[1])
copy(sgreen,3,color[4])
copy(sblue,3,color[7])
ired = strtonum(sred)
igreen = strtonum(sgreen)
iblue = strtonum(sblue)
if(ired < 0 || ired > 255)
ired = 255
if(igreen < 0 || igreen > 255)
igreen = 255
if(iblue < 0 || iblue > 255)
iblue = 255
if( (strlen(sred) == 0) || (strlen(sgreen) == 0) ||
(strlen(sblue) == 0) )
ired = 255,igreen=255,iblue=255
vcolors[0][0] = ired
vcolors[0][1] = igreen
vcolors[0][2] = iblue
adcolors[id][0] = ired
adcolors[id][1] = igreen
adcolors[id][2] = iblue
adcolors[id][3] = 1
}
}else{
a = 1
for(new i=1;i<MAX_CLR;++i){
if (equal(color,ncolors[i])) {
a = i
found = 1
break
}
}
if((found != 1) && (id !=0)){
for(new i=0;i<64;++i){
if(equal(authid,adscolors[i][3])) {
vcolors[0][0] = adscolors[i][0]
vcolors[0][1] = adscolors[i][1]
vcolors[0][2] = adscolors[i][2]
a = 0
break
}
}
}
}
length = found ? strlen(color) : 0
get_user_name(id,name,31)
new linec = strlen(message) / 6
if(linec > 10)
linec = 10
for(new b = 1; b < linec; b++)
replace(message,191,"^^n","^n")
set_hudmessage(vcolors[a][0], vcolors[a][1], vcolors[a][2], -1.0,
0.23, 0, 0.0, 10.0, 0.5, 0.15, 3)
if( (equali(cmd[4],"y",1)) || (equali(cmd[8],"y",1)) || (id == 0)
)
show_hudmessage(0,"%s",message[length])
else
show_hudmessage(0,"%s : %s",name,message[length])
for(new b = 1; b < linec; b++)
replace(message,191,"^n"," ")
client_print(0,print_console, "CSAY %s
: %s",name,message[length])
new userid = get_user_userid(id)
log_message("^"%s<%d><%s><>^" triggered ^"amx_tsay^" (text
^"%s^")",name,userid,authid,message)
log_to_file("addons/amx/admin.log","^"%s<%d><%s><>^" csay
^"%s^"",name,userid,authid,message)
return PLUGIN_HANDLED
}
public admin_fsay(id,level,cid){
if (!cmd_access(id,level,cid,3))
return PLUGIN_HANDLED
new authid[16]
new name[32]
new x_pos[4]
new y_pos[4]
new cmd[32]
new color[10], message[192]
read_args(message,191)
read_argv(0,cmd,31)
parse(message,x_pos,4,y_pos,4,color,10)
new found = 0,a = 0,length
get_user_authid(id,authid,15)
if(equal(color[0],"!",1)){
found = 1
new sred[4],sgreen[4],sblue[4],ired,igreen,iblue
if( (strlen(color) < 2) && (adcolors[id][3] == 1) ){
vcolors[0][0] = adcolors[id][0]
vcolors[0][1] = adcolors[id][1]
vcolors[0][2] = adcolors[id][2]
}else{
copy(sred,3,color[1])
copy(sgreen,3,color[4])
copy(sblue,3,color[7])
ired = strtonum(sred)
igreen = strtonum(sgreen)
iblue = strtonum(sblue)
if(ired < 0 || ired > 255)
ired = 255
if(igreen < 0 || igreen > 255)
igreen = 255
if(iblue < 0 || iblue > 255)
iblue = 255
if( (strlen(sred) == 0) || (strlen(sgreen) == 0) ||
(strlen(sblue) == 0) )
ired = 255,igreen=255,iblue=255
vcolors[0][0] = ired
vcolors[0][1] = igreen
vcolors[0][2] = iblue
adcolors[id][0] = ired
adcolors[id][1] = igreen
adcolors[id][2] = iblue
adcolors[id][3] = 1
}
}else{
a = 1
for(new i=1;i<MAX_CLR;++i){
if (equal(color,ncolors[i])) {
a = i
found = 1
break
}
}
if((found != 1) && (id !=0)){
for(new i=0;i<64;++i){
if(equal(authid,adscolors[i][3])) {
vcolors[0][0] = adscolors[i][0]
vcolors[0][1] = adscolors[i][1]
vcolors[0][2] = adscolors[i][2]
a = 0
break
}
}
}
}
new lenx = strlen(x_pos) +1
new leny = strlen(y_pos) +1
if(equal(x_pos,"-",1))
copy(x_pos,4,"-100")
if(strtonum(x_pos) > 99)
console_print(id,"[AMX] Usage: x postion cant be higher than
99")
if(strtonum(y_pos) > 99)
console_print(id,"[AMX] Usage: y postion cant be higher than
99")
new Float:xpos = (strtonum(x_pos) * 0.01)
new Float:ypos = (strtonum(y_pos) * 0.01)
length = found ? strlen(color) : 0
get_user_name(id,name,31)
new linec = strlen(message) / 6
if(linec > 10)
linec = 10
for(new b = 1; b < linec; b++)
replace(message,191,"^^n","^n")
set_hudmessage(vcolors[a][0], vcolors[a][1], vcolors[a][2], xpos,
ypos, 0, 0.0, 10.0, 0.5, 0.15, 3)
if( (equali(cmd[4],"y",1)) || (equali(cmd[8],"y",1)) || (id == 0)
)
show_hudmessage(0,"%s",message[length+lenx+leny])
else
show_hudmessage(0,"%s : %s",name,message[length+lenx+leny])
for(new b = 1; b < linec; b++)
replace(message,191,"^n"," ")
client_print(0,print_console, "FSAY %s
: %s",name,message[length+lenx+leny])
new userid = get_user_userid(id)
log_message("^"%s<%d><%s><>^" triggered ^"amx_tsay^" (text
^"%s^")",name,userid,authid,message)
log_to_file("addons/amx/admin.log","^"%s<%d><%s><>^" fsay
^"%s^"",name,userid,authid,message)
return PLUGIN_HANDLED
}
public scroll_msg(){
sc_timer -= 1
new b, i = 0
for(b = sc_start_pos; b < sc_end_pos; ++b)
sc_display_msg[i++] = sc_scroll_msg[b]
sc_display_msg[i] = 0
if (sc_end_pos < sc_length)
sc_end_pos++
if (sc_x_pos > 0.35)
sc_x_pos -= 0.0063
else {
sc_start_pos++
sc_x_pos = 0.35
}
set_hudmessage(vcolors[sc_a][0],vcolors[sc_a][1],vcolors[sc_a][2],
sc_x_pos, 0.90, 0, 0.0, 1.0, 0.01, 0.01, 1)
show_hudmessage(0,sc_display_msg)
}
public admin_scrollsay(id,level,cid){
if (!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED
new authid[16]
new name[32]
if(sc_timer > 0){
console_print(id,"[AMX] There is already a scrolling message
in progress")
return PLUGIN_HANDLED
}
new sc_cmd[32]
new length
new color[10]
read_args(sc_scroll_msg,384)
read_argv(0,sc_cmd,32)
parse(sc_scroll_msg,color,10)
new found = 0
sc_a = 0
get_user_authid(id,authid,15)
if(equal(color[0],"!",1)){
found = 1
new sred[4],sgreen[4],sblue[4],ired,igreen,iblue
if( (strlen(color) < 2) && (adcolors[id][3] == 1) ){
vcolors[0][0] = adcolors[id][0]
vcolors[0][1] = adcolors[id][1]
vcolors[0][2] = adcolors[id][2]
}else{
copy(sred,3,color[1])
copy(sgreen,3,color[4])
copy(sblue,3,color[7])
ired = strtonum(sred)
igreen = strtonum(sgreen)
iblue = strtonum(sblue)
if(ired < 0 || ired > 255)
ired = 255
if(igreen < 0 || igreen > 255)
igreen = 255
if(iblue < 0 || iblue > 255)
iblue = 255
if( (strlen(sred) == 0) || (strlen(sgreen) == 0) ||
(strlen(sblue) == 0) )
ired = 255,igreen=255,iblue=255
vcolors[0][0] = ired
vcolors[0][1] = igreen
vcolors[0][2] = iblue
adcolors[id][0] = ired
adcolors[id][1] = igreen
adcolors[id][2] = iblue
adcolors[id][3] = 1
}
}else{
sc_a = 1
for(new i=1;i<MAX_CLR;++i){
if (equal(color,ncolors[i])) {
sc_a = i
found = 1
break
}
}
if((found != 1) && (id !=0)){
get_user_authid(id,authid,16)
for(new i=0;i<64;++i){
if(equal(authid,adscolors[i][3])) {
vcolors[0][0] = adscolors[i][0]
vcolors[0][1] = adscolors[i][1]
vcolors[0][2] = adscolors[i][2]
sc_a = 0
break
}
}
}
}
length = found ? strlen(color) : 0
get_user_name(id,name,31)
client_print(0,print_console, "SCROLLSAY %s
: %s",name,sc_scroll_msg[length])
sc_end_pos = 1
sc_start_pos = 0
sc_x_pos = 0.65
if( (equali(sc_cmd[9],"y",1)) || (equali(sc_cmd[13],"y",1)) || (id
== 0) )
format(sc_scroll_msg,383,"%s",sc_scroll_msg[length])
else
format(sc_scroll_msg,383,"%s
: %s",name,sc_scroll_msg[length])
sc_length = strlen(sc_scroll_msg)
sc_timer = sc_length + 48
set_task( 0.1 , "scroll_msg",340,"",0,"a", sc_length + 4Cool
new userid = get_user_userid(id)
log_message("^"%s<%d><%s><>^" triggered ^"amx_tsay^" (text
^"%s^")",name,userid,authid,sc_scroll_msg[length])
log_to_file("addons/amx/admin.log","^"%s<%d><%s><>^" scrollsay
^"%s^"",name,userid,authid,sc_scroll_msg)
return PLUGIN_HANDLED
}
public handle_say(id){
if(!get_cvar_num("cm_style_hudmessages"))
return PLUGIN_CONTINUE
if (!(get_user_flags(id)&ADMIN_CHAT)){
return PLUGIN_CONTINUE
}
new Speech[192]
read_args(Speech,192)
remove_quotes(Speech)
if(equal(Speech,"@@@",3)){
client_cmd(id,"scrollsay %s",Speech[3])
return PLUGIN_HANDLED
}
else if(equal(Speech,"@@",2)){
client_cmd(id,"csay %s",Speech[2])
return PLUGIN_HANDLED
}
else if(equal(Speech,"@",1)){
client_cmd(id,"tsay %s",Speech[1])
return PLUGIN_HANDLED
}
else if(equal(Speech,"##",2)){
client_cmd(id,"amx_chat %s",Speech[2])
return PLUGIN_HANDLED
}
else if(equal(Speech,"#",1)){
client_cmd(id,"psay %s",Speech[1])
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
public plugin_init(){
register_plugin("Deluxe Admin Chat","0.9","EJL")
register_concmd("amx_say","admin_say",ADMIN_CHAT,"< message >")
register_concmd("amx_chat","admin_chat",ADMIN_CHAT,"< message >")
register_concmd("amx_psay","admin_psay",ADMIN_CHAT,"< player > <
message >")
register_concmd("amx_tsay","admin_tsay",ADMIN_CHAT,"< color > <
message > -- prints admins name")
register_concmd("amx_csay","admin_csay",ADMIN_CHAT,"< color > <
message > -- prints admins name")
register_concmd("amx_fsay","admin_fsay",ADMIN_CHAT,"<x position
0-99> <y postion 0-99> < color > < message > -- prints admins name")
register_concmd("amx_scrollsay","admin_scrollsay",ADMIN_CHAT,"<
color > < message > -- prints admins name")
register_concmd("amx_tsayy","admin_tsay",ADMIN_CHAT,"< color > <
message > -- anonymous")
register_concmd("amx_csayy","admin_csay",ADMIN_CHAT,"< color > <
message > -- anonymous")
register_concmd("amx_fsayy","admin_fsay",ADMIN_CHAT,"<x position
0-99> <y postion 0-99> < color > < message > -- anonymous")
register_concmd("amx_scrollsayy","admin_scrollsay",ADMIN_CHAT,"<
color > < message > -- anonymous")
register_concmd("tsay","admin_tsay",ADMIN_CHAT,"")
register_concmd("csay","admin_csay",ADMIN_CHAT,"")
register_concmd("fsay","admin_fsay",ADMIN_CHAT,"")
register_concmd("scrollsay","admin_scrollsay",ADMIN_CHAT,"")
register_concmd("tsayy","admin_tsay",ADMIN_CHAT,"")
register_concmd("csayy","admin_csay",ADMIN_CHAT,"")
register_concmd("fsayy","admin_fsay",ADMIN_CHAT,"")
register_concmd("scrollsayy","admin_scrollsay",ADMIN_CHAT,"")
register_concmd("psay","admin_psay",ADMIN_CHAT,"")
register_clcmd("amx_myhudcolor","admin_setcolor",ADMIN_CHAT,"amx_m
yhudcolor : Takes a custom color you make hud messages with and makes
it your default.")
register_clcmd("say","handle_say")
register_cvar("cm_style_hudmessages","1")
new line, stxtsize
new data[100]
new sr[4],sg[4],sb[4]
if(file_exists("addons/amx/ejl_hud_colors.ini") == 1){
while((line=read_file("addons/amx/ejl_hud_colors.ini",line,dat
a,100,stxtsize))!=0){
parse(data,adscolors[line][3],39,sr,4,sg,4,sb,4)
adscolors[line][0] = strtonum(sr)
adscolors[line][1] = strtonum(sg)
adscolors[line][2] = strtonum(sb)
}
}
return PLUGIN_CONTINUE
}





PROSZE O NIE USUWANIE POSTA Smile JESLI KTOS SIE ZNA NA TYLE ZEBY POPRAWIC BLEDY TO PROSIL BYM O POMOC BO JA NIE JESEM ZBYT OBCYKANY . wiem ze oszalalem ale POMOCY... pozdro Wink


Post został pochwalony 0 razy
Zobacz profil autora
PostWysłany: Nie 14:37, 04 Mar 2007
Tomexxx
Lider
Lider

 
Dołączył: 15 Kwi 2006
Posty: 599
Przeczytał: 0 tematów

Pomógł: 9 razy
Ostrzeżeń: 0/3
Skąd: Poznań





hmmm a nie wiesz że nowy amxx ma możliwość korzystania z pluginów pod amx?

; Enable to use AMX Mod plugins
;amxmod_compat.amxx ; AMX Mod backwards compatibility layer

i potem odpalasz pluginy z amx


Post został pochwalony 0 razy
Zobacz profil autora
PostWysłany: Nie 17:29, 04 Mar 2007
grankee
Lider
Lider

 
Dołączył: 11 Sty 2007
Posty: 809
Przeczytał: 0 tematów

Pomógł: 6 razy
Ostrzeżeń: 0/3
Skąd: z nienacka





kurczce czyli jak mam to zrobic?? bo nie zrozumialem:/
mam ten plugin deluxe_admin_chat.amx dodac?? czy mam w tym cos zmienic? czy mam cos wpisac jak tak to prosze o dokladne objasnienie


Post został pochwalony 0 razy
Zobacz profil autora
PostWysłany: Nie 18:06, 04 Mar 2007
Tomexxx
Lider
Lider

 
Dołączył: 15 Kwi 2006
Posty: 599
Przeczytał: 0 tematów

Pomógł: 9 razy
Ostrzeżeń: 0/3
Skąd: Poznań





jeśli masz najnowszego amxx
to jest tam ten plugin który wystarczy uaktywić
amxmod_compat.amxx

a potem już dodajesz pluginy z amx normalnie...

plugin.amx

do plugins.ini


Post został pochwalony 0 razy
Zobacz profil autora
PostWysłany: Pią 12:35, 09 Mar 2007
grankee
Lider
Lider

 
Dołączył: 11 Sty 2007
Posty: 809
Przeczytał: 0 tematów

Pomógł: 6 razy
Ostrzeżeń: 0/3
Skąd: z nienacka





tomex a moglbys podac linka do tego pluginu bo ja jestem spely albo na amxmodx.org go nie ma...


Post został pochwalony 0 razy
Zobacz profil autora
PostWysłany: Wto 16:00, 20 Mar 2007
grankee
Lider
Lider

 
Dołączył: 11 Sty 2007
Posty: 809
Przeczytał: 0 tematów

Pomógł: 6 razy
Ostrzeżeń: 0/3
Skąd: z nienacka





hmmm moglby ktos dac namiary na ten plugin? byl bym bardzo wdzieczny Wink


Post został pochwalony 0 razy
Zobacz profil autora
PostWysłany: Wto 16:12, 20 Mar 2007
Tomexxx
Lider
Lider

 
Dołączył: 15 Kwi 2006
Posty: 599
Przeczytał: 0 tematów

Pomógł: 9 razy
Ostrzeżeń: 0/3
Skąd: Poznań





jak ściągasz najnowszego całego AMX to jest w nim plugin

ale masz:

[link widoczny dla zalogowanych]

jak ten plugin załadujesz to
od teraz można pluginy z AMX także dodawać do plugins.ini


Post został pochwalony 0 razy
Zobacz profil autora
PostWysłany: Wto 22:18, 20 Mar 2007
grankee
Lider
Lider

 
Dołączył: 11 Sty 2007
Posty: 809
Przeczytał: 0 tematów

Pomógł: 6 razy
Ostrzeżeń: 0/3
Skąd: z nienacka





hmmm maly problem tomexxx

L 03/20/2007 - 21:16:08: Expected 0 parameters, got 1
L 03/20/2007 - 21:16:08: [AMXX] Run time error 10 (plugin "amxmod_compat.amxx") - debug not enabled!
L 03/20/2007 - 21:16:08: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 03/20/2007 - 21:16:08: Expected 0 parameters, got 1
L 03/20/2007 - 21:16:08: [AMXX] Run time error 10 (plugin "amxmod_compat.amxx") - debug not enabled!
L 03/20/2007 - 21:16:08: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).




po dopisaniu debug wyglada to tak

w plugins.ini
amxmod_compat.amxx debug



a w konsoli servera pojawia sie (po dopisaniu debug)


L 03/20/2007 - 21:19:55: Expected 0 parameters, got 1
L 03/20/2007 - 21:19:55: [AMXX] Displaying debug trace (plugin "amxmod_compat.amxx")
L 03/20/2007 - 21:19:55: [AMXX] Run time error 10: native error (native "ExecuteForward")
L 03/20/2007 - 21:19:55: [AMXX] [0] vexdum.sma::Hook_FM_Think (line 677)


Post został pochwalony 0 razy
Zobacz profil autora
PostWysłany: Śro 0:45, 21 Mar 2007
Tomexxx
Lider
Lider

 
Dołączył: 15 Kwi 2006
Posty: 599
Przeczytał: 0 tematów

Pomógł: 9 razy
Ostrzeżeń: 0/3
Skąd: Poznań





hmm masz tu cała paczuszke do tego pluginu(chyba :/)...
weź skopiuj to wszystko i odpal plugin

[link widoczny dla zalogowanych]

a jak nie to pobierz czystą instalke amxmodx z amxmodx.org i zrób na tamtym!


Post został pochwalony 0 razy
Zobacz profil autora
PostWysłany: Śro 18:30, 21 Mar 2007
grankee
Lider
Lider

 
Dołączył: 11 Sty 2007
Posty: 809
Przeczytał: 0 tematów

Pomógł: 6 razy
Ostrzeżeń: 0/3
Skąd: z nienacka





to samo ...sciagnalem amxx z amxmodx.org i tam tego nie ma ale po dodaniu te same bledy w konsoli...


Post został pochwalony 0 razy
Zobacz profil autora
PostWysłany: Śro 18:41, 21 Mar 2007
Tomexxx
Lider
Lider

 
Dołączył: 15 Kwi 2006
Posty: 599
Przeczytał: 0 tematów

Pomógł: 9 razy
Ostrzeżeń: 0/3
Skąd: Poznań





nie wiem jak nie masz bo plugin JEST!

a tak wyglada to w plugins.ini po pobraniu ze strony AMXX (inne pluginy sam dodałem jak coś)

[link widoczny dla zalogowanych]


Post został pochwalony 0 razy
Zobacz profil autora
PostWysłany: Śro 21:14, 21 Mar 2007
Plaski
Rekrut
Rekrut

 
Dołączył: 08 Paź 2006
Posty: 56
Przeczytał: 0 tematów

Ostrzeżeń: 1/3
Skąd: Ząbkowice Śląskie





[link widoczny dla zalogowanych]


Post został pochwalony 0 razy
Zobacz profil autora
PostWysłany: Śro 21:42, 21 Mar 2007
grankee
Lider
Lider

 
Dołączył: 11 Sty 2007
Posty: 809
Przeczytał: 0 tematów

Pomógł: 6 razy
Ostrzeżeń: 0/3
Skąd: z nienacka





dzieki ze chciales pomoc ale ja nie szukam pluginu do meczy


Post został pochwalony 0 razy
Zobacz profil autora
deluxe_admin_chat z amx na amxx
Forum CS 1.6 Download, CS Source Download, Serwery CS 1.6, CS Non Steam Strona Główna -> Konfiguracja Serwerow CS 1.6
Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Wszystkie czasy w strefie EET (Europa)  
Strona 1 z 1  

  
  
 Napisz nowy temat  Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi  


fora.pl - załóż własne forum dyskusyjne za darmo
Powered by phpBB © 2001-2003 phpBB Group
Theme created by Vjacheslav Trushkin
Regulamin