Ayuda :)
#6

Creas el textdraw , un forward y algunas variables.ejemplo
pawn Код:
new Text: Fecha;
forward ActualizarFecha();
new dia,mes,aсo;
new segundo,minuto,hora;
luego en OnGameModeInit
pawn Код:
//especificas y creas tu textdraw
SetTimer("ActualizarFecha",1000,true); // el 1000 es el tiempo en que se repite el timer y el true es para que se repita.
luego creas un public
pawn Код:
public ActualizarFecha()
{
 getdate(aсo,mes,dia);
 gettime(hora,minuto,segundo);
//esto de arriba hace que el server coja la fecha y eso del lugar donde esta ubicado el server.
//ahora se edita el textdraw creado con la funcion TextDrawSetString
format(relojs,128,"%d-%d-%d  %d:%d",aсo,mes,dia,hora,minuto);
TextDrawSetString(Fecha,relojs);
}
Listo!
Recuerda que debes crear un textdraw te recomiendo usar el TextDraw Creator de Zamaroht.

Suerte!
Reply


Messages In This Thread
Ayuda :) - by G.B - 31.01.2010, 02:23
Re: Ayuda :) - by kaltox - 31.01.2010, 02:25
Re: Ayuda :) - by G.B - 31.01.2010, 02:33
Re: Ayuda :) - by TheChaoz - 31.01.2010, 02:43
Re: Ayuda :) - by CristianTdj - 31.01.2010, 13:43
Re: Ayuda :) - by HuRRiCaNe - 31.01.2010, 17:17
Re: Ayuda :) - by elvago - 01.02.2010, 04:38

Forum Jump:


Users browsing this thread: 1 Guest(s)