| AdminMod.de https://www.adminmod.de/ |
|
| plugin_sdal_autoassign https://www.adminmod.de/viewtopic.php?t=9091 |
Seite 1 von 1 |
| Autor: | Sir Drink a lot [ 01.01.2005, 18:01 ] |
| Betreff des Beitrags: | plugin_sdal_autoassign |
This plugin autoassigns people to a team. |
|
| Autor: | [-=THH=-]Stillsetzhut [ 02.01.2005, 16:51 ] |
| Betreff des Beitrags: | |
Frohes Neues zunaechst. Liegt es an meinem Webbrowser? Bei mir wird kein Attachment angezeigt. |
|
| Autor: | [WING] Black Knight [ 02.01.2005, 17:45 ] |
| Betreff des Beitrags: | |
Wir hatten da ein Problem mit dem Server. Teufel auch, wer den Rechner rebootet, sollte auch überprüfen, ob alles wieder läuft. Egal... *attachment gelöscht, da neuere Version available...* |
|
| Autor: | Sir Drink a lot [ 02.01.2005, 23:06 ] | ||
| Betreff des Beitrags: | |||
oha..fein, dass es wieder geht... Es gibt eine korrekte Version nun Ich finde es aber wiederum faszinierend, dass bisher noch keiner den HL-Client-Command "jointeam" in einem AdminMod Plugin verbraten hat... Der ist nämlich auch vgui_menu tauglich...anstatt nur chooseteam;menuselect 5. (für Auto Assign) Ich muss zugeben, dass ich den HL-Client Befehl noch nicht kannte...Gut, dass plugin_command soviele Infos liefert, sonst hätte ich es jetzt noch nicht gewusst... Das Skinmenu (als Client Command) heisst übrigens: joinskin
|
|||
| Autor: | Einstein87 [ 21.02.2005, 20:59 ] |
| Betreff des Beitrags: | |
Was macht denn plugin_command bzw. wie wendet man es an? |
|
| Autor: | Sir Drink a lot [ 21.02.2005, 21:28 ] |
| Betreff des Beitrags: | |
gibt eben alle commands mit eventueller Data zurück, was die "engine" so liefert. Besonders geeignet zum Testen. Code: #include <core>
#include <console>
#include <string>
#include <admin>
#include <adminlib>
public plugin_init() {
plugin_registerinfo("Command Check","What does plugin_command do?.","1.0");
return PLUGIN_CONTINUE;
}
public plugin_command(HLCommand, HLData, HLUserName, UserIndex){
new Command[MAX_COMMAND_LENGTH];
new Data[MAX_DATA_LENGTH];
new User[MAX_NAME_LENGTH];
new Text[MAX_TEXT_LENGTH];
convert_string(HLCommand,Command,MAX_COMMAND_LENGTH);
convert_string(HLData,Data,MAX_DATA_LENGTH);
convert_string(HLUserName,User,MAX_NAME_LENGTH);
snprintf(Text,MAX_TEXT_LENGTH,"Command:%s Data:%s User:%s",Command,Data,User);
say(Text);
return PLUGIN_CONTINUE;
}
|
|
| Seite 1 von 1 | Alle Zeiten sind UTC+01:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|