SA-MP Forums Archive
score lead system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: score lead system (/showthread.php?tid=261031)



score lead system - marwan - 11.06.2011

i get the player score with this code but i want to make a game text saying %s has takes the lead and it set his color to red how
Код:
new test,leader;
for (new i=0;i<MAX_PLAYERS;i++){
   if(GetPlayerScore(i) > test){
     leader = i;
     test=GetPlayerScore(i);
   }
}



Re: score lead system - marwan - 11.06.2011

help fast i asked this before no one answered


Re: score lead system - Jay. - 11.06.2011

Quote:
Originally Posted by marwan
Посмотреть сообщение
help fast i asked this before no one answered
bump is every 48 hours! Who cares , no one answered you need to be more patient.


Re: score lead system - marwan - 12.06.2011

bump


Re: score lead system - marwan - 12.06.2011

and how to change the walk and run style i want the player run and walk faster ?


Re: score lead system - marwan - 12.06.2011

bump


Re: score lead system - Markx - 12.06.2011

I would help you, but i dont want because your bumping the topic and 48 hours didnt pass...


Re: score lead system - marwan - 12.06.2011

ok sorry


Re: score lead system - marwan - 14.06.2011

ok now 72 hours have passed can you help me now


Re: score lead system - Skaizo - 14.06.2011

Код:
//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);
        }
    }