Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // FileScript By Ner0x.
- // Descripción: Es una script, que cuando matas a alguien saldrá en la pantalla bajo el chat.
- #include <a_samp>
- new Text:MTS;
- public OnFilterScriptInit()
- {
- print("\n----------------------------------------");
- print(" Matanzas => Textdraw => Ner0x ... Cargado");
- print("------------------------------------------\n");
- // Matanzas MTS
- MTS = TextDrawCreate(35.000000, 163.000000, "XXX ha matado a XXX con XX");
- TextDrawBackgroundColor(MTS, 255);
- TextDrawFont(MTS, 1);
- TextDrawLetterSize(MTS, 0.259999, 0.899999);
- TextDrawColor(MTS, -16776961);
- TextDrawSetOutline(MTS, 0);
- TextDrawSetProportional(MTS, 1);
- TextDrawSetShadow(MTS, 1);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- new
- msg[128],
- killerName[MAX_PLAYER_NAME],
- reasonMsg[32],
- playerName[MAX_PLAYER_NAME];
- GetPlayerName(killerid, killerName, sizeof(killerName));
- GetPlayerName(playerid, playerName, sizeof(playerName));
- if (killerid != INVALID_PLAYER_ID)
- {
- switch (reason)
- {
- case 0:
- {
- reasonMsg = "Manos";
- }
- case 1:
- {
- reasonMsg = "Brass Knuckles";
- }
- case 2:
- {
- reasonMsg = "Palo de Golf";
- }
- case 3:
- {
- reasonMsg = "Night Stick";
- }
- case 4:
- {
- reasonMsg = "Cuchillo";
- }
- case 5:
- {
- reasonMsg = "Bate";
- }
- case 6:
- {
- reasonMsg = "Ramo";
- }
- case 7:
- {
- reasonMsg = "Palo";
- }
- case 8:
- {
- reasonMsg = "Katana";
- }
- case 9:
- {
- reasonMsg = "Chainsaw";
- }
- case 10:
- {
- reasonMsg = "Dildo";
- }
- case 11:
- {
- reasonMsg = "Dildo";
- }
- case 12:
- {
- reasonMsg = "Vibrador";
- }
- case 13:
- {
- reasonMsg = "Vibrador";
- }
- case 14:
- {
- reasonMsg = "Flowers";
- }
- case 15:
- {
- reasonMsg = "Cane";
- }
- case 22:
- {
- reasonMsg = "Pistola 9m";
- }
- case 23:
- {
- reasonMsg = "Pistola Silenciada";
- }
- case 24:
- {
- reasonMsg = "Desert Eagle";
- }
- case 25:
- {
- reasonMsg = "Escopeta";
- }
- case 26:
- {
- reasonMsg = "Recortadas";
- }
- case 27:
- {
- reasonMsg = "Escopeta Combate";
- }
- case 28:
- {
- reasonMsg = "MAC-10";
- }
- case 29:
- {
- reasonMsg = "MP5";
- }
- case 30:
- {
- reasonMsg = "AK-47";
- }
- case 31:
- {
- if (GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
- {
- switch (GetVehicleModel(GetPlayerVehicleID(killerid)))
- {
- case 447:
- {
- reasonMsg = "Sea Sparrow Machine Gun";
- }
- default:
- {
- reasonMsg = "Rifle de Asalto";
- }
- }
- }
- else
- {
- reasonMsg = "Rifle de Asalto";
- }
- }
- case 32:
- {
- reasonMsg = "MAC-10";
- }
- case 33:
- {
- reasonMsg = "Rifle";
- }
- case 34:
- {
- reasonMsg = "Francotirador";
- }
- case 37:
- {
- reasonMsg = "Fuego";
- }
- case 38:
- {
- if (GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
- {
- switch (GetVehicleModel(GetPlayerVehicleID(killerid)))
- {
- case 425:
- {
- reasonMsg = "Helicoptero";
- }
- default:
- {
- reasonMsg = "Minigun";
- }
- }
- }
- else
- {
- reasonMsg = "Minigun";
- }
- }
- case 41:
- {
- reasonMsg = "Spray";
- }
- case 42:
- {
- reasonMsg = "Extintor";
- }
- case 49:
- {
- reasonMsg = "Chocandose";
- }
- case 50:
- {
- if (GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
- {
- switch (GetVehicleModel(GetPlayerVehicleID(killerid)))
- {
- case 417, 425, 447, 465, 469, 487, 488, 497, 501, 548, 563:
- {
- reasonMsg = "Helices del Helicoptero";
- }
- default:
- {
- reasonMsg = "Chocandose";
- }
- }
- }
- else
- {
- reasonMsg = "Chocandose";
- }
- }
- case 51:
- {
- if (GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
- {
- switch (GetVehicleModel(GetPlayerVehicleID(killerid)))
- {
- case 425:
- {
- reasonMsg = "Misiles de Hunter";
- }
- case 432:
- {
- reasonMsg = "Tanque";
- }
- case 520:
- {
- reasonMsg = "Hydra Avion";
- }
- default:
- {
- reasonMsg = "Explosion";
- }
- }
- }
- else
- {
- reasonMsg = "Explosión";
- }
- }
- default:
- {
- reasonMsg = "Arma Desconocida";
- }
- }
- format(msg, sizeof(msg), "%s ha matado a %s. (%s)", killerName, playerName, reasonMsg);
- }
- else
- {
- switch (reason)
- {
- case 53:
- {
- format(msg, sizeof(msg), "%s ha muerto Ahogado", playerName);
- }
- case 54:
- {
- format(msg, sizeof(msg), "%s muerto de un Choque", playerName);
- }
- default:
- {
- format(msg, sizeof(msg), "%s ha muerto solo", playerName);
- }
- }
- }
- TextDrawSetString(MTS, msg);
- TextDrawShowForAll(MTS);
- SetTimer("QTXD", 5000, 0);
- return 1;
- }
- forward QTXD(playerid);
- public QTXD(playerid)
- {
- TextDrawHideForAll(MTS);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement