Either i failed to understand you, or you fully failed to understand the problem, anyway, i've done it like this:
PHP код:
IsPlayerDead[playerid] = true;
new str[128], pname[24], pname1[24];
GetPlayerName(playerid, pname, sizeof(pname));
GetPlayerName(GetPartnerID(playerid), pname1, sizeof(pname1));
if(IsInDuel[playerid] && !IsPlayerDead[GetPartnerID(playerid)])
{
IsPlayerDead[playerid] = true;
SetPlayerPos(playerid, -467.8871,-1804.9890,1762.0316);
SendClientMessage(playerid, -1, ""R"You've died, but your partner is still alive, please wait till they finish!");
format(str, sizeof(str), ""G"Player %s(%i) (%s(%i)'s partner) died!",pname, playerid, pname1,GetPartnerID(playerid) );
SendMessageToDuel(str);
}
if(IsInDuel[playerid] && IsPlayerDead[GetPartnerID(playerid)] && mData[0][Round] == 0)
{
new pname2[24], pname3[24], pname4[24], pname5[24];
GetPlayerName(mData[0][ids][3], pname2, 24);
GetPlayerName(mData[0][ids][0], pname3, 24);
GetPlayerName(mData[0][ids][1], pname4, 24);
GetPlayerName(mData[0][ids][2], pname5, 24);
format(str, sizeof(str), ""G"%s(%i) & %s(%i) Won Round 1/2 "R"VS"G" %s(%i) & %s(%i)... next round is now starting!",pname2, mData[0][ids][3], pname3, mData[0][ids][0], pname4, mData[0][ids][1], pname5, mData[0][ids][2] );
SendClientMessageToAll(-1, str);
SendMessageToDuel(""YE"[ROUND 2]"G"The Duel is now starting...");
SetPlayerPos(mData[0][ids][3], -465.8945,-1824.0327,1755.5266), SetPlayerPos(mData[0][ids][0], -465.9754,-1820.6588,1755.5266), SetPlayerPos(mData[0][ids][1], -420.5116,-1820.4299,1755.5266), SetPlayerPos(mData[0][ids][2], -420.3315,-1823.3230,1755.5266);
ResetPlayerWeapons(mData[0][ids][3]), ResetPlayerWeapons(mData[0][ids][0]), ResetPlayerWeapons(mData[0][ids][1]), ResetPlayerWeapons(mData[0][ids][2]);
GivePlayerWeapon(mData[0][ids][3], mData[0][weaponID], 999999), GivePlayerWeapon(mData[0][ids][0], mData[0][weaponID], 999999), GivePlayerWeapon(mData[0][ids][1], mData[0][weaponID], 999999), GivePlayerWeapon(mData[0][ids][2], mData[0][weaponID], 999999);
SetPlayerHealth(mData[0][ids][3], 100), SetPlayerHealth(mData[0][ids][0], 100), SetPlayerHealth(mData[0][ids][1], 100), SetPlayerHealth(mData[0][ids][2], 100);
SetPlayerArmour(mData[0][ids][3], 100), SetPlayerArmour(mData[0][ids][0], 100), SetPlayerArmour(mData[0][ids][1], 100), SetPlayerArmour(mData[0][ids][2], 100);
TogglePlayerControllable(mData[0][ids][3], 0), TogglePlayerControllable(mData[0][ids][0], 0), TogglePlayerControllable(mData[0][ids][1], 0), TogglePlayerControllable(mData[0][ids][2], 0);
mData[0][Round] = 1;
Partner[mData[0][ids][3]] = mData[0][ids][0];
Partner[mData[0][ids][0]] = mData[0][ids][3];
Partner[mData[0][ids][1]] = mData[0][ids][2];
Partner[mData[0][ids][2]] = mData[0][ids][1];
countdown = 5;
cdTimer = SetTimer("cd", 1000, true);
}
return 1;
}