Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Scripted by UltraScripter
- //Enjoey////
- #include <a_samp>
- new Text:Score[MAX_PLAYERS];
- new Text:Date[MAX_PLAYERS];
- new Text:Time[MAX_PLAYERS];
- new Text:Ping[MAX_PLAYERS];
- new Text:Name[MAX_PLAYERS];
- #if defined FILTERSCRIPT
- #endif
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------------------------------------------");
- print(" TextDrawStrings By UltraScripter Loaded SucceFully !!! !!! !!!");
- print("--------------------------------------------------------------------------\n");
- SetTimer("pScore", 5, true);
- SetTimer("pDate", 5, true);
- SetTimer("pTime", 1000, true);
- SetTimer("pPing", 5, true);
- SetTimer("pName", 5, true); // In Case If Player Changes The Name !!! !!! !!! / / / / / / / / / / / / / / / / / /
- return 1;
- }
- forward pScore(playerid);
- forward pDate(playerid);
- forward pTime(playerid);
- forward pPing(playerid);
- forward pName(playerid);
- public pScore(playerid)
- {
- new Str[256];
- format(Str, sizeof(Str), "Score: %d", GetPlayerScore(playerid));
- TextDrawSetString(Score[playerid], Str);
- return 1;
- }
- public pDate(playerid)
- {
- new Str[256];
- new y, m, d;
- getdate(y, m, d);
- format(Str, sizeof(Str), "%02d/%02d/%02d", y, m, d);
- TextDrawSetString(Date[playerid], Str);
- return 1;
- }
- public pTime(playerid)
- {
- new Str[256];
- new h, k, s;
- gettime(h, k, s);
- format(Str, sizeof(Str), "%02d:%02d:%02d", h, k, s);
- TextDrawSetString(Time[playerid], Str);
- return 1;
- }
- public pPing(playerid)
- {
- new Str[256];
- format(Str, sizeof(Str), "Ping: %d", GetPlayerPing(playerid));
- TextDrawSetString(Ping[playerid], Str);
- return 1;
- }
- public pName(playerid)
- {
- new Str[256];
- new ppName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, ppName, sizeof(ppName));
- format(Str, sizeof(Str), "%s", ppName);
- TextDrawSetString(Name[playerid], Str);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- Score[playerid] = TextDrawCreate(498.0, 135.0, " "); // 498.0, 135.0
- TextDrawFont(Score[playerid], 3);
- TextDrawColor(Score[playerid], 0xFF8000FF);
- TextDrawLetterSize(Score[playerid], 0.550000, 0.550000);
- TextDrawSetOutline(Score[playerid], 1);
- TextDrawShowForPlayer(playerid, Score[playerid]);
- Date[playerid] = TextDrawCreate(498.0, 145.0, " ");
- TextDrawFont(Date[playerid], 3);
- TextDrawColor(Date[playerid], 0xFFFFFFFF);
- TextDrawLetterSize(Date[playerid], 0.550000, 0.550000);
- TextDrawSetOutline(Date[playerid], 1);
- TextDrawShowForPlayer(playerid, Date[playerid]);
- Time[playerid] = TextDrawCreate(498.0, 155.0, " ");
- TextDrawFont(Time[playerid], 3);
- TextDrawColor(Time[playerid], 0xFFFFFFFF);
- TextDrawLetterSize(Time[playerid], 0.550000, 0.550000);
- TextDrawSetOutline(Time[playerid], 1);
- TextDrawShowForPlayer(playerid, Time[playerid]);
- Ping[playerid] = TextDrawCreate(498.0, 165.0, " ");
- TextDrawFont(Ping[playerid], 3);
- TextDrawColor(Ping[playerid], 0xFF8000FF);
- TextDrawLetterSize(Ping[playerid], 0.550000, 0.950000);
- TextDrawSetOutline(Ping[playerid], 1);
- TextDrawShowForPlayer(playerid, Ping[playerid]);
- Name[playerid] = TextDrawCreate(498.0, 175.0, " ");
- TextDrawFont(Name[playerid], 3);
- TextDrawColor(Name[playerid], 0xFF8000FF);
- TextDrawLetterSize(Name[playerid], 0.550000, 0.550000); //0.950000, 0.950000
- TextDrawSetOutline(Name[playerid], 1);
- TextDrawShowForPlayer(playerid, Name[playerid]);
- return 1;
- }
- //Scripted by UltraScripter
- //Enjoey////
Advertisement
Add Comment
Please, Sign In to add comment