28.02.2018, 13:54
PHP код:
new text[128];
format(text, sizeof (text), "%s ( %d ) %s", PlayerName[playerid], playerid, text);
SendPlayerMessageToAll(playerid, text);
new text[128];
format(text, sizeof (text), "%s ( %d ) %s", PlayerName[playerid], playerid, text);
SendPlayerMessageToAll(playerid, text);
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;
}
PHP код:
|
new text[128];
format(text, sizeof (text), "(%d) %s", playerid, text);
SendPlayerMessageToAll(playerid, text);