How to send a message to near players
#1

pawn Код:
new RandomMSG[][] =
{
    "1",
    "2",
    "3",
    "4",
    "5",
    "6"
};
forward SendMSG();
CMD:dice(mycommand, playerid, params[]) // or cmd(mycommand, playerid, params[])
{
new randMSG = random(sizeof(RandomMSG)); //calculates the size of RandomMSG (which is 3)
SendClientMessageToAll(COLOR_PURPLE, RandomMSG[randMSG]); // Replace the "color" with your defined color.
return 1;
}
I want the dice message to show only for near players, and why dont show the name of player who typed it ?
Ex:Bustern:6
Reply


Messages In This Thread
How to send a message to near players - by bustern - 16.11.2013, 15:32
Re: How to send a message to near players - by Voxel - 16.11.2013, 15:36
Re: How to send a message to near players - by bustern - 16.11.2013, 15:43
Re: How to send a message to near players - by Patrick - 16.11.2013, 15:47
Re: How to send a message to near players - by bustern - 16.11.2013, 15:51
Re: How to send a message to near players - by Voxel - 16.11.2013, 15:57
Re: How to send a message to near players - by bustern - 16.11.2013, 16:14
Re: How to send a message to near players - by Voxel - 16.11.2013, 16:19
Re: How to send a message to near players - by Patrick - 16.11.2013, 16:20
Re: How to send a message to near players - by bustern - 16.11.2013, 16:23

Forum Jump:


Users browsing this thread: 2 Guest(s)