Jump to content

Question

Posted (edited)

Salut, vreau sa bag si eu la cei cu level 5 la pet sa primeasca (1 premium point) dar nu mereu, adica in functie de noroc... am facut sa primeasca doar bani momentan.

Deci odata ce ai level 5 la pet a primesti bani si pp daca ai noroc.

 

				if(PlayerInfo[i][pPetLevel] == 5)
				{
					PlayerInfo[i][pExp] += 1;
     				GivePlayerCash(i, 50000);
                    Update(i, pCashx);
				}

 

Edited by Alex Alexandru

3 answers to this question

Recommended Posts

  • 0
Posted
if(PlayerInfo[i][pPetLevel] == 5)
{
     new noroc = random(100);
     if(noroc >= 0 && noroc < 30) {
     PlayerInfo[i][pExp] += 1;
     Update(i,pRP);
     GivePlayerCash(i, 50000);
     Update(i, pCashx);
     PlayerInfo[i][pPremiumPoints] += 1;
     Update(i, pPremiumPointsx);
     }
}

 

ai un exemplu aici pentru 30% sansa

  • Upvote 1

aqpUjAc.png

 

 

 

 

  • 0
Posted (edited)
17 hours ago, nobilzeusAdv said:

if(PlayerInfo[i][pPetLevel] == 5)
{
     new noroc = random(100);
     if(noroc >= 0 && noroc < 30) {
     PlayerInfo[i][pExp] += 1;
     Update(i,pRP);
     GivePlayerCash(i, 50000);
     Update(i, pCashx);
     PlayerInfo[i][pPremiumPoints] += 1;
     Update(i, pPremiumPointsx);
     }
}

 

ai un exemplu aici pentru 30% sansa

 

Inca ceva, daca poti sa ma ajuti :D

Cum pot face sa trimita 2 mesaje, adica cand nu ia pp cel normal si cand ia pp cel cu pp.

				if(PlayerInfo[i][pPetLevel] == 5) {
					SCMEx(i, COLOR_YELLOW, "Ai primit +3 RP, $50.000 si %d Puncte Premium deoarece pet-ul tau are level 5.",FormatNumber(noroc));}

				if(PlayerInfo[i][pPetLevel] == 5) {
					SCMEx(i, COLOR_YELLOW, "Ai primit +3 RP si $50.000 deoarece pet-ul tau are level 5.");}

 

Edited by Alex Alexandru
  • 0
Posted
Acum 17 ore, Alex Alexandru a spus:

 

Inca ceva, daca poti sa ma ajuti :D

Cum pot face sa trimita 2 mesaje, adica cand nu ia pp cel normal si cand ia pp cel cu pp.


				if(PlayerInfo[i][pPetLevel] == 5) {
					SCMEx(i, COLOR_YELLOW, "Ai primit +3 RP, $50.000 si %d Puncte Premium deoarece pet-ul tau are level 5.",FormatNumber(noroc));}

				if(PlayerInfo[i][pPetLevel] == 5) {
					SCMEx(i, COLOR_YELLOW, "Ai primit +3 RP si $50.000 deoarece pet-ul tau are level 5.");}

 

if(PlayerInfo[i][pPetLevel] == 5)
{
     new noroc = random(100);
     if(noroc >= 0 && noroc < 30) {
     PlayerInfo[i][pExp] += 1;
     Update(i,pRP);
     GivePlayerCash(i, 50000);
     Update(i, pCashx);
     PlayerInfo[i][pPremiumPoints] += 1;
     Update(i, pPremiumPointsx);
     Scm mesaj pp
     }
     else scm mesaj normal
}

aqpUjAc.png

 

 

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.