Turkce Gta Forumu [TR]

Sitemize Giriş İçin Tıklayın

Join the forum, it's quick and easy

Turkce Gta Forumu [TR]

Turkce Gta Forumu [TR]

Would you like to react to this message? Create an account in a few clicks or log in to continue.

    maaş sistemi ekleme

    D3RS1ML1
    D3RS1ML1
    Süper Moderatör
    Süper Moderatör


    Cinsiyet : Erkek Mesaj Sayısı : 307
    Rep Puanı : 7
    Kayıt tarihi : 27/04/10
    Yaş : 32
    Nerden : Verdiğin Dereden xD :)

    maaş sistemi ekleme  Empty maaş sistemi ekleme

    Mesaj tarafından D3RS1ML1 Perş. Tem. 15, 2010 3:36 pm

    Modun En Üstüne
    Kod:

    Kod:
    #define SANIYE 180
    new Maasf[MAX_PLAYERS];

    OnGameModeInite:
    Kod:

    Kod:
    SetTimerEx("Maas", SANIYE * 1000, true, "i");

    Modun En Altına:
    Kod:

    Kod:
    forward Maas();
    public Maas()
    {
    for(new i; i<MAX_PLAYERS; i++)
    {
    if(Maasf == 1) {
    GivePlayerMoney(i, 10000);
    SendClientMessage(i, COLOR_BGREEN, "Haftalık Maaşın Hesabına Yatırıldı <$10000>");
    }
    }
    return 1;
    }
    Kod:
    OnPlayerCommandText:
    if(strcmp("/istifa", cmdtext, true, 7) == 0)
    {
    Maasf[playerid]=0;
    return 1;
    }
    if(strcmp("/isegir", cmdtext, true, 7) == 0)
    {
    Maasf[playerid]=1;
    return 1;
    }


      Forum Saati Perş. Mayıs 09, 2024 2:10 pm