arkadaşlar .save yazıldığında serverda yapmış olduğum resmin çıkmasını save bitimindede kaybolmasını istiyorum yardımcı olabilirmisiniz?? nasıl yaparım ben bu işi ?
f_onsave gibi spherecommands de yazan functionların altına dialog olarak ekliyeceksin.
Save bitimindede "close" eklersin olur biter.
xP
[FUNCTION dialog_up]
TRYSRC <UID> SRC.SDIALOG <ARGS>

[DIALOG D_SAVING_DLG]
180,340
noclose
nomove

PAGE 0
resizepic 10 10 1001 280 100

[FUNCTION dialog_up]
TRYSRC <UID> SRC.SDIALOG <ARGS>

[FUNCTION CLOSESAVINGDLG]
TRYSRC <UID> SRC.DIALOGCLOSE D_SAVING_DLG

böyle bişey yaptım ama bir bakarsanız sevinirim..
olur bu f_save falan yerlere eklersen sorunsuz çalışır

////////////////////////////////////////////////////////////////////////
///////////////////sphere_server_triggers.scp icinde
//////////////////////////////////////////////
/////[FUNCTION f_onserver_save]
/////serv.allclients dialogall d_savecc
///////////////////////////////////////
/////[FUNCTION f_onserver_save_ok]
/////serv.allclients dialogall d_saveco
/////serv.allclients timerf 1 dialogclose d_saveco
/////serv.allclients timerf 1 dialogclose d_savecc
//////////////////////////////////////////////

[function dialogall]
for 0 <eval <serv.clients>-1>
obj=<serv.client.<local._for>.uid>
trysrc <obj.uid> obj.dialog <args>
endfor

[DIALOG d_savecc]
110, 40
PAGE 0
nomove
noclose
resizepic 126 126 3500 150 100
resizepic 136 136 3000 130 80
text 150 164 1350 0

[DIALOG d_savecc TEXT]
Save Aliniyor...


[DIALOG d_savecc BUTTON]

[DIALOG d_saveco]
110, 40
PAGE 0
nomove
noclose
resizepic 126 126 3500 150 100
resizepic 136 136 3000 130 80
text 150 164 95 0

[DIALOG d_saveco TEXT]
Save Alindi...


[DIALOG d_saveco BUTTON]


[itemdef i_saveci] 
id i_grave_stone 
type=t_script 
name Save Tamer

on=@create 
timer=60 
more2=25 
color=0455

on=@dclick
return 1 

on=@timer 
if (<more2> > 1) 
if (<more2> ==5) 
SERV.ALLCLIENTS sysmessage @90,,1 5 Dakika Sonra Save Alinacaktir !
endif 
more2=<eval <more2>>-1 
timer=30
elseif (<more2> == 01) 
more2=00 
timer 30
SERV.ALLCLIENTS sysmessage @90,,1 30 Saniye Sonra Save Alinacaktir !
else 
src.save 1
more2=20
timer=30
endif 
return 1 

on=@click 
if (<eval <more2>> > 0) 
message @90 [ Save ]
message @90 [Kalan Sure: <eval <more2>> Dakika. <eval <timer>> Saniye.]
else 
message @90 [ Save ]
message @90 [ <eval <timer>> Saniye ] 
endif 
return 1 

on=@pickup_ground
return 1
 
[EOF]
tamam yaptım teşekkürler..

Üye Ol veya Giriş Yap

Bu forum başlığına mesaj atmak istiyorsanız hemen üye olun veya giriş yapın.