Jump to content
  • 0

Comanda Bonus .


Konti.

Question

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 !");
}

                         

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0

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

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

Link to comment
Share on other sites

  • 0

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

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.