Jump to content

Fs /buyscore


KiLLeRZoNE

Recommended Posts

[pawn]#include <a_samp>

#define DIALOG_1

main()

{

print("\n----------------------------------");

print("    Fs By KiLLeRZone Incarcat!");

print("----------------------------------\n");

}

public OnPlayerCommandText(playerid, cmdtext[])

{

if (strcmp("/buyscore", cmdtext, true, 10) == 0)

{

ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"BUY SCORE -> KiLLeRZoNe","1.1000 score -> 1000$\n2.2000 score -> 2000$\n3.3000 score -> 3000$\n4.4000 score -> 4000$\n5.5000 score -> 5000$","Buy","Close");

return 1;

}

return 0;

}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])

{

if(dialogid == 1)

{

  if(response)

  {

  if(listitem == 0)

  {

if(GetPlayerMoney(playerid) < -1000)

SendClientMessage(playerid,0x0000FFAA,"Ai Nevoie de 1000$");

SetPlayerScore(playerid,1000);

}

  if(listitem == 1)

  {

if(GetPlayerMoney(playerid) < -2000)

SendClientMessage(playerid,0x0000FFAA,"Ai Nevoie de 2000$");

SetPlayerScore(playerid,2000);

}

  if(listitem == 2)

  {

if(GetPlayerMoney(playerid)< -3000)

SendClientMessage(playerid,0x0000FFAA,"Ai Nevoie de 3000$");

SetPlayerScore(playerid,3000);

}

  if(listitem == 3)

  {

if(GetPlayerMoney(playerid) < -4000)

SendClientMessage(playerid,0x0000FFAA,"Ai Nevoie de 4000$");

SetPlayerScore(playerid,4000);

}

  if(listitem == 4)

{

    if(GetPlayerMoney(playerid) < -5000)

    SendClientMessage(playerid,0x0000FFAA,"Ai Nevoie de 4000$");

    SetPlayerScore(playerid,5000);

}

  }

  else

  {

    SendClientMessage(playerid,0x0000FFAA,"Ai apasat pe CLOSE");

  }

}

return 1;

}

[/pawn]

<img src="http://s15.postimage.org/q6s3fuq4r/snapshotoronthefolldsangdsa.png">

Link to comment
Share on other sites

Asta cred ca e zaster ala  :shocked:

Mult prea simplu. 2/5

Mda cred si eu ca a dat mass cu un nou FS 8-| adica acesta si celalat cu Lupte...

2/5 [Easy and Simple] + nu ii facut de tine, ai dat copy din ceva GM  :tongue: :embarrassed:


F*ck everybody who want and who try to judge me for who I am, b*star*s !

 

 

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
  • 1 month later...

Da un edit :) Nu e bine SetPlayerScore(playerid,X); , pentru ca ii seteaza scoru X . pune asa: SetPlayerScore(playerid,GetPlayerScore(playerid) + X);  ca sa ii adauge un anumit Scor

^^^^

Si ouch, ma dor ochii de la indentarea aia  :shocked:

communitylogosml.png

94.23.120.101:7778

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

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

Guest
Reply to this topic...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.