set team 1 to team 2 onplayerdeath help ?
#1

i got a general team only 1 player
i got a LIEUTENANTGENERAL team only 1 player


what do i put on (onplayerdeath) to make LIEUTENANTGENERAL become general (when the general dies)

any ideas ?
Reply
#2

at the top add this
pawn Код:
new gTeam[MAX_PLAYERS];
Under OnPlayerDeath
pawn Код:
if(gTeam[playerid] == TEAM_Teamname) {
SetPlayerTeam(playerid, 0);
}
if(gTeam[playerid] == TEAM_Teamname2) {
SetPlayerTeam(playerid, 1);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)