I have this code:
Code:
register_forward(FM_AlertMessage, "eventSuicide")
I do want to block this message for the purpose of saving rank, but I'm having trouble with this:
Code:
public eventSuicide(at_type, message[])
{
if(containi(message, "suicide") != -1 && containi(message, "world") != -1)
{
if(g_switching[id] == true)
{
return FMRES_HANDLED
}
}
return PLUGIN_CONTINUE
}
Basically, I have a global integer array that uses the 32 ids in the server, and I was wondering if there was a way to use at_type to gather that id from the function..?
__________________