set_user_maxspeed ( index, [ Float:speed = - 1.0 ] )
lub dal jakis prosty plug ktory po wpisaniu /speed dawalby szybkosc ?
Użytkownik amxxmaster edytował ten post 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.
|
Napisano 16.06.2011 15:50
Użytkownik amxxmaster edytował ten post 16.06.2011 15:52
Napisano 16.06.2011 16:03
set_user_maxspeed(id,600.0)albo fakemeta:
set_pev(ent,pev_velocity, ...
Użytkownik hiroshima edytował ten post 16.06.2011 16:06
Napisano 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!")
}
}Napisano 16.06.2011 16:23
Użytkownik DAMIANq edytował ten post 16.06.2011 16:25
Napisano 16.06.2011 16:29
Użytkownik amxxmaster edytował ten post 16.06.2011 16:38
Napisano 16.06.2011 16:39
Użytkownik DAMIANq edytował ten post 16.06.2011 16:40
Napisano 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.
Użytkownik hiroshima edytował ten post 16.06.2011 16:42
Napisano 16.06.2011 16:45
Użytkownik amxxmaster edytował ten post 16.06.2011 16:49
Napisano 16.06.2011 16:50
Użytkownik DAMIANq edytował ten post 16.06.2011 16:54
Napisano 16.06.2011 16:51
Napisano 16.06.2011 16:54
Napisano 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;
}
Napisano 16.06.2011 21:35
Użytkownik RPK. Shark edytował ten post 16.06.2011 21:36
Napisano 17.06.2011 10:42
Użytkownik amxxmaster edytował ten post 17.06.2011 11:20
Napisano 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;
}
Użytkownik stepdub edytował ten post 18.06.2011 10:59
0 użytkowników, 0 gości, 0 anonimowych