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.
|
[NAPISANIE] najlepszy gracz rundy dostaje fanta na next runde
#1
Napisano 08.02.2012 15:46
dodam, że mam na serwer wgrany plugin extra-lives dzięki któremu ma się 2 dodatkowe życia. chciałbym by osoba która będzie miała ciche bieganie, miała je również gdy padnie i się odrodzi (po prostu na całą runde).
Zainteresowany/a? Pisz na priv.
-------
http://amxx.pl/topic...nife-by-gring0/
http://amxx.pl/topic...nife-by-gring0/
#2
Napisano 09.02.2012 08:07
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <hamsandwich> #include <cstrike> #define PLUGIN "" #define VERSION "1.0" #define AUTHOR "speedkill" new kills[33] new prezent[33] = false public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_logevent("Koniec", 2, "1=Round_End") RegisterHam(Ham_Spawn, "player", "respawn", 1) register_event("DeathMsg","Death","a") } public client_connect(id) { prezent[id] = false; } public Koniec() { new players[32], num get_players(players, num) new rank[1] for(new i = 0; i < num; i++) { new id = players[i] if(kills[id] > rank[0]) { rank[0] = id } kills[i] = 0 } prezent[rank[0]] = true } public Death() { new iKiller = read_data(1) new iVictim = read_data(2) new a = get_user_team(iKiller) new b = get_user_team(iVictim) new c = is_user_connected(iKiller) new d = is_user_connected(iVictim) if(a != b && c && d) { kills[iKiller]++ } } public respawn(id) { if(is_user_alive(id) && prezent[id]) { cs_set_user_money(id,cs_get_user_money(id) + 1000) } }
Użytkownik speedkill edytował ten post 09.02.2012 08:08
If you can dream it, you can do it.
#3
Napisano 09.02.2012 17:33
Zainteresowany/a? Pisz na priv.
-------
http://amxx.pl/topic...nife-by-gring0/
http://amxx.pl/topic...nife-by-gring0/
#4
Napisano 09.02.2012 18:08
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#define PLUGIN ""
#define VERSION "1.0"
#define AUTHOR "speedkill"
new kills[33]
new prezent[33] = false
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_logevent("Koniec", 2, "1=Round_End")
RegisterHam(Ham_Spawn, "player", "respawn", 1)
register_event("DeathMsg","Death","a")
}
public client_connect(id) { prezent[id] = false; }
public Koniec()
{
new players[32], num
get_players(players, num)
new rank[1]
for(new i = 0; i < num; i++)
{
new id = players[i]
if(kills[id] > rank[0])
{
rank[0] = id
}
kills[i] = 0
}
prezent[rank[0]] = true
}
public Death()
{
new iKiller = read_data(1)
new iVictim = read_data(2)
new a = get_user_team(iKiller)
new b = get_user_team(iVictim)
new c = is_user_connected(iKiller)
new d = is_user_connected(iVictim)
if(a != b && c && d)
{
kills[iKiller]++
}
}
public respawn(id)
{
if(is_user_alive(id) && prezent[id])
{
cs_set_user_money(id,cs_get_user_money(id) + 1000)
}
}
public client_PreThink ( id )
{
if(is_user_alive(id) && prezent[id])
{
entity_set_int(id, EV_INT_flTimeStepSound, 300)
new Float:vect[3]
entity_get_vector(id,EV_VEC_velocity,vect)
new Float: sped= floatsqroot(vect[0]*vect[0]+vect[1]*vect[1]+vect[2]*vect[2])
if((get_user_maxspeed(id)*5)>(sped*9))
entity_set_int(id, EV_INT_flTimeStepSound, 300)
}
}
Użytkownik Jagoda edytował ten post 09.02.2012 18:09
#5
Napisano 09.02.2012 18:35
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <hamsandwich> #include <cstrike> #include <fun> #define PLUGIN "" #define VERSION "1.0" #define AUTHOR "speedkill" new kills[33] new prezent[33] = false public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_logevent("Koniec", 2, "1=Round_End") RegisterHam(Ham_Spawn, "player", "respawn", 1) register_event("DeathMsg","Death","a") } public client_connect(id) { prezent[id] = false; } public Koniec() { new players[32], num get_players(players, num) new rank[1] for(new i = 0; i < num; i++) { new id = players[i] if(kills[id] > rank[0]) { rank[0] = id } kills[i] = 0 } prezent[rank[0]] = true } public Death() { new iKiller = read_data(1) new iVictim = read_data(2) new a = get_user_team(iKiller) new b = get_user_team(iVictim) new c = is_user_connected(iKiller) new d = is_user_connected(iVictim) if(a != b && c && d) { kills[iKiller]++ } } public respawn(id) { if(is_user_alive(id) && prezent[id]) { cs_set_user_money(id,cs_get_user_money(id) + 1000) set_user_footsteps(id,1) } }[
If you can dream it, you can do it.
#6
Napisano 09.02.2012 18:37
Zainteresowany/a? Pisz na priv.
-------
http://amxx.pl/topic...nife-by-gring0/
http://amxx.pl/topic...nife-by-gring0/
#7
Napisano 09.02.2012 18:49
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#include <fun>
#define PLUGIN ""
#define VERSION "1.0"
#define AUTHOR "speedkill"
new kills[33]
new prezent[33] = false
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_logevent("Koniec", 2, "1=Round_End")
RegisterHam(Ham_Spawn, "player", "respawn", 1)
register_event("DeathMsg","Death","a")
}
public client_connect(id) { prezent[id] = false; }
public Koniec()
{
new players[32], num
get_players(players, num)
new rank[1]
for(new i = 0; i < num; i++)
{
new id = players[i]
if(kills[id] > rank[0])
{
rank[0] = id
}
kills[i] = 0
}
prezent[rank[0]] = true
}
public Death()
{
new iKiller = read_data(1)
new iVictim = read_data(2)
new a = get_user_team(iKiller)
new b = get_user_team(iVictim)
new c = is_user_connected(iKiller)
new d = is_user_connected(iVictim)
if(a != b && c && d)
{
kills[iKiller]++
}
}
public respawn(id)
{
if(is_user_alive(id) && prezent[id])
{
cs_set_user_money(id,cs_get_user_money(id) + 1000)
set_user_footsteps(id,1)
}
}
#8
Napisano 09.02.2012 18:53
public respawn(id) { if(is_user_alive(id) && prezent[id]) { cs_set_user_money(id,cs_get_user_money(id) + 1000) set_user_footsteps(id,1) } }[zamień na :
public respawn(id) { if(is_user_alive(id) && prezent[id]) { cs_set_user_money(id,cs_get_user_money(id) + 1000) set_user_footsteps(id,1) } }
If you can dream it, you can do it.
#9
Napisano 09.02.2012 19:22
Zainteresowany/a? Pisz na priv.
-------
http://amxx.pl/topic...nife-by-gring0/
http://amxx.pl/topic...nife-by-gring0/
#10
Napisano 09.02.2012 19:35
If you can dream it, you can do it.
#11
Napisano 09.02.2012 19:42
Zainteresowany/a? Pisz na priv.
-------
http://amxx.pl/topic...nife-by-gring0/
http://amxx.pl/topic...nife-by-gring0/
#12
Napisano 10.02.2012 06:27
co do pluginu - nie działa on poprawnie ponieważ gracz który był najlepszym graczem rundy, dostaje fanty nie na następną runde tylko na wszystkie rundy do końca mapy. dlatego dochodzi do tego, że pod koniec mapy 3/4 serwera ma ciche bieganie i full kasy.
Zainteresowany/a? Pisz na priv.
-------
http://amxx.pl/topic...nife-by-gring0/
http://amxx.pl/topic...nife-by-gring0/
#13
Napisano 10.02.2012 14:35
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <hamsandwich> #include <cstrike> #include <fun> #define PLUGIN "" #define VERSION "1.0" #define AUTHOR "speedkill" new kills[33] new prezent[33] = false public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_logevent("Koniec", 2, "1=Round_End") RegisterHam(Ham_Spawn, "player", "respawn", 1) register_event("DeathMsg","Death","a") } public client_connect(id) { prezent[id] = false; } public Koniec() { new players[32], num get_players(players, num) new rank[1] for(new i = 0; i < num; i++) { new id = players[i] prezent[id] = false if(kills[id] > rank[0]) { rank[0] = id } kills[i] = 0 } prezent[rank[0]] = true } public Death() { new iKiller = read_data(1) new iVictim = read_data(2) new a = get_user_team(iKiller) new b = get_user_team(iVictim) new c = is_user_connected(iKiller) new d = is_user_connected(iVictim) if(a != b && c && d) { kills[iKiller]++ } } public respawn(id) { if(is_user_alive(id) && prezent[id]) { cs_set_user_money(id,cs_get_user_money(id) + 1000) set_user_footsteps(id,1) } else { set_user_footsteps(id,0) } }
If you can dream it, you can do it.
#14
Napisano 10.02.2012 17:40
Zainteresowany/a? Pisz na priv.
-------
http://amxx.pl/topic...nife-by-gring0/
http://amxx.pl/topic...nife-by-gring0/
#15
Napisano 11.02.2012 14:57
Zainteresowany/a? Pisz na priv.
-------
http://amxx.pl/topic...nife-by-gring0/
http://amxx.pl/topic...nife-by-gring0/
#16
Napisano 11.02.2012 16:27
Błędu w kodzie nie widzę ale zobacze co i jak
If you can dream it, you can do it.
#17
Napisano 12.02.2012 16:01
Zainteresowany/a? Pisz na priv.
-------
http://amxx.pl/topic...nife-by-gring0/
http://amxx.pl/topic...nife-by-gring0/
#18
Napisano 12.02.2012 17:48
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <hamsandwich> #include <cstrike> #include <fun> #define PLUGIN "" #define VERSION "1.0" #define AUTHOR "speedkill" new kills[33] new prezent[33] = false public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_logevent("Koniec", 2, "1=Round_End") RegisterHam(Ham_Spawn, "player", "respawn", 1) register_event("DeathMsg","Death","a") } public client_connect(id) { prezent[id] = false; } public Koniec() { new rank[1] for(new i = 1; i < 33; i++) { prezent[i] = false if(kills[i] > rank[0]) { rank[0] = i } kills[i] = 0 } prezent[rank[0]] = true } public Death() { new iKiller = read_data(1) new iVictim = read_data(2) new a = get_user_team(iKiller) new b = get_user_team(iVictim) new c = is_user_connected(iKiller) new d = is_user_connected(iVictim) if(a != b && c && d && iKiller != iVictim) { kills[iKiller]++ } } public respawn(id) { if(is_user_alive(id) && prezent[id]) { cs_set_user_money(id,cs_get_user_money(id) + 1000) set_user_footsteps(id,1) } else { set_user_footsteps(id,0) } }
If you can dream it, you can do it.
#19
Napisano 23.05.2012 17:23
np. ustawię w cvarze 1000$, to właśnie tyle dostaje najlepszy gracz na koniec 1 rundy. Bez cichych butów i innych dupereli.
Z góry dziękuje.
p.s. Oczywiście jeszcze ten napis na hudzie, który gracz dostał taki benefit
Również z jednym lub większą ilością słów kluczowych: Nowy Plugin
|
Nowy Plugin
[KOSZ] pluginNapisany przez Frodo1981, 25.02.2024 nowy plugin |
|
|||
Nowy Plugin
vip pbNapisany przez One ShooT, 04.02.2024 nowy plugin |
|
||||
Nowy Plugin
Admin menuNapisany przez stół z powyłamywanymi, 22.09.2022 nowy plugin |
|
||||
Nowy Plugin
Prośba o napisanie pluginuNapisany przez stół z powyłamywanymi, 15.08.2022 nowy plugin |
|
||||
Nowy Plugin
PLUGIN NA DRplugin Napisany przez bawarskagolonka123, 25.06.2021 nowy plugin |
|
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych