Hello Everyone
i am trying to make my Deathmatch day, but my set_task don't work!
he don't start my day but he give every 10 sec just the text
"^4[^1Funday^4]^1 Deathmatch day will start in 10 seconds!")
it also don't start my day, can someone help me with this please,
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <hamsandwich>
#include <fun>
#include <colorchat>
#include <fakemeta>
#define PLUGIN "[Fa] Day: Dm"
#define VERSION "1.0"
#define AUTHOR "Sh0x"
forward jailbreak_day_start(dayid)
forward jailbreak_day_end()
native jailbreak_day_add(name[32], description[200], blockguns, weapon, survivor, blockdamage)
new intDay, intMaxplayers
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
// Add: Day
intDay = jailbreak_day_add("Deathmatch Day", "Terrorists needs to kill each other, surviver wins", 1, 0, 1, 1)
// Others
intMaxplayers = get_maxplayers()
}
public jailbreak_day_start(dayid)
{
set_task(10.0, "jailbreak_day_start")
ColorChat(0, GREY, "^4[^1Funday^4]^1 Deathmatch day will start in 10 seconds!")
if(dayid == intDay)
{
for(new i = 1; i <= intMaxplayers; i++)
{
if(is_user_alive(i))
{
if(cs_get_user_team(i) == CS_TEAM_T)
{
strip_user_weapons(i)
give_item(i, "weapon_m249")
cs_set_user_bpammo(i, CSW_M249, 400)
set_user_health(i, 400)
}
}
}
server_cmd("mp_friendlyfire 1")
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1029\\ f0\\ fs16 \n\\ par }
*/