Getting Winner
#1

Hi, sorry for the English but I use a translator, not because I'm not good but because I get bored writing.

To illustrate this problem immediately.

I want to do that is a platform of hay in mid-air above where we are all players.
The players are killing each other, and when there is only one should check:

"% s player has won the round"
And so on to give money to the player.

I would like to know how to get playerid having:



playersalive (onplayerspawn playersalive + +; onplayerdeath playersalive --; )

I would still like to know how well I could do that there is a time such as 10 minutes. I have two teams, and two score counters.
I would like to know how you get the team with the most kills, and from there how to get the various playerid team.
Reply
#2

upppp
Reply
#3

up?
Reply
#4

What you do is yo..
Oops sorry I wanted to tell you the solution but I got bored writing.

(Try again in proper english, and put some effort in it, we generally don't feel like helping extremely ignorant and lazy people like yourself)
Reply
#5

Quote:
Originally Posted by Sinner
Посмотреть сообщение
What you do is yo..
Oops sorry I wanted to tell you the solution but I got bored writing.

(Try again in proper english, and put some effort in it, we generally don't feel like helping extremely ignorant and lazy people like yourself)
lawl



pawn Код:
new Team1Kills=0;
new Team2Kills=0;
new bool:MYEVENT = false;
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(MYEVENT == true)
    {
        if(gTeam[playerid] == TEAM_2 && gTeam[killerid] == TEAM_1) Team1Kills++;
        if(gTeam[playerid] == TEAM_1 && gTeam[killerid] == TEAM_2) Team2Kills++;
    }
    return 1;
}
pawn Код:
new EventTime;
CMD:startevent(playerid, params[])
{
    if(IsPlayerAdmin(playerid))
    {
        MYEVENT = true;
        EventTime = SetTimer("EventEnd", 600000, false);
    }
    return 1;
}
pawn Код:
forward EventEnd();
public EventEnd()
{
    new WINNING_TEAM;
    if(Team1Kills > Team2Kills) WINNING_TEAM = TEAM_1;
    else if(Team2Kills > Team1Kills) WINNING_TEAM = TEAM_2;
    for(new i=0; i<=MAX_PLAYERS;i++)
    {
        if(IsPlayerConnected(i))
        {
            if(gTeam[i] == WINNING_TEAM)
            {
                //we can give them stuff
            }
        }
    }
    KillTimer(EventTime);
}
Reply
#6

Tanks, rep
Reply
#7

Quote:
Originally Posted by Sinner
Посмотреть сообщение
What you do is yo..
Oops sorry I wanted to tell you the solution but I got bored writing.

(Try again in proper english, and put some effort in it, we generally don't feel like helping extremely ignorant and lazy people like yourself)
Sorry, I'm italian, and I had to do 3 exams at school, and one at home, so I had no time for writing in proper english.
I did not mean "boring" in the strict sense, but in the sense that I had not time, I'm sorry again.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)