Tela de morte classica GTA V
BY: JPedro & Sektor (Desbug)
www.detonasamp.com.br
» Introdução
Tela de morte simples do gta v.Quando o oponente é morto é exibida uma mensagem com a morte dele, do que ele foi morto + tela do gta v em textdraw.
comandos: não há comandos.
Code:
/* ==============================================================
BY: JPedro
==============================================================*/
#include <a_samp>
new Text:SEFODEU[4];
public OnFilterScriptInit()
{
print("Tela de Morte do GTA 5 por: JPedro");
// Create the textdraws:
SEFODEU[0] = TextDrawCreate(-20.000000, -4.000000, "_");
TextDrawBackgroundColor(SEFODEU[0], 255);
TextDrawFont(SEFODEU[0], 1);
TextDrawLetterSize(SEFODEU[0], 0.500000, 52.099998);
TextDrawColor(SEFODEU[0], -1);
TextDrawSetOutline(SEFODEU[0], 0);
TextDrawSetProportional(SEFODEU[0], 1);
TextDrawSetShadow(SEFODEU[0], 1);
TextDrawUseBox(SEFODEU[0], 1);
TextDrawBoxColor(SEFODEU[0], 68);
TextDrawTextSize(SEFODEU[0], 660.000000, 40.000000);
SEFODEU[1] = TextDrawCreate(-10.000000, 162.000000, "_");
TextDrawBackgroundColor(SEFODEU[1], 255);
TextDrawFont(SEFODEU[1], 1);
TextDrawLetterSize(SEFODEU[1], 0.700000, 8.899999);
TextDrawColor(SEFODEU[1], -1);
TextDrawSetOutline(SEFODEU[1], 0);
TextDrawSetProportional(SEFODEU[1], 1);
TextDrawSetShadow(SEFODEU[1], 1);
TextDrawUseBox(SEFODEU[1], 1);
TextDrawBoxColor(SEFODEU[1], 119);
TextDrawTextSize(SEFODEU[1], 650.000000, -10.000000);
SEFODEU[2] = TextDrawCreate(211.000000, 166.000000, "SE FODEU");
TextDrawBackgroundColor(SEFODEU[2], 255);
TextDrawFont(SEFODEU[2], 3);
TextDrawLetterSize(SEFODEU[2], 1.410000, 5.799998);
TextDrawColor(SEFODEU[2], -16776961);
TextDrawSetOutline(SEFODEU[2], 0);
TextDrawSetProportional(SEFODEU[2], 1);
TextDrawSetShadow(SEFODEU[2], 1);
SEFODEU[3] = TextDrawCreate(217.000000, 224.000000, "MOTIVO");
TextDrawBackgroundColor(SEFODEU[3], 255);
TextDrawFont(SEFODEU[3], 1);
TextDrawLetterSize(SEFODEU[3], 0.300000, 1.200000);
TextDrawColor(SEFODEU[3], -1);
TextDrawSetOutline(SEFODEU[3], 0);
TextDrawSetProportional(SEFODEU[3], 1);
TextDrawSetShadow(SEFODEU[3], 1);
return true;
}
public OnFilterScriptExit()
{
TextDrawHideForAll(SEFODEU[0]);
TextDrawDestroy(SEFODEU[0]);
TextDrawHideForAll(SEFODEU[1]);
TextDrawDestroy(SEFODEU[1]);
TextDrawHideForAll(SEFODEU[2]);
TextDrawDestroy(SEFODEU[2]);
TextDrawHideForAll(SEFODEU[3]);
TextDrawDestroy(SEFODEU[3]);
return true;
}
public OnPlayerDeath(playerid, killerid, reason)
{
for(new i; i<sizeof(SEFODEU); i++) TextDrawShowForPlayer(playerid, SEFODEU[i]);
new string[128];
switch(reason)
{
case 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,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,23,24: format(string, sizeof(string),"~r~%s ~w~ENCHEU VOCE DE AZEITONA",PegarNome(killerid));
case 25,26,27: format(string, sizeof(string),"~r~%s ~w~MANDOU CHUMBO EM VOCE",PegarNome(killerid));
case 28,29,30,31,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";
case 51,49,54: string = "~w~VOCE COMETEU SUICIDIO";
}
TextDrawSetString(SEFODEU[3], string);
return true;
}
public OnPlayerSpawn(playerid)
{
TextDrawHideForPlayer(playerid,SEFODEU[0]);
TextDrawHideForPlayer(playerid,SEFODEU[1]);
TextDrawHideForPlayer(playerid,SEFODEU[2]);
TextDrawHideForPlayer(playerid,SEFODEU[3]);
for(new i; i<sizeof(SEFODEU); i++) TextDrawHideForPlayer(playerid, SEFODEU[i]);
return true;
}
PegarNome(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
return name;
}
» Prints
Tela de morte classica GTA V
BY: JPedro & Sektor (Desbug)
www.detonasamp.com.br
» Introdução
Tela de morte simples do gta v.Quando o oponente é morto é exibida uma mensagem com a morte dele, do que ele foi morto + tela do gta v em textdraw.
comandos: não há comandos.
Code:
/* ============================================================== BY: JPedro ==============================================================*/ #include <a_samp> new Text:SEFODEU[4]; public OnFilterScriptInit() { print("Tela de Morte do GTA 5 por: JPedro"); // Create the textdraws: SEFODEU[0] = TextDrawCreate(-20.000000, -4.000000, "_"); TextDrawBackgroundColor(SEFODEU[0], 255); TextDrawFont(SEFODEU[0], 1); TextDrawLetterSize(SEFODEU[0], 0.500000, 52.099998); TextDrawColor(SEFODEU[0], -1); TextDrawSetOutline(SEFODEU[0], 0); TextDrawSetProportional(SEFODEU[0], 1); TextDrawSetShadow(SEFODEU[0], 1); TextDrawUseBox(SEFODEU[0], 1); TextDrawBoxColor(SEFODEU[0], 68); TextDrawTextSize(SEFODEU[0], 660.000000, 40.000000); SEFODEU[1] = TextDrawCreate(-10.000000, 162.000000, "_"); TextDrawBackgroundColor(SEFODEU[1], 255); TextDrawFont(SEFODEU[1], 1); TextDrawLetterSize(SEFODEU[1], 0.700000, 8.899999); TextDrawColor(SEFODEU[1], -1); TextDrawSetOutline(SEFODEU[1], 0); TextDrawSetProportional(SEFODEU[1], 1); TextDrawSetShadow(SEFODEU[1], 1); TextDrawUseBox(SEFODEU[1], 1); TextDrawBoxColor(SEFODEU[1], 119); TextDrawTextSize(SEFODEU[1], 650.000000, -10.000000); SEFODEU[2] = TextDrawCreate(211.000000, 166.000000, "SE FODEU"); TextDrawBackgroundColor(SEFODEU[2], 255); TextDrawFont(SEFODEU[2], 3); TextDrawLetterSize(SEFODEU[2], 1.410000, 5.799998); TextDrawColor(SEFODEU[2], -16776961); TextDrawSetOutline(SEFODEU[2], 0); TextDrawSetProportional(SEFODEU[2], 1); TextDrawSetShadow(SEFODEU[2], 1); SEFODEU[3] = TextDrawCreate(217.000000, 224.000000, "MOTIVO"); TextDrawBackgroundColor(SEFODEU[3], 255); TextDrawFont(SEFODEU[3], 1); TextDrawLetterSize(SEFODEU[3], 0.300000, 1.200000); TextDrawColor(SEFODEU[3], -1); TextDrawSetOutline(SEFODEU[3], 0); TextDrawSetProportional(SEFODEU[3], 1); TextDrawSetShadow(SEFODEU[3], 1); return true; } public OnFilterScriptExit() { TextDrawHideForAll(SEFODEU[0]); TextDrawDestroy(SEFODEU[0]); TextDrawHideForAll(SEFODEU[1]); TextDrawDestroy(SEFODEU[1]); TextDrawHideForAll(SEFODEU[2]); TextDrawDestroy(SEFODEU[2]); TextDrawHideForAll(SEFODEU[3]); TextDrawDestroy(SEFODEU[3]); return true; } public OnPlayerDeath(playerid, killerid, reason) { for(new i; i<sizeof(SEFODEU); i++) TextDrawShowForPlayer(playerid, SEFODEU[i]); new string[128]; switch(reason) { case 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,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,23,24: format(string, sizeof(string),"~r~%s ~w~ENCHEU VOCE DE AZEITONA",PegarNome(killerid)); case 25,26,27: format(string, sizeof(string),"~r~%s ~w~MANDOU CHUMBO EM VOCE",PegarNome(killerid)); case 28,29,30,31,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"; case 51,49,54: string = "~w~VOCE COMETEU SUICIDIO"; } TextDrawSetString(SEFODEU[3], string); return true; } public OnPlayerSpawn(playerid) { TextDrawHideForPlayer(playerid,SEFODEU[0]); TextDrawHideForPlayer(playerid,SEFODEU[1]); TextDrawHideForPlayer(playerid,SEFODEU[2]); TextDrawHideForPlayer(playerid,SEFODEU[3]); for(new i; i<sizeof(SEFODEU); i++) TextDrawHideForPlayer(playerid, SEFODEU[i]); return true; } PegarNome(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); return name; }
» Prints
