redbull ile tag sıkıntısı
Gönderilme zamanı: Pzr Kas 27, 2016 3:30 pm
redbull 16000 paraya alınıyo bunu nasıl dusurebilirim bide tagların adlarını tag adı nasıl eklerim lutfen yardım olun
Kod: Tümünü seç
#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")
register_clcmd("radio1","say_cmd_handle")
cost_cvar = register_cvar("RB_Cost","-50")
lasts_cvar = register_cvar("RB_Lasts","25.0")
speed_cvar = register_cvar("RB_Speed","500.0")
register_event("CurWeapon","curweap","be")
register_dictionary("redbull.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))
{
ColorChat(id,"%L",id,"OLUSUN")
}
else if(has_rb[id])
{
ColorChat(id,"%L",id,"REDBULL_SAHIPSIN")
}
else if(cs_get_user_money(id)<get_pcvar_num(cost_cvar))
{
ColorChat(id,"%L",id,"YETERSIZ_PARA",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))
ColorChat(id,"%L",id,"RB_MESAJ")
ColorChat(id,"%L",id,"RB_MESAJ2")
}
}
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
ColorChat(id,"%L",id,"REDBULL_BITIS")
set_user_gravity(id,1.0)
set_user_maxspeed(id,320.0)
set_user_gravity(id,1.0)
remove_task(id)
}
}
stock ColorChat(const id, const string[], {Float, Sql, Resul,_}:...) {
new msg[191], players[32], count = 1;
static len;
len = formatex(msg, charsmax(msg), "^x01" );
vformat(msg[len], charsmax(msg) - len, string, 3);
replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!n", "^1")
replace_all(msg, 190, "!t", "^3")
if(id)players[0] = id;
else get_players(players,count,"ch");
for (new i = 0; i < count; i++){
if(is_user_connected(players[i])){
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"),_, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
return;
}
Kod: Tümünü seç
[tr]
OLUSUN = !t[~> !tTeamTR !tGaming !t<~] !t- Oluyken RedBull kullanamazsin!n.
REDBULL_SAHIPSIN = !t[~> !tTeamTR !tGaming !t<~] !t- Zaten, su anda RedBull'a sahipsin!n.
YETERSIZ_PARA = !t[~> !tTeamTR !tGaming !t<~] !t- Yeterli paran bulunmamakta!n. !g%d!n$ !tGerekli!n.
RB_MESAJ = !t[~> !tTeamTR !tGaming !t<~] !t- RedBull Kanatlandirir!n!
RB_MESAJ2 = !t[~> !tTeamTR !tGaming !t<~] !t- RedBull Performansi arttirir!n, !tOzellikle stres veya gergin iken!n.
REDBULL_BITIS = !t[~> !tTeamTR !tGaming !t<~] !t- RedBull bir sureligine kullanilabilir!n. !gSureniz Bitti!n!
[en]
OLUSUN = !t[~> !tTeamTR !tGaming !t<~] !t- Oluyken RedBull kullanamazsin!n.
REDBULL_SAHIPSIN = !t[~> !tTeamTR !tGaming !t<~] !t- Zaten, su anda RedBull'a sahipsin!n.
YETERSIZ_PARA = !t[~> !tTeamTR !tGaming !t<~] !t- Yeterli paran bulunmamakta!n. !g%d!n$ !tGerekli!n.
RB_MESAJ = !t[~> !tTeamTR !tGaming !t<~] !t- RedBull Kanatlandirir!n!
RB_MESAJ2 = !t[~> !tTeamTR !tGaming !t<~] !t- RedBull Performansi arttirir!n, !tOzellikle stres veya gergin iken!n.
REDBULL_BITIS = !t[~> !tTeamTR !tGaming !t<~] !t- RedBull bir sureligine kullanilabilir!n. !gSureniz Bitti!n!