09.08.2012, 15:32
if (strfind(text, "sveiki") != -1)
{
new string[80], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Sveikas %s! Jeigu reikia pagalbos kreipkis б adminus arba /help", name);
SendChat(string);
}
This is code. When i go to server and write "sveiki" Bot is spam 4 messages:First him message is With name another without)
{
new string[80], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Sveikas %s! Jeigu reikia pagalbos kreipkis б adminus arba /help", name);
SendChat(string);
}
This is code. When i go to server and write "sveiki" Bot is spam 4 messages:First him message is With name another without)