Ignore:
Timestamp:
Oct 11, 2010, 10:22:59 AM (11 years ago)
Author:
gumby
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Daodan/MSVC/Flatline_BSL.c

    r573 r574  
    194194return 0;
    195195}
    196 
    197 
     196uint16_t ONICALL con(sl_callinfo* callinfo, uint32_t numargs, sl_arg args[], int* dontuse1, int* dontuse2, sl_arg* ret)
     197{
     198        OBJrConsole_OnActivate( OBJrConsole_GetByID(args[0].value_int32), PlayerList[0]->Chr );
     199        return 0;
     200}
     201
     202               
    198203void SLrFlatline_Initialize() {
    199204       
     
    209214        SLrScript_Command_Register_ReturnType("addbot","adds a fake client", "", sl_void, addfake);
    210215        SLrScript_Command_Register_Void("kick", "Kicks a client from the server", "clientnum:int", kick);
     216        SLrScript_Command_Register_Void("con", "Activates a console", "con:int", con);
    211217        //SLrScript_Command_Register_ReturnType("ai2_spawn","creates and starts an AI from a character object","ai_name:string [force_spawn:string{\"force\"} | ]", sl_void, spawnAI);
    212218}
Note: See TracChangeset for help on using the changeset viewer.