How about electrifying the floors?
The way you would do it would be to have a plastic grate that people stand on, say 1 inch in width. Then you run 220 volt live wires below the grate. So normal passengers would not run the risk of being shocked; meanwhile, the piss would go through the grate, hit the live wires, and the pisser would be fried like in a bug zapper.