Raised This Month: $ Target: $400
 0% 

[HELP] Repeating a function


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Starman
Junior Member
Join Date: Dec 2013
Old 01-08-2014 , 19:07   [HELP] Repeating a function
Reply With Quote #1

Hi all, I need help because I'm trying to do something "I" complicated this problem and I've tried before, but with no solution, I'll post an example:

Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fakemeta>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    register_forward(FM_CmdStart, "CmdStart")
}

public CmdStart(Client)
{
    if(is_user_connected(Client))
    {
        client_print(Client, print_chat, "Example...")
    }
}
(Is an example), but when test it so to speak, has created many, many client_prints for every 0.1 seconds or so I think, and this happens to me with almost everything I do in this type of forwards, as PlayerPreThink, PlayerPostThink , FM_CmdStart and FM_Spawn. Tell me if there is a healthier way to do it because I like to create plugins that take these or other types of data without creating many client_prints or temporal entities.
Starman is offline
 



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


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