witam, jak zrobic aby gracz ktory jest pierwszy w top1 dostawal +10hp ??
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.
|
[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
#1
Posted 04.01.2014 18:01
#2
Posted 04.01.2014 18:22
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
DarkGL to mój autorytet.
skomplikować skomplikować skomplikować skomplikować skomplikować skomplikować skomplikować skomplikować skomplikować skomplikować skomplikować skomplikować skomplikować skomplikować
#3
Posted 04.01.2014 18:41
tak robilem i nie dawalo
dalbys jakis przykladowy plugin ??
#4
Posted 04.01.2014 23:29 Best Answer
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); }
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users