Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- CREDITOS SSGAMERS & ANDRADE
- */
- #include <a_samp>
- new PlayerText:TextInfo[MAX_PLAYERS];
- showTextInfo(playerid)
- {
- for(new x; x != 6; x++)
- {
- new newtext[136], name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, MAX_PLAYER_NAME);
- PlayerTextDrawSetString(playerid, TextInfo[playerid], newtext);
- format(newtext, sizeof(newtext), "ID:_%d_NOME:_%s_PING:_%d_LEVEL:_%d",playerid, name, GetPlayerPing(playerid), GetPlayerScore(playerid));
- PlayerTextDrawSetString(playerid, TextInfo[playerid], newtext);
- PlayerTextDrawShow(playerid, TextInfo[playerid]);
- }
- }
- AtualizarTextInfo(playerid)
- {
- PlayerTextDrawHide(playerid, TextInfo[playerid]);
- for(new x; x != 6; x++)
- {
- new newtext[136], name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, MAX_PLAYER_NAME);
- PlayerTextDrawSetString(playerid, TextInfo[playerid], newtext);
- format(newtext, sizeof(newtext), "ID:_%d_NOME:_%s_PING:_%d_LEVEL:_%d",playerid, name, GetPlayerPing(playerid), GetPlayerScore(playerid));
- PlayerTextDrawSetString(playerid, TextInfo[playerid], newtext);
- PlayerTextDrawShow(playerid, TextInfo[playerid]);
- }
- }
- public OnFilterScriptInit()
- {
- print("------------------------------------------------------------------------------------------------------------\n");
- print("SSGAMERS: Sistema De Textdraw Carregado Com Sucesso");
- print("------------------------------------------------------------------------------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- TextInfo[playerid] = CreatePlayerTextDraw(playerid, 319.000000, 432.000000, "ID:_1__NOME:_ANDRADE__PING:_100__LEVEL:_10");
- PlayerTextDrawFont(playerid, TextInfo[playerid], 2);
- PlayerTextDrawLetterSize(playerid, TextInfo[playerid], 0.279166, 1.350000);
- PlayerTextDrawTextSize(playerid, TextInfo[playerid], 12.000000, 640.000000);
- PlayerTextDrawSetOutline(playerid, TextInfo[playerid], 0);
- PlayerTextDrawSetShadow(playerid, TextInfo[playerid], 0);
- PlayerTextDrawAlignment(playerid, TextInfo[playerid], 2);
- PlayerTextDrawColor(playerid, TextInfo[playerid], -1);
- PlayerTextDrawBackgroundColor(playerid, TextInfo[playerid], 255);
- PlayerTextDrawBoxColor(playerid, TextInfo[playerid], 101);
- PlayerTextDrawUseBox(playerid, TextInfo[playerid], 1);
- PlayerTextDrawSetProportional(playerid, TextInfo[playerid], 1);
- PlayerTextDrawSetSelectable(playerid, TextInfo[playerid], 0);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- showTextInfo(playerid);
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- AtualizarTextInfo(playerid);
- return 1;
- }
Add Comment
Please, Sign In to add comment