Witajcie, mam problem z usunięciem tych darmowych broni bo chce żeby za nie były granaty tak jak w tym VIPpart1, jeśli ktoś mógł mi pomóc to proszę, plugin znajduje się w tym temacie http://amxx.pl/viewt... ... sc&start=0 Pozdrawiam
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
VIP 2.0a pomoc
Temat rozp. blazejrybnik89, 05.02.2009 13:38
5 odpowiedzi w tym temacie
#1
Napisano 05.02.2009 13:38
#2
Napisano 05.02.2009 13:42
Spróbuj zmienić
register_menucmd(register_menuid("rod"), Keysrod, "Pressedrod")na
//register_menucmd(register_menuid("rod"), Keysrod, "Pressedrod")Nie używam/nie testowałem, ale po analizie kodu tak mi to pasuje
#3
Napisano 08.02.2009 22:08
No niestety dalej są te darmowe bronie, to jak nie mam możliwości ich wył. to może ktoś by zrobił tak żeby w tym VIP1part działała komenda /vips. Bo na tym mi tylko zależy
#4
Napisano 10.02.2009 14:15
#include <amxmodx> #include <amxmisc> #include <fun> static const COLOR[] = "^x04" //green static const CONTACT[] = "" new maxplayers new gmsgSayText #define PLUGIN "VIP part2" #define VERSION "2.0v" #define AUTHOR "Dunno" #define Keysrod (1<<0)|(1<<1)|(1<<9) // Keys: 1234567890 public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_logevent("logevent_Round_Start", 2, "1=Round_Start") register_clcmd("awp","HandleCmd") register_clcmd("sg550","HandleCmd") register_clcmd("g3sg1","HandleCmd") register_event("CurWeapon", "event_CurWeapon", "be", "1=1") register_event("CurWeapon", "event_CurWeaponn", "be", "1=1") register_event("CurWeapon", "event_CurWeaponnn", "be", "1=1") register_clcmd("say /whantvip","ShowMotd") maxplayers = get_maxplayers() gmsgSayText = get_user_msgid("SayText") register_clcmd("say", "handle_say") register_cvar("amx_contactinfo", CONTACT, FCVAR_SERVER) // Add your code here... } public HandleCmd(id){ if(get_user_flags(id) & ADMIN_LEVEL_H) return PLUGIN_CONTINUE client_print(id, print_center, "Sniper's Only For VIP's") return PLUGIN_HANDLED } public event_CurWeapon(id){ if(read_data(2) == CSW_AWP){ if(!(get_user_flags(id) & ADMIN_LEVEL_H)){ client_print(id, print_center, "Sniper's Only For VIP's") client_cmd(id, "drop") } } } public event_CurWeaponn(id){ if(read_data(2) == CSW_SG550){ if(!(get_user_flags(id) & ADMIN_LEVEL_H)){ client_print(id, print_center, "Sniper's Only For VIP's") client_cmd(id, "drop") } } } public event_CurWeaponnn(id){ if(read_data(2) == CSW_G3SG1){ if(!(get_user_flags(id) & ADMIN_LEVEL_H)){ client_print(id, print_center, "Sniper's Only For VIP's") client_cmd(id, "drop") } } } public ShowMotd(id) { show_motd(id, "vip.txt") } public client_authorized(id) { set_task(30.0, "PrintText" ,id) } public PrintText(id) { client_print(id, print_chat, "[VIP] write /whantvip and u will see how get VIP and VIP privilegies.") } public handle_say(id) { new said[192] read_args(said,192) if( ( containi(said, "who") != -1 && containi(said, "admin") != -1 ) || contain(said, "/vips") != -1 ) set_task(0.1,"print_adminlist",id) return PLUGIN_CONTINUE } public print_adminlist(user) { new adminnames[33][32] new message[256] new contactinfo[256], contact[112] new id, count, x, len for(id = 1 ; id <= maxplayers ; id++) if(is_user_connected(id)) if(get_user_flags(id) & ADMIN_LEVEL_H) get_user_name(id, adminnames[count++], 31) len = format(message, 255, "%s VIP ONLINE: ",COLOR) if(count > 0) { for(x = 0 ; x < count ; x++) { len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count-1) ? ", ":"") if(len > 96 ) { print_message(user, message) len = format(message, 255, "%s ",COLOR) } } print_message(user, message) } else { len += format(message[len], 255-len, "No VIP online.") print_message(user, message) } get_cvar_string("amx_contactinfo", contact, 63) if(contact[0]) { format(contactinfo, 111, "%s Contact Server Admin -- %s", COLOR, contact) print_message(user, contactinfo) } } print_message(id, msg[]) { message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id) write_byte(id) write_string(msg) message_end() } public client_connect(id) { new name[32] get_user_info(id, "name", name, 31) if(get_user_flags(id) & ADMIN_LEVEL_H) { set_hudmessage(200, 0, 0, 0.05, 0.65, 2, 0.02, 30.0, 0.03, 0.3, 2) show_hudmessage(0, "Special VIP %s has Entered",name) } }Spróbuj to jeśli masz na myśli zeby nie było menu z broniami
to jest part 2: D
#5
Napisano 25.03.2009 13:30
Nie działa... Emblaze proszę pomoż..
Dostaje wszystko tak jak trzeba oprócz broni ale nie działa /vips ani /whantvip
Dostaje wszystko tak jak trzeba oprócz broni ale nie działa /vips ani /whantvip
#6
Napisano 25.03.2009 15:22
napisz nowy temeat ;> albo na PW napisz. ( na PW płatnie)
PS. sory za odświeżenie
PS. sory za odświeżenie
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych