Variable deth message PLS HELP!
#1

i want to when i die to see some messages with GameTextForPlayer every time an other

you died
wasted
dick! -,-

and more

pls help
Reply
#2

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    switch(random(5))
    {
        case 0: GameTextForPlayer(playerid, "Wasted!", 3000, 2);
        case 1: GameTextForPlayer(playerid, "You was killed!", 3000, 2);
        case 2: GameTextForPlayer(playerid, "Nab!", 3000, 2);
        case 3: GameTextForPlayer(playerid, "OWNED!", 3000, 2);
        case 4: GameTextForPlayer(playerid, "Dead!", 3000, 2);
    }
    return 1;
}
If you want to add more just change the "random(5)" to a higher number, and add more cases.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)