15.01.2016, 04:59
This is a real shitty way to try and script possibilities you should really use switches and lay out every possible interaction then then call whatever function needs to be called. All of your helpers have babbled you in bullshit but this is the straight goods and eliminates any confusion you might have when it comes to interactions between player teams.
Код:
switch(gTeam[playerid]) { case TEAM_COP: { switch(gTeam[killerid]) { case TEAM_COP: {} case TEAM_CIA: {} case TEAM_ARMY: {} case TEAM_CIVIL: {} } } case TEAM_CIA: { switch(gTeam[killerid]) { case TEAM_COP: {} case TEAM_CIA: {} case TEAM_ARMY: {} case TEAM_CIVIL: {} } } case TEAM_ARMY: { switch(gTeam[killerid]) { case TEAM_COP: {} case TEAM_CIA: {} case TEAM_ARMY: {} case TEAM_CIVIL: {} } } case TEAM_CIVIL: { switch(gTeam[killerid]) { case TEAM_COP: {} case TEAM_CIA: {} case TEAM_ARMY: {} case TEAM_CIVIL: {} } } }