- #define CALL_PLUGINS(name,params)
- for(unsigned int i = 0;i<Plugins.Plugins.size();i++)
- if(Plugins.Plugins[i].gFunctionTable.##name)
- Plugins.Plugins[i].gFunctionTable.##name(##params)
- //Hooked pfnClientConnect() (handle player adds)
- qboolean ta_pfnClientConnect( edict_t *pEntity, const char *pszName, const char *pszAddress, char szRejectReason[ 128 ] )
- {
- for(unsigned int i = 0;i<Plugins.Plugins.size();i++)
- if(Plugins.Plugins[i].gFunctionTable.pfnClientConnect)
- Plugins.Plugins[i].gFunctionTable.pfnClientConnect(pEntity,pszName,pszAddress,szRejectReason);
- CALL_PLUGINS(pfnClientConnect,pEntity,pszName,pszAddress,szRejectReason);
- return gFunctionTable.pfnClientConnect(pEntity,pszName,pszAddress,szRejectReason);
- }
Undefined
By: Guest | Date: Nov 2 2009 14:48 | Format: None | Expires: never | Size: 752 B | Hits: 1087
Latest pastes
1 hours ago
11 hours ago
1 days ago
2 days ago
2 days ago