(lamppost) switchLight (mode)
Operand types:
lamppost: Object
mode: String
Type of returned value:
None
Description:
Controls lamppost mode. Mode may be "ON", "OFF", "AUTO". "AUTO" is default, lampost is on only during nighttime.
Example:
nearestObject [player, "StreetLamp"] switchLight "Off"
Or if you turn on the object id button in your editr you can find the number that corresponds to the particular lamp and put (where XXXX is the number):
(object XXXX) switchlight "OFF"
There you go