←  Szukam pluginu

AMXX.pl: Support AMX Mod X i SourceMod

»

Mniej hp na starcie rundy

Locked

  • +
  • -
High Speed's Photo High Speed 04.01.2009

Witam. Czy jest mozliwosc aby na respie od razu w nowej rundzie gracze mieli nie 100hp a 50?
Quote

  • +
  • -
R3X's Photo R3X 04.01.2009

#include <amxmodx>

#include <fakemeta>



#define PLUGIN "50hp"

#define VERSION "1.0"

#define AUTHOR "R3X"





public plugin_init() {

	register_plugin(PLUGIN, VERSION, AUTHOR);

	register_event("ResetHUD","ResetHUD","b");

}

public ResetHUD(id){

	set_pev(id,pev_health,50.0);

}

Quote

  • +
  • -
darkman's Photo darkman 04.01.2009

#include <amxmodx>
#include <fakemeta>

#define PLUGIN "50hp"
#define VERSION "1.0"
#define AUTHOR "R3X"


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR);
	register_event("ResetHUD","ResetHUD","b");
}
public ResetHUD(id){
	set_pev(id,pev_health,50.0);
}


^^ ktoś po zabiciu kogoś będzie miał 50hp
Quote

  • +
  • -
R3X's Photo R3X 04.01.2009

ktoś po zabiciu kogoś będzie miał 50hp

a nieprawda
Quote

  • +
  • -
mgr inż. Pavulon's Photo mgr inż. Pavulon 04.01.2009

#include <amxmodx>

#include <hamsandwich>

#include <fun> //fun

//#include <fakemeta>



public plugin_init()

{

	register_plugin("50HP", "0.1", "Pavulon")

	RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1)

}





public fwHamPlayerSpawnPost(const id)

{

  set_user_health(id, 50) //fun

  //set_pev(id,pev_health,50.0); //fakemeta

}
Quote

  • +
  • -
R3X's Photo R3X 04.01.2009

Ustawienie hp tuż przed spawnem też działa, bo sprawdziłem.
Quote

  • +
  • -
High Speed's Photo High Speed 04.01.2009

Uzylem plugin pavulona i dziala. Dziekuje wszystkim za pomoc.
Quote
Locked