Randomizing death messages
#6

pawn Код:
new
    deathmsgs[][] = {
    {"%s has fucked up %s with a %s"},
    {"%s has killed %s with a %s"}
};

// OnPlayerDeath
new
    rand = random(sizeof(deathmsgs)),
    msg[128];

format(msg, sizeof(msg), deathmsgs[rand], killerid, playerid, reason);
Something like that.
Reply


Messages In This Thread
Randomizing death messages - by LiamM - 01.04.2011, 15:38
Re: Randomizing death messages - by Type-R - 01.04.2011, 16:27
Re: Randomizing death messages - by legodude - 01.04.2011, 16:57
Re: Randomizing death messages - by LiamM - 04.04.2011, 12:01
Re: Randomizing death messages - by LiamM - 07.04.2011, 18:03
Re: Randomizing death messages - by Vince - 07.04.2011, 19:27
Re: Randomizing death messages - by LiamM - 10.04.2011, 15:25

Forum Jump:


Users browsing this thread: 2 Guest(s)