18.12.2010, 16:48
If you know dcmd then i hope you know where this goes
This goes under the list of dcmd defines you have. I don't know what they're called
That should work
Код:
dcmd(fakechat, 8, cmdtext);
Код:
dcmd_fakechat(playerid, params[]) { new id,text[128]; if(sscanf(params, "us", id, text)) return SendClientMessage(playerid, COLOR_RED, "Usage: /fakechat [ID] [TEXT]"); if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_RED, "player offline"); SendPlayerMessageToAll(id,text); return 1; }