zasady! cos zle
wizu
07.10.2008
format(menuoption[0], 63, "r1 yNie Czituj! Czit=Perm!")Będzie to wyglądało tak:
1 Nie Czituj! Czit=Perm!
każde użycie np. w zmienia kolor tekstu, po tym w.
Abes Mapper
07.10.2008
Masz, zrobiłem Ci to jakoś estetycznie. Ale według mnie zasady powinny być na biało bo są lepiej widoczne
Załączone pliki
wizu
07.10.2008
Daj sma(wystarczy sam fragment z format-ami), chętnie zobaczę jak to u Ciebie wygląda
Abes Mapper
07.10.2008
Daj sma(wystarczy sam fragment z format-ami), chętnie zobaczę jak to u Ciebie wygląda
Prosz. SMA:
#include <amxmodx>
#include <cstrike>
new gmsgSayText
public plugin_init()
{
register_plugin("Player Enter", "0.1", "dev.cs.wrocek.com")
register_menucmd(register_menuid("Witaj Graczu"),1023,"actionMenu")
gmsgSayText = get_user_msgid("SayText")
}
public client_putinserver(id)
{
if (is_user_bot(id))
return
set_task(10.0, "dispInfo", id + 1337)
}
public client_disconnect(id)
{
if(task_exists(id + 1337)){
remove_task(id + 1337)
}
}
public dispInfo(id)
{
new playerId = id - 1337
new nextmap[32]
new hostname[32]
get_cvar_string("amx_nextmap", nextmap, 31)
get_cvar_string("hostname", hostname, 31)
client_print(playerId, print_chat, "* Witaj na serwerze: %s", hostname)
client_print(playerId, print_chat, "* Sprawy Banow, oraz inne problemy zalatwiamy na FORUM!")
client_print(playerId, print_chat, "* Dostepne Polecenia: /top15, /rankstats, /rank, /me, /hp")
prepare_menu(playerId + 1339)
}
public prepare_menu(id){
new playerId = id - 1339
if(is_user_connected(playerId)){
new CsTeams:team = cs_get_user_team(playerId)
if(team != CS_TEAM_T && team != CS_TEAM_CT) {
set_task(10.0,"prepare_menu",id)
} else {
showMenu(playerId)
}
} else {
remove_task(id)
}
}
public showMenu(id){
new name[32]
get_user_name(id, name, 31)
new menuoption[10][64]
new menubody[512]
new keys = (1<<0)|(1<<1)
// Clear string
for(new z = 0; z < 10; ++z)
{
menuoption[z][0] = '^0'
}
format(menuoption[0], 63, "r1 yNie Cheatuj! Cheat=Perm!")
format(menuoption[1], 63, "r2 yZachowaj kulture osobista!")
format(menuoption[2], 63, "r3 yNie przeszkadzaj innym w grze!")
format(menuoption[3], 63, "r4 ySluchaj adminow!")
format(menuoption[4], 63, "r5 yNie kamp/raszuj!")
format(menuoption[5], 63, "r6 yNie krzycz przez mikrofon!")
format(menuoption[6], 63, "r7 yGraj Fair-Play!")
format(menuoption[7], 63, "r8 yZrozumiano?!")
format(menuoption[8], 63, "r* r1. rGnaj sie!")
format(menuoption[9], 63, "r* r2. rTak jest!")
format(menubody, 511, "rWitaj w%s rna serwie:r^n^n [G]ood [S]kill |FFA| @KampNo.pl^n^nrZasady jakie tutaj obowiazuja:w^n%s^n%s^n%s^n%s^n%s^n%s^n%s^n%s^n%s^n%s", name, menuoption[0], menuoption[1], menuoption[2], menuoption[3], menuoption[4], menuoption[5], menuoption[6], menuoption[7], menuoption[8], menuoption[9])
show_menu(id, keys, menubody, -1, "Witaj Graczu")
return PLUGIN_HANDLED
}
public actionMenu(id,key){
switch(key){
case 0: {
new num, i, name[32], message[191], players[32]
get_players(players,num)
get_user_name(id, name, 31)
server_cmd("kick #%d ^"Nie Zaakceptowales Zasad^"", get_user_userid(id))
formatex(message,190,"^x04[Akceptacja] Gracz %s, nie zaakceptowal zasad.",name)
for(i=0;i<num;i++)
{
message_begin(MSG_ONE,gmsgSayText,_,players[i])
write_byte(players[i])
write_string(message)
message_end();
}
}
case 1: {
new num, i, name[32], message[191], players[32]
get_players(players,num)
get_user_name(id, name, 31)
formatex(message,190,"^x04[Akceptacja] Gracz %s, zaakceptowal zasady.",name)
client_print(id,print_chat,"* Zaakceptowales Zasady, Powodzenia w Grze")
for(i=0;i<num;i++)
{
message_begin(MSG_ONE,gmsgSayText,_,players[i])
write_byte(players[i])
write_string(message)
message_end();
}
}
}
return PLUGIN_HANDLED
}
wizu
07.10.2008
Tak prawdę mówiąc olaf4all to mnie w tym momencie ostro dobiłeś. Z góry mówię, ze mi na pomógł wcale nie zależy, ale strasznie mnie to zdziwiło, że dałeś 2 pomógł Abesowi, chociaż to ja podałem Ci rozwiązanie... No ale cóż, Twoja decyzja, ode mnie więcej pomocy nie oczekuj.
// No właśnie twoje było jakieś skopane ;> A ten drugi pomógł usunąłem bo jeden mi się należy
- Abes_Ziomal
// No właśnie twoje było jakieś skopane ;> A ten drugi pomógł usunąłem bo jeden mi się należy
Gość__* 07.10.2008
olaf4all, zamykam. Jeszcze 1 temat z tym samym problemem i ban. Teraz dostajesz 1 warna.





