Posts: 1,840
Threads: 399
Joined: Oct 2010
Reputation:
0
Heey players
I make a ptp server. I want to make that if the president dies that the vicepresident changes to the president!
I cant figure it out:S
Pls help
thank Admigo
Posts: 2,262
Threads: 260
Joined: Mar 2009
Reputation:
0
E.G
if(gTeam[playerid] == TEAM_PRESIDENT)
{
gTeam[playerid] = TEAM_NONE;
gTeam[GetViceID()] = TEAM_PRESIDENT;
}
Posts: 2,262
Threads: 260
Joined: Mar 2009
Reputation:
0
Make a stock so it runs though a loop and check if the team of that player is vice president, if it is stop the loop and return the playerid.
Posts: 1,840
Threads: 399
Joined: Oct 2010
Reputation:
0
Can you give code because i am beginner. I dont know anything about loops:S
Posts: 1,840
Threads: 399
Joined: Oct 2010
Reputation:
0
And how to get the vice id with skin 147. I use gTeam
Posts: 1,840
Threads: 399
Joined: Oct 2010
Reputation:
0
And how can i make the vice function?