20.02.2010, 21:13
pawn Код:
public OnPlayerText(playerid, text[])
{
if (strfind(text, "stupid bot") != -1)
{
new string[80], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Hey %s! Don't say those things! We, bots, are cool!", name);
SendChat(string);
}
return 1;
}