25.03.2015, 19:50
Do you use y_commands, OnPlayerCommandText, zcmd or what?
For OnPlayerCommandText, you can add a SendClientMessage after all your commands, like:
For zcmd, you can simply use OnPlayerCommandPerformed.
For OnPlayerCommandText, you can add a SendClientMessage after all your commands, like:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/mycommand", true))
{
SendClientMessage(playerid, -1, "This is a command.");
return 1;
}
SendClientMessage(playerid, -1, "You have not entered a command.");
return 1;
}
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success) SendClientMessage(playerid, -1, "You have not entered a command.");
return 1;
}