26.12.2018, 07:39
Try this:
Works for me...
If that doesn't work try using SendClientMessage instead of Usage(playerid,...);
PHP Code:
CMD:w(playerid, params[])
{
LoginCheck(playerid);
new string[256],pname[MAX_PLAYER_NAME],matn[356];
GetPlayerName(playerid,pname,sizeof(pname));
if(sscanf(params,"s[356]",matn)) return Usage(playerid,"w <matn> - Baray Chat Dargooshi");
format(string,sizeof(string),""white"[DarGooshi]%s: %s",pname,matn);
SendNearMessage( playerid, 0xFFFFFFF, string, 12.1);
format(sb_string, sizeof(sb_string),"{FF9000}[DarGooshi] {FFFFFF}%s", matn);
SetPlayerChatBubble(playerid, sb_string, 0xFFFFFFFF, 16.0,4000);
return 1;
}
If that doesn't work try using SendClientMessage instead of Usage(playerid,...);
PHP Code:
if(sscanf(params,"s[356]",matn)) return SendClientMessage(playerid, -1, "w <matn> - Baray Chat Dargooshi");