respawn plugini
Moderatör: Moderatörler
-
Konu Sahibi - Mesajlar: 14
- Kayıt: Çrş Ağu 16, 2017 4:56 pm
respawn plugini
bana sorunsuz çalışan bir respawn plugini verebilir misiniz zombi plague için baktıklarımda hata alıyorum
Link: | |
Linklerini gizle |
-
- Mesajlar: 404
- Kayıt: Sal Şub 28, 2017 2:55 pm
respawn plugini
Buyur
Kod: Tümünü seç
#include <amxmodx>
#include <biohazard>
#include <hamsandwich>
#include <fun>
#define TASK_RESPAWN 123543
new cvar_respawn, cvar_timerespawn
public plugin_init()
{
register_plugin("[Bio] Addon: Zombie Spawn", "2.0", "Dias-CSM")
register_event("DeathMsg", "event_death", "a")
register_event("HLTV", "event_newround", "a", "1=0", "2=0")
cvar_respawn = register_cvar("bh_zombie_respawn", "1")
cvar_timerespawn = register_cvar("bh_time_respawn", "0.1")
}
public event_death()
{
new victim = read_data(2)
if(is_user_zombie(victim) && get_pcvar_num(cvar_respawn))
{
set_task(get_pcvar_float(cvar_timerespawn), "do_respawn", victim+TASK_RESPAWN)
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("BarTime"), _, victim)
write_short(get_pcvar_num(cvar_timerespawn))
message_end()
client_print(victim, print_center, "%i Saniye Sonra Dogacaksin! ", get_pcvar_num(cvar_timerespawn))
}
}
public event_newround(id)
{
if(task_exists(id+TASK_RESPAWN))
{
remove_task(id+TASK_RESPAWN)
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("BarTime"), _, id)
write_short(0)
message_end()
}
}
public do_respawn(taskid)
{
static id
id = taskid - TASK_RESPAWN
if(is_user_zombie(id) && is_user_connected(id))
{
ExecuteHam(Ham_CS_RoundRespawn, id)
client_print(id, print_center, "Yeniden dogdun!")
set_task(1.0,"godkapat",id)
set_user_godmode(id, 1);
}
}
public godkapat(id) {
if(is_user_alive(id) && is_user_connected(id)){
set_user_godmode(id, 0);
}
}
Link: | |
Linklerini gizle |
-
- Mesajlar: 718
- Kayıt: Cmt Oca 14, 2017 5:30 pm
- Konum: Makedonya
- Clan İsmi: Skull Gaming
respawn plugini
Attığın eklenti BioHazard mod için ZPde çalışmaz.Bunu dene.tosunbey yazdı:Buyur
Kod: Tümünü seç
#include <amxmodx> #include <biohazard> #include <hamsandwich> #include <fun> #define TASK_RESPAWN 123543 new cvar_respawn, cvar_timerespawn public plugin_init() { register_plugin("[Bio] Addon: Zombie Spawn", "2.0", "Dias-CSM") register_event("DeathMsg", "event_death", "a") register_event("HLTV", "event_newround", "a", "1=0", "2=0") cvar_respawn = register_cvar("bh_zombie_respawn", "1") cvar_timerespawn = register_cvar("bh_time_respawn", "0.1") } public event_death() { new victim = read_data(2) if(is_user_zombie(victim) && get_pcvar_num(cvar_respawn)) { set_task(get_pcvar_float(cvar_timerespawn), "do_respawn", victim+TASK_RESPAWN) message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("BarTime"), _, victim) write_short(get_pcvar_num(cvar_timerespawn)) message_end() client_print(victim, print_center, "%i Saniye Sonra Dogacaksin! ", get_pcvar_num(cvar_timerespawn)) } } public event_newround(id) { if(task_exists(id+TASK_RESPAWN)) { remove_task(id+TASK_RESPAWN) message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("BarTime"), _, id) write_short(0) message_end() } } public do_respawn(taskid) { static id id = taskid - TASK_RESPAWN if(is_user_zombie(id) && is_user_connected(id)) { ExecuteHam(Ham_CS_RoundRespawn, id) client_print(id, print_center, "Yeniden dogdun!") set_task(1.0,"godkapat",id) set_user_godmode(id, 1); } } public godkapat(id) { if(is_user_alive(id) && is_user_connected(id)){ set_user_godmode(id, 0); } }
Bu mesaja eklenen dosyaları görüntülemek için gerekli izinlere sahip değilsiniz.
Link: | |
Linklerini gizle |
-
- Mesajlar: 404
- Kayıt: Sal Şub 28, 2017 2:55 pm
respawn plugini
ikisinden biri işini görcektir
Kod: Tümünü seç
/* AMX Mod X script.
*
* (c) Copyright 2002-2003, f117bomb
* This file is provided as is (no warranties).
*
* *******************************************************************************
*
* Ported By KingPin( kingpin@onexfx.com ). I take no responsibility
* for this file in any way. Use at your own risk. No warranties of any kind.
*
* *******************************************************************************
*
* Set Cvar 'amx_respawn' 1 or 0
*
*/
#include <amxmodx>
#include <fun>
public TeamSelect(id)
{
if (get_cvar_num("amx_respawn") == 1) {
new sId[2]
sId[0] = id
set_task(10.0,"respawn",0,sId,2)
}
return PLUGIN_CONTINUE
}
public death_msg()
{
if (get_cvar_num("amx_respawn") == 1) {
new vIndex = read_data(2)
new svIndex[2]
svIndex[0] = vIndex
set_task(0.5,"respawn",0,svIndex,2)
}
return PLUGIN_CONTINUE
}
public respawn(svIndex[])
{
new vIndex = svIndex[0]
if(get_user_team(vIndex) == 3 || is_user_alive(vIndex))
return PLUGIN_CONTINUE
spawn(vIndex)
return PLUGIN_CONTINUE
}
public plugin_init()
{
register_plugin("amx_respawn","0.9.4","f117bomb")
register_event("DeathMsg","death_msg","a")
register_event("ShowMenu","TeamSelect","b","4&Team_Select")
register_event("VGUIMenu","TeamSelect","b","1=2")
register_cvar("amx_respawn","0")
return PLUGIN_CONTINUE
}
Link: | |
Linklerini gizle |
-
Konu Sahibi - Mesajlar: 14
- Kayıt: Çrş Ağu 16, 2017 4:56 pm
respawn plugini
tosunbey yazdı:Buyur
Kod: Tümünü seç
#include <amxmodx> #include <biohazard> #include <hamsandwich> #include <fun> #define TASK_RESPAWN 123543 new cvar_respawn, cvar_timerespawn public plugin_init() { register_plugin("[Bio] Addon: Zombie Spawn", "2.0", "Dias-CSM") register_event("DeathMsg", "event_death", "a") register_event("HLTV", "event_newround", "a", "1=0", "2=0") cvar_respawn = register_cvar("bh_zombie_respawn", "1") cvar_timerespawn = register_cvar("bh_time_respawn", "0.1") } public event_death() { new victim = read_data(2) if(is_user_zombie(victim) && get_pcvar_num(cvar_respawn)) { set_task(get_pcvar_float(cvar_timerespawn), "do_respawn", victim+TASK_RESPAWN) message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("BarTime"), _, victim) write_short(get_pcvar_num(cvar_timerespawn)) message_end() client_print(victim, print_center, "%i Saniye Sonra Dogacaksin! ", get_pcvar_num(cvar_timerespawn)) } } public event_newround(id) { if(task_exists(id+TASK_RESPAWN)) { remove_task(id+TASK_RESPAWN) message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("BarTime"), _, id) write_short(0) message_end() } } public do_respawn(taskid) { static id id = taskid - TASK_RESPAWN if(is_user_zombie(id) && is_user_connected(id)) { ExecuteHam(Ham_CS_RoundRespawn, id) client_print(id, print_center, "Yeniden dogdun!") set_task(1.0,"godkapat",id) set_user_godmode(id, 1); } } public godkapat(id) { if(is_user_alive(id) && is_user_connected(id)){ set_user_godmode(id, 0); } }
bu kodu amxx e mi atıcaz
Link: | |
Linklerini gizle |
-
Konu Sahibi - Mesajlar: 14
- Kayıt: Çrş Ağu 16, 2017 4:56 pm
respawn plugini
TheAsTeRiX yazdı:Attığın eklenti BioHazard mod için ZPde çalışmaz.Bunu dene.tosunbey yazdı:Buyur
Kod: Tümünü seç
#include <amxmodx> #include <biohazard> #include <hamsandwich> #include <fun> #define TASK_RESPAWN 123543 new cvar_respawn, cvar_timerespawn public plugin_init() { register_plugin("[Bio] Addon: Zombie Spawn", "2.0", "Dias-CSM") register_event("DeathMsg", "event_death", "a") register_event("HLTV", "event_newround", "a", "1=0", "2=0") cvar_respawn = register_cvar("bh_zombie_respawn", "1") cvar_timerespawn = register_cvar("bh_time_respawn", "0.1") } public event_death() { new victim = read_data(2) if(is_user_zombie(victim) && get_pcvar_num(cvar_respawn)) { set_task(get_pcvar_float(cvar_timerespawn), "do_respawn", victim+TASK_RESPAWN) message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("BarTime"), _, victim) write_short(get_pcvar_num(cvar_timerespawn)) message_end() client_print(victim, print_center, "%i Saniye Sonra Dogacaksin! ", get_pcvar_num(cvar_timerespawn)) } } public event_newround(id) { if(task_exists(id+TASK_RESPAWN)) { remove_task(id+TASK_RESPAWN) message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("BarTime"), _, id) write_short(0) message_end() } } public do_respawn(taskid) { static id id = taskid - TASK_RESPAWN if(is_user_zombie(id) && is_user_connected(id)) { ExecuteHam(Ham_CS_RoundRespawn, id) client_print(id, print_center, "Yeniden dogdun!") set_task(1.0,"godkapat",id) set_user_godmode(id, 1); } } public godkapat(id) { if(is_user_alive(id) && is_user_connected(id)){ set_user_godmode(id, 0); } }
verdiğin dosyada hata alıyorum
Link: | |
Linklerini gizle |
-
- Mesajlar: 404
- Kayıt: Sal Şub 28, 2017 2:55 pm
respawn plugini
@ quimss
Bu mesaja eklenen dosyaları görüntülemek için gerekli izinlere sahip değilsiniz.
Link: | |
Linklerini gizle |
-
Konu Sahibi - Mesajlar: 14
- Kayıt: Çrş Ağu 16, 2017 4:56 pm
respawn plugini
tosunbey yazdı:@ quimss
ZP_Respawn.sma
kurulumda sıkıntı çıkmadı ama respawn yapmıyor her hangi bir ayarı varmı?
Link: | |
Linklerini gizle |
-
- Mesajlar: 718
- Kayıt: Cmt Oca 14, 2017 5:30 pm
- Konum: Makedonya
- Clan İsmi: Skull Gaming
respawn plugini
Al.İstediğinde kapatabilirsin.amx_respawn 0
Bu mesaja eklenen dosyaları görüntülemek için gerekli izinlere sahip değilsiniz.
Link: | |
Linklerini gizle |
-
Konu Sahibi - Mesajlar: 14
- Kayıt: Çrş Ağu 16, 2017 4:56 pm
respawn plugini
TheAsTeRiX yazdı:Al.İstediğinde kapatabilirsin.amx_respawn 0
yine hiçbir şey olmadı.

Link: | |
Linklerini gizle |