Osea, esto iria?:
pawn Код:
new string[256];
format(string,sizeof(string),"** %s ha matado a %s con %s.",NombreEx(killerid), NombreEx(playerid), reason);
SendClientMessageToAll(COLOR_ROJO, string);
Espero tu respuesta
EDITO: Miren, lo he puesto asi junto con lo del IRC:
pawn Код:
new
msg[128],
killerName[MAX_PLAYER_NAME],
reasonMsg[32],
playerName[MAX_PLAYER_NAME],
string[256];
GetPlayerName(killerid, killerName, sizeof(killerName));
GetPlayerName(playerid, playerName, sizeof(playerName));
if (killerid != INVALID_PLAYER_ID)
{
switch (reason)
{
case 0:
{
reasonMsg = "Unarmed";
}
case 1:
{
reasonMsg = "Brass Knuckles";
}
case 2:
{
reasonMsg = "Golf Club";
}
case 3:
{
reasonMsg = "Night Stick";
}
case 4:
{
reasonMsg = "Knife";
}
case 5:
{
reasonMsg = "Baseball Bat";
}
case 6:
{
reasonMsg = "Shovel";
}
case 7:
{
reasonMsg = "Pool Cue";
}
case 8:
{
reasonMsg = "Katana";
}
case 9:
{
reasonMsg = "Chainsaw";
}
case 10:
{
reasonMsg = "Dildo";
}
case 11:
{
reasonMsg = "Dildo";
}
case 12:
{
reasonMsg = "Vibrator";
}
case 13:
{
reasonMsg = "Vibrator";
}
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 = "Sawn-off Shotgun";
}
case 27:
{
reasonMsg = "Combat Shotgun";
}
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 69:
{
reasonMsg = "Mordida";
}
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 Aviуn";
}
default:
{
reasonMsg = "Explosiуn";
}
}
}
else
{
reasonMsg = "Explosiуn";
}
}
default:
{
reasonMsg = "Arma Desconocida";
}
}
format(msg, sizeof(msg), "04*** %s ha matado ha %s. (%s)", killerName, playerName, reasonMsg);
//format(string,sizeof(string),"%s ha matado a %s con %s", NombreEx(killerid), NombreEx(playerid), reasonMsg);
}
else
{
switch (reason)
{
case 53:
{
format(msg, sizeof(msg), "04*** %s muerto. (Ahogado)", playerName);
//format(string,sizeof(string),"%s ha muerto ahogado", NombreEx(playerid));
}
case 54:
{
format(msg, sizeof(msg), "04*** %s muerto. (Choque)", playerName);
//format(string,sizeof(string),"%s ha muerto de un choque", NombreEx(playerid));
}
default:
{
format(msg, sizeof(msg), "04*** %s muerto.", playerName);
//format(string,sizeof(string),"%s ha muerto solo", NombreEx(playerid));
}
}
}
IRC_GroupSay(gGroupID, IRC_CHANNEL, msg);
TextDrawSetString(MTS,string);
TextDrawShowForAll(MTS);
Y al suicidarme no sale el textdraw :S