07.02.2017, 22:47
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!
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; } } } }