I would do like this...
PHP Code:
new const CLASSES[][] = {
"CLASS#1",
"CLASS#2",
"CLASS#3"
}
new const FORWARD_NAME[] = "fwd_Touch"
new const PLAYER[] = "player"
public plugin_init()
{
for (new i = 0; i < sizeof CLASSES; i++)
register_touch(CLASSES[i], PLAYER , FORWARD_NAME)
}
public fwd_Touch( iEnt, id)
{
// ....
}
__________________