U3Games

Games | Desarrollo & Soporte => SAMP | Desarrollo de Servidores => San Andreas Multi Player => SAMP | Implementaciones => Mensaje iniciado por: Swarlog en May 12, 2025, 03:15 PM

Título: Mensajes aleatorios al matar un jugador
Publicado por: Swarlog en May 12, 2025, 03:15 PM
mensajes_al_matar.png

● Información Adicional:

Encontre esta implementación para vuestros servidores, para darle algo más de humor. Se trata del código que se encarga de emitir un mensaje que elige aleatoriamente de una lista! Agrego imagen, haber que tal os parece. Espero que les guste!

● Código:

//FS TET KILL BY:CARLOSEDUARDOP
#include <a_samp>
#define FILTERSCRIPT

new KSMensajes[][] =
{
{"_~n~_~n~_~n~_~n~_~n~_~n~_~n~~g~~>~~r~ Aniquilado ~g~~<~"},
{"_~n~_~n~_~n~_~n~_~n~_~n~_~n~~g~~>~~g~ Maldito ~g~~<~"},
{"_~n~_~n~_~n~_~n~_~n~_~n~_~n~~b~~>~~w~ Tu mandas ~b~~<~"},
{"_~n~_~n~_~n~_~n~_~n~_~n~_~n~~b~~>~~b~ Wow! ~b~~<~"},
{"_~n~_~n~_~n~_~n~_~n~_~n~_~n~~g~~>~~w~ Lo Pillaste ~g~~<~"},
{"_~n~_~n~_~n~_~n~_~n~_~n~_~n~~b~~>~~p~ re pro ~b~~<~"},
{"_~n~_~n~_~n~_~n~_~n~_~n~_~n~~g~~>~~w~ El Puto Amo ~g~~<~"},
{"_~n~_~n~_~n~_~n~_~n~_~n~_~n~~b~~>~~y~ Cabron! ~b~~<~"},
{"_~n~_~n~_~n~_~n~_~n~_~n~_~n~~b~~>~~p~ perfecto ~b~~<~"},
{"_~n~_~n~_~n~_~n~_~n~_~n~_~n~~g~~>~~w~ Master ~g~~<~"},
{"_~n~_~n~_~n~_~n~_~n~_~n~_~n~~b~~>~~p~ Muy Pro ~b~~<~"},
{"_~n~_~n~_~n~_~n~_~n~_~n~_~n~~g~~>~~w~ Killer! ~g~~<~"},
{"_~n~_~n~_~n~_~n~_~n~_~n~_~n~~b~~>~~p~ Re Profecional! ~b~~<~"},
{"_~n~_~n~_~n~_~n~_~n~_~n~_~n~~b~~>~~y~ El Maximo ~b~~<~"},
{"_~n~_~n~_~n~_~n~_~n~_~n~_~n~~b~~>~~b~ Genial ~b~~<~"},
{"_~n~_~n~_~n~_~n~_~n~_~n~_~n~~b~~>~~p~ super pro ~b~~<~"},
{"_~n~_~n~_~n~_~n~_~n~_~n~_~n~~b~~>~~y~ facil ~b~~<~"},
{"_~n~_~n~_~n~_~n~_~n~_~n~_~n~~b~~>~~b~ el amo ~b~~<~"},
{"_~n~_~n~_~n~_~n~_~n~_~n~_~n~~g~~>~~g~ Owned ~g~~<~"}
};

public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid,playerid,reason);
//Random TextDraw

GivePlayerMoney(killerid,1000);
GivePlayerMoney(playerid,-500);
GameTextForPlayer(killerid,KSMensajes[random(sizeof(KSMensajes))], 3000, 6);
return 1;
}

By CARLOSEDUARDOP