Help me score for Hours and command up score -
SFRPVN - 07.03.2014
By the way I always wanted to ask, I need to score + 1 code per order and use it fulfills the conditions of the code is 8 now online for the score 1 -> 2 and 1 score followed every condition to execute the command + 4 hours will be online.
for example: score 1 -> 2 -> 3 -> 4 -> etc
conditions now done online orders is 8 -> 12 -> 16 -> 20 -> etc
Thanks
I have devised. It is also quite easy.
For those who need to share.
If problem contact me
under main()
Код:
// thoi gian va lv
new Hours[MAX_PLAYERS];
new Minutes[MAX_PLAYERS];
new Lenlv[MAX_PLAYERS];
new Lenlv1[MAX_PLAYERS];
In OnlineTimeUpdate
Код:
forward OnlineTimeUpdate(playerid);
public OnlineTimeUpdate(playerid)
{
Minutes[playerid] ++;
if(Minutes[playerid] == 60)
{
Minutes[playerid] = 0;
Hours[playerid] ++;
Lenlv1[playerid] ++;
return 1;
}
Command with ZCMD
Код:
CMD:muacapdo(playerid,params[])
{
if((Lenlv1[playerid] == Lenlv[playerid]))
{
Lenlv[playerid] = Lenlv[playerid] + 2;
Lenlv1[playerid] = Lenlv1[playerid] - 2;
SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
GivePlayerMoney(playerid, -50000);
SendClientMessage(playerid, COLOR_GREEN, "Chuc mung! Ban da len them LV moi");
}
else
{
SendClientMessage(playerid, COLOR_SEXYGREEN, "Ban khong mang du tien hoac chua du thoi gian Online");
}
return 1;
}
Thanks for your help.
Re: Help me score for Hours and command up score -
Dipto - 07.03.2014
wtf is this, where you need help man, explain bro
Re: Help me score for Hours and command up score -
DerickClark - 07.03.2014
Something like this?
pawn Код:
SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
Re: Help me score for Hours and command up score -
SFRPVN - 07.03.2014
Quote:
Originally Posted by Dipto
wtf is this, where you need help man, explain bro
|
I want to execute an Command + 1 score
When player Score is 1 need 8 hours online on server will execute an Command + 1 score to player score is 2
If player score is 2 need 8 hours + 4 hours online on server will execute an Command + 1 score to player score is 3
If player score is 3 need 12 hours + 4 hours online on server will execute an Command + 1 score to player score is 4
If player score is 4 need 16 hours + 4 hours online on server will execute an Command + 1 score to player score is 5
etc
Bad english
http://translate.******.com/
Re: Help me score for Hours and command up score -
Dipto - 07.03.2014
Nice one, but not worked for me
Re: Help me score for Hours and command up score -
SFRPVN - 07.03.2014
Quote:
Originally Posted by DerickClark
Something like this?
pawn Код:
SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
|
I Want edit
Код:
CMD:muacapdo(playerid,params[])
{
if(Hours[playerid] >= Lenlv[playerid])
{
Lenlv[playerid] = Lenlv[playerid] + 4;
if(Lenlv[playerid] < Hours[playerid])
{
SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
GivePlayerMoney(playerid, -50000);
SendClientMessage(playerid, COLOR_GREEN, "Chuc mung! Ban da len them LV moi");
}
}
else
{
SendClientMessage(playerid, COLOR_SEXYGREEN, "Ban khong mang du tien hoac chua du thoi gian Online");
}
return 1;
}
Re: Help me score for Hours and command up score -
SFRPVN - 07.03.2014
Quote:
Originally Posted by Dipto
Nice one, but not worked for me 
|
Oh






Re: Help me score for Hours and command up score -
Dipto - 07.03.2014
it may take some time to make it, but i can give u an idea,
Click Here for more info
Re: Help me score for Hours and command up score -
SFRPVN - 07.03.2014
Quote:
Originally Posted by Dipto
|
Thanks, but I don't need it
Re: Help me score for Hours and command up score -
Dipto - 07.03.2014
you still can get idea from there.