13.03.2013, 13:45
Quote:
ok.
for example: I wanted to make a timer include that made one timer work like pawn Код:
pawn Код:
pawn Код:
like this pawn Код:
|
Quote:
I'm still not clear how you want to specify which functions are called by your timer without that parameter...
There are multiple libraries for that - the most famous is probably ZCMD, but I'd say y_commands (and y_timers for timers). |
public DoSomeThingHere2()
{
SendClientMessageToAll(LIGHT_BLUE,"MSG2");
ST(S(5),1); //only starts the timer in this function for the duration the function is called
return 1;
}
so that all it needs to do is count to the set amount of time (in this case S(5)) this function is used for rather than use a public and function name, all it knows is to use this function for the time set
And i didnt really plan it out or anything i was just curious if it was possible.