[HELP]Player level - 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: [HELP]Player level (
/showthread.php?tid=72114)
[HELP]Player level -
Frankox - 06.04.2009
Код:
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
Re: [HELP]Player level -
Frankox - 06.04.2009
Help?
Re: [HELP]Player level -
Frankox - 06.04.2009
Help...
Re: [HELP]Player level -
Frankox - 06.04.2009
C'mon i need help..
Re: [HELP]Player level -
Kinetic - 06.04.2009
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.
Re: [HELP]Player level -
Frankox - 06.04.2009
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
Re: [HELP]Player level -
FUNExtreme - 06.04.2009
You wont get it.
Re: [HELP]Player level -
NeRoSiS - 06.04.2009
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.
Re: [HELP]Player level -
Frankox - 06.04.2009
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
Re: [HELP]Player level -
NeRoSiS - 06.04.2009
Did you copy and paste that from pen1 script?