Jump to content
  • 0

bani la npc


yonutzz

Question

5 answers to this question

Recommended Posts

public OnPlayerConnect(playerid)

{

  GetPlayerName(playerid, pname, sizeof(pname));

    format(oyunism, sizeof(oyunism), "/Saver/%s.ini",pname);

    if(!dini_Exists(oyunism))

    {

    dini_Create(oyunism);

    dini_IntSet(oyunism, "Score", 6000);// aici setezi cat vrei tu, la fel si jos

    dini_IntSet(oyunism, "Money", 50000000);

    SetPlayerScore(playerid, dini_Int(oyunism, "Score"));

    SetPlayerMoney(playerid, dini_Int(oyunism, "Money"));

    }

    else

    {

    SetPlayerScore(playerid, dini_Int(oyunism, "Score"));

    SetPlayerMoney(playerid, dini_Int(oyunism, "Money"));

    }

   

    return 1;

}

Cam asa ar trebui. Nu mai stiu.

Sper sa-ti miarga. Bft.

200r807.gif
Link to comment
Share on other sites

public OnPlayerConnect(playerid)

{

  GetPlayerName(playerid, pname, sizeof(pname));

    format(oyunism, sizeof(oyunism), "/Saver/%s.ini",pname);

    if(!dini_Exists(oyunism))

    {

    dini_Create(oyunism);

    dini_IntSet(oyunism, "Score", 6000);// aici setezi cat vrei tu, la fel si jos

    dini_IntSet(oyunism, "Money", 50000000);

    SetPlayerScore(playerid, dini_Int(oyunism, "Score"));

    SetPlayerMoney(playerid, dini_Int(oyunism, "Money"));

    }

    else

    {

    SetPlayerScore(playerid, dini_Int(oyunism, "Score"));

    SetPlayerMoney(playerid, dini_Int(oyunism, "Money"));

    }

   

    return 1;

}

Cam asa ar trebui. Nu mai stiu.

Sper sa-ti miarga. Bft.

Exista tagurile [code ]  [/code ]

wolf53.gif
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.