28.06.2012, 14:02
Create a variable which stores id of player who sended last PM
Now, when player connects
Under PM Command
Now for reply
pawn Код:
new ReplyId[MAX_PLAYERS];
pawn Код:
ReplyId[playerid] = INVALID_PLAYER_ID;
pawn Код:
//add this where you send pm.
ReplyId[targetid] = playerid;//id of the target.
pawn Код:
dcmd_r(playerid,params[])
{
new targetid = ReplyId[playerid];
//All the PM stuff and after you send the PM.
ReplyId[targetid] = playerid;
}