Szukam vipa z modelem i granatami w tt jak i ct !
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
Szukam vipa na hns
Temat rozp.
durfiks
, 23.07.2012 08:17
1 odpowiedź w tym temacie
#1
Napisano 23.07.2012 08:17
#2
Napisano 23.07.2012 08:57
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) } }
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych