I need make command /msg <player>, i'ts don't work. ( I use k08 )
Command:
Function:PHP Code:void ChatCmd_Crash( char* line, int argc, char* argv[] ){
if(argc < 1 ) {
ZChatOutput("Use: /crash <player>");
return;
}
char* szCharacter = argv[ 1 ];
MCommand* pCmd = MCommand::Create( CRASH );
pCmd->AddParameter( new MCommandParameterString( szCharacter ) );
MCommand::Post( pCmd );
}
Sockets:PHP Code:case CRASH:
{
MUID uidPlayer;
pCmd->GetParameter(&uidPlayer, 0, MPT_UID, -1);
if(uidPlayer.High != pCmd->m_uidSender.High)
{
GameMsgBox("You received this message from any administrator.");
}
return true;
break;
};
If i write /crash, my game crash, if i write /crash <myname>, i has ben disconnectedPHP Code:MCommandDesc* pCrash = new MCommandDesc( CRASH, "", "", 1 );
pCrash->AddParamDesc( new MCommandParameterDesc( MPT_STRING, "" ) );
pMgr->AddCommandDesc( pCrash );
Someone help..

