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.
|
#1
Napisano 29.07.2009 22:32
Dlatego proszę o napisanie pluginu tak aby Vip mial
• darmowe granaty co runde (HE, FB)
• $350 za normalne zabicie i $400 za każdego HeadShoot'a
• dostajesz 10HP za zabicie i 15HP za każdego HeadShoot'a
• Wpisując w say /vips zobaczysz listę dostępnych aktualnie VIP'ów na serwerze (moze byc modt nie musi)
• będzie wyświetlana wiadomość HUD kiedy VIP wejdzie na serwer.
• full amo co runde
i własne model dla ct i tt ( w sumie z tym mozna dac nowego pluga, bo i tak jeszcze modeli nie mam)
no i zeby vipa dawalo sie na nick i flage jakas (nie wiem jaka sie tam daje )
mam 2 pluginy podobne moze z tego cos da sie wyciagnac ?
http://amxx.pl/viewt... ... sc&start=0
http://amxx.pl/topic... ... bienie vip
Wilekie dzięki i czemam na odpowiedz.
#2
Napisano 29.07.2009 23:36
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <fakemeta_util> #include <hamsandwich> #define PLUGIN "Nowy Plugin" #define VERSION "1.0" #define AUTHOR "Sn!ff3r" #define ACCESS ADMIN_LEVEL_H #if cellbits == 32 #define OFFSET_CSMONEY 115 #else #define OFFSET_CSMONEY 140 #endif #define OFFSET_LINUX 5 new bool:have_access[33] = false new hudchannel, msgmoney public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) RegisterHam(Ham_Spawn, "player", "client_spawn", 1) register_event("DeathMsg", "client_death", "a") register_clcmd("say /vip", "client_say") register_clcmd("say_team /vip", "client_say") hudchannel = CreateHudSyncObj() msgmoney = get_user_msgid("Money") } public client_authorized(id) { if(get_user_flags(id) & ACCESS) { have_access[id] = true prepare_message(id) } } public client_spawn(id) { if(have_access[id]) { fm_give_item(id, "weapon_hegrenade") fm_give_item(id, "weapon_flashbang") fm_give_item(id, "weapon_flashbang") } } public client_death() { static killer killer = read_data(1) if(is_user_connected(killer) && have_access[killer]) { static headshot headshot = read_data(3) (headshot) ? stuff(killer, true) : stuff(killer, false) } } public client_say(id) { show_motd(id, "vips.html", "Lista VIPow") } stock prepare_message(player) { static name[33] get_user_name(player, name, 32) set_hudmessage(0, 255, 0, 0.1, 0.3, 0, 6.0, 12.0) ShowSyncHudMsg(0, hudchannel, "Przyszedl %s", name) } stock stuff(player, bool:headshot) { static money, newmoney money = fm_get_user_money(player) newmoney = (headshot) ? 400 : 300 fm_set_user_money(player, money + newmoney, 1) static Float:health, Float:newhealth pev(player, pev_health, health) newhealth = (headshot) ? 15.0 : 10.0 set_pev(player, pev_health, health + newhealth) } stock fm_set_user_money(id, money, flash) { set_pdata_int(id, OFFSET_CSMONEY, money, OFFSET_LINUX) message_begin(MSG_ONE, msgmoney, {0,0,0}, id) write_long(money) write_byte(flash) message_end() } stock fm_get_user_money(index) { return get_pdata_int(index, OFFSET_CSMONEY, OFFSET_LINUX) }
#3
Napisano 30.07.2009 01:35
#4
Napisano 30.07.2009 01:54
#5
Napisano 30.07.2009 02:09
@ edit nie widzialem Abesa postu. Mi kod nic nie mowi.
#6
Napisano 30.07.2009 02:30
No to:Mi kod nic nie mowi.
Brak.cvary jakies ?
#7
Napisano 30.07.2009 06:56
#8
Napisano 30.07.2009 08:51
#9
Napisano 30.07.2009 16:10
#10
Napisano 30.07.2009 16:12
#11
Napisano 30.07.2009 16:17
#12
Napisano 30.07.2009 18:09
#include <amxmodx>
/*---------------EDIT ME------------------*/
#define ADMIN_CHECK ADMIN_KICK //tu zmień na swoją flagę
static const COLOR[] = "^x04" //green
static const CONTACT[] = ""
/*----------------------------------------*/
new maxplayers
new gmsgSayText
public plugin_init() {
register_plugin("Admin Check", "1.51", "OneEyed")
maxplayers = get_maxplayers()
gmsgSayText = get_user_msgid("SayText")
register_clcmd("say", "handle_say")
register_cvar("amx_contactinfo", CONTACT, FCVAR_SERVER)
}
public handle_say(id) {
new said[192]
read_args(said,192)
if( ( containi(said, "who") != -1 && containi(said, "admin") != -1 ) || contain(said, "/admin") != -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_CHECK)
get_user_name(id, adminnames[count++], 31)
len = format(message, 255, "%s Admini 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, "Brak adminow 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()
}
#13
Napisano 30.07.2009 18:18
#14
Napisano 30.07.2009 18:52
#15
Napisano 01.08.2009 08:24
#16
Napisano 03.08.2009 12:39
#17
Napisano 03.08.2009 12:43
Również z jednym lub większą ilością słów kluczowych: Nowy Plugin
|
Nowy Plugin
[KOSZ] pluginNapisany przez Frodo1981, 25.02.2024 nowy plugin |
|
|||
Nowy Plugin
vip pbNapisany przez One ShooT, 04.02.2024 nowy plugin |
|
||||
Nowy Plugin
Admin menuNapisany przez stół z powyłamywanymi, 22.09.2022 nowy plugin |
|
||||
Nowy Plugin
Prośba o napisanie pluginuNapisany przez stół z powyłamywanymi, 15.08.2022 nowy plugin |
|
||||
Nowy Plugin
PLUGIN NA DRplugin Napisany przez bawarskagolonka123, 25.06.2021 nowy plugin |
|
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych