(Skript) - Ufak Bir Yardım Gerekiyor

Gavatos

Demir Madencisi
En iyi cevaplar
3
Selam bir skript kodluyorum fakat şu komutta takıldım.
Örneğin /hgiris <kullanıcı adı> <şifre> komutunu kullanırken skript'in veritabanına kayıt olmuş bir hesabı şifresi ile kullanıcı adını aynı anda nasıl kontrol ettirebilirim ? ve nasıl kayıt ettirmem gerekiyor ? bunun için bir öneride bulunurmusunuz ?​
 

MhaWTHoR

Obsidyen Madencisi
En iyi cevaplar
1
Doğru anladıysam şu şekilde;
PHP:
command /hgiris [<text>] [<text>]:
    trigger:
        arg 1 is set:
            arg 2 is set:
                {%arg 1%} is set:
                    {%arg 1.%arg 2%} is arg 2:
                        send "giris yapildi."
                    else:
                        send "Yanlis sifre"
command /hesapac [<text>] [<text>]:
    trigger:
        arg 1 is set:
            arg 2 is set:
                {%arg 1%} isn't set:
                    set {%arg 1%} to 1
                    set {%arg 1%.%arg 2%} to "%arg 2%"
                    send "hesap acildi."
                else:
                    send "zaten boyle bir kullanici var."
 

Gavatos

Demir Madencisi
En iyi cevaplar
3
Doğru anladıysam şu şekilde;
PHP:
command /hgiris [<text>] [<text>]:
    trigger:
        arg 1 is set:
            arg 2 is set:
                {%arg 1%} is set:
                    {%arg 1.%arg 2%} is arg 2:
                        send "giris yapildi."
                    else:
                        send "Yanlis sifre"
command /hesapac [<text>] [<text>]:
    trigger:
        arg 1 is set:
            arg 2 is set:
                {%arg 1%} isn't set:
                    set {%arg 1%} to 1
                    set {%arg 1%.%arg 2%} to "%arg 2%"
                    send "hesap acildi."
                else:
                    send "zaten boyle bir kullanici var."
Oyuncular başkalarının hesabina girebilir mi ?
 

MhaWTHoR

Obsidyen Madencisi
En iyi cevaplar
1
PHP:
command /hgiris [<text>] [<text>]:
    trigger:
        arg 1 is set:
            arg 2 is set:
                {%arg 1%} is set:
                    {%arg 1.%arg 2%} is arg 2:
                        send "giris yapildi."
                        set {girisyapti.%player%} to "%arg 1%"
                    else:
                        send "Yanlis sifre"
command /hesaptakipara:
    trigger:
        {girisyapti.%player%} is set:
            send "%{girisyapti.%player%}% Hesabindaki para: %{%{girisyapti.%player%}%.para}%"
command /hesapac [<text>] [<text>]:
    trigger:
        arg 1 is set:
            arg 2 is set:
                {%arg 1%} isn't set:
                    set {%arg 1%} to 1
                    set {%arg 1%.%arg 2%} to "%arg 2%"
                    send "hesap acildi."
                else:
                    send "zaten boyle bir kullanici var."
command /parayatir [<text>] [<integer>]:
    trigger:
        {%arg 1%} is set:
            add arg 2 to {%arg 1%.para}
            send "%arg 2% TL gonderildi."
 

BadActive

Kızıltaş Madencisi
En iyi cevaplar
0
PHP:
command /hgiris [<text>] [<text>]:
    trigger:
        arg 1 is set:
            arg 2 is set:
                {%arg 1%} is set:
                    {%arg 1.%arg 2%} is arg 2:
                        send "giris yapildi."
                        set {girisyapti.%player%} to "%arg 1%"
                    else:
                        send "Yanlis sifre"
command /hesaptakipara:
    trigger:
        {girisyapti.%player%} is set:
            send "%{girisyapti.%player%}% Hesabindaki para: %{%{girisyapti.%player%}%.para}%"
command /hesapac [<text>] [<text>]:
    trigger:
        arg 1 is set:
            arg 2 is set:
                {%arg 1%} isn't set:
                    set {%arg 1%} to 1
                    set {%arg 1%.%arg 2%} to "%arg 2%"
                    send "hesap acildi."
                else:
                    send "zaten boyle bir kullanici var."
command /parayatir [<text>] [<integer>]:
    trigger:
        {%arg 1%} is set:
            add arg 2 to {%arg 1%.para}
            send "%arg 2% TL gonderildi."
Yine Döktürüyor :D
 
Üst