Hi all i need help.. This plugin i can normal compile but in game dont work. Can somebody tell me why? Please help
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <fun>
new timer
new bool: countdownon
const FFADE_STAYOUT = 0x0004
public plugin_init()
{
register_plugin("Naskok","1.0","Risontek")
register_logevent("odpocet", 2, "1=Round_Start")
}
public odpocet(id)
{
if(!countdownon)
{
timer = 5
countdownon = true
countdown_start(id)
if(cs_get_user_team(id) == CS_TEAM_CT) // Only For CT
{
}
}
}
public countdown_start(id)
{
if(timer >= 0)
{
if(timer == 0)
{
countdownon = false
if(cs_get_user_team(id) == CS_TEAM_CT) // Only For CT
{
// screenfade
message_begin(MSG_ONE, get_user_msgid("ScreenFade"), _, id)
write_short(5) // time duration in seconds
write_short(5)
write_short(FFADE_STAYOUT)
write_byte(0) // red
write_byte(0) // green
write_byte(0) // blue
write_byte(255) // alpha
message_end()
set_user_gravity(id,5000.0)
set_task(5.0,"gravity",id)
}
return PLUGIN_HANDLED
}
set_hudmessage(0, 255, 0, -1.0, 0.30, 0, 1.0, 1.0)
show_hudmessage(0, "Anti-Furien have a head start: %i", timer)
timer--
set_task(1.0, "countdown_start")
}
return PLUGIN_CONTINUE
}
public gravity(id)
{
set_user_gravity(id,1.0)
}
__________________