29.08.2013, 10:21
You have to write textdraw code yourself (and if your next post/thread will be "pls give me textdraw code", I'll find you, and I'll kill you. Search for editor, or for tutorial using this forums search function/******).
First of all, create an array containing your messages (outside callbacks/functions, best if somewhere near top of your script)
The "const" means you won't change those messages programmatically later, 3 is the number of your messages, 32 is max length of your single message. You could use packed strings to make stuff take less memory, but I don't think I'm able to explain it to you.
Now, you just have to use random(number of messages), and you are set.
Change SendClientMessage code to your textdraw code, and done!
@up: ಠ_ಠ
First of all, create an array containing your messages (outside callbacks/functions, best if somewhere near top of your script)
pawn Код:
new const DeathMessages[3][32] = {
"Damn man, you suck!",
"Get the hell up",
"HA-HA, HA-HA"
};
Now, you just have to use random(number of messages), and you are set.
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) {
SendClientMessage(playerid, -1, DeathMessages[random(3)]);
return 1;
}
@up: ಠ_ಠ

