score lead system
#1

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);
   }
}
Reply
#2

help fast i asked this before no one answered
Reply
#3

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.
Reply
#4

bump
Reply
#5

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

bump
Reply
#7

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

ok sorry
Reply
#9

ok now 72 hours have passed can you help me now
Reply
#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


Forum Jump:


Users browsing this thread: 3 Guest(s)