Variable deth message PLS HELP! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Variable deth message PLS HELP! (
/showthread.php?tid=162403)
Variable deth message PLS HELP! -
LZLo - 23.07.2010
i want to when i die to see some messages with GameTextForPlayer every time an other
you died
wasted
dick! -,-
and more
pls help
Re: Variable deth message PLS HELP! -
Jeffry - 23.07.2010
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.