Counter-Strike 1.6 Download Forum

Counter-Strike Server RSS Feed atom+xml Counter-Strike Server RSS Feed Counter-Strike Server CsBesTiaL Top 100 BesTiaL Autentificare Inregistrare Profil Mesaje private FAQ Grupuri Counter-Strike
 Servere-le de Counter-Strike CsBesTiaL sunt Pornite
cs bestial
Custom Search
Get our toolbar! Download Counter-Strike 1.6 andoird application
[Tutorial] Cum colorezi o comanda
Du-te la pagina despre counter-strike
 
Creaza un subiect nou   Raspunde la subiect
Mesaj
Blacktouch
Site AdmiN
Site AdmiN
cs

Data Inscrierii: 15/Sep/2013
Mesaje: 1604

Mesaj

2014-09-16    cstrike [Tutorial] Cum colorezi o comanda


Avem plugin-ul acesta

Citat:
#include <amxmodx>
#include <amxmisc>

#define ACCESS ADMIN_SLAY

public plugin_init()
{
register_plugin("Restart","2.0","Alka")
register_clcmd("say /restart","say_restart",ACCESS)
register_clcmd("say_team /restart","say_restart",ACCESS)
}

public say_restart(id)
{
if(!(get_user_flags(id) & ACCESS))
return

server_cmd("sv_restart 1")
client_print(0,print_chat,"[- - Restart Live - -]")
client_print(0,print_chat,"[- - Restart Live - -]")
client_print(0,print_chat,"[- - Restart Live - -]")
client_print(0,print_chat,"[- - Restart Live - -]")
client_print(0,print_chat,"[- - Restart Live - -]")
client_print(0,print_chat,"[- - Restart Live - -]")
client_print(0,print_chat,"[- - Restart Live - -]")

}


Adaugam la sfarsit asta

Citat:
stock chat_color(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[320]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!n", "^1")
replace_all(msg, 190, "!t", "^3")
replace_all(msg, 190, "!t2", "^0")
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()
}
}
}
}


Acum plugin-ul arata asa

Citat:
#include <amxmodx>
#include <amxmisc>

#define ACCESS ADMIN_SLAY

public plugin_init()
{
register_plugin("Restart","2.0","Alka")
register_clcmd("say /restart","say_restart",ACCESS)
register_clcmd("say_team /restart","say_restart",ACCESS)
}

public say_restart(id)
{
if(!(get_user_flags(id) & ACCESS))
return

server_cmd("sv_restart 1")
client_print(0,print_chat,"[- - Restart Live - -]")
client_print(0,print_chat,"[- - Restart Live - -]")
client_print(0,print_chat,"[- - Restart Live - -]")
client_print(0,print_chat,"[- - Restart Live - -]")
client_print(0,print_chat,"[- - Restart Live - -]")
client_print(0,print_chat,"[- - Restart Live - -]")
client_print(0,print_chat,"[- - Restart Live - -]")

}
stock chat_color(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[320]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!n", "^1")
replace_all(msg, 190, "!t", "^3")
replace_all(msg, 190, "!t2", "^0")
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()
}
}
}
}


Inlocuim

Citat:
client_print(0,print_chat,


cu

Citat:
chat_color(0,


iar plugin-ul devine

Citat:
#include <amxmodx>
#include <amxmisc>

#define ACCESS ADMIN_SLAY

public plugin_init()
{
register_plugin("Restart","2.0","Alka")
register_clcmd("say /restart","say_restart",ACCESS)
register_clcmd("say_team /restart","say_restart",ACCESS)
}

public say_restart(id)
{
if(!(get_user_flags(id) & ACCESS))
return

server_cmd("sv_restart 1")
chat_color(0,"[- - Restart Live - -]")
chat_color(0,"[- - Restart Live - -]")
chat_color(0,"[- - Restart Live - -]")
chat_color(0,"[- - Restart Live - -]")
chat_color(0,"[- - Restart Live - -]")
chat_color(0,"[- - Restart Live - -]")
chat_color(0,"[- - Restart Live - -]")

}
stock chat_color(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[320]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!n", "^1")
replace_all(msg, 190, "!t", "^3")
replace_all(msg, 190, "!t2", "^0")
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()
}
}
}
}


Acum regula de colorare este
!g - verde
!n - normal (culoarea chat-ului)
!t - rosu/albastru

Si in final avem

Citat:
#include <amxmodx>
#include <amxmisc>

#define ACCESS ADMIN_SLAY

public plugin_init()
{
register_plugin("Restart","2.0","Alka")
register_clcmd("say /restart","say_restart",ACCESS)
register_clcmd("say_team /restart","say_restart",ACCESS)
}

public say_restart(id)
{
if(!(get_user_flags(id) & ACCESS))
return

server_cmd("sv_restart 1")
chat_color(0,"!t[- - Restart Live - -]")
chat_color(0,"!t[- - Restart Live - -]")
chat_color(0,"!t[- - Restart Live - -]")
chat_color(0,"!t[- - Restart Live - -]")
chat_color(0,"!t[- - Restart Live - -]")
chat_color(0,"!t[- - Restart Live - -]")
chat_color(0,"!t[- - Restart Live - -]")

}
stock chat_color(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[320]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!n", "^1")
replace_all(msg, 190, "!t", "^3")
replace_all(msg, 190, "!t2", "^0")
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()
}
}
}
}


Rezultatul:

Counter-Strike Cs BesTiaL
Counter-Strike Cs BesTiaL
Cs Forum
Vezi profilul utilizatorului Expediaza mesaj privat
WwW.PlacePuB.Ro
WwW.PlacePuB.Ro
placepub




Mesaj

2014-09-16    cstrike




Cs Forum
Afiseaza mesajele despre Counter-Strike pentru a le previzualiza:    
Creaza un subiect nou   Raspunde la subiect    Counter Strike Forum - Tutoriale Counter-Strike 1.6 download -> Tutoriale Counter-Strike 1.6 cstrike Ora este GMT + 2 ore
Du-te la pagina despre counter-strike
Pagina 1 din 0

 
Mergi direct la pagina de counter-strike 1.6:  
Nu puteti crea un subiect nou In acest forum despre counter-strike
Nu puteti raspunde In subiectele acestui forum despre counter-strike
Nu puteti modifica mesajele proprii din acest forum despre counter-strike
Nu puteti sterge mesajele proprii din acest forum despre counter-strike
Nu puteti vota In chestionarele din acest forum despre counter-strike

Privacy Policy | Politica de Confidentialitate



 Safe Site

By Bogdan Maxim. Published in the Counter-strike 1.6 Download category