Here's the deal, I have a jailbreak daysmenu plugin that uses
PHP Code:
register_forward(FM_PlayerPreThink, "fwd_playerprethink")
, but only for two days. At the moment I am using if(checks day) inside it and that's horrible, so I'm asking if I can unregister the forward and only register it while the day starts?
How would that work? Could anyone give an example?
Fill this in for me please
Code:
public plugin_init()
{
register_forward(FM_PlayerPreThink, "fwd_playerprethink")
}
public days_start()
{
switch(day)
{
case 1: //need it here
case 2: //don't need it here
}
}
public days_end()
{
//???
}