Witam zwracam się z wielką prośbą o przerobienie pluginu aby po 3 rundzie wyświetlało się menu vip
bronie to ak+deagle+granaty i m4+deagle+granaty oraz awp+deagle+granaty, max hp vipa 130 zadnych dodatkowych skokow itp, za zwykle zabicie 5hp za hedshoot 10hp, chciałbym także aby po wpisaniu w say'u /vip wyświetlał się kontakt w sprawie vipa pod nr gg 13874422, steam 23493788
Próbowałem sam to zrobic ale nic nie wychodziło.No za pomoc oczywiście +
ponizej plik sma i załącznik pluginu
[sma]#include <fun>
#include <cstrike>
#define PLUGIN "VIP"
#define VERSION "1.0"
#define AUTHOR "Lunatic"new gmsgSayText
new jumpnum[33] = 0
new bool:dojump[33] = false
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /vip","mtod_vip")
register_clcmd("say /vips","print_viponline")
register_cvar("amx_vip_maxjumps","0") // ile dodatkowych skoków
register_cvar("amx_vip_hp_kill", "10") // ile dodaje hp dla vip za zabicie
register_cvar("amx_vip_hp", "100") // ile hp na start dla vip
register_cvar("amx_vip_max_hp", "140") // maksymalne hp
register_event("HLTV", "Nowa_Runda", "a", "1=0", "2=0")
register_event("DeathMsg", "hook_death", "a", "1>0")
gmsgSayText = get_user_msgid("SayText")
}
public client_putinserver(id)
{
jumpnum[id] = 0
dojump[id] = false
}public client_disconnect(id)
{
jumpnum[id] = 0
dojump[id] = false
}
public Nowa_Runda() {
new players[32], num
get_players(players, num);
for (new i=0; i<num; i++)
{
if(get_user_flags(players[i]) & ADMIN_LEVEL_H) {
set_task(1.0, "daj", players[i])
}
}
}public daj(id) {
give_item ( id, "weapon_knife" )
give_item ( id, "weapon_hegrenade" )
give_item ( id, "weapon_smokegrenade" )
give_item ( id, "weapon_flashbang" )
give_item ( id, "weapon_flashbang" )
give_item ( id, "weapon_deagle" )
give_item ( id, "ammo_50ae" )
give_item ( id, "ammo_50ae" )
give_item ( id, "ammo_50ae" )
give_item ( id, "ammo_50ae" )
give_item ( id, "ammo_50ae" )
give_item ( id, "weapon_ak47" )
give_item ( id, "ammo_762nato" )
give_item ( id, "ammo_762nato" )
give_item ( id, "ammo_762nato" )
give_item ( id, "weapon_m4a1" )
give_item ( id, "ammo_556nato" )
give_item ( id, "ammo_556nato" )
give_item ( id, "ammo_556nato" )
set_user_health(id, get_cvar_num("amx_vip_hp"))
cs_set_user_model(id, "vip")
if(get_user_team(id) == 2)
cs_set_user_defuse ( id, 1)
}
public client_PreThink(id)
{
if(!is_user_alive(id)) return PLUGIN_CONTINUE
if(!(get_user_flags(id) & ADMIN_LEVEL_H)) return PLUGIN_CONTINUE
new nbut = get_user_button(id)
new obut = get_user_oldbutton(id)
if((nbut & IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(obut & IN_JUMP))
{
if(jumpnum[id] < get_cvar_num("amx_vip_maxjumps"))
{
dojump[id] = true
jumpnum[id]++
return PLUGIN_CONTINUE
}
}
if((nbut & IN_JUMP) && (get_entity_flags(id) & FL_ONGROUND))
{
jumpnum[id] = 0
return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}public client_PostThink(id)
{
if(!is_user_alive(id)) return PLUGIN_CONTINUE
if(!(get_user_flags(id) & ADMIN_LEVEL_H)) return PLUGIN_CONTINUE
if(dojump[id] == true)
{
new Float:velocity[3]
entity_get_vector(id,EV_VEC_velocity,velocity)
velocity[2] = random_float(265.0,285.0)
entity_set_vector(id,EV_VEC_velocity,velocity)
dojump[id] = false
return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}
public mtod_vip(id) {
show_motd(id, "vip.txt", "Poland-Cs.eu - V.I.P.")
}
public print_viponline(user)
{
new adminnames[33][32]
new message[256]
new id, count, x, len
new maxplayers
maxplayers = get_maxplayers()
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, "VIP'y ONLINE: ")
if(count > 0)
{
for(x = 0 ; x < count ; x++)
{
len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count-1) ? "^x01, ":"")
if(len > 96 ) {
print_message(user, message)
len = format(message, 255, "%s ")
}
}
print_message(user, message)
}
else {
len += format(message[len], 255-len, "Brak Vip'ow Online")
print_message(user, message)
}
return PLUGIN_HANDLED;
}
print_message(id, msg[]) {
message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id)
write_byte(id)
write_string(msg)
message_end()
}public hook_death()
{
// Killer id
new nKiller, nKiller_hp, nHp_add, nHp_max
nKiller = read_data(1)
nHp_add = get_cvar_num ("amx_vip_hp_kill")
nHp_max = get_cvar_num ("amx_vip_max_hp")
// Updating Killer HP
if(!(get_user_flags(nKiller) & ADMIN_LEVEL_H))
return;
nKiller_hp = get_user_health(nKiller)
nKiller_hp += nHp_add
// Maximum HP check
if (nKiller_hp > nHp_max) nKiller_hp = nHp_max
set_user_health(nKiller, nKiller_hp)
// Hud message "Healed +15/+30 hp"
set_hudmessage(0, 255, 0, -1.0, 0.15, 0, 1.0, 1.0, 0.1, 0.1, -1)
show_hudmessage(nKiller, "Healed +%d hp", nHp_add)
// Screen fading
message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, nKiller)
write_short(1<<10)
write_short(1<<10)
write_short(0x0000)
write_byte(0)
write_byte(0)
write_byte(200)
write_byte(75)
message_end()
}
vip (3).rar 19,97 KB 26 Ilość pobrań
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
5 odpowiedzi w tym temacie
#1
Napisano 06.05.2012 10:40
#2
Napisano 06.05.2012 15:57
Proszę. Jak coś nie gra to pisz. Zrobiłem tylko to co chciałeś. Innego niczego nie zmieniałem.
Tutaj txt. Wgraj do cstrike: vip.txt - Speedy Share - upload your files here
Tutaj txt. Wgraj do cstrike: vip.txt - Speedy Share - upload your files here
Załączone pliki
Użytkownik JustBeFine edytował ten post 06.05.2012 15:58
Nie mam pomysłu na sygnę :<
#3
Napisano 06.05.2012 16:55
Wszystko jest ok dzięki wielkie ale mógłbyś jeszcze zrobić aby po wcisnięciu "TAB" obok nicku byl napis "VIP" tak samo w say'u
PS na jaką flagę jest vip?
PS na jaką flagę jest vip?
Użytkownik kosaxdd edytował ten post 06.05.2012 16:58
#4
Napisano 06.05.2012 17:03
Proszę. Vip jest na flagę T (Bardziej znana jako flaga H [ADMIN_LEVEL_H]).
Komenda "/vips".
Komenda "/vips".
Załączone pliki
Użytkownik JustBeFine edytował ten post 06.05.2012 17:04
Nie mam pomysłu na sygnę :<
#5
Napisano 06.05.2012 17:10
Dzięki działa wszystko.Leci +
#6
Napisano 08.05.2012 20:01
Wiadomość wygenerowana automatycznie
Ten temat został zamknięty przez moderatora.
Powód: Pomoc udzielona
Jeśli się z tym nie zgadzasz, raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.
Z pozdrowieniami,
Zespół AMXX.PL
Ten temat został zamknięty przez moderatora.
Powód: Pomoc udzielona
Jeśli się z tym nie zgadzasz, raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.
Z pozdrowieniami,
Zespół AMXX.PL
Również z jednym lub większą ilością słów kluczowych: Modyfikacja, vip
Inny
Dodanie Broni do PaintBallNapisany przez One ShooT , 05.02.2024 inny, modyfikacja |
|
|
|||
Problem z kompilacją vip.sma do wersji 1.10Napisany przez l3szcz , 11.07.2023 vip, amxmodx, 1.10 |
|
|
|||
|
[ROZWIĄZANE] Vip freebłąd wywala Napisany przez damiann1990 , 05.06.2022 vip, proble, plugin |
|
|
||
Problem z VIP GeneratoremVIP GENERATOR Napisany przez MiTruSek , 18.12.2021 vip |
|
|
|||
CS:GO
Limiter broni na flagiNapisany przez Kaczoor , 08.02.2021 cs:go, plugin, csgo, granat, vip i 3 więcej |
|
|
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych