boolean IPS_SetEventLimit (int $EventID, int $Number)
ID of the event to be changed
The number of executions before the event is deactivated. 0 = No Limit
If the command succeeds, it returns TRUE, otherwise FALSE.
The limitation on Number causes that the event will only run as often as specified in the limitation. After running Number times, the event is deactivated. Setting Number = 0 removes the limitation.
IPS_SetEventLimit($EventID, 0); //No limitation