Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
- *
- * This simple FILTERSCRIPT is made especially for www.forum.sa-mp.com
- * DO NOT Post the FILTERSCRIPT in Other SAMP forums and impersonating the creator of the CODE.
- *
- * Code Created By OTACON
- *
- * CREDITS:
- * OTACON: Idea Making and code creation.
- * YOUR: Modification freely respecting the above ;).
- *
- * NOTE: Less Credits for those who criticize me.. JO'PUTAS! :D xD ;)
- *
- * FULLY spaces Theft Credit or
- * Publication of this FILTERSCRIPT without my permission.
- */
- #include <a_samp>
- new PlayerText:MotivoMorto[MAX_PLAYERS][4];
- public OnPlayerConnect(playerid){
- for(new idx=0; idx<4; idx++){
- PlayerTextDrawDestroy(playerid,MotivoMorto[playerid][idx]);
- }
- MotivoMorto[playerid][0] = CreatePlayerTextDraw(playerid,720.125000, 175.333251, "usebox");
- PlayerTextDrawLetterSize(playerid,MotivoMorto[playerid][0], 0.000000, 10.465743);
- PlayerTextDrawTextSize(playerid,MotivoMorto[playerid][0], -18.875000, 0.000000);
- PlayerTextDrawAlignment(playerid,MotivoMorto[playerid][0], 1);
- PlayerTextDrawColor(playerid,MotivoMorto[playerid][0], 0);
- PlayerTextDrawUseBox(playerid,MotivoMorto[playerid][0], true);
- PlayerTextDrawBoxColor(playerid,MotivoMorto[playerid][0], 102);
- PlayerTextDrawSetShadow(playerid,MotivoMorto[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid,MotivoMorto[playerid][0], 0);
- PlayerTextDrawFont(playerid,MotivoMorto[playerid][0], 0);
- MotivoMorto[playerid][1] = CreatePlayerTextDraw(playerid,323.125000, 188.416610, "usebox");
- PlayerTextDrawLetterSize(playerid,MotivoMorto[playerid][1], 1.834375, 5.689165);
- PlayerTextDrawAlignment(playerid,MotivoMorto[playerid][1], 2);
- PlayerTextDrawColor(playerid,MotivoMorto[playerid][1], -1);
- PlayerTextDrawSetShadow(playerid,MotivoMorto[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid,MotivoMorto[playerid][1], 1);
- PlayerTextDrawBackgroundColor(playerid,MotivoMorto[playerid][1], 51);
- PlayerTextDrawFont(playerid,MotivoMorto[playerid][1], 3);
- PlayerTextDrawSetProportional(playerid,MotivoMorto[playerid][1], 1);
- MotivoMorto[playerid][2] = CreatePlayerTextDraw(playerid,315.625000, 242.083145, "usebox");
- PlayerTextDrawLetterSize(playerid,MotivoMorto[playerid][2], 0.248124, 1.220832);
- PlayerTextDrawAlignment(playerid,MotivoMorto[playerid][2], 2);
- PlayerTextDrawColor(playerid,MotivoMorto[playerid][2], -1);
- PlayerTextDrawSetShadow(playerid,MotivoMorto[playerid][2], 0);
- PlayerTextDrawSetOutline(playerid,MotivoMorto[playerid][2], 1);
- PlayerTextDrawBackgroundColor(playerid,MotivoMorto[playerid][2], 51);
- PlayerTextDrawFont(playerid,MotivoMorto[playerid][2], 2);
- PlayerTextDrawSetProportional(playerid,MotivoMorto[playerid][2], 1);
- MotivoMorto[playerid][3] = CreatePlayerTextDraw(playerid,682.000000, -15.416666, "usebox");
- PlayerTextDrawLetterSize(playerid,MotivoMorto[playerid][3], 0.000000, 54.958797);
- PlayerTextDrawTextSize(playerid,MotivoMorto[playerid][3], -152.625000, 0.000000);
- PlayerTextDrawAlignment(playerid,MotivoMorto[playerid][3], 1);
- PlayerTextDrawColor(playerid,MotivoMorto[playerid][3], 0);
- PlayerTextDrawUseBox(playerid,MotivoMorto[playerid][3], true);
- PlayerTextDrawBoxColor(playerid,MotivoMorto[playerid][3], 102);
- PlayerTextDrawSetShadow(playerid,MotivoMorto[playerid][3], 0);
- PlayerTextDrawSetOutline(playerid,MotivoMorto[playerid][3], 0);
- PlayerTextDrawFont(playerid,MotivoMorto[playerid][3], 0);
- return true;
- }
- public OnPlayerDeath(playerid, killerid, reason){
- if(playerid != INVALID_PLAYER_ID){
- new data[100],morto[20];
- switch(reason){
- case 54: {morto="suicidou-se";}
- case 49: {morto="atropellado";}
- case 50,8,9: {morto="Eu tritulado";}
- case 53: {morto="afogado";}
- case 16,18,35,36,37,51,255: {morto="queimado";}
- case 4: {morto="morto";}
- case 0..3,5..7,10..15: {morto="espancado";}
- case 22..32: {morto="demitido";}
- case 38: {morto="Eu atirei";}
- case 33,34: {morto="removido";}
- case 39: {morto="explorado";}
- default : {morto="ferids";}
- }
- for(new idx=0; idx<4; idx++){
- PlayerTextDrawShow(playerid,MotivoMorto[playerid][idx]);
- }
- PlayerTextDrawSetString(playerid,MotivoMorto[playerid][1],"~r~removido!");
- switch(reason){
- case 54,53,16,18,35,36,37,51: {format(data,sizeof(data),"~w~você tem ~r~%s",morto);}
- case 49,50,8,9,4,0..3,5..7,10..15,38,33,34,39: {format(data,sizeof(data),"~w~você tem ~r~%s",morto);}
- default : {format(data,sizeof(data),"~w~você tem ~r~%s",morto);}
- }
- PlayerTextDrawSetString(playerid,MotivoMorto[playerid][2],data);
- }
- return true;
- }
- public OnPlayerSpawn(playerid){
- for(new idx=0; idx<4; idx++){
- PlayerTextDrawHide(playerid,MotivoMorto[playerid][idx]);
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement