Raised This Month: $ Target: $400
 0% 

BOT client_cmd every 4 second (fix)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Saryyy
Junior Member
Join Date: Jun 2007
Location: PolanD
Old 12-25-2012 , 10:14   BOT client_cmd every 4 second (fix)
Reply With Quote #1

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")
}

Last edited by Saryyy; 12-25-2012 at 12:33.
Saryyy is offline
Send a message via ICQ to Saryyy Send a message via Skype™ to Saryyy
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-25-2012 , 12:18   Re: BOT client_cmd every 4 second (fix)
Reply With Quote #2

Explain what you want to do exactly, seems that you want to fix something.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Saryyy
Junior Member
Join Date: Jun 2007
Location: PolanD
Old 12-25-2012 , 12:32   Re: BOT client_cmd every 4 second (fix)
Reply With Quote #3

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
Saryyy is offline
Send a message via ICQ to Saryyy Send a message via Skype™ to Saryyy
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-26-2012 , 21:03   Re: BOT client_cmd every 4 second (fix)
Reply With Quote #4

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.
__________________
fysiks is offline
DSASDFGH
Senior Member
Join Date: Jul 2011
Location: Facebook
Old 12-27-2012 , 11:34   Re: BOT client_cmd every 4 second (fix)
Reply With Quote #5

bot(id) is never called.
__________________
Learning SourceMod is happy

Last edited by DSASDFGH; 12-27-2012 at 11:34. Reason: oops
DSASDFGH is offline
Reply



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 13:36.


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