Raised This Month: $12 Target: $400
 3% 

FFAC/Tool : how to use : msn/aim/icq bot | skill


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hackziner
Senior Member
Join Date: Sep 2006
Location: France
Old 07-15-2007 , 13:07   FFAC/Tool : how to use : msn/aim/icq bot | skill
Reply With Quote #1

Require:

Lastest version of FFAC/Tool installed and ffac_sys.inc to compile
http://forums.alliedmods.net/showthread.php?t=55731

IM BOT


How to use im bot function of FFAC/Tool ?

FFAC/Tool support 3 im service : msn, aim and icq.
FFAC/Tool isn't an im client, it just sends message to python & php bot on the ffac server.

Bots capacities :

MSN : 10 msg by min. max
AIM : 100 msg by min. max
ICQ : 100 msg by min. max
MSN : about 500 contact
AIM : more than 200
ICQ : more than 200
MSN : 30 sec delay
AIM : 5 sec delay
ICQ : 5 sec delay

FFAC/Tool functions


ffac_msn_message2admin(msg[128])
ffac_msn_message2admin2(msg[128],ident[32],nickname[32])
ffac_msn_message(msg[128],msncontact[128])

Here are the 3 differents way to send a message. Functions are the same for aim & icq : ffac_aim_message2admin(msg[128]), ...


PHP Code:
ffac_msn_message2admin(msg[128])
ffac_msn_message2admin2(msg[128],ident[32],nickname[32]) 
Both function are used to send message to adress defined with the FFAC cvar ffac_msn_contact, ffac_aim_contact, ffac_aim_contact.

The first allow allow to send a message without reporting the sender identity. The second allow to report the sender identity.
ffac_msn_contact, ... are supposed to contain admin contact adress.

PHP Code:
ffac_msn_message(msg[128],msncontact[128]) 
The last one is done to send message to other people than admins.

faq

How to add a contact ?

-Send a message, the bot will drop the message and add the contact in the contact list


How ti remove a contact ?

-You can't

How to get the contact list ?

-You can't

How to send a message to several contact ?

-"[email protected];[email protected];[email protected] "

Please use icq adress without "-"

Sample

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <ffac_sys>

#define PLUGIN "FFAC ICQ bot sample"
#define VERSION "0.1"
#define AUTHOR "hackziner"

#define PUB_TASK 22215


public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)    
    
ffac_register_plugin(PLUGINVERSIONAUTHOR)    
    
register_cvar("ffac_icq_bot_version",VERSION,FCVAR_SERVER)
    
register_clcmd("say""handle_say")
}


public 
handle_say(id
{
new 
said[128]

read_args(said,128)

if(  
containi(said"admin") != -)
    {
        new 
szName[32]
        new 
szAuthID[32]
        
get_user_name(id,szName,32)
        
get_user_authid(id,szAuthID,32)
        
ffac_icq_message2admin2(said,szAuthID,szName)
    }



Skill

What's ffac skill ?

FFAC skill is a score based on your victim or killer skill.
Imagine you've 50 000 of skill and you kill someone with 70 000, you'll get something like 100 points. The next round this person kill you, he'll get something like 60 points.

You can spend 30 hours by week, if you're bad your skill'll low It depends on who you kill.

how to:

You can't get the skill of a player before his auth on ffac.

when a player is auth on ffac the function

ffac_client_auth(id) is called

ffac_get_skill(id) return the skill as int


Sample:

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <ffac_sys>

#define PLUGIN "FFAC skill sample"
#define VERSION "0.1"
#define AUTHOR "hackziner"

#define PUB_TASK 22215


public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)    
    
ffac_register_plugin(PLUGINVERSIONAUTHOR)    
    
register_cvar("ffac_skill_sample",VERSION,FCVAR_SERVER)
}


public 
ffac_client_auth(id)
{
new 
skill ffac_get_skill(id)
if (
skill<40000client_print id"You're weak !")

__________________
hackziner is offline
Send a message via ICQ to hackziner Send a message via AIM to hackziner Send a message via MSN to hackziner Send a message via Yahoo to hackziner Send a message via Skype™ to hackziner
Old 09-06-2007, 08:13
X-Script
This message has been deleted by Hawk552. Reason: irrelevant
Old 09-06-2007, 12:03
toazron1
This message has been deleted by Hawk552. Reason: irrelevant
Old 09-06-2007, 16:04
X-Script
This message has been deleted by Hawk552. Reason: irrelevant
Old 09-06-2007, 18:08
YamiKaitou
This message has been deleted by Hawk552. Reason: irrelevant
Vanquishe[rR]
BANNED
Join Date: Feb 2010
Location: Australia, Victoria, Mel
Old 02-26-2010 , 01:47   Re: FFAC/Tool : how to use : msn/aim/icq bot | skill
Reply With Quote #2

how do you complie
Quote:
ffac_sys.inc to compile
Vanquishe[rR] is offline
Send a message via MSN to Vanquishe[rR]
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode