/r to pm's
#2

Create a PVar, or normal variable, storing the ID of the person who last PMed the player in the variable, then use /r to check that ID and send the reply to that ID.

In your PM command:
pawn Код:
/* for this explanation, iTarget is the player who is receiving the PM and playerid is the one sending it */
SetPVarInt(iTarget, "LastPMFrom", playerid);
In your reply command:
pawn Код:
new iTarget = GetPVarInt(playerid, "LastPMFrom");

/* iTarget being the target of the reply */
Reply


Messages In This Thread
/r to pm's - by jamesbond007 - 18.12.2011, 03:31
Re: /r to pm's - by Calgon - 18.12.2011, 03:36
Re: /r to pm's - by jamesbond007 - 18.12.2011, 03:46
Re: /r to pm's - by Calgon - 18.12.2011, 03:50
Re: /r to pm's - by jamesbond007 - 18.12.2011, 03:53
Re: /r to pm's - by Lorenc_ - 18.12.2011, 03:54
Re: /r to pm's - by Calgon - 18.12.2011, 03:57

Forum Jump:


Users browsing this thread: 1 Guest(s)