score lead system
#10

Код:
//OnPlayerDisconnect
    if(playerid == lLead) {
        for(new i; i != MAX_PLAYERS; ++i) {
            if(GetPlayerScore(i) > GetPlayerScore(lLead)) {
                lLead = i;
            }
        }
        if(lLead != playerid) {
            CallLocalFunction("OnLeadChange", "ii", lLead, playerid);
        }
    }
Reply


Messages In This Thread
score lead system - by marwan - 11.06.2011, 19:46
Re: score lead system - by marwan - 11.06.2011, 19:53
Re: score lead system - by Jay. - 11.06.2011, 19:58
Re: score lead system - by marwan - 12.06.2011, 07:18
Re: score lead system - by marwan - 12.06.2011, 07:31
Re: score lead system - by marwan - 12.06.2011, 10:41
Re: score lead system - by Markx - 12.06.2011, 10:46
Re: score lead system - by marwan - 12.06.2011, 11:29
Re: score lead system - by marwan - 14.06.2011, 07:15
Re: score lead system - by Skaizo - 14.06.2011, 07:25

Forum Jump:


Users browsing this thread: 1 Guest(s)