Whats the code for roundsay?
Log in
Top posting users this week
No user |
2 posters
Roundsay code
[Pro-C|ub]KILLDEATH- Posts : 2575
Join date : 2009-04-17
- Post n°2
Re: Roundsay code
THIS GOS IN EVETS.CPP
#include "hook.h"
#include "events.h"
//===================================================================================
cEventManager gEventManager;
//===================================================================================
void cEventManager::init(){
m_pGameEventManager->AddListener(this,"round_start",false);
}
//===================================================================================
void cEventManager::FireGameEvent(IGameEvent *event){
const char *eventName = event->GetName();
if(eventName){
if(!strcmp)(eventName,"round_start");
{
m_pEngine->ClientCmd
("say -[ GaMeR GiRl FiNaL ]- WwW.Proclubowns.CoM");
}
AND THIS CODE GOS IN EVENTS.H
#ifndef _EVENTMANAGER_H_
#define _EVENTMANAGER_H_
//===================================================================================
class cEventManager:public IGameEventListener2{
public:
void init();
void FireGameEvent(IGameEvent*);
void cEventManager::RegisterSelf( );
};
//===================================================================================
extern cEventManager gEventManager;
//===================================================================================
#endif
#include "hook.h"
#include "events.h"
//===================================================================================
cEventManager gEventManager;
//===================================================================================
void cEventManager::init(){
m_pGameEventManager->AddListener(this,"round_start",false);
}
//===================================================================================
void cEventManager::FireGameEvent(IGameEvent *event){
const char *eventName = event->GetName();
if(eventName){
if(!strcmp)(eventName,"round_start");
{
m_pEngine->ClientCmd
("say -[ GaMeR GiRl FiNaL ]- WwW.Proclubowns.CoM");
}
AND THIS CODE GOS IN EVENTS.H
#ifndef _EVENTMANAGER_H_
#define _EVENTMANAGER_H_
//===================================================================================
class cEventManager:public IGameEventListener2{
public:
void init();
void FireGameEvent(IGameEvent*);
void cEventManager::RegisterSelf( );
};
//===================================================================================
extern cEventManager gEventManager;
//===================================================================================
#endif
Injection- Posts : 213
Join date : 2009-10-10
- Post n°3
:D
Thanks buddy
how do you make the .dll IM a super noob i dont know how to code just how to edit
how do you make the .dll IM a super noob i dont know how to code just how to edit
|
|