13.03.2012, 00:59
I have a timer going and on every hour it tps everyone to a certain spots gives them all guns and they are to kill each other, when they join they get this variable tfight[playerid] ++;
Now I want to know how to tell who the last man alive is?
Here is my code
Now I want to know how to tell who the last man alive is?
Here is my code
Код:
public fight() { for(new i = 0; i < MAX_PLAYERS; i++) { TogglePlayerControllable(i, 1); ResetPlayerWeapons(i); GivePlayerWeapon(i, 24, 99999); GivePlayerWeapon(i, 25, 99999); GivePlayerWeapon(i, 34, 99999); tfight[i] ++; if(gTeam[i] == 0)// fast food { SetPlayerPos(i, changeme); } if(gTeam[i] == 1)//elvis { SetPlayerPos(i, changeme); } if(gTeam[i] == 2)//medic { SetPlayerPos(i, changeme); } if(gTeam[i] == 3)//sp { SetPlayerPos(i, changeme); } if(gTeam[i] == 4)//wigger { SetPlayerPos(i, changeme); } if(gTeam[i] == 5)//beachbums { SetPlayerPos(i, changeme); } if(gTeam[i] == 6)// Rednecks { SetPlayerPos(changeme); } } return 1; }