NPC Spawner 0.3z-R2 ??
#1

I'm making a lot of tests on my server and it's very annoying to join and exit the game all the time, I remembre i had an NPC Spawner for 0.3z-r2, it's a console to control the commands and chats for an npc. Is anything similar released for 0.3z-R2 ? If not how to script somethig like that? Maybe I can controll the commands of an npc via the server console and send his output to the console, something like
Код:
public OnClientMessage(color,text[]) printf("Bot received a message: %s",text);//in npcmodes folder
public OnRconCommand(cmd[]) if(!strcmp(cmd,"npc ",true,4)) for(new i=0;i<GetMaxPlayers();i++) if(IsPlayerNPC(i)) OnPlayerCommandText(i,cmd[4]);//on my gamemode so i can controll the npc via console
OnGameModeInit() ConnectNPC(/*whatever*/);
but i prefer when it's an external console because it catches dialogs and others so where can i find this and how to script an external console?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)