bende diğer sıkıntıyı söyleyim, t silah alınca bir alarm çalıyor. Fakat sürekli silah atıp alınca o alarm sürekli çalıyor ve baş ağrısına sebebiyet veriyor. Onu ilk aldığında çalsa sadece ?
bende diğer sıkıntıyı söyleyim, t silah alınca bir alarm çalıyor. Fakat sürekli silah atıp alınca o alarm sürekli çalıyor ve baş ağrısına sebebiyet veriyor. Onu ilk aldığında çalsa sadece ?
// Güncel //
@JDM Hala Konuya Davetlisin![]()
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
PHP- Kodu:
İletişim => cebinihat@hotmail.com
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
PHP- Kodu:
İletişim => cebinihat@hotmail.com
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
PHP- Kodu:
İletişim => cebinihat@hotmail.com
En İyi Konularım:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
color="#ff0000">CSPLAGUE.com
PHP- Kodu:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <hamsandwich>
#include <jail>
#include <fun>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
#define DMG_GRENADE ( 1 << 24 )
new bool:aldi[33]
new g_item1[33]
new g_item2[33]
new g_item3[33]
new g_item5[33]
new g_item6[33]
public plugin_precache() {
precache_sound("misc/alarm.mp3")
}
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /ctshop","ShowCTShop")
RegisterHam(Ham_TakeDamage,"player","FwdTakeDamage",0)
register_event("CurWeapon","Event_Change_Weapon", "be", "1=1")
register_logevent("eRoundEnd",2,"1=Round_End")
}
public eRoundEnd() {
new players[32],inum,id
get_players(players,inum)
for(new i;i<inum;i++) {
id = players[i]
aldi[id] = false
}
remove_task(1234)
}
public ShowCTShop(id) {
if(!uygun(id, 2) || aldi[id]) return PLUGIN_HANDLED
new menu = menu_create("Ct Shop","ct_handler")
menu_additem(menu, "FBI Korumasi #1 TL", "1", 0)
menu_additem(menu, "Kristal Yelek #2 TL", "2", 0)
menu_additem(menu, "Zincir Yelek #3 TL", "3", 0)
menu_additem(menu, "250 Saglik + 250 Zirh #1 TL", "4", 0)
menu_additem(menu, "Radar #2 TL", "5", 0)
menu_additem(menu, "Mahkum Tehlike Dedektoru #2 TL", "6", 0)
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
menu_display(id, menu, 0)
return PLUGIN_HANDLED
}
public ct_handler(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new acces, callback, data[5], iname[64]
menu_item_getinfo(menu, item, acces, data, 4, iname, 63, callback)
switch(str_to_num(data))
{
case 1:
{
if(alabilir(id, 1))
{
alsin(id, 1)
aldi[id] = true
g_item1[id] = true
client_print(id,print_center,"Mermileri yavaslatacak bir yelek aldin..")
}
}
case 2:
{
if(alabilir(id, 3))
{
alsin(id, 3)
aldi[id] = true
g_item2[id] = true
client_print(id,print_center,"Patlamalardan en az hasarla kurtulacaksin..")
}
}
case 3:
{
if(alabilir(id, 2))
{
alsin(id, 2)
aldi[id] = true
g_item3[id] = true,
client_print(id,print_center,"Bu zincir zirh, asla kesilmez ve yirtilmaz")
}
}
case 4:
{
if(alabilir(id, 1))
{
alsin(id, 1)
aldi[id] = true
set_user_health(id, get_user_health(id) + 250)
set_user_armor(id, get_user_armor(id) + 250)
}
}
case 5:
{
if(alabilir(id, 2))
{
alsin(id, 2)
if(task_exists(id + 3399)) remove_task(id + 3399)
set_task(0.5,"RadarTarama", id + 3399, "",0,"b")
client_print(id,print_center,"Radardan Mahkumlari izleyebileceksin..")
aldi[id] = true
g_item5[id] = true
}
}
case 6:
{
if(alabilir(id, 2))
{
alsin(id, 2)
aldi[id] = true
g_item6[id] = true
client_print(id,print_center,"Tehlikeli bir durum olunca bu cihaz seni uyaracak ! ")
}
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public FwdTakeDamage(victim, inflictor, attacker, Float:Damage, damage_type) {
if(victim == attacker || !is_user_connected(attacker)) return HAM_IGNORED;
if(!uygun(attacker, 1) || !uygun(victim, 2)) return HAM_IGNORED
if(g_item1[victim] && (damage_type & DMG_BULLET)) {
SetHamParamFloat(4, Damage / 4.0)
}
if(g_item2[victim] && (damage_type & DMG_GRENADE)) {
SetHamParamFloat(4, Damage / 4.0)
}
if(g_item3[victim] && (get_user_weapon(attacker) == CSW_KNIFE) && !(damage_type & DMG_BULLET) && !(damage_type & DMG_GRENADE)) {
SetHamParamFloat(4, Damage / 4.0)
}
return HAM_HANDLED
}
public RadarTarama(taskid)
{
new id = taskid - 3399
if(uygun(id, 2))
{
new terorSayisi, terorListesi[32], terorCord[3]
for(new i = 1; i < 33; i++)
{
if(uygun(i, 1))
{
terorListesi[terorSayisi] = i;
terorSayisi++
get_user_origin(i, terorCord, 1)
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("HostagePos"), {0,0,0}, id)
write_byte(id)
write_byte(i)
write_coord(terorCord[0])
write_coord(terorCord[1])
write_coord(terorCord[2])
message_end()
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("HostageK"), {0,0,0}, id)
write_byte(i)
message_end()
}
}
}
else
{
remove_task(taskid)
}
}
public Event_Change_Weapon(id) {
if(uygun(id, 1) && get_user_weapon(id) != CSW_KNIFE) {
for(new i = 1; i < 33; i++) {
if(uygun(i, 2) && g_item6[i]) {
new terorCord[3]
get_user_origin(id, terorCord, 2)
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("HostagePos"), {0,0,0}, i)
write_byte(i)
write_byte(id)
write_coord(terorCord[0])
write_coord(terorCord[1])
write_coord(terorCord[2])
message_end()
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("HostageK"), {0,0,0}, i)
write_byte(id)
message_end()
set_hudmessage(255, 0, 0, 0.13, 0.85, 0, 6.0, 5.0)
show_hudmessage(i, "Dikkat : Mahkumlardan biri silah aldi!")
set_task(1.0,"Alarm",1234)
}
}
}
}
public alarm(id) {
client_cmd(0,"spk misc/alarm")
remove_task(1234)
}
stock uygun(id, takim) {
if(is_user_connected(id) && is_user_alive(id) && get_user_team(id) == takim) {
return 1
}
return 0
}
stock alabilir(id, miktar) {
if(jb_get_user_packs(id) >= miktar) return 1
return 0
}
stock alsin(id, miktar) {
jb_set_user_packs(id, jb_get_user_packs(id) - miktar)
}
Steam ID: STEAM_1:0:70428872
Steam Name: Seps!s
Skype: jdm.csplague
Takdir ediliyorsan değil, Taklit ediliyorsan başarmışsın demektir.
Albert Einstein
@JDM El Başı Açılmasını İstiyorum , Eğer Kaçırırsa Say'a /ctshop Yazmasını İstiyorum.Böyle Yapabilirmisin Yani Böyle Bir Şey Mümkünmü?
EDIT:
Ayrıca Şu Yazıda SPK Yerine Sound Olması Gerekmiyormu?(Altta Belirttim Yazıyı)
Yani Burda SPK Ne Anlama Geliyor Demek İstiyorum?PHP- Kodu:
client_cmd(0,"spk misc/alarm")
Konu Nobb tarafından (14-03-14 Saat 23:44 ) değiştirilmiştir.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
PHP- Kodu:
İletişim => cebinihat@hotmail.com
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
PHP- Kodu:
İletişim => cebinihat@hotmail.com
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
PHP- Kodu:
İletişim => cebinihat@hotmail.com
En İyi Konularım:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
color="#ff0000">CSPLAGUE.com
@Nobb Aga bu sefer sıkıntı olmazmı ama el başı açılırsa
Serverin galiba jail o yüzden sıkıntı olabilir el başı silah menusude geliyor
karışabilir yani
en iyisi ct deyken otosay mesajı cıkacak dedigin gibi sadece ct görecek ve bu mesaj her 5 dk da fln çıkacak
Ctshopa girmek için /ctshop yaziniz fln gibi bi mesaj
@JDM Alarm sesi bence sadece silah aldıgında 3 saniye çalsın yada bilemedin 5 daha iyi olur bence .
Evet Sende Haklısın Silah Menüyle Sıkıntı Olur.Alarm Sesini Ben Bulduğumda 25 Saniye Sürüyor.Onu Kısaltabilirseniz Bencede İyi Olur.Yani 5-10 Saniye Olsun Demek İstiyorum.Say Mesajınıda Bencede Sadece CT Görebilsin.B Tuşu İle Açılabilse Güzel Olur.
Mesajda Şöyle Olursa Güzel Olur ;
PHP- Kodu:
CT Shoptan Esya Almak Icin Say'dan /ctshop Yaz & [ B ] Tusuna Bas.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
PHP- Kodu:
İletişim => cebinihat@hotmail.com
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
PHP- Kodu:
İletişim => cebinihat@hotmail.com
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
PHP- Kodu:
İletişim => cebinihat@hotmail.com
En İyi Konularım:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
color="#ff0000">CSPLAGUE.com
Alarm sesinide siz ayarlayın onuda ben yapacak değilim ya
PHP- Kodu:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <hamsandwich>
#include <jail>
#include <fun>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
#define DMG_GRENADE ( 1 << 24 )
new bool:aldi[33]
new g_item1[33]
new g_item2[33]
new g_item3[33]
new g_item5[33]
new g_item6[33]
public plugin_precache() {
precache_sound("misc/alarm.mp3")
}
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /ctshop","ShowCTShop")
RegisterHam(Ham_TakeDamage,"player","FwdTakeDamage",0)
register_event("CurWeapon","Event_Change_Weapon", "be", "1=1")
register_logevent("eRoundEnd",2,"1=Round_End")
set_task(300.0,"Task", _, _, _, "b")
}
public client_connect(id) {
client_cmd(id,"bind b say /ctshop")
}
public Task() {
new players[32],inum,id
get_players(players,inum,"ae","CT")
for(new i;i<inum;i++) {
id = players[i]
client_print(id, print_chat,"CT Shop'a girmek icin say /ctshop yazin veya b tusuna basin.")
}
}
public eRoundEnd() {
new players[32],inum,id
get_players(players,inum)
for(new i;i<inum;i++) {
id = players[i]
aldi[id] = false
}
remove_task(1234)
}
public ShowCTShop(id) {
if(!uygun(id, 2) || aldi[id]) return PLUGIN_HANDLED
new menu = menu_create("Ct Shop","ct_handler")
menu_additem(menu, "FBI Korumasi #1 TL", "1", 0)
menu_additem(menu, "Kristal Yelek #2 TL", "2", 0)
menu_additem(menu, "Zincir Yelek #3 TL", "3", 0)
menu_additem(menu, "250 Saglik + 250 Zirh #1 TL", "4", 0)
menu_additem(menu, "Radar #2 TL", "5", 0)
menu_additem(menu, "Mahkum Tehlike Dedektoru #2 TL", "6", 0)
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
menu_display(id, menu, 0)
return PLUGIN_HANDLED
}
public ct_handler(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new acces, callback, data[5], iname[64]
menu_item_getinfo(menu, item, acces, data, 4, iname, 63, callback)
switch(str_to_num(data))
{
case 1:
{
if(alabilir(id, 1))
{
alsin(id, 1)
aldi[id] = true
g_item1[id] = true
client_print(id,print_center,"Mermileri yavaslatacak bir yelek aldin..")
}
}
case 2:
{
if(alabilir(id, 3))
{
alsin(id, 3)
aldi[id] = true
g_item2[id] = true
client_print(id,print_center,"Patlamalardan en az hasarla kurtulacaksin..")
}
}
case 3:
{
if(alabilir(id, 2))
{
alsin(id, 2)
aldi[id] = true
g_item3[id] = true,
client_print(id,print_center,"Bu zincir zirh, asla kesilmez ve yirtilmaz")
}
}
case 4:
{
if(alabilir(id, 1))
{
alsin(id, 1)
aldi[id] = true
set_user_health(id, get_user_health(id) + 250)
set_user_armor(id, get_user_armor(id) + 250)
}
}
case 5:
{
if(alabilir(id, 2))
{
alsin(id, 2)
if(task_exists(id + 3399)) remove_task(id + 3399)
set_task(0.5,"RadarTarama", id + 3399, "",0,"b")
client_print(id,print_center,"Radardan Mahkumlari izleyebileceksin..")
aldi[id] = true
g_item5[id] = true
}
}
case 6:
{
if(alabilir(id, 2))
{
alsin(id, 2)
aldi[id] = true
g_item6[id] = true
client_print(id,print_center,"Tehlikeli bir durum olunca bu cihaz seni uyaracak ! ")
}
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
public FwdTakeDamage(victim, inflictor, attacker, Float:Damage, damage_type) {
if(victim == attacker || !is_user_connected(attacker)) return HAM_IGNORED;
if(!uygun(attacker, 1) || !uygun(victim, 2)) return HAM_IGNORED
if(g_item1[victim] && (damage_type & DMG_BULLET)) {
SetHamParamFloat(4, Damage / 4.0)
}
if(g_item2[victim] && (damage_type & DMG_GRENADE)) {
SetHamParamFloat(4, Damage / 4.0)
}
if(g_item3[victim] && (get_user_weapon(attacker) == CSW_KNIFE) && !(damage_type & DMG_BULLET) && !(damage_type & DMG_GRENADE)) {
SetHamParamFloat(4, Damage / 4.0)
}
return HAM_HANDLED
}
public RadarTarama(taskid)
{
new id = taskid - 3399
if(uygun(id, 2))
{
new terorSayisi, terorListesi[32], terorCord[3]
for(new i = 1; i < 33; i++)
{
if(uygun(i, 1))
{
terorListesi[terorSayisi] = i;
terorSayisi++
get_user_origin(i, terorCord, 1)
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("HostagePos"), {0,0,0}, id)
write_byte(id)
write_byte(i)
write_coord(terorCord[0])
write_coord(terorCord[1])
write_coord(terorCord[2])
message_end()
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("HostageK"), {0,0,0}, id)
write_byte(i)
message_end()
}
}
}
else
{
remove_task(taskid)
}
}
public Event_Change_Weapon(id) {
if(uygun(id, 1) && get_user_weapon(id) != CSW_KNIFE) {
for(new i = 1; i < 33; i++) {
if(uygun(i, 2) && g_item6[i]) {
new terorCord[3]
get_user_origin(id, terorCord, 2)
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("HostagePos"), {0,0,0}, i)
write_byte(i)
write_byte(id)
write_coord(terorCord[0])
write_coord(terorCord[1])
write_coord(terorCord[2])
message_end()
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("HostageK"), {0,0,0}, i)
write_byte(id)
message_end()
set_hudmessage(255, 0, 0, 0.13, 0.85, 0, 6.0, 5.0)
show_hudmessage(i, "Dikkat : Mahkumlardan biri silah aldi!")
set_task(1.0,"Alarm",1234)
}
}
}
}
public alarm(id) {
client_cmd(0,"spk misc/alarm")
remove_task(1234)
}
stock uygun(id, takim) {
if(is_user_connected(id) && is_user_alive(id) && get_user_team(id) == takim) {
return 1
}
return 0
}
stock alabilir(id, miktar) {
if(jb_get_user_packs(id) >= miktar) return 1
return 0
}
stock alsin(id, miktar) {
jb_set_user_packs(id, jb_get_user_packs(id) - miktar)
}
Steam ID: STEAM_1:0:70428872
Steam Name: Seps!s
Skype: jdm.csplague
Takdir ediliyorsan değil, Taklit ediliyorsan başarmışsın demektir.
Albert Einstein
Tamam O Sorun Değilde Şu SPK Ne Anlama Geliyor? Onu Sound Olarak Değiştirsek Sorun Olurmu Acaba?
PHP- Kodu:
client_cmd(0,"spk misc/alarm")
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
PHP- Kodu:
İletişim => cebinihat@hotmail.com
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
PHP- Kodu:
İletişim => cebinihat@hotmail.com
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
PHP- Kodu:
İletişim => cebinihat@hotmail.com
En İyi Konularım:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
color="#ff0000">CSPLAGUE.com
@Nobb Reis ben deniorum şimdi plugini panelden sound/misc dosyasına yükledim alarmı çalısırsa sölerim sana
EDİT :
Alarm Çalışmadı Jdm bide önceki mesajda belirttigim gibi sadece mapta 1 defa açılıyor
@JDM yani ct geçince /ctshop yazıyorum herhangi bişi alıyorum sonra el bitiyor yeni bi ele başlayınca
/ctshop yazdıgımda hiçbirşey gelmiyor Servere Rest atsamda aynı gelmiyor yazınca
yani mapta sadece 1 kere yazılıyor sonrasında yazınca gelmiyor..
Konu hasan06500 tarafından (15-03-14 Saat 19:11 ) değiştirilmiştir.
Test ettim çalışıyor? Eğer çalışmazsa plugins.ini'ye yazdığın eklentinin sonuna debug yaz.
Ben bir şeyi biliyorum ki spk yazıyorum değil mi? spk = speak yazılımının kısaltılmış halidir yani ben hl motoruna sound/misc uzantasında ki alarm.mp3 dosyasını söyle yani çaldır diyorum.
Steam ID: STEAM_1:0:70428872
Steam Name: Seps!s
Skype: jdm.csplague
Takdir ediliyorsan değil, Taklit ediliyorsan başarmışsın demektir.
Albert Einstein