Hey I need Little Help [As I am noob in scripting !!!]
This is Dunno Vip Code i am doing some modification in this
PHP Code:
public plugin_init() {
g_menu_active = register_cvar("menu_active", "1")
}
public LogEvent_RoundStart()
{
CurrentRound++;
new players[32], player, pnum;
get_players(players, pnum, "a");
for(new i = 0; i < pnum; i++)
{
player = players[i];
if(is_user_alive(player) && get_user_flags(player) & ADMIN_LEVEL_H)
{
give_item(player, "weapon_hegrenade")
give_item(player, "weapon_flashbang")
give_item(player, "weapon_flashbang")
give_item(player, "weapon_smokegrenade")
give_item(player, "item_assaultsuit")
give_item(player, "item_thighpack")
if (!get_pcvar_num(g_menu_active))
return PLUGIN_CONTINUE
if(CurrentRound >= 3)
{
Showrod(player);
}
}
}
return PLUGIN_HANDLED
}
but here what my logic is thinking
PHP Code:
public logevent_round_start()
{
g_round++
new players[32], player, pnum
get_players(players, pnum, "ac")
for(new i = 0; i < pnum; i++)
{
if (is_user_alive(i)&is_user_connected(i))
{
//give items
}
}
return PLUGIN_HANDLED
}
is this right ? as player should be alived and user should be connected ?