AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [help] Bot Question And save data (https://forums.alliedmods.net/showthread.php?t=171114)

keyblade 11-01-2011 20:31

[help] Bot Question And save data
 
1.Does the code on bot take the CPU? like client_print , show hud... 2.What is the best way to save data ? nvault?fvault?nfvault?sqlx? Thank you for your help

Dark Style 11-02-2011 10:15

Re: [help] Bot Question And save data
 
If you put client_print in a bot, Nothing will happen.
Anyway of this is good to save data.

keyblade 11-02-2011 20:58

Re: [help] Bot Question And save data
 
Quote:

Originally Posted by Dark Style (Post 1588389)
If you put client_print in a bot, Nothing will happen.
Anyway of this is good to save data.

Will the client_print or hud take the cpu?

Erox902 11-03-2011 09:35

Re: [help] Bot Question And save data
 
Quote:

Originally Posted by keyblade (Post 1588793)
Will the client_print or hud take the cpu?

I believe it will. However you have a great solution to this so you don't have to call is_user_bot() like a million times:

PHP Code:

new bool:is_bot[33]
--------------
public 
client_connect(id)
       if ( 
is_user_bot(id) )
            
is_bot[id] = true

Now check if is_bot[id] instead of is_user_bot(id).

keyblade 11-03-2011 10:22

Re: [help] Bot Question And save data
 
Quote:

Originally Posted by Erox902 (Post 1589101)
I believe it will. However you have a great solution to this so you don't have to call is_user_bot() like a million times:

PHP Code:

new bool:is_bot[33]
--------------
public 
client_connect(id)
       if ( 
is_user_bot(id) )
            
is_bot[id] = true

Now check if is_bot[id] instead of is_user_bot(id).


thank you.i got it

KillLikoe 11-03-2011 12:50

Re: [help] Bot Question And save data
 
Quote:

Originally Posted by Dark Style (Post 1588389)
Anyway of this is good to save data.

and which is the best for you?

Erox902 11-04-2011 08:03

Re: [help] Bot Question And save data
 
Quote:

Originally Posted by KillLikoe (Post 1589210)
and which is the best for you?

They're all good ways you'll just have to read up on how they work diferently and which one you think will be best suitable for the plugin you're making.


All times are GMT -4. The time now is 14:25.

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