ja ist sehr kundenfreundlich und bei einem € wärste wohl schon stinkig reich *gg*
Ich hab das teil jez so eingefügt und beim kombilieren komtm folgender fehler :
plugin_sm_cdr.sma(56) Warning [203]: symbol is never used: "SoundConnect"
plugin_sm_cdr.sma(56) Warning [203]: symbol is never used: "SoundDisconnect"
plugin_sm_cdr.sma(56) Warning [203]: symbol is never used: "soundall"
Code:
#include <core>
#include <console>
#include <string>
#include <admin>
#include <adminlib>
#define ACCESS_CONSOLE 131072
new STRING_VERSION[MAX_DATA_LENGTH] = "2.1.9";
new SoundConnect[MAX_TEXT_LENGTH]="sound/misc/gong.wav"
new SoundDisconnect[MAX_TEXT_LENGTH]="sound/misc/comeagain.wav"
// connected and disconnected
public sm_cdr_evn(HLCommand,HLData) {
new mymsg[MAX_DATA_LENGTH];
convert_string(HLData,mymsg,MAX_DATA_LENGTH);
new src[4], Type[4], Msg[MAX_DATA_LENGTH], Name[MAX_DATA_LENGTH];
strgsplit(mymsg, " ","^"", src, 4, Type, 4, Msg, MAX_DATA_LENGTH,Name, MAX_DATA_LENGTH);
if (Msg[6]=='c'){
snprintf(mymsg,200,"%s hat die DoenerBude betreten.^nSelam Aleikum auf dem Clanserver von TeamArab!",Name); // - * Player_name connected
}
else {
snprintf(mymsg,200,"%s hat die Doenerbude verlassen.^nUnd fuer die andern gehts jetzt weiter..",Name); // - * Player_name disconnected
}
typesay(mymsg, 6, 0, 100, 200);
return PLUGIN_CONTINUE;
}
public plugin_init() {
plugin_registerinfo("Connect, Disconnect, Respawn","Detects some events.",STRING_VERSION);
plugin_registercmd("sm_cdr_evn","sm_cdr_evn",ACCESS_CONSOLE,"");
plugin_registercmd("sm_cdrstr_evn","sm_cdrstr_evn",ACCESS_CONSOLE,"");
exec("sm_register TextMsg ^"admin_command sm_cdr_evn^" ac ^"2=#Game_c^" ^"2=#Game_d^"");
exec("sm_register ResetHUD ^"admin_command sm_cdrstr_evn^" bd");
return PLUGIN_CONTINUE;
}
soundall(Sound[]){
new Name[MAX_NAME_LENGTH];
new maxplayers = maxplayercount();
new iWONID;
new i;
new dummy1;
for(i = 1; i <= maxplayers; i++ )
{
if( playerinfo(i, Name, MAX_NAME_LENGTH,dummy1,iWONID,dummy1,dummy1) ){
playsound(Name,Sound);
}
}
return PLUGIN_HANDLED;
}
wegen dem bann plugin ist zwar nich richtig hier aber das such ich auch glaich mal nech..
_________________
<werbung>
www.teamarab.de
62.4.81.251:27085 #teamarab.de | Doenerbude
62.4.74.200:27020 #teamarab.de | Muckibude
80.239.224.29:27700 - #teamarab.de ][ Muckibude | bY quado.net -
#teamarab.de @ Q - Net
</werbung>