Problem with /reply command
#4

pawn Код:
//Top of script
new LastReply[MAX_PLAYERS];

//PM command
CMD:PM(playerid, params[])
{
  new id, message[120];
  if(sscanf(params, "is[120]", id, message)) return SendClientMessage(playerid, -1, "Usage: /pm ID message");
  SendClientMessage(id, -1, message);
  SendClientMessage(playerid, -1, "message sent");
  LastReply[id] = playerid;
  return 1;
}

CMD:r(playerid, params[])
{
  SendClientMessage(LastReply[playerid], -1, params);
  SendClientMessage(playerid, -1, "message sent");
  return 1;
}
You basically need that, I am unsure if it has bugs as I haven;'t tested it, but you should get the idea.
Reply


Messages In This Thread
Problem with /reply command - by pasha97 - 16.06.2012, 10:12
Re: Problem with /reply command - by JaKe Elite - 16.06.2012, 10:16
Re: Problem with /reply command - by pasha97 - 16.06.2012, 10:37
Re: Problem with /reply command - by Revo - 16.06.2012, 10:44
Re: Problem with /reply command - by pasha97 - 16.06.2012, 11:34

Forum Jump:


Users browsing this thread: 3 Guest(s)