Thanks for the reply. I’m aware 1.6 is not a Source game, I thought people in here would have experience writing plugins with both SDKs (original and Source). I myself only have experience with Metamod:Source. As such I was looking for the sample plugin I’ve become familiar with in the MM:S SDKs (I apologize, seems like a lot of questions about the sample plugins lately). I found what I was looking for, kind of, in the original Metamod SDK with the metamod solution (thanks for the tip). I want to write a Metamod plugin not AMX. What is not obvious to me is how to hook events and add listeners. I want to action thinks like server_spawn, player_death, bomb_exploded, and player_disconnect but I’m lost. Where do I put my code for
Code:
SH_ADD_HOOK_STATICFUNC(IServerGameDLL, GameFrame, server, Hook_GameFrame, true);
SH_ADD_HOOK_STATICFUNC(IServerGameClients, ClientPutInServer, gameclients, Hook_ClientPutInServer, true);
SH_ADD_HOOK_STATICFUNC(IServerGameClients, ClientDisconnect, gameclients, Hook_ClientDisconnect, true);
and
Code:
gameevents->AddListener(this, "player_death", true);
gameevents->AddListener(this, "round_start", true);
gameevents->AddListener(this, "server_spawn", true);
gameevents->AddListener(this, "player_say", true);
gameevents->AddListener(this, "bomb_planted", true);
gameevents->AddListener(this, "bomb_defused", true);
gameevents->AddListener(this, "bomb_exploded", true);
?