Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new Text:T;
- #if defined FILTERSCRIPT
- #endif
- forward TI(playerid);
- public TI(playerid)
- {
- new h, m, str[64];
- gettime(h, m);
- format(str, sizeof(str), "%02d:%02d", h, m);
- TextDrawSetString(T, str);
- return 1;
- }
- public OnFilterScriptInit()
- {
- SetTimer("TI", 1000, true);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- T = TextDrawCreate(607.0, 27.0, " ");
- TextDrawFont(T, 3);
- TextDrawSetOutline(T, 2);
- TextDrawColor(T, 0x00FFFFFF);
- TextDrawAlignment(T, 3);
- TextDrawLetterSize(T, 0.6, 1.5);
- TextDrawShowForPlayer(playerid, T);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement