• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
requesting
#1
who have /fakename cmd ?? Give me cmd here ty
  Reply
#2
Do you mean /fakechat?
  Reply
#3
hmm , Did you meant "/fakechat" ? 
I have done it for you in zcmd. 

Just at the top of your script include "sscanf2" and its done..
Code:
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;
}
  Reply
#4
You mean on this
Code:
YCMD:fakename(playerid, params[], help)
{
    #pragma unused help
    new result[48],string[128],id;
    if(sscanf(params, "us[48]",id,result)) return SendClientMessage(playerid, -1, "CMD | /fakename (ID) (text)");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, " Player is offline!");
    new text1 = strlen(result);
    format(string, sizeof(string), "%s: %s",GetName(id), result);
     SendClientMessageToAll(-1,string);
    return 1;
}
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)