Last Player Alive
#1

So the gamemode I'm using I want to add it so the last player alive gets a Deagle with 5 bullets and a knife. How can I do this? When a player dies, he spectates a player. I will rep anyone who helps!
Reply
#2

Код:
new playersAlive;
new winnerID;
 
When player respawns - playersAlive ++;
When player dies:
{
    playersAlive --;
    if(playersAlive == 1)
    {
        for(new i = 0, j = GetPlayerPoolSize(); i <= j; i ++)
        {  
            if(player[i][Alive])
            {
                GivePlayerWeapon(playerid, 24, 5);
                GivePlayerWeapon(playerid, 4, 1);
                break;
            }
        }
    }
}
Reply
#3

Doesn't work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)