| 193 |
|
} |
| 194 |
|
return 0; |
| 195 |
|
} |
| 196 |
+ |
uint16_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 |
< |
|
| 202 |
> |
|
| 203 |
|
void SLrFlatline_Initialize() { |
| 204 |
|
|
| 205 |
|
DDrPatch_MakeCall(0x004FA88B, FLrInput_Update_Keys); |
| 213 |
|
SLrGlobalVariable_Register_String("country", "Your Multiplayer country", player_name); |
| 214 |
|
SLrScript_Command_Register_ReturnType("addbot","adds a fake client", "", sl_void, addfake); |
| 215 |
|
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); |
| 217 |
|
//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); |
| 218 |
|
} |