First we register the logevents for each team winning:
PHP Code:
register_logevent("CTwin", 6, "3=CTs_Win", "3=All_Hostages_Rescued")
register_logevent("Twin" , 6, "3=Terrorists_Win", "3=Target_Bombed")
Then we loop trough the players in the team in each function, and add their eXP. It's easy:
PHP Code:
public CTwin()
{
new players[32], num
get_players(players, num, "eh", "CT")
for(new i; i < num; i++)
{
gExp[players[i]] += 1 //This is the EXP you give for winning CT team!
}
}
public Twin()
{
new players[32], num
get_players(players, num, "eh", "TERRORIST")
for(new i; i < num; i++)
{
gExp[players[i]] += 1 //This is the EXP you give for winning CT team!
}
}
P.S.: As far as you don't understand of pawn, this topic should be in Request section - you want someone to do it for you.
__________________