AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   BOT client_cmd every 4 second (fix) (https://forums.alliedmods.net/showthread.php?t=203952)

Saryyy 12-25-2012 10:14

BOT client_cmd every 4 second (fix)
 
Hi ,can someone help me fix this plugin ? I want from this plugin to use in every 4 seconds command to press 1 (like in votemod)

sorry for bad english

Code:

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "wymuszanie"
#define VERSION "1.0"
#define AUTHOR "aasdasd"


public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
}
public bot(id)
{
        if(is_user_bot(id))
        get_user_name(id, "BOT", 31)
        set_task(4.0, "wciskaj", id)
}
public wciskaj(id)
{
        client_cmd(id, "slot1")
}


ConnorMcLeod 12-25-2012 12:18

Re: BOT client_cmd every 4 second (fix)
 
Explain what you want to do exactly, seems that you want to fix something.

Saryyy 12-25-2012 12:32

Re: BOT client_cmd every 4 second (fix)
 
yes :)
i want to from bot (fake team bot) to use command "slot1" in every 4 seconds (for votemap)
because i have a problem with multimod : http://forums.alliedmods.net/showthread.php?p=856405
i mean ,when someone will choose mod and dont choose map serwer will bug and map will be loaded with wrong mod
like soccerjam on map de_dust2
and i want to add fake team bot to choose first map on every vote :)

fysiks 12-26-2012 21:03

Re: BOT client_cmd every 4 second (fix)
 
It would be better to fix the source. Ask the plugin's thread. Unfortunately, I've not seen the author post in that thread for a while so you might consider an alternative. See my signature.

DSASDFGH 12-27-2012 11:34

Re: BOT client_cmd every 4 second (fix)
 
bot(id) is never called.


All times are GMT -4. The time now is 13:36.

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