Cum colorezi o comanda
RO-ELF :: Counter Strike TUTORIALE :: Counter-Strike SERIES :: Counter-Strike 1.6 :: Tutoriale Counter-Strike
Pagina 1 din 1
Cum colorezi o comanda
Avem plugin-ul acesta
Cod:
#include
#include
#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
Cod:
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
Cod:
#include
#include
#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
Cod:
client_print(0,print_chat,
cu
Cod:
chat_color(0,
iar plugin-ul devine
Cod:
#include
#include
#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
Cod:
#include
#include
#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()
}
}
}
}
Cod:
#include
#include
#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
Cod:
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
Cod:
#include
#include
#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
Cod:
client_print(0,print_chat,
cu
Cod:
chat_color(0,
iar plugin-ul devine
Cod:
#include
#include
#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
Cod:
#include
#include
#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()
}
}
}
}
Sniper32- Moderator
- Mesaje : 2050
Data de inscriere : 27/12/2011
Varsta : 34
Localizare : Baia Mare
Subiecte similare
» Cum colorezi o comanda
» [Tutorial] Cum colorezi o comanda
» Comanda un server CS 1.6 sau Source
» comanda consola cs optiuni
» CUM SA REPARI EROAREA “WINDOWS CANNOT FIND MSCONFIG” (COMANDA RUN) IN WINDOWS XP
» [Tutorial] Cum colorezi o comanda
» Comanda un server CS 1.6 sau Source
» comanda consola cs optiuni
» CUM SA REPARI EROAREA “WINDOWS CANNOT FIND MSCONFIG” (COMANDA RUN) IN WINDOWS XP
RO-ELF :: Counter Strike TUTORIALE :: Counter-Strike SERIES :: Counter-Strike 1.6 :: Tutoriale Counter-Strike
Pagina 1 din 1
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum
Lun Mai 06 2024, 17:57 Scris de dany
» 1.24.1.2 DRWEBBER TUNDRA 64 BIT
Joi Mai 02 2024, 20:35 Scris de dany
» 1.24.1.2 Japonomat Tundra
Joi Mai 02 2024, 20:32 Scris de dany
» Problemă la pornirea World Editor
Dum Ian 21 2024, 13:11 Scris de dany
» https://archive.org/details/warcraft-iii-cd
Lun Apr 17 2023, 23:48 Scris de dany
» Ținta automată a lui Vanga
Lun Apr 03 2023, 17:03 Scris de dany
» monopoly plus
Vin Mar 24 2023, 01:12 Scris de dany
» True Server Reticle - Direct Download
Dum Feb 26 2023, 21:31 Scris de dany
» RATING 4.6 1006 USER VOTES Better Reticle Size (RDDT Warpack)
Dum Feb 26 2023, 20:17 Scris de dany