/*
* _______ _ _ __ __
* | _____/ | | | | \ \ __ / /
* | | | | | | | | / \ | |
* | | | |____| | | |/ __ \| |
* | | ___ | ______ | | / \ |
* | | |_ | | | | | | / \ |
* | | | | | | | | | | | |
* | |____| | | | | | | | | |
* |_______/ |_| |_| \_/ \_/
*
*
*
* Last Edited: 12-31-07
*
* ============
* Changelog:
* ============
*
* v2.0
* -Added ML
* -Optimized Code
*
* v1.0
* -Initial Release
*
*/
#define VERSION "2.0"
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
new bool:has_rb[33]
new cost_cvar, lasts_cvar, speed_cvar
public plugin_init()
{
register_plugin("Red Bull",VERSION,"GHW_Chronic")
register_clcmd("say /redbull","say_cmd_handle")
cost_cvar = register_cvar("RB_Cost","0")
lasts_cvar = register_cvar("RB_Lasts","20.0")
speed_cvar = register_cvar("RB_Speed","750.0")
register_event("CurWeapon","curweap","be")
register_dictionary("GHW_Red_Bull.txt")
}
public curweap(id)
{
if(is_user_alive(id) && has_rb[id])
{
client_cmd(id,"cl_forwardspeed 400;cl_backspeed 400;cl_sidespeed 400")
set_user_maxspeed(id,get_pcvar_float(speed_cvar))
}
}
public client_connect(id) has_rb[id]=false
public client_disconnect(id) has_rb[id]=false
public say_cmd_handle(id)
{
if(!is_user_alive(id))
{
client_print(id,print_chat,"[RB] %L",id,"MSG_NOBUY_DEAD")
}
else if(has_rb[id])
{
client_print(id,print_chat,"[RB] %L",id,"MSG_NOBUY_HAVE")
}
else if(cs_get_user_money(id)<get_pcvar_num(cost_cvar))
{
client_print(id,print_chat,"[RB] %L",id,"MSG_NOBUY_POOR",get_pcvar_num(cost_cvar))
}
else
{
cs_set_user_money(id,cs_get_user_money(id) - get_pcvar_num(cost_cvar),1)
has_rb[id]=true
set_task(get_pcvar_float(lasts_cvar),"redbull_over",id)
set_task(1.0,"plus_hp",id,"",0,"b")
set_user_gravity(id,0.5)
set_user_maxspeed(id,get_pcvar_float(speed_cvar))
client_print(id,print_chat,"[RB] %L",id,"MSG_REDBULL1")
client_print(id,print_chat,"[RB] %L",id,"MSG_REDBULL2")
}
}
public plus_hp(id)
{
if(has_rb[id]) set_user_health(id,get_user_health(id)+1)
}
public redbull_over(id)
{
if(is_user_connected(id))
{
has_rb[id]=false
client_print(id,print_chat,"[RB] %L",id,"MSG_REDBULL_OFF")
set_user_gravity(id,1.0)
set_user_maxspeed(id,320.0)
set_user_gravity(id,1.0)
remove_task(id)
}
}
buradaki redbull kodum cost 0 yaptım ama hala para istiyor ne yapmalıyım yardım eder misiniz
Konu
Pluginin çalışması için;
https://github.com/rehlds/ReGameDLL_CS/releases/tag/5.28.0.756 regamedll-bin-5.28.0.756.zip
https://github.com/rehlds/ReAPI/releases/tag/5.26.0.338 reapi-bin-5.26.0.338.zip
İndirip windows ise gerekli yerlere, linux ise gerekli yerlere atıp kurun.
reAPI olmadan attığım plugin çalışmayacaktır
https://github.com/rehlds/ReGameDLL_CS/releases/tag/5.28.0.756 regamedll-bin-5.28.0.756.zip
https://github.com/rehlds/ReAPI/releases/tag/5.26.0.338 reapi-bin-5.26.0.338.zip
İndirip windows ise gerekli yerlere, linux ise gerekli yerlere atıp kurun.
reAPI olmadan attığım plugin çalışmayacaktır
(11-02-2026, 23:21)marlen Adlı Kullanıcıdan Alıntı: Pluginin çalışması için;404 not found veriyor ikiside
https://github.com/rehlds/ReGameDLL_CS/releases/tag/5.28.0.756 regamedll-bin-5.28.0.756.zip
https://github.com/rehlds/ReAPI/releases/tag/5.26.0.338 reapi-bin-5.26.0.338.zip
İndirip windows ise gerekli yerlere, linux ise gerekli yerlere atıp kurun.
reAPI olmadan attığım plugin çalışmayacaktır
@VOLLAK15 merhabalar konu basliginda tamamen buyuk harf kullanmamaya özen gösteriniz.ve konu basligini aciklayici sekilde acmaya özen gösteriniz.
MODEL TASARIMI SİLAH TASARIMI SPREY TASARIMI EKLENTİ İŞLERİ MOD KURULUMU İÇİN DİSCORD:okan5705 veya Ts3 Domainler:flexekip,flexekib,okan,okans
https://github.com/rehlds/ReGameDLL_CS/releases/tag/5.28.0.756
https://github.com/rehlds/ReAPI/releases/tag/5.26.0.338
Hatasız giriş yapıyor
https://github.com/rehlds/ReAPI/releases/tag/5.26.0.338
Hatasız giriş yapıyor
Benzer Konular
Yorum
1.363
Okunma
13-01-2026, 20:47
Yorum
1.622
Okunma
09-01-2026, 01:45
Yorum
4.367
Okunma
)

