Quote: |
After the objset command (either public or private), you will need a space. Then you will place a + or - symbol. Next comes the object's id number. At last, a comma at the end. You repeat this step for every object set you are toggling from the +/- to the end comma.
Example to turn on 5, off 80 and 90: *objset +5,-80,-90, |
Code: Show/Hide case EVENT_ToggleObjects:
{ objectInfo *objects = (objectInfo *)event.p[0]; int num_objects = *(int*)&event.p[1]; int player_id = *(int*)&event.p[2]; if (num_objects < 0) break; if (h->hasSysOp) { h->postRR(generateObjectToggle(player_id, objects, num_objects)); } else { String s; s += "*objset "; |