Hi guys!
I am beginner in programming plugins and that kind of stuff, so please don't judge me so much

Thank you!
So I have that:
PHP Code:
public LogEvent_RoundStart2()
{
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_G)
{
give_item(player, "weapon_deagle")
give_item(player, "ammo_50ae")
give_item(player, "ammo_50ae")
give_item(player, "ammo_50ae")
if (!get_pcvar_num(g_menu_active))
return PLUGIN_CONTINUE
if(CurrentRound >= 3)
{
Showrod(player);
}
}
}
return PLUGIN_HANDLED
}
And I need to make it like, If at the beginning of 1 round player has USP or Glock, script changes it into Deagle and player has only deagle... How can I do that? Thank you!