025
27.03.2001, 12:22
Masterstroke
|
@SCSLORD: Das muss aber gehen!
Dann hast du vielleicht etwas falsch gemacht!
Schau nach:
- ob Teamplay bei deinem Mod unter den Advanced Options aktiviert ist
- ob der Code richtig ist, den du eingefügt hast
- ob es die Sounds gibt...
Was kommen denn für Fehlermeldungen in der Konsole, wenn du mal hl mit dem Parameter -dev console (nicht -console !!) startest?? Kommt da vielleicht irgendwann irgendwo ein Precache-Fehler, oder ähnliches?
--
Masterstroke resourcecode.de
|
|
Profil || Suche
|
026
27.03.2001, 13:11
SCSLORD
|
Also ich gluabe ich hab keinen Fehler. Und teamplay hab ich aus aber ich hab Monster im Spiel kann das daran liegen?
Naja wenn nicht hier kannst du dich selbst überzeugen das ich keinen Fehler gemacht hab!
//=========================================================
// ClientCommand
// the user has typed a command which is unrecognized by everything else;
// this check to see if the gamerules knows anything about the command
//=========================================================
BOOL CHalfLifeTeamplay :: ClientCommand( CBasePlayer *pPlayer, const char *pcmd )
{
if ( FStrEq( pcmd, "menuselect" ) )
{
if ( CMD_ARGC() < 2 )
return TRUE;
int slot = atoi( CMD_ARGV(1) );
if (FStrEq(pcmd, "yessir" ))
{
switch (RANDOM_LONG(0,4))
// (RANDOM_LONG(0,4)) is the randomizer it calls "case" 0 to 4 per random
// 0 is the first and 4 the last "case" if u add or remove cases u need to set the radomizer
{
case 0:
EMIT_SOUND(ENT(pPlayer->pev), CHAN_STATIC, "radio/yessir1.wav", 1, ATTN_NORM);
// radio/yessir1.wav is the location wher the hl.dll can find the sound file
// radio is a folder in valve\sounbs u need to create it anc copy your files into it
UTIL_ClientPrintAll( HUD_PRINTNOTIFY, UTIL_VarArgs( "%s : Yes Sir\n",
// Playername:Yessir is printet when case 0 is called u can change it to whatever u want but
// \n is important do not remove it
// %s checks the players name who used the command
// HUD_PRINTNOTIFY sets the position off the message check bottom for other posiibilities
( pPlayer->pev->netname && STRING(pPlayer->pev->netname)[0] != 0 ) ? STRING(pPlayer->pev->netname) : "unconnected" ) );
break;
case 1:
EMIT_SOUND(ENT(pPlayer->pev), CHAN_STATIC, "radio/yessir2.wav", 1, ATTN_NORM);
UTIL_ClientPrintAll( HUD_PRINTNOTIFY, UTIL_VarArgs( "%s Positiv\n",
( pPlayer->pev->netname && STRING(pPlayer->pev->netname)[0] != 0 ) ? STRING(pPlayer->pev->netname) : "unconnected" ) );
break;
case 2:
EMIT_SOUND(ENT(pPlayer->pev), CHAN_STATIC, "radio/yessir3.wav", 1, ATTN_NORM);
UTIL_ClientPrintAll( HUD_PRINTNOTIFY, UTIL_VarArgs( "%s Ok\n",
( pPlayer->pev->netname && STRING(pPlayer->pev->netname)[0] != 0 ) ? STRING(pPlayer->pev->netname) : "unconnected" ) );
break;
case 3:
EMIT_SOUND(ENT(pPlayer->pev), CHAN_STATIC, "radio/yessir4.wav", 1, ATTN_NORM);
UTIL_ClientPrintAll( HUD_PRINTNOTIFY, UTIL_VarArgs( "%s Yes\n",
( pPlayer->pev->netname && STRING(pPlayer->pev->netname)[0] != 0 ) ? STRING(pPlayer->pev->netname) : "unconnected" ) );
break;
case 4:
EMIT_SOUND(ENT(pPlayer->pev), CHAN_STATIC, "radio/yessir4.wav", 1, ATTN_NORM);
UTIL_ClientPrintAll( HUD_PRINTNOTIFY, UTIL_VarArgs( "%s Yeah\n",
( pPlayer->pev->netname && STRING(pPlayer->pev->netname)[0] != 0 ) ? STRING(pPlayer->pev->netname) : "unconnected" ) );
break;
}
}
// select the item from the current menu
return TRUE;
}
return FALSE;
}
--
Wenn ich hilfe brauch helft mir auch!!!!
-----======I_ () I_======-------
|
|
Profil || Suche
|
027
27.03.2001, 13:32
|
teamplay MUSS an sein sonst ist es doch unlogisch den code in die teamplay_gamerules.cpp einzufügen.
wenn dus ohne teamplay haben willst musst du es irgendwo anders einfügen, z.b in multiplay_gamerules oder singleplay_gamrules(nur bei sp) oder sonstwo.
--
|
|
Profil || Suche
|
028
28.03.2001, 13:15
SCSLORD
|
Nein dass geht auch net wenn cih teamplay anhab!!
Und ausserdem wenn ich teamplay anhab sind meine Monster weg!!!
--
Wenn ich hilfe brauch helft mir auch!!!!
-----======I_ () I_======-------
|
|
Profil || Suche
|