y_hook question
#1

Is there a way to create a custom function like a timer that allows me to hook from different includes as if I would normally hook let's say.. OnPlayerConnect. And i'm using 4.0 of YSI.
Reply
#2

Quote:
Originally Posted by ******
Посмотреть сообщение
In 4.0, yes.
I haven't really been able to accomplish this goal, any way you could demonstrate something?
Reply
#3

Quote:
Originally Posted by ******
Посмотреть сообщение
OK, I don't know why, but hooked timers don't work. I honestly don't understand why - hooked custom functions called with "CallLocalFunction" work perfectly and I can't see any fundamental difference between the two...
Thank you for clearing this up.
Reply
#4

Quote:
Originally Posted by ******
Посмотреть сообщение
I am trying to figure the problem out, but I'm not at all sure what it could be!
If one day you'll find a solution for this, it'll be the best day of my life.
Reply
#5

Right now, the way I use a single timer is with "CallRemoteFunction" to a function that's in another include for example an include of player's system with consists a login timer.

pawn Код:
public SecondTimer()
{
    // [ Login Timer ]
    CallRemoteFunction("HandleLoginTimer", "");
   
   
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(Player[i][isLogged])
        {
           
        }
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)