hmm.. im not sure what u want but i think that will do the job
Code:
public saylol(id)
{
if (get_cvar_num("pa_lol")==1)//to display message
{
set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 12.0)
show_hudmessage(id, "I said lol ")
return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
you need to add {} after if.. to include all the commands after it inside the if... (like in a function)