15.03.2013, 18:29
pawn Код:
//RANDOM DEATH MESSAGES
new RandomDeath[][] =
{
"was killed by",
"was fragged by",
"was ended by",
"was pulverized by"
};
new RandomSuicide[][] =
{
"committed suicide",
"took thier own life",
"messed up"
};
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
//OTHER CODE......
if(!killerid){
GetPlayerName(playerid, kname, MAX_PLAYER_NAME);
GetPlayerName(killerid, dname, MAX_PLAYER_NAME);
format(allmessage, sizeof(allmessage), "{00FF00}%s{FFFFFF} %s {00FF00}%s.", kname, RandomDeath[random(sizeof(RandomDeath))], dname);
SendClientMessageToAll(-1, allmessage);
} else {
GetPlayerName(playerid, dname, MAX_PLAYER_NAME);
format(allmessage, sizeof(allmessage), "{00FF00}%s{FFFFFF} %s", dname, RandomSuicide[random(sizeof(RandomSuicide))]);
SendClientMessageToAll(-1, allmessage);
}
//OTHER CODE....
}
Anyone see why?