[FilterScript] [FS]Real ChatBot(Messages with 2 Colors)
#1

<<<<<<<<<<<<<<< Real ChatBot with two Colors >>>>>>>>>>>>>>>
Example


> Using:

Open bot.pwn and change the BotName and the other config stuff on the top of the script

Copy the bot.amx into your filterscripts folder and add bot to the end of your filterscripts line in your server.cfg



> Functions:

*SendBotMessage(message); -> The bot will send a message to all players

*AddRandomMessage(message); -> This will add a message to the random message system



> Bugs:

* No known bugs



> Download:

+v0.1 http://files.nsg-page.de/samp/ChatBot.rar (AMX+PWN)
+v0.1 http://pastebin.com/f6cd4135f (Pastebin)
Reply
#2

simple but nice^^
Reply
#3

get new link
Reply
#4

Pastebin
Reply
#5

Can the screenshot be re-uploaded and please arrange a pastebin.
Reply
#6

Quote:
Originally Posted by Rk_
Can the screenshot be re-uploaded and please arrange a pastebin.
all is working fine again

(changed my os from debian 4.0 to 5.0)
Reply
#7

Quote:
Originally Posted by [NSG
Doerfler ]
Quote:
Originally Posted by Rk_
Can the screenshot be re-uploaded and please arrange a pastebin.
all is working fine again

(changed my os from debian 4.0 to 5.0)
Your sites kinda messed up by the way, i get mysql errors when i try to browse it.
Reply
#8

Quote:
Originally Posted by Norn
Quote:
Originally Posted by [NSG
Doerfler ]
Quote:
Originally Posted by Rk_
Can the screenshot be re-uploaded and please arrange a pastebin.
all is working fine again

(changed my os from debian 4.0 to 5.0)
Your sites kinda messed up by the way, i get mysql errors when i try to browse it.
yeah its my forum without mysql i am still working on it to get it backup
Reply
#9

Pastebin link please...
Reply
#10

Quote:
Originally Posted by Rk_
Pastebin link please...
http://pastebin.com/f6cd4135f
Reply
#11

does this send that message every couple min or what?
Reply
#12

Quote:
Originally Posted by Qeux
does this send that message every couple min or what?
you can use
SendBotMessage(msg); to send a mesaage
or
AddRandomMessage(msg); to add the message to the random message system wich is called every 2 minutes (you can change it to more minutes) or set "new RandomMessages = 1;" to 0 for no randommessages)
Reply
#13

ty
Reply
#14

Super, just downloaded.
Reply
#15

nice script
Reply
#16

This:

pawn Код:
format(name,sizeof(name),"%s",PlayerName(playerid));
---
stock PlayerName(playerid)
{
new name2[MAX_PLAYER_NAME];
GetPlayerName(playerid, name2, MAX_PLAYER_NAME);
return name2;
}
Could be replaced by:
pawn Код:
GetPlayerName(playerid, name, sizeof(name);
Alot simpler..

I'm not 100% sure how SendPlayerMessageToAll works, but it looks like you're getting every player on the server to send a message? I'd have thought that the message would appear as many times in the chatbox as you have players.. Could be wrong..
Reply
#17

Doesn't loschung mean solution??
Reply
#18

"Lцschung" mean to delete sth.
Reply
#19

Quote:
Originally Posted by Weirdosport
This:

pawn Код:
format(name,sizeof(name),"%s",PlayerName(playerid));
---
stock PlayerName(playerid)
{
new name2[MAX_PLAYER_NAME];
GetPlayerName(playerid, name2, MAX_PLAYER_NAME);
return name2;
}
Could be replaced by:
pawn Код:
GetPlayerName(playerid, name, sizeof(name);
Alot simpler..

I'm not 100% sure how SendPlayerMessageToAll works, but it looks like you're getting every player on the server to send a message? I'd have thought that the message would appear as many times in the chatbox as you have players.. Could be wrong..
the script gets the first id in the server, change the name and the color then SendPlayerMessageToAll is called then the script sets the name+color back
so it looks like this:
Reply
#20

My bad, didn't see the return...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)