PHP Code:
/* id = player index who captured the enemy (iFlagTeam) flag */
new name[32]
get_user_name(id, name, 31)
if(iFlagTeam == 2)
{
new cmd[129]
format(cmd,128, "amx_gungame_level %s +1", name);
server_cmd(cmd);}
As you can see, I'm converting the index into player name and then using that in the GunGame plugin command, but the issue is that, if there is a space in your name, then command takes it as 2 arguments, as opposed to 1.