Returning a message on ZCMD?
#1

What you do on OnPlayerCommandText is: return SendClientMessage
if you want your own custom message to be sent if unknown command,
Well im trying to do this with zcmd callbacks,
Ive tried doing it on both callbacks at different times,
And on them both, If i type a valid command,
It does what the command should do, AND sends a message saying Command is not recgonize /help for more info
If i type invalid command it says SERVER: Unknown Command and also sends a message saying Command is not recgonize /help for more info?

Anyone have any idea or know how to do it correctly?
Reply
#2

Код:
new bla[32];
format("The Command /%s not exist!",cmdtext);
then look for return 0 in OnPlayerCommandText and Replace it with
Код:
return SendClientMessage(playerid,0xFF0000FF,bla);
//edit : oh Sorry zcmd ~_~
Reply
#3

Quote:
Originally Posted by BlackFoX_UD_
Код:
new bla[32];
format("The Command /%s not exist!",cmdtext);
then look for return 0 in OnPlayerCommandText and Replace it with
Код:
return SendClientMessage(playerid,0xFF0000FF,bla);
That dont work for ZCMD, I already know how to do it for that, But it wont work on ZCMD
Reply
#4

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
   if(!sucess) //send your message
   return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)