View Single Post
Sam839
Zero Posts
Join Date: Apr 2019
Old 09-22-2020 , 12:32   Re: [Q] How about a new platform?
Reply With Quote #7

Just little simple example:

PHP Code:
#include "tf2.h"

#define _MSG Msg

class WoW
{
    
void printf(string txt)
    {
        
#ifdef _MSG
        
_MSG(txt "\n");
        
#endif
    
}
}

void OnClientFullyConnect(int index) {
    
#ifdef CLIENT
    
BasePlayerpl cast<BasePlayer@>(CTFPlayer(index));
    
#endif        // I am working on #else...
    #ifdef SERVER //
    
BasePlayerpl cast<BasePlayer@>(TFPlayer(index));
    
#endif
    
pl->Kick("Im sorry...");
}

bool PluginLoad() {
    
WoW().printf("Oof!");
    return 
true;
}

bool PluginUnload() {
    
WoW().printf("Oof?");
    return 
true;

Sam839 is offline