Help me score for Hours and command up score
#1

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

wtf is this, where you need help man, explain bro
Reply
#3

Something like this?
pawn Код:
SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
Reply
#4

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/
Reply
#5

Nice one, but not worked for me
Reply
#6

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

Quote:
Originally Posted by Dipto
Посмотреть сообщение
Nice one, but not worked for me
Oh
Reply
#8

it may take some time to make it, but i can give u an idea, Click Here for more info
Reply
#9

Quote:
Originally Posted by Dipto
Посмотреть сообщение
it may take some time to make it, but i can give u an idea, Click Here for more info
Thanks, but I don't need it
Reply
#10

you still can get idea from there.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)