←  Pytania

AMXX.pl: Support AMX Mod X i SourceMod

»

[ROZWIĄZANE] top1 dostaje hp na start


Best Answer Niide 04.01.2014 23:29

Coś takiego?

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <csstats>
#include <fun>

#define PLUGIN "Plugin"
#define VERSION "1.0"
#define AUTHOR "Niide"


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_logevent("round_start", 2, "1=Round_Start");
}

public round_start()
{
	new staty[8], shoty[8], nick[32];
	get_stats(0, staty, shoty, nick, 31);
	
	new id = get_user_index(nick);
	set_user_health(id, get_user_health(id) + 10);
}
Go to the full post
Locked

Oporowiec.'s Photo Oporowiec. 04.01.2014

witam, jak zrobic aby gracz ktory jest pierwszy w top1 dostawal +10hp ??

Quote

  • +
  • -
K!113r's Photo K!113r 04.01.2014

W evencie nowej rundy pobierasz sobie top1

http://amxx.pl/dokum.../f413/get-stats

i dodajesz mu hp

http://amxx.pl/dokum...set-user-health

Quote

Oporowiec.'s Photo Oporowiec. 04.01.2014

tak robilem i nie dawalo :/
dalbys jakis przykladowy plugin ??

Quote

  • +
  • -
Best Answer Niide's Photo Niide 04.01.2014

Coś takiego?

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <csstats>
#include <fun>

#define PLUGIN "Plugin"
#define VERSION "1.0"
#define AUTHOR "Niide"


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_logevent("round_start", 2, "1=Round_Start");
}

public round_start()
{
	new staty[8], shoty[8], nick[32];
	get_stats(0, staty, shoty, nick, 31);
	
	new id = get_user_index(nick);
	set_user_health(id, get_user_health(id) + 10);
}
Quote
Locked