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
Posted 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
Posted 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) } }
Edited by speedkill, 09.02.2012 08:08.
If you can dream it, you can do it.
#3
Posted 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
Posted 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)
}
}
Edited by Jagoda, 09.02.2012 18:09.
#5
Posted 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
Posted 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
Posted 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
Posted 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
Posted 09.02.2012 19:22
Zainteresowany/a? Pisz na priv.
-------
http://amxx.pl/topic...nife-by-gring0/
http://amxx.pl/topic...nife-by-gring0/
#11
Posted 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
Posted 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
Posted 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
Posted 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
Posted 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
Posted 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
Posted 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
Posted 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
Posted 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
Also tagged with one or more of these keywords: Nowy Plugin
|
Nowy Plugin
[KOSZ] pluginStarted by Frodo1981, 25.02.2024 nowy plugin |
|
|||
Nowy Plugin
vip pbStarted by One ShooT, 04.02.2024 nowy plugin |
|
||||
Nowy Plugin
Admin menuStarted by stół z powyłamywanymi, 22.09.2022 nowy plugin |
|
||||
Nowy Plugin
Prośba o napisanie pluginuStarted by stół z powyłamywanymi, 15.08.2022 nowy plugin |
|
||||
Nowy Plugin
PLUGIN NA DRplugin Started by bawarskagolonka123, 25.06.2021 nowy plugin |
|
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users