←  Pluginy

AMXX.pl: Support AMX Mod X i SourceMod

»

Modyfikacja
Komandos i exp do ZombieHell

  • +
  • -
Truposz WWL's Photo Truposz WWL 04.07.2012

Witam chciałbym aby ktoś przerobił mi zombiehell 1.6 tak aby dawał na każdej następnej nocy o 1 exp więcej w pluginie GunXpMod cvar gxm_xp oraz za zabicie bossa 2x tyle co jest na aktualnej nocy a dotego jeszcze aby jeden losowo wybrany gracz z CT był komandosem 200 HP i AP i dopóki on żyje reszta drużyny będzie się respawnować lub chociaż nakierować jak wylosować gracza z CT bo nie mam pomysłu jak.

Attached Files

Quote

  • +
  • -
Truposz WWL's Photo Truposz WWL 06.07.2012

Poradziłem sobie z XP teraz tylko komandos wymodziłem coś takiego ale serwer sie crashuje przy dodawaniu botów POMOCY!
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <hamsandwich>

#define PLUGIN "Komandoss"
#define VERSION "1.0"
#define AUTHOR "Truposz[WWL]"

new komandos=0;
new zresp=0;

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

register_logevent("Poczatek_Rundy", 2, "1=Round_Start")
//register_logevent("Koniec_Rundy", 2, "1=Round_End")
register_event("DeathMsg", "DeathMsg", "a")

}
public Poczatek_Rundy(){
while(get_user_team(komandos)!=2){
komandos=random_num(1,32);
if(get_user_team(komandos)==2){
DajKomandosa(komandos);
return PLUGIN_CONTINUE;
}
}
if(get_user_team(komandos)==2){
DajKomandosa(komandos);
return PLUGIN_CONTINUE;
}
return PLUGIN_CONTINUE;
}
public DajKomandosa(id){
if(is_user_alive(id) && get_user_team(id)==2){
set_user_health(id, 200);
set_user_armor(id, 200);
new nick[32];
get_user_name(id, nick, 31)
client_print(0, print_center, "%s jest Komandosem!",nick);
}
}
public DeathMsg()
{
new vid = read_data(2) // ofiara

if(vid==komandos){
zresp=0;
}
else if(is_user_alive(komandos) && get_user_team(komandos)==2){
zresp=1;
}
if(get_user_team(vid)==2)
set_task(7.0, "fZresp", vid+100);

}
public fZresp(id){
remove_task(id+100);
if(zresp==1 && get_user_team(id)==2){
client_print(0, print_center, "Respawn");
ExecuteHamB(Ham_CS_RoundRespawn, id);
}
}



Edit
A właściwie jeżeli to pomoże to się crashuje przy dojsciu botów to teamu bo to kilka sekund po starcie serwera
Edited by Truposz WWL, 06.07.2012 00:40.
Quote