[HELP]Player level
#1

Код:
public PayDay()
{
  for(new i; i < MAX_PLAYERS; i++)
  {
    SendClientMessage(i, COLOR_GREEN, "Its Payday. You get 1 experience and money now.");
    // Your code here, Use i for playerid
    // For your levels
  	if(GetPlayerScore(i) <= 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9 || 10 ) GivePlayerMoney(i,10000);
    UpgradePoints[i]++;
    if(UpgradePoints[i] <= Level[i]+10)
    {
      SendClientMessage(i, COLOR_GREEN, "You are eligiable for a Level Up (( /levelup ))");
    }
    else if(GetPlayerScore(i) <= 11 || 12 || 13 || 14 || 15 || 16 || 17 || 18 || 19 || 20 ) GivePlayerMoney(i,20000);
    UpgradePoints[i]++;
    if(UpgradePoints[i] <= Level[i]+20)
    {
      SendClientMessage(i, COLOR_GREEN, "You are eligiable for a Level Up (( /levelup ))");
    }
    else if(GetPlayerScore(i) <= 21 || 22 || 23 || 24 || 25 || 26 || 27 || 28 || 29 || 30 ) GivePlayerMoney(i,30000);
    UpgradePoints[i]++;
    if(UpgradePoints[i] <= Level[i]+20)
    {
      SendClientMessage(i, COLOR_GREEN, "You are eligiable for a new Level Up (( /levelup ))");
		}
  }
  return 1;
}
First of all, level is not saving, then second i want my player to be able to type /levelup just when he has 10 experience(score) if he is lvl 2 that he needs to have 20 experience to buy lvl 3....



Help pls
Reply
#2

Help?
Reply
#3

Help...
Reply
#4

C'mon i need help..
Reply
#5

double, triple, and quadruple posts, piss people off, thats why your not getting help. Once you learn to follow our rules, we can help you.
Reply
#6

Quote:
Originally Posted by Kinetic
double, triple, and quadruple posts, piss people off, thats why your not getting help. Once you learn to follow our rules, we can help you.
Wait, listen, first i posted, then it was on 2nd site without replies...Then again i posted help pls, then again it was on second site, then again i posted, and no replies......
Im just asking for help
Reply
#7

You wont get it.
Reply
#8

I don't understand quite what you mean, but for the levels to save they must be added to a userfile, I believe DracoBlue made an excelent file system called dudb, do som research on that.

As for the other thing could you please supply more information.
Reply
#9

Quote:
Originally Posted by NeRoSiS
I don't understand quite what you mean, but for the levels to save they must be added to a userfile, I believe DracoBlue made an excelent file system called dudb, do som research on that.

As for the other thing could you please supply more information.
I want to make lvls like in penls mod
Reply
#10

Did you copy and paste that from pen1 script?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)