disconnect duel
#2

pawn Код:
new DuelOpponent[MAX_PLAYERS];
When the duel starts you save the playerid of the opponent in the variable of the current player:
pawn Код:
DuelOpponent[playerid] = opponentID;
Then, at OnPlayerDisconnect:
pawn Код:
if(InDuel[playerid == 1)
{
    new opponentID = DuelOpponent[playerid];
    //do all the stuff to 'opponentID' to get him out of the duel, give money, spawn, etc...
}
Reply


Messages In This Thread
disconnect duel - by andrewgrob - 07.01.2015, 05:26
Re: disconnect duel - by Schneider - 07.01.2015, 05:34
Re: disconnect duel - by danish007 - 07.01.2015, 08:09

Forum Jump:


Users browsing this thread: 1 Guest(s)