07.06.2017, 00:57
PHP Code:
SCM(playerid, COLOR_RED, ""COL_BLUE"[ERROR]: "COL_WHITE"/%s command is not found in our server database, use /help", cmdtext);
https://sampwiki.blast.hk/wiki/SendClientMessage
https://sampwiki.blast.hk/wiki/Format
Structurally it'd be like:
PHP Code:
public OnPlayerCommandPerformed(cmdid, playerid, cmdtext[], success)
{
if(!success)
{
create a string of a considerable size
format the string with the message you want
send the client message with the string as the message parameter
return the value you think you should
}
return 1;
}