Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Topo
- new Text:jInfo[MAX_PLAYERS];
- new Text:jInfo2[MAX_PLAYERS];
- new Text:jInfo3[MAX_PLAYERS];
- new Text:jVida[MAX_PLAYERS];
- new Text:jConectar[MAX_PLAYERS];
- new Text:jConectar2[MAX_PLAYERS];
- new bool:Conectado = false;
- //OnPlayerConnect
- jInfo[playerid] = TextDrawCreate(-1.000000, 420.000000, " ~b~Brasil ~w~Player ~b~Conspired ~w~[~b~RP~w~]");
- jInfo2[playerid] = TextDrawCreate(-1.000000, 429.000000, "_");
- jInfo3[playerid] = TextDrawCreate(-1.000000, 438.000000, "_");
- jVida[playerid] = TextDrawCreate(560.000000, 67.000000, "_");
- jConectar[playerid] = TextDrawCreate(0.000000,2.000000, "~b~.");
- jConectar2[playerid] = TextDrawCreate(1.000000,359.000000, "~b~.");
- TextDrawBackgroundColor(jInfo[playerid], 0x000000ff);
- TextDrawBackgroundColor(jInfo2[playerid], 0x000000ff);
- TextDrawBackgroundColor(jInfo3[playerid], 0x000000ff);
- TextDrawBackgroundColor(jVida[playerid], 0x000000ff);
- TextDrawBackgroundColor(jConectar[playerid], 0x000000ff);
- TextDrawBackgroundColor(jConectar2[playerid], 0x000000ff);
- TextDrawFont(jInfo[playerid], 1);
- TextDrawFont(jInfo2[playerid], 1);
- TextDrawFont(jInfo3[playerid], 1);
- TextDrawFont(jVida[playerid], 1);
- TextDrawFont(jConectar[playerid], 3);
- TextDrawFont(jConectar2[playerid], 3);
- TextDrawLetterSize(jInfo[playerid], 0.299999,1.100000);
- TextDrawLetterSize(jInfo2[playerid], 0.299999,1.100000);
- TextDrawLetterSize(jInfo3[playerid], 0.299999,1.100000);
- TextDrawLetterSize(jVida[playerid], 0.400000,0.900000);
- TextDrawLetterSize(jConectar[playerid], 1.000000,10.800004);
- TextDrawLetterSize(jConectar2[playerid], 0.899999,11.800008);
- TextDrawSetOutline(jInfo[playerid], 1);
- TextDrawSetOutline(jInfo2[playerid], 1);
- TextDrawSetOutline(jInfo3[playerid], 1);
- TextDrawSetOutline(jVida[playerid], 1);
- TextDrawSetOutline(jConectar[playerid], 1);
- TextDrawSetOutline(jConectar2[playerid], 1);
- TextDrawSetProportional(jInfo[playerid], 1);
- TextDrawSetProportional(jInfo2[playerid], 1);
- TextDrawSetProportional(jInfo3[playerid], 1);
- TextDrawSetProportional(jVida[playerid], 1);
- TextDrawSetProportional(jConectar[playerid], 1);
- TextDrawSetProportional(jConectar2[playerid], 1);
- TextDrawUseBox(jConectar[playerid], 1); //Box preta ao conectar (Topo)
- TextDrawUseBox(jConectar2[playerid], 1); //Box preta ao conectar (Baixo)
- TextDrawBoxColor(jConectar[playerid], 0x00000099);
- TextDrawBoxColor(jConectar2[playerid], 0x00000099);
- TextDrawShowForPlayer(playerid, jConectar[playerid]);
- TextDrawShowForPlayer(playerid, jConectar2[playerid]);
- //OnPlayerSpawn
- TextDrawDestroy(jConectar[playerid]);
- TextDrawDestroy(jConectar2[playerid]);
- TextDrawShowForPlayer(playerid, jInfo[playerid]);
- TextDrawShowForPlayer(playerid, jInfo2[playerid]);
- TextDrawShowForPlayer(playerid, jInfo3[playerid]);
- TextDrawShowForPlayer(playerid, jVida[playerid]);
- SetTimer("OnPlayerSpawn2", 500, true);
- forward OnPlayerSpawn2(playerid, targetid);
- public OnPlayerSpawn2(playerid, targetid)
- {
- if(Conectado == false)
- {
- new sStrDD[256], sStrDDD[256], sStrD[256];
- new Float:Vida;
- new level = PlayerInfo[targetid][pLevel];
- new exp = PlayerInfo[targetid][pExp];
- new nxtlevel = PlayerInfo[targetid][pLevel]+1;
- new expamount = nxtlevel*levelexp;
- new account = PlayerInfo[targetid][pAccount];
- GetPlayerHealth(playerid, Vida);
- format(sStrD, sizeof(sStrD), "%0.1f", Vida);
- format(sStrDD, sizeof(sStrDD), " ~y~Level: ~w~%d ~p~Respeito: ~w~%d/%d", level, exp, expamount);
- format(sStrDDD, sizeof(sStrDDD), " ~r~R$: ~w~%d ~b~Banco ~w~%d ~p~Conta: ~w~Normal ~b~www.brasilplayerconspired.net", GetPlayerGP(targetid), account);
- TextDrawSetString(jVida[playerid], sStrD);
- TextDrawSetString(jInfo2[playerid], sStrDD);
- TextDrawSetString(jInfo3[playerid], sStrDDD);
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment