On top of the script:
[pawn]
enum Sentences
{
szMsg[65];
}
new RandomTextUsed[ ][ Sentences ] = {
{"%s attemps to shoot the ball, but fails"}
{"%s shooted the ball, but, did not miss by much..."}
{"%s shooted the ball succesfully"}
};
[/pawn]
In your command
[pawn] new rand = random(sizeof(RandomTextUsed));
new add[256];
format(add,256,RandomTextUsed[rand][szMsg],gPlayers[playerid]);
SendClientMessageToAll(WHITE,add);[/pawn]
If you cannot figure it out with gPlayers[playerid]
[pawn]new N[33]; GetPlayerName(playerid,N,sizeof(N));[/pawn]
TIP: Rather than just copying and pasting all the script to your gamemode, You should atleast read it and try to figure out what it means...
Okay bro ?