Need help with /fakechat
#9

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;
}
Reply


Messages In This Thread
Need help with /fakechat - by Prometheus - 30.09.2012, 11:36
Re : Need help with /fakechat - by Prometheus - 30.09.2012, 12:36
Re : Need help with /fakechat - by Prometheus - 30.09.2012, 12:41
Re: Need help with /fakechat - by Lordzy - 30.09.2012, 12:44
Re : Re: Need help with /fakechat - by Prometheus - 30.09.2012, 13:05
Re: Need help with /fakechat - by Lordzy - 30.09.2012, 13:23
Re : Need help with /fakechat - by Prometheus - 30.09.2012, 13:41
Re : Need help with /fakechat - by Prometheus - 30.09.2012, 13:51
Re: Need help with /fakechat - by Gangster-rocks - 30.09.2012, 15:21

Forum Jump:


Users browsing this thread: 1 Guest(s)