Jump to content
  • 0

Comanda Bonus .


Question

Posted

Salut, am facut comanda bonus, si as vrea sa vad daca e scriptata cum trebuie, ATENTIE: VREAU SA FIE DOAR ODATA ACCESATA DE UNDE ANUMIT PLAYER.

CMD:bonus(playerid, params[])
{
    if(playerVariables[playerid][pLevel] >= 1)
    {
          playerVariables[playerid][pMoney] += 20000000;
          playerVariables[playerid][pLevel] += 2;
          playerVariables[playerid][pDriveLicense] +=100;
          format(string, sizeof(string), "Felicitari ai luat Bonusul de Inceput !");
    }
    else return SCM(playerid, COLOR_WHITE, "Trebuie sa ei [/bonus] la Level 1, dar tu ai mai mult !");
}

                         

5 answers to this question

Recommended Posts

  • 0
Posted

Da,e bine..daca se face salvarea bine,nu ar trebui sa ai probleme.

Dar stii,puteai mai usor sa iti faci un cont de test si sa testezi :)

Era mai usor :)

Ofer servicii de web designer/developer(contact me pentru portofoliu etc)

Metode de plata: Paysafecard,Skrill,PayPal,Bitcoin

Ofer si servicii de Penetration Testing.

Vand si VPN-uri. 5 euro pe luna

Skype: live:mrtunne.tkcode

Discord: https://mrtunne.info/discord

  • 0
Posted

CMD:bonus(playerid, params[])
{
    if(playerVariables[playerid][pLevel] >= 1)
    {
          playerVariables[playerid][pMoney] += 20000000;
          playerVariables[playerid][pLevel] += 2;
          playerVariables[playerid][pDriveLicense] +=100;
          format(string, sizeof(string), "Felicitari ai luat Bonusul de Inceput !");
    }
    else return SCM(playerid, COLOR_WHITE, "Trebuie sa ei [/bonus] la Level 1, dar tu ai mai mult !");
}
 

ai zis ca vrei sa Ia bonus doar odata la level 1 eu zic ca ar trebui asa:

 if(playerVariables[playerid][pLevel]  = 1)

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

  • 0
Posted

Baieti as avea si eu nevoie de comanda dar nu cu CMD si alea cu if(strcmp(cmd, "/bonus", true) == 0)

Ajutati-ma daca puteti.

  • 0
Posted

if(strcmp(cmd, "/bonus", true) == 0)
{
    if(playerVariables[playerid][pLevel] >= 1)
    {
          playerVariables[playerid][pMoney] += 20000000;
          playerVariables[playerid][pLevel] += 2;
          playerVariables[playerid][pDriveLicense] +=100;
          format(string, sizeof(string), "Felicitari ai luat Bonusul de Inceput !");
    }
    else return SCM(playerid, COLOR_WHITE, "Trebuie sa ei [/bonus] la Level 1, dar tu ai mai mult !");
}
 

ai zis ca vrei sa Ia bonus doar odata la level 1 eu zic ca ar trebui asa:

 if(playerVariables[playerid][pLevel]  = 1)

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

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.