You are not logged in.

Dear visitor, welcome to Nitrado Türkiye Ön Ödemeli Gameserver Kiralama Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Efsanevi

Trainee

  • "Efsanevi" is male
  • "Efsanevi" started this thread

Posts: 401

Date of registration: Sep 2nd 2016

Location: İstanbul

Occupation: Öğrenci

  • Send private message

1

Sunday, October 2nd 2016, 9:44am

Zamanlama

Arkadaşlar örnek /hediye komutu var ben adamın bu komutu 5 dakikada bir kullanmasını nasıl sağlarım?
" Bir İnsanın Yaşıyıp Yaşamadığını Anlamak İstiyorsan Nabzına Değil Onuruna Bakacaksın...! *Duruyorsa Yaşıyordur* "

EnesAkkaya

Intermediate

  • "EnesAkkaya" is male

Posts: 1,583

Date of registration: Apr 16th 2016

  • Send private message

2

Sunday, October 2nd 2016, 9:48am

Merhabalar,

Aşağıdaki örneği bir deneyiniz:

Source code

1
2
3
4
5
6
7
8
9
10
command /hediye:
    trigger:
        if {hediyekomutsure.%player%} is not set:
            set {hediyekomutsure.%player%} to "1"
            # Olaylar
            wait 5 minutes
            delete {factionyazmasure.%player%}
            stop
        else:
            send "&4Hediye komutunu yazabilmen için 5 dakika beklemen gerek!" to player
YENİLER BİLMEZ! :)




bertek41

Trainee

  • "bertek41" is male
  • "bertek41" has been banned

Posts: 790

Date of registration: Jul 20th 2016

Location: Kocaeli

Occupation: Öğrenci

  • Send private message

3

Sunday, October 2nd 2016, 10:45am

Örnek:

Source code

1
2
3
4
5
6
7
8
command /hediye:
	trigger:
		set {_difference} to difference between {hediye.%player%} and now
			if {_difference} is less than 5 minutes:
				set  {_difference} to difference between {_difference} and 5 minutes
				message "Bu komutu tekrar kullanabilmek icin %{_difference}% beklemelisin!"
				stop
		set {hediye.%player%} to now


İtemli hali:

Source code

1
2
3
4
5
6
7
8
9
10
command /hediye:
	trigger:
		set {_difference} to difference between {hediye.%player%} and now 
		if {_difference} is less than 5 minutes:
			set  {_difference} to difference between {_difference} and 5 minutes 
			message "Bu komutu tekrar kullanabilmek icin %{_difference}% beklemelisin!"
			stop
		set {hediye.%player%} to now
		give player 1 stone sword
		give player 3 bread
MineWorkTR.Nitrado.Net 1.8.X Faction
Bağış Linkim: Tıkla

Similar threads

Rate this thread