30.09.2012, 15:21
pawn Код:
CMD:fakechat(playerid,params[])
{
new target;
new ftext[128];// thats the problem
new string[256];
new Lname[MAX_PLAYER_NAME];
if(sscanf(params,"us[128]",target,ftext)) return SendClientMessage(playerid, 0xFF0000FF, "Usage: /fakechat [playerid] [text]");
GetPlayerName(target,Lname,sizeof(Lname));
format(string,sizeof(string),"%s:{FFFFFF}%s", Lname, ftext);
new tcolor;
tcolor = GetPlayerColor(target);
SendClientMessageToAll(tcolor,string);
SendClientMessage(playerid, 0xFF0000, "Fake chat successfully sent!");
return 1;
}