PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich>
new bool:bIsFreezeTime
public plugin_init()
{
RegisterHam(Ham_Spawn, "player", "HamPlayerSpawn", 1)
register_event("HLTV", "Event_HLTV_New_Round", "a", "1=0", "2=0")
register_logevent("LogEvent_Round_Start", 2, "1=Round_Start")
}
public Event_HLTV_New_Round()
{
bIsFreezeTime = true
}
public LogEvent_Round_Start()
{
bIsFreezeTime = false
}
public HamPlayerSpawn(id)
{
if( is_user_alive( id ) ) // check if player is connected is useless
{
strip_user_weapons( id )
give_item( id, "weapon_knife" )
if( cs_get_user_team( id ) == CS_TEAM_CT )
{
if( bIsFreezeTime ) // here you check if it's the roundstart
{
give_item( id, "weapon_deagle" )
cs_set_user_bpammo( id, CSW_DEAGLE, 35 )
give_item( id, "weapon_hegrenade" )
cs_set_user_bpammo( id, CSW_HEGRENADE, 2 )
}
cs_set_user_armor(id, 100, CS_ARMOR_VESTHELM)
menu_display( id, g_iMenu, 0 )
}
}
}
__________________