Figyelem a script nem lett tesztelve!!
#include <a_samp>
public OnPlayerText(playerid, text[])
{
if (strfind(text, \"szurke\") != -1)
{
new pname[MAX_PLAYER_NAME], strings[128];
GetPlayerName(playerid, pname, sizeof(pname));
format(strings, sizeof(strings), \"%s: {3d3d3d}%s\", pname, text);
SendClientMessageToAll(-1, strings);
}
if (strfind(text, \"\") != -1)
{
new pname[MAX_PLAYER_NAME], strings[128];
GetPlayerName(playerid, pname, sizeof(pname));
format(strings, sizeof(strings), \"%s: {ffffff}%s\", pname, text);
SendClientMessageToAll(-1, strings);
}
return 0;
}
[mod]Máskor használj pawn code tageket. Köszi!
[/mod]