set_user_maxspeed ( index, [ Float:speed = - 1.0 ] )
lub dal jakis prosty plug ktory po wpisaniu /speed dawalby szybkosc ?
Edited by amxxmaster, 16.06.2011 15:52.
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.
|
Posted 16.06.2011 15:50
Edited by amxxmaster, 16.06.2011 15:52.
Posted 16.06.2011 16:03
set_user_maxspeed(id,600.0)albo fakemeta:
set_pev(ent,pev_velocity, ...
Edited by hiroshima, 16.06.2011 16:06.
Posted 16.06.2011 16:21
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <fun> #include <cstrike> #define PLUGIN "New Plugin" #define VERSION "1.0" #define AUTHOR "Author" #define weapon_num 29 new zycie_koszt new kamizelka_koszt public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_cvar("zycie_koszt","6000") register_cvar("kamizelka_koszt","500") register_clcmd("say zycie","zycie") register_clcmd("say kamizelka","kamizelka") register_clcmd("say szybkosc","szybkosc") } public zycie(id){ if(!is_user_alive(id)){ client_print(id,print_chat,"[Zycie] Musisz byz zywy aby moc uzyc tej komendy!") return PLUGIN_HANDLED } if(get_user_health(id)>=200){ client_print(id,print_chat,"[Zycie] Juz dostales 200 Zycia!") return PLUGIN_HANDLED } set_user_health(id,200) cs_set_user_money(id,cs_get_user_money(id)-get_pcvar_num(zycie_koszt)) return PLUGIN_HANDLED } public kamizelka(id){ if(!is_user_alive(id)){ client_print(id,print_chat,"[Zycie] Musisz byz zywy aby moc uzyc tej komendy!") return PLUGIN_HANDLED } set_user_armor(id,200) cs_set_user_money(id,cs_get_user_money(id)-get_pcvar_num(kamizelka_koszt)) return PLUGIN_HANDLED } public szybkosc(id){ if (is_user_alive(id)) { strip_user_weapons(id) set_user_maxspeed(id,10000000.0) give_item(id,"weapon_knife") client_print(id, print_chat, "Twoje Bronie zostaly zabrane, twoja szybkosc zostala zwiekszona!") } }
Posted 16.06.2011 16:23
Edited by DAMIANq, 16.06.2011 16:25.
Posted 16.06.2011 16:29
Edited by amxxmaster, 16.06.2011 16:38.
Posted 16.06.2011 16:39
Edited by DAMIANq, 16.06.2011 16:40.
Posted 16.06.2011 16:40
#include <amxmodx>
#include <fun>
new bool:g_freezetime
new Float:g_weap_speed[32] = {0.0, 250.0, 0.0, 260.0, 250.0, 240.0, 250.0, 250.0, 240.0,
250.0, 250.0, 250.0, 250.0, 210.0, 240.0, 240.0, 250.0, 250.0, 210.0, 250.0, 220.0, 230.0,
230.0, 250.0, 210.0, 250.0, 250.0, 235.0, 221.0, 250.0, 245.0, 0.0}
new Float:g_speed_modifier = 1.4 // - to dodaje 140% szybkosci do kazdej broni
new g_max_players
public plugin_init(){
register_plugin("ModifyWeaponSpeed", "1.0", "Sylwester")
register_event("CurWeapon", "event_CurWeapon", "be", "1=1")
register_event("HLTV", "event_new_round", "a", "1=0", "2=0")
register_logevent("logevent_round_start", 2, "1=Round_Start")
g_max_players = get_maxplayers()
}
public event_CurWeapon(id)
reset_player_speed(id)
public event_new_round()
g_freezetime = true
public logevent_round_start(){
g_freezetime = false
set_task(0.1, "delayed_round_start")
}
public delayed_round_start(){
for(new i=1; i<=g_max_players; i++)
if(is_user_alive(i))
reset_player_speed(i)
}
public reset_player_speed(id){
if(g_freezetime)
return
set_user_maxspeed(id, g_weap_speed[get_user_weapon(id)] * g_speed_modifier)
}
(Max running speed at least for cs is 2000.0),
a masz dużo więcej.
Edited by hiroshima, 16.06.2011 16:42.
Posted 16.06.2011 16:45
Edited by amxxmaster, 16.06.2011 16:49.
Posted 16.06.2011 16:50
Edited by DAMIANq, 16.06.2011 16:54.
Posted 16.06.2011 16:51
Posted 16.06.2011 16:54
Posted 16.06.2011 20:22
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <fun> #include <cstrike> #define PLUGIN "AmxxMasterMod" #define VERSION "1.0" #define AUTHOR "AmxxMaster" new zycie_koszt public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_cvar("zycie_koszt","6000") register_clcmd("say zycie","zycie") } public zycie(id){ if(!is_user_alive(id)){ client_print(id,print_chat,"[Zycie] Musisz byz zywy aby moc uzyc tej komendy!") return PLUGIN_HANDLED } if(get_user_health(id)>=200){ client_print(id,print_chat,"[Zycie] Juz dostales 200 punktow zycia!") return PLUGIN_HANDLED } if(cs_get_user_money(id) < get_cvar_num("zycie_koszt")) { client_print(id,print_chat,"[Zycie] Nie masz wystarczajaco duzo pieniedzy!"); return PLUGIN_HANDLED; } set_user_health(id,200) cs_set_user_money(id, cs_get_user_money(id) - get_cvar_num("zycie_koszt")) return PLUGIN_HANDLED; }
Posted 16.06.2011 21:35
Edited by RPK. Shark, 16.06.2011 21:36.
Posted 17.06.2011 10:42
Edited by amxxmaster, 17.06.2011 11:20.
Posted 18.06.2011 10:42
new uzycie;
public zycie(id){
uzycie++
if(uzycie > 5)
return;
if(!is_user_alive(id)){
client_print(id,print_chat,"[Zycie] Musisz byz zywy aby moc uzyc tej komendy!")
return PLUGIN_HANDLED
}
if(get_user_health(id)>=200){
client_print(id,print_chat,"[Zycie] Juz dostales 200 punktow zycia!")
return PLUGIN_HANDLED
}
if(cs_get_user_money(id) < get_cvar_num("zycie_koszt"))
{
client_print(id,print_chat,"[Zycie] Nie masz wystarczajaco duzo pieniedzy!");
return PLUGIN_HANDLED;
}
set_user_health(id,200)
cs_set_user_money(id, cs_get_user_money(id) - get_cvar_num("zycie_koszt"))
return PLUGIN_HANDLED;
}
register_logevent("eventStartRound", 2, "1=Round_Start");
public eventStartRound()
{
uzycie = 0;
}
Edited by stepdub, 18.06.2011 10:59.
0 members, 1 guests, 0 anonymous users