Schimbare plugin
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
-
- Membru, skill 0
- Posts: 11
- Joined: 20 Oct 2022, 08:56
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Discord: #0128
Am si eu o intrebare. Am un plugin biohazard de count down dar cand il pun jucatorii non-steam sunt da.ti afara.Puteti sa schimbati ceva la el incat sa nu mai dea afara ?
-
- Membru, skill 0
- Posts: 11
- Joined: 20 Oct 2022, 08:56
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Discord: #0128
Pluginu este :
#include <amxmodx>
#include <dhudmessage>
const TASK_SOUND = 887
#define ID_SOUND (taskid - TASK_SOUND)
static const sound_list[][] =
{
"biohazard/timer01.wav",
"biohazard/timer02.wav",
"biohazard/timer03.wav",
"biohazard/timer04.wav",
"biohazard/timer05.wav",
"biohazard/timer06.wav",
"biohazard/timer07.wav",
"biohazard/timer08.wav",
"biohazard/timer09.wav",
"biohazard/timer10.wav"
}
static const sound_list2[] = "biohazard/timestart.wav"
new g_count, g_time
public plugin_precache()
{
for(new i = 0 ; i < sizeof sound_list ; i++)
precache_sound(sound_list)
precache_sound(sound_list2)
}
public plugin_init()
{
register_plugin("[Bio] Countdown Fix", "1.0", "P.Of.Pw")
register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
}
public event_round_start(id)
{
remove_task(id+TASK_SOUND)
g_time = 10
g_count = 9
set_task(1.0, "countdown_sound", id+TASK_SOUND, _, _, "b")
}
public client_disconnect(id)
remove_task(id+TASK_SOUND)
public countdown_sound(taskid)
{
static id
id = ID_SOUND
client_cmd(id, "spk %s", sound_list[g_count])
g_count--
set_dhudmessage(random_num(0, 255), random_num(0, 255), random_num(0, 255), -1.0, 0.28, 2, 0.02, 1.0, 0.01, 0.1)
show_dhudmessage(id, "* %i *^nThe Virus will spread...", g_time)
--g_time
if(g_time < 1)
{
client_cmd(id, "spk %s", sound_list2)
remove_task(id+TASK_SOUND)
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
#include <amxmodx>
#include <dhudmessage>
const TASK_SOUND = 887
#define ID_SOUND (taskid - TASK_SOUND)
static const sound_list[][] =
{
"biohazard/timer01.wav",
"biohazard/timer02.wav",
"biohazard/timer03.wav",
"biohazard/timer04.wav",
"biohazard/timer05.wav",
"biohazard/timer06.wav",
"biohazard/timer07.wav",
"biohazard/timer08.wav",
"biohazard/timer09.wav",
"biohazard/timer10.wav"
}
static const sound_list2[] = "biohazard/timestart.wav"
new g_count, g_time
public plugin_precache()
{
for(new i = 0 ; i < sizeof sound_list ; i++)
precache_sound(sound_list)
precache_sound(sound_list2)
}
public plugin_init()
{
register_plugin("[Bio] Countdown Fix", "1.0", "P.Of.Pw")
register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
}
public event_round_start(id)
{
remove_task(id+TASK_SOUND)
g_time = 10
g_count = 9
set_task(1.0, "countdown_sound", id+TASK_SOUND, _, _, "b")
}
public client_disconnect(id)
remove_task(id+TASK_SOUND)
public countdown_sound(taskid)
{
static id
id = ID_SOUND
client_cmd(id, "spk %s", sound_list[g_count])
g_count--
set_dhudmessage(random_num(0, 255), random_num(0, 255), random_num(0, 255), -1.0, 0.28, 2, 0.02, 1.0, 0.01, 0.1)
show_dhudmessage(id, "* %i *^nThe Virus will spread...", g_time)
--g_time
if(g_time < 1)
{
client_cmd(id, "spk %s", sound_list2)
remove_task(id+TASK_SOUND)
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
- kidd0x
- Utilizator neserios (tepar)
- Posts: 1054
- Joined: 06 Oct 2018, 14:41
- Detinator Steam: Da
- SteamID: /id/kidd0x/
- Reputatie: Utilizator neserios (tepar!)
- Fond eXtream: 0
- Location: Constangeles
- Discord: kidd0x
- Has thanked: 172 times
- Been thanked: 81 times
In primul rand foloseste tagul de code
In al doilea rand nu are nicio treaba plg asta cu jucatorii non steam
In al doilea rand nu are nicio treaba plg asta cu jucatorii non steam
-
- Membru, skill 0
- Posts: 11
- Joined: 20 Oct 2022, 08:56
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Discord: #0128
Scuze nu am vazut :) . Numai cand bag pluginu asta jucatorii non steam sunt scosi afara
-
- Membru, skill 0
- Posts: 11
- Joined: 20 Oct 2022, 08:56
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Discord: #0128
Am un alt cs care e lu.at de pe net, mereu e scos afara dar nu numai el chiar si playerii care intra ai da afara mereu cand activez pluginu asta. In consola arata ex: Mitu was sent to drop