Random Death Text?
#1

How can I make it so that I can have something like this...
Код:
new RandomDeath[][] =
{
    " was killed.",
    " ate the dirt.",
    " is in a better place.",
    " went to hell."
};
and on player death have it show the username of the player, then a random line from above?
Ex: "Nathan_Taylor was killed." OR "Nathan_Taylor went to hell."
Reply
#2

pawn Код:
public OnPlayerDeath(playerid,killerid,reason)
{
    new string[128], pname[24];
    GetPlayerName(playerid,pname,sizeof(pname));
    format(string,sizeof(string),"%s %s",pname,RandomDeath[random(sizeof(RandomDeath))]);
    SendClientMessageToAll(COLOR_GREEN,string);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)