Chciałbym prosić was o pomoc. Ponieważ mam pewien problem. Chciałbym edytować plugin "wybór interpu" ,ale nie wiem jak.
Proszę was o pomoc.
Chciałbym zmienić w nim to ,że w sayu text który pisze po zmianie interpu wyglądał tak:
w CT:
[Interp] SilveR ustawil ex_interp na 0.01
w TT:
[Interp] SilveR ustawil ex_interp na 0.01
i tak przy każdym innym interpie.
Chcę po prostu zmienić kolory. Pewnie dla was to dziecinna zabawa, ale dla mnie pisanie pluginów to czarna magia
Z góry dziękuję.
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Wybor Interpu"
#define VERSION "1.0"
#define AUTHOR ""
#define TASK_SHOWMENU 432
#define MYMENU_KEYS MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_5
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_menu("InterpASK", MYMENU_KEYS, "InterpASK_Handler")
}
public client_putinserver(id)
{
if(!is_user_bot(id))
eventInGame(id)
}
public show_menu_(tid)
{
new id=tid-TASK_SHOWMENU;
new iTeam=get_user_team(id)
new menu_id, keys;
new menuUp = player_menu_info( id, menu_id, keys )
if ( iTeam && (menuUp <= 0 || menu_id < 0) )
SMenu(id)
else
set_task(1.0, "show_menu_", tid)
}
public eventInGame(id) set_task(1.0, "show_menu_", id+TASK_SHOWMENU);
public SMenu(id)
{
new menu_body[512]
format(menu_body, 511, "\wWybierz wartosc ex_interp^n^n\r1\y. \w ex_interp - 0.01^n\r2\y. \w ex_interp - 0.02^n\r3\y. \w ex_interp - 0.03")
show_menu(id, MYMENU_KEYS, menu_body, -1, "InterpASK")
}
public InterpASK_Handler(id, key)
{
new name[32]
get_user_name(id, name, 31)
switch(key)
{
case 0:{
client_cmd(id, "ex_interp 0.01")
client_print(id, print_chat, "[Interp]^"%s^" ustawil ex_interp na 0.01", name)
}
case 1:{
client_cmd(id, "ex_interp 0.02")
client_print(id, print_chat, "[Interp] ^"%s^" ustawil ex_interp na 0.02", name)
}
case 2:{
client_cmd(id, "ex_interp 0.03")
client_print(id, print_chat, "[Interp] ^"%s^" ustawil ex_interp na 0.03", name)
}
}
return PLUGIN_CONTINUE;
}
Użytkownik Zuraw1221 edytował ten post 10.07.2011 09:41


Dodatki SourceMod



Temat jest zamknięty










