Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- This filterscript uses YSF by Y_Less
- Donwnload it @ http://www.solidfiles.com/d/6f79d1ec26/YSF.rar
- Made by Tyler (fgt)
- */
- #include <a_samp>
- new Text:tdWorldTime,gHours,gMinutes;
- native SetServerRule(name[],value[]);
- public OnFilterScriptInit()
- {
- SetTimer("GlobalTimer",996,1);
- tdWorldTime = TextDrawCreate(605.0,25.0," ");
- TextDrawUseBox(tdWorldTime,0);
- TextDrawFont(tdWorldTime,3);
- TextDrawColor(tdWorldTime,0x99CCFFFF);
- TextDrawSetOutline(tdWorldTime,1);
- TextDrawBackgroundColor(tdWorldTime,0x0066CCFF);
- TextDrawSetShadow(tdWorldTime,0);
- TextDrawAlignment(tdWorldTime,3);
- TextDrawLetterSize(tdWorldTime,0.3,1.0);
- TextDrawShowForAll(tdWorldTime);
- return 1;
- }
- forward GlobalTimer();
- public GlobalTimer()
- {
- new string[24];
- gMinutes ++;
- if(gMinutes >= 60)
- {
- gHours ++;
- if(gHours >= 24) gHours = 0;
- }
- format(string,sizeof(string),"%02d:%02d",gHours,gMinutes);
- TextDrawSetString(tdWorldTime,string);
- SetServerRule("worldtime",string);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement