Limit Hp Problem
no name
19.10.2009
Jak w temacie, mam problem z pluginem. Po prostu niedziała
Coś jest źle? (jest to plugin, który powinien ustawiać 25 hp na start dla CT (na serwer DeatRun))
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "hp_limit"
#define VERSION "1.0"
#define AUTHOR "Home"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("HLTV", "New_Round", "a", "1=0", "2=0")
}
public Nowa_Runda(){
for(new i=0;i<33;i++){
if(is_user_connected(i))
{
if(is_user_alive(i))
{
if(get_user_team(i) == 2 )
{
set_user_health(i,25)
}
}
}
}
}
Coś jest źle? (jest to plugin, który powinien ustawiać 25 hp na start dla CT (na serwer DeatRun))
naven
19.10.2009
Po co ci ta pętla?
edit: :> pomyliło mi się
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <fun> #define PLUGIN "hp_limit" #define VERSION "1.0" #define AUTHOR "Home" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_event("HLTV", "New_Round", "a", "1=0", "2=0") } public Nowa_Runda(id){ set_user_health(id, 25) }
edit: :> pomyliło mi się
mgr inż. Pavulon
19.10.2009
register_event("HLTV", "New_Round", "a", "1=0", "2=0")
}
public Nowa_Runda(id){
set_user_health(id, 25)
}
co to w ogóle ma być ?!
nowa runda nie przekazuje parametru id to po 1.
a po 2. miało to działać tylko na CT
Miczu
20.10.2009
#include <amxmodx> #include <amxmisc> #include <fun> public plugin_init() { register_plugin("Max 25hp CT", "0.1", "Miczu") register_event("Health", "Health", "be", "1>25") } public Health(id) { if(get_user_team(id)==2) set_user_health(id, 25) }
Macie problemy...
no name
20.10.2009
coś nie działa ten twój plugin
[ Dodano: 21-10-2009, 13:50 ]
Może inaczej. Mógłbyś mi zrobić plugin, który by na początku rundy i jak ktoś wejdzie te 5 sek po zaczęciu i będzie żył, atakował CT za 75?
[ Dodano: 21-10-2009, 15:46 ]
Nie wiem czemu ale na jak włączyłem drugi serwer na mapę 35 hp to miałem na niej 100hp, w czym może być problem? na 2 serwie niema tego typu pluginu
[ Dodano: 21-10-2009, 13:50 ]
Może inaczej. Mógłbyś mi zrobić plugin, który by na początku rundy i jak ktoś wejdzie te 5 sek po zaczęciu i będzie żył, atakował CT za 75?
[ Dodano: 21-10-2009, 15:46 ]
Nie wiem czemu ale na jak włączyłem drugi serwer na mapę 35 hp to miałem na niej 100hp, w czym może być problem? na 2 serwie niema tego typu pluginu