Documentation
IPS_SetEventLimit
bool IPS_SetEventLimit (int $EventID, int $Number)
Parameters
| EventID | ID of the event to be changed |
| Number | The number of executions before the event is deactivated. 0 = No Limit |
Returns
If the function succeeds, it returns TRUE, otherwise FALSE.
Description
The function limits the number of executions of the event with the ID EventID. The limitation to Number causes the event to run only Number times. After running Number times, the event is deactivated. Setting Number = 0 removes the limitation.
Example
IPS_SetEventLimit($EventID, 0); //No limitation