Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* =====================================
- Tela de Morte estilo GTA 5 criado por: JPedro
- Por favor manter os créditos :)
- ======================================== */
- #include <a_samp>
- #if defined FILTERSCRIPT
- #endif
- new PlayerText:TELA_DE_MORTE[MAX_PLAYERS][4];
- public OnFilterScriptInit()
- {
- print("\n\n\n\nTELA DE MORTE GTA 5 - Carregado com Sucesso!");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- LoadPlayerTextDraw(playerid);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- new string[128];
- switch(reason)
- {
- case 0..15: format(string, sizeof(string),"~r~%s ~w~TE SOCOU ATE A MORTE",PegarNome(killerid));
- case 18,37: format(string, sizeof(string),"~r~%s ~w~FEZ VOCE QUEIMAR ATE A MORTE",PegarNome(killerid));
- case 22..24: format(string, sizeof(string),"~r~%s ~w~ENCHEU VOCE DE AZEITONA",PegarNome(killerid));
- case 25..27: format(string, sizeof(string),"~r~%s ~w~MANDOU CHUMBO EM VOCE",PegarNome(killerid));
- case 28..32: format(string, sizeof(string),"~r~%s ~w~FUZILOU VOCE ATE A MORTE",PegarNome(killerid));
- case 33,34: format(string, sizeof(string),"~r~%s ~w~MANDOU BALA COM PRECISAO EM VOCE",PegarNome(killerid));
- case 17,41,42: format(string, sizeof(string),"~r~%s ~w~JOGOU FUMACA EM VOCE ATE A MORTE",PegarNome(killerid));
- case 53: string = "~w~VOCE FOI DORMIR COM OS PEIXES";
- default: string = "~w~VOCE COMETEU SUICIDIO";
- }
- PlayerTextDrawSetString(playerid, TELA_DE_MORTE[playerid][3], string);
- for(new i = 0; i < 4; i++) PlayerTextDrawShow(playerid, TELA_DE_MORTE[playerid][i]);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- for(new i = 0; i < 4; i++) PlayerTextDrawHide(playerid, TELA_DE_MORTE[playerid][i]);
- return 1;
- }
- stock LoadPlayerTextDraw(playerid)
- {
- TELA_DE_MORTE[playerid][0] = CreatePlayerTextDraw(playerid,670.000000, 0.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,TELA_DE_MORTE[playerid][0], 255);
- PlayerTextDrawFont(playerid,TELA_DE_MORTE[playerid][0], 1);
- PlayerTextDrawLetterSize(playerid,TELA_DE_MORTE[playerid][0], 0.500000, 52.000000);
- PlayerTextDrawColor(playerid,TELA_DE_MORTE[playerid][0], -1);
- PlayerTextDrawSetOutline(playerid,TELA_DE_MORTE[playerid][0], 0);
- PlayerTextDrawSetProportional(playerid,TELA_DE_MORTE[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid,TELA_DE_MORTE[playerid][0], 1);
- PlayerTextDrawUseBox(playerid,TELA_DE_MORTE[playerid][0], 1);
- PlayerTextDrawBoxColor(playerid,TELA_DE_MORTE[playerid][0], 68);
- PlayerTextDrawTextSize(playerid,TELA_DE_MORTE[playerid][0], -30.000000, 0.000000);
- PlayerTextDrawSetSelectable(playerid,TELA_DE_MORTE[playerid][0], 0);
- TELA_DE_MORTE[playerid][1] = CreatePlayerTextDraw(playerid,670.000000, 155.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,TELA_DE_MORTE[playerid][1], 255);
- PlayerTextDrawFont(playerid,TELA_DE_MORTE[playerid][1], 1);
- PlayerTextDrawLetterSize(playerid,TELA_DE_MORTE[playerid][1], 0.500000, 13.399990);
- PlayerTextDrawColor(playerid,TELA_DE_MORTE[playerid][1], -1);
- PlayerTextDrawSetOutline(playerid,TELA_DE_MORTE[playerid][1], 0);
- PlayerTextDrawSetProportional(playerid,TELA_DE_MORTE[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid,TELA_DE_MORTE[playerid][1], 1);
- PlayerTextDrawUseBox(playerid,TELA_DE_MORTE[playerid][1], 1);
- PlayerTextDrawBoxColor(playerid,TELA_DE_MORTE[playerid][1], 153);
- PlayerTextDrawTextSize(playerid,TELA_DE_MORTE[playerid][1], -40.000000, 0.000000);
- PlayerTextDrawSetSelectable(playerid,TELA_DE_MORTE[playerid][1], 0);
- TELA_DE_MORTE[playerid][2] = CreatePlayerTextDraw(playerid,317.000000, 159.000000, "~r~SE FODEU");
- PlayerTextDrawAlignment(playerid,TELA_DE_MORTE[playerid][2], 2);
- PlayerTextDrawBackgroundColor(playerid,TELA_DE_MORTE[playerid][2], 255);
- PlayerTextDrawFont(playerid,TELA_DE_MORTE[playerid][2], 3);
- PlayerTextDrawLetterSize(playerid,TELA_DE_MORTE[playerid][2], 2.109999, 9.799997);
- PlayerTextDrawColor(playerid,TELA_DE_MORTE[playerid][2], -1);
- PlayerTextDrawSetOutline(playerid,TELA_DE_MORTE[playerid][2], 0);
- PlayerTextDrawSetProportional(playerid,TELA_DE_MORTE[playerid][2], 1);
- PlayerTextDrawSetShadow(playerid,TELA_DE_MORTE[playerid][2], 0);
- PlayerTextDrawSetSelectable(playerid,TELA_DE_MORTE[playerid][2], 0);
- TELA_DE_MORTE[playerid][3] = CreatePlayerTextDraw(playerid,318.000000, 254.000000, "~r~Nome_Sobrenome ~w~mandou bala com precisao em voce.");
- PlayerTextDrawAlignment(playerid,TELA_DE_MORTE[playerid][3], 2);
- PlayerTextDrawBackgroundColor(playerid,TELA_DE_MORTE[playerid][3], 255);
- PlayerTextDrawFont(playerid,TELA_DE_MORTE[playerid][3], 2);
- PlayerTextDrawLetterSize(playerid,TELA_DE_MORTE[playerid][3], 0.289999, 1.700000);
- PlayerTextDrawColor(playerid,TELA_DE_MORTE[playerid][3], -1);
- PlayerTextDrawSetOutline(playerid,TELA_DE_MORTE[playerid][3], 1);
- PlayerTextDrawSetProportional(playerid,TELA_DE_MORTE[playerid][3], 1);
- PlayerTextDrawSetSelectable(playerid,TELA_DE_MORTE[playerid][3], 0);
- return 1;
- }
- stock PegarNome(playerid)
- {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, MAX_PLAYER_NAME);
- return name;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement