Quote:
Originally Posted by Mean
If you use ZCMD, don't use OnPlayerCommandText. Add this anywhere:
pawn Код:
public OnPlayerCommandPerformed( playerid, cmdtext[ ], success ) { if( success == 0 ) return SendClientMessage( playerid, COLOR, "Your new unknown command text" ); }
@SilentHuntR: I don't recommend changing INCs.
|
Doesn't work, unfortunately. When i do like you wrote, i get SERVER: Unknown Command below every output, and i get warning 12. When i do
pawn Код:
public OnPlayerCommandPerformed( playerid, cmdtext[ ], success )
{
if( success == 0 )
{
}
return SendClientMessage( playerid, COLOR, "Your new unknown command text" );
}
I get the custom unknown command instead of every output.