Kod:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <hlsdk_const>
#include <fakemeta>
#include <fun>
#include <jail>
#include <engine>
#define PLUGIN "Hulk"
#define VERSION "v1.0"
#define AUTHOR "MawiLarq"
new g_zipla[33]
new kacziplasin,ucret
new jumpnum[33]
new bool:dojump[33]
new zmonster[64] = "zmonster"
#define TAG " DestuR "
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
kacziplasin = register_cvar("amx_maxjumps","1")
register_clcmd("say /hulk","hulk")
set_task(100.0, "hulk_bilgi", 0, _, _, "b")
ucret = register_cvar("amx_hulk_ucret","50");
}
/*============================================================
Precaches
============================================================*/
public plugin_precache()
{
precache_model("models/player/zmonster/zmonster.mdl")
}
public hulk_bilgi(id)
{
renkli_yazi(id,"!t[!g%s!t] !t50TL !gKarsiliginda !tHULK !gOlabilirsiniz",TAG)
renkli_yazi(id,"!t[!g%s!t] !gTek yapmaniz gereken !t[ !gsay /hulk !t] !gyazmak",TAG)
}
public hulk(id)
{
new fuckyee = get_pcvar_num(ucret)
if(jb_get_user_packs(id) >= fuckyee)
{
jb_set_user_packs(id, jb_get_user_packs(id) - fuckyee)
console_cmd(id,"say /3pers")
new isimcik[64]
get_user_name(id,isimcik,63)
set_user_maxspeed(id, 100.0) // Hizini Burdan
set_user_gravity(id,0.5) // Ziplama burdan
set_task(0.1,"zombie_aura",id + 7961,"",0,"b")
set_user_health(id,500) // Hulkun Canini Burdan
cs_set_user_model(id, zmonster)
g_zipla[id] = true
renkli_yazi(id,"!t[!g%s!t] !nOyuncu !tHulk'a !gDonustu! !t[!g500HP+100ARMOR!t]",isimcik)
renkli_yazi(id,"!t[!g%s!t] !nOyuncu !tHulk'a !gDonustu! !t[!g500HP+100ARMOR!t]",isimcik)
renkli_yazi(id,"!t[!g%s!t] !nOyuncu !tHulk'a !gDonustu! !t[!g500HP+100ARMOR!t]",isimcik)
renkli_yazi(id,"!t[!g%s!t] !nOyuncu !tHulk'a !gDonustu! !t[!g500HP+100ARMOR!t]",isimcik)
renkli_yazi(id,"!t[!g%s!t] !nOyuncu !tHulk'a !gDonustu! !t[!g500HP+100ARMOR!t]",isimcik)
}
else
{
renkli_yazi(id,"!t[!g%s!t] !gYeterli !tTL !g' Niz Yok Gerekli Olan !t[ !g50 TL !t]",TAG)
}
}
public client_connect(id)
{
jumpnum[id] = 0
dojump[id] = false
}
public client_disconnect(id)
{
jumpnum[id] = 0
dojump[id] = false
}
public client_PreThink(id)
{
if(!is_user_alive(id)) return PLUGIN_CONTINUE
new nbut = get_user_button(id)
new obut = get_user_oldbutton(id)
if((nbut & IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(obut & IN_JUMP) && g_zipla[id])
{
if(jumpnum[id] < get_pcvar_num(kacziplasin))
{
dojump[id] = true
jumpnum[id]++
return PLUGIN_CONTINUE
}
}
if((nbut & IN_JUMP) && (get_entity_flags(id) & FL_ONGROUND))
{
jumpnum[id] = 0
return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}
public zombie_aura(TaskID)
{
new id = TaskID - 7961;
if(is_user_alive(id))
{
new Origin[3];
get_user_origin(id,Origin,0)
message_begin(MSG_ALL, SVC_TEMPENTITY)
write_byte(TE_DLIGHT)
write_coord(Origin[0])
write_coord(Origin[1])
write_coord(Origin[2])
write_byte(12)
write_byte(255)
write_byte(0)
write_byte(0)
write_byte(1)
write_byte(0)
message_end();
}
}
stock renkli_yazi(const id, const input[], any:...)
{
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);
replace_all(msg, 190, "!n", "^x01"); // Default Renk(Sarı)
replace_all(msg, 190, "!g", "^x04"); // Yeşil Renk
replace_all(msg, 190, "!t", "^x03"); // Takım Renk( CT mavi , T kırmızı )
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();
}
}
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1254\\ deff0\\ deflang1055{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/