Quote:
Originally Posted by wallen
PHP код:
public OnPlayerText(playerid, text[])
{
if(connected[playerid] == true)
{
SendClientMessage(playerid, -1 , "{c3c3c3}(INFO) You can't talk, you need to spawn first...");
return 0;
}
if(Mute[playerid] == 1)
{
SendClientMessage(playerid, -1, "{c3c3c3}(INFO) You're muted therefore you can't type anything.");
return 0;
}
new text2[128];
format(text2, sizeof (text), "%s ( %d ) %s", PlayerName[playerid], playerid, text2);
SendPlayerMessageToAll(playerid, text);
return 0;
}
yeah
|
Show the
SendPlayerMessageToAll callback
EDIT: moreover you can just use SendClientMessageToAll :/