[FilterScript] Chat Bot
#1

Chat Bot v1

Hey Guys I Was Working Late Night On This Project Its Features Are Talk And Respond
And Random Messaging To The Server It Acts Like A Player But Its Not So It Wont Respond Back Always
It Only Responds On "Jack" "Hello" "Hey" And Does Random Messaging On The Rest There Are Minor Bugs
But Its A Good Script If You Want A Preview Come To My Server Here's The Ip : 78.147.136.84:7777


Please Subscribe On My Videos Like This One
[ame]http://www.youtube.com/watch?v=iNPqvYv1iA8&context=C39f85e0ADOEgsToPDskLj JJMME6d6-tiaNrqvTd9M[/ame]

And Here's The Download Link If You Want To Edit Use Pawno:
http://www.mediafire.com/?dnslc32ilmrnl83
Reply
#2

If you have minor bugs with a system that simple, you must be really horrible at coding. By the way, this isn't the server advertisement section so quit trying to advertise your server here!
Reply
#3

Dont Need To Be Rude About It If You Downloaded It And Checked For Your Self You May Be Surprised
Reply
#4

Nice, but prefer CleverBot xd
Reply
#5

Quote:
Originally Posted by [Nikk]
Посмотреть сообщение
Nice, but prefer CleverBot xd
Same or My work! GrannyBot!
pawn Код:
COMMAND:grannybot(playerid, params[])
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] >= 1)
            {
                new result[128],string[128];
                if(sscanf(params, "s[128]",result)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /grannybot(/gb) [Bot Message]");
                format(string, sizeof(string), "* GrannyBot: %s **", result);
                SendClientMessageToAll(0x66a2ff97, string);
            }
        }
        return 1;
    }
Reply
#6

Quote:
Originally Posted by Ballu Miaa
Посмотреть сообщение
Same or My work! GrannyBot!
pawn Код:
COMMAND:grannybot(playerid, params[])
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] >= 1)
            {
                new result[128],string[128];
                if(sscanf(params, "s[128]",result)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /grannybot(/gb) [Bot Message]");
                format(string, sizeof(string), "* GrannyBot: %s **", result);
                SendClientMessageToAll(0x66a2ff97, string);
            }
        }
        return 1;
    }
It doesn't need sscanf for this and check if the playerid is conencted because if player isn't connected of course he/she can't use the comamnd
Much easier:
pawn Код:
CMD:grannybot( playerid, params[ ] )
{
    new string[ 128 ];
    if( PlayerInfo[ playerid ][ pAdmin ] < 1) return SendClientMessage( playerid, -1, "You are not Admin!" );
    if( isnull( params ) ) return SendClientMessage( playerid, COLOR_GRAD2, "USAGE: /grannybot(/gb) [Bot Message]" );
    format( string, sizeof( string ), "* GrannyBot: %s **", params );
    SendClientMessageToAll( 0x66a2ff97, string );
    return 1;
}

CMD:gb( playerid, params[ ] )
{
    return cmd_grannybot( playerid, params );
}
Reply
#7

Quote:
Originally Posted by Dwane
Посмотреть сообщение
It doesn't need sscanf for this and check if the playerid is conencted because if player isn't connected of course he/she can't use the comamnd
Much easier:
pawn Код:
CMD:grannybot( playerid, params[ ] )
{
    new string[ 128 ];
    if( PlayerInfo[ playerid ][ pAdmin ] < 1) return SendClientMessage( playerid, -1, "You are not Admin!" );
    if( isnull( params ) ) return SendClientMessage( playerid, COLOR_GRAD2, "USAGE: /grannybot(/gb) [Bot Message]" );
    format( string, sizeof( string ), "* GrannyBot: %s **", params );
    SendClientMessageToAll( 0x66a2ff97, string );
    return 1;
}

CMD:gb( playerid, params[ ] )
{
    return cmd_grannybot( playerid, params );
}
Yeah not bad thats good. Thanks! But why do we use IsNull param basically? Can you explain bro? Thanks Homeboy
Reply
#8

Thanks for giving me credits.
Reply
#9

He posted his IP here hahahaha
Reply
#10

Thanks For Your Help And View Guys My Ip Is A Fail So Dont Worry About it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)