Check a function every 2 seconds
#1

So I made a function to check ammo, but I don't know where to put it. I tried under OnPlayerUpdate but it doesn't work. What shall I do? Shall I make a timer? If yes, how?

Thanks.
Reply
#2

pawn Код:
public OnGameModeInIt()
{
    SetTimer("funcname", 2000, 1);
    return 1;
}

forward funcname();
public funcname()
{
    // stuff here
    return 1;
}
Reply
#3

Nvm solved alraedy thanks anyways.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)