Poszukuję pluginu vipa z dokładną instrukcją instalacji
Vip ma mieć :
1He,2Fb,1Sg
10 hp za zabicie
20 hp za zabicie hs
Własny model
Max hp 100
*refresh*
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
8 odpowiedzi w tym temacie
#1
Napisano 04.09.2011 13:52
#2
Napisano 04.09.2011 14:24
Na flagę "T"
musisz znaleść sobie model i stworzyć folder hnsvip i nazwa modelu hnsvip.mdl do tego folderu i to do models/player
musisz znaleść sobie model i stworzyć folder hnsvip i nazwa modelu hnsvip.mdl do tego folderu i to do models/player
#include <amxmodx> #include <cstrike> #include <fun> #include <hamsandwich> #define PLUGIN "Hns Vip" #define VERSION "1.0" #define AUTHOR "speedkill" new health_add new health_hs_add new health_max new nKiller new nKiller_hp new nHp_add new nHp_max public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) health_add = register_cvar("amx_vip_hp", "10") health_hs_add = register_cvar("amx_vip_hp_hs", "20") health_max = register_cvar("amx_vip_max_hp", "100") register_event("DeathMsg", "death", "a", "1>0") RegisterHam(Ham_Spawn, "player", "abc", 1) } public plugin_precache() { precache_model("models/player/hnsvip/hnsvip.mdl") } public abc(id) { if(is_user_alive(id) && get_user_flags(id) & ADMIN_LEVEL_H) { give_item(id, "weapon_smokegrenade") give_item(id, "weapon_flashbang") give_item(id, "weapon_hegrenade") model(id) } } public death() { nKiller = read_data(1) if ( (read_data(3) == 1) && (read_data(5) == 0) ) { nHp_add = get_pcvar_num (health_hs_add) } else nHp_add = get_pcvar_num (health_add) nHp_max = get_pcvar_num (health_max) if(!(get_user_flags(nKiller) & ADMIN_LEVEL_H)) return; nKiller_hp = get_user_health(nKiller) nKiller_hp += nHp_add if (nKiller_hp > nHp_max) nKiller_hp = nHp_max set_user_health(nKiller, nKiller_hp) } public model(id) { new CsTeams:userTeam = cs_get_user_team(id) if (userTeam == CS_TEAM_T) { cs_set_user_model(id, "hnsvip") } else if(userTeam == CS_TEAM_CT) { cs_set_user_model(id, "hnsvip") } else { cs_reset_user_model(id) } }
If you can dream it, you can do it.
#3
Napisano 04.09.2011 14:34
A mam pytanie
Jeśli vip jest w ct też ma granaty?
Jeśli vip jest w ct też ma granaty?
#4
Napisano 04.09.2011 14:38
Tak w tt i ct ma granaty
If you can dream it, you can do it.
#5
Napisano 04.09.2011 14:41
A dałoby się tak zrobić żeby tylko vip w terro miał granaty; d?
Ct nie może mieć granatów:D
Ct nie może mieć granatów:D
#6
Napisano 04.09.2011 15:04
Pewnie, że się da.
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#define PLUGIN "Hns Vip"
#define VERSION "1.0"
#define AUTHOR "speedkill"
new health_add
new health_hs_add
new health_max
new nKiller
new nKiller_hp
new nHp_add
new nHp_max
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
health_add = register_cvar("amx_vip_hp", "10")
health_hs_add = register_cvar("amx_vip_hp_hs", "20")
health_max = register_cvar("amx_vip_max_hp", "100")
register_event("DeathMsg", "death", "a", "1>0")
RegisterHam(Ham_Spawn, "player", "abc", 1)
}
public plugin_precache() {
precache_model("models/player/hnsvip/hnsvip.mdl")
}
public abc(id)
{
if(is_user_alive(id) && get_user_flags(id) & ADMIN_LEVEL_H && get_user_team(id) == 1)
{
give_item(id, "weapon_smokegrenade")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_hegrenade")
model(id)
}
}
public death()
{
nKiller = read_data(1)
if ( (read_data(3) == 1) && (read_data(5) == 0) )
{
nHp_add = get_pcvar_num (health_hs_add)
}
else
nHp_add = get_pcvar_num (health_add)
nHp_max = get_pcvar_num (health_max)
if(!(get_user_flags(nKiller) & ADMIN_LEVEL_H))
return;
nKiller_hp = get_user_health(nKiller)
nKiller_hp += nHp_add
if (nKiller_hp > nHp_max) nKiller_hp = nHp_max
set_user_health(nKiller, nKiller_hp)
}
public model(id) {
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T) {
cs_set_user_model(id, "hnsvip")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "hnsvip")
}
else {
cs_reset_user_model(id)
}
}
#7
Napisano 04.09.2011 15:33
Dzięki wielkie dla was + tylko że jutro bo dziś już nie moge
Kurde nie wypisałem wszystkiego czego oczekuję; d
Po wejściu vipa na server wyskakuje hud message w chacie na zielono że vip hamtaro wszedł na server
po wpisaniu /vip wyskakują vipy online
po wpisaniu /vips pokazuje Jakie dodatki ma vip (te dodatki będą w vip.txt w cstrike)
Kurde nie wypisałem wszystkiego czego oczekuję; d
Po wejściu vipa na server wyskakuje hud message w chacie na zielono że vip hamtaro wszedł na server
po wpisaniu /vip wyskakują vipy online
po wpisaniu /vips pokazuje Jakie dodatki ma vip (te dodatki będą w vip.txt w cstrike)
#8
Napisano 04.09.2011 15:41
Chyba /vip że motd a /vips vipy online ;]
Sprawdź
Sprawdź
#include <amxmodx> #include <cstrike> #include <fun> #include <hamsandwich> #define PLUGIN "Hns Vip" #define VERSION "1.0" #define AUTHOR "speedkill" #define ADMIN_CHECK ADMIN_LEVEL_H new health_add new health_hs_add new health_max new nKiller new nKiller_hp new nHp_add new nHp_max static const COLOR[] = "^x04" static const CONTACT[] = "" new maxplayers new gmsgSayText public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) health_add = register_cvar("amx_vip_hp", "10") health_hs_add = register_cvar("amx_vip_hp_hs", "20") health_max = register_cvar("amx_vip_max_hp", "100") register_event("DeathMsg", "death", "a", "1>0") register_clcmd("say /vip","motd") register_clcmd("say", "handle_say") maxplayers = get_maxplayers() gmsgSayText = get_user_msgid("SayText") RegisterHam(Ham_Spawn, "player", "abc", 1) } public plugin_precache() { precache_model("models/player/hnsvip/hnsvip.mdl") } public client_connect(id) { if(get_user_flags(id) & ADMIN_LEVEL_H) { new name[32] get_user_name(id, name, 31) set_hudmessage(255, 0, 0, 0.1, 0.3, 0, 6.0, 12.0) show_hudmessage(0, "Wbija vip %s",name) } } public abc(id) { if(is_user_alive(id) && get_user_flags(id) & ADMIN_LEVEL_H && get_user_team(id) == 1) { give_item(id, "weapon_smokegrenade") give_item(id, "weapon_flashbang") give_item(id, "weapon_hegrenade") model(id) } } public death() { nKiller = read_data(1) if ( (read_data(3) == 1) && (read_data(5) == 0) ) { nHp_add = get_pcvar_num (health_hs_add) } else nHp_add = get_pcvar_num (health_add) nHp_max = get_pcvar_num (health_max) if(!(get_user_flags(nKiller) & ADMIN_LEVEL_H)) return; nKiller_hp = get_user_health(nKiller) nKiller_hp += nHp_add if (nKiller_hp > nHp_max) nKiller_hp = nHp_max set_user_health(nKiller, nKiller_hp) } public model(id) { new CsTeams:userTeam = cs_get_user_team(id) if (userTeam == CS_TEAM_T) { cs_set_user_model(id, "hnsvip") } else if(userTeam == CS_TEAM_CT) { cs_set_user_model(id, "hnsvip") } else { cs_reset_user_model(id) } } public motd(id) { show_motd(id,"vip.txt","Hns Vip") } public handle_say(id) { new said[192] read_args(said,192) if( ( containi(said, "who") != -1 && containi(said, "/vips") != -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_CHECK) get_user_name(id, adminnames[count++], 31) len = format(message, 255, "%s Vipy 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 vipow 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() }
If you can dream it, you can do it.
#9
Napisano 04.09.2011 15:44
dokładnie:D dzięki za pomoc ; ]
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