How to make /r (Reply PM Command)
#8

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


Messages In This Thread
How to make /r (Reply PM Command) - by Uberanwar - 28.06.2012, 13:31
Re: How to make /r (Reply PM Command) - by Deal-or-die - 28.06.2012, 13:33
Re: How to make /r (Reply PM Command) - by Uberanwar - 28.06.2012, 13:35
Re: How to make /r (Reply PM Command) - by Deal-or-die - 28.06.2012, 13:44
Re: How to make /r (Reply PM Command) - by MP2 - 28.06.2012, 13:51
Re: How to make /r (Reply PM Command) - by Deal-or-die - 28.06.2012, 13:53
Re: How to make /r (Reply PM Command) - by [KHK]Khalid - 28.06.2012, 13:55
Re: How to make /r (Reply PM Command) - by [MM]RoXoR[FS] - 28.06.2012, 14:02
Re: How to make /r (Reply PM Command) - by Uberanwar - 28.06.2012, 14:06
Re: How to make /r (Reply PM Command) - by [KHK]Khalid - 28.06.2012, 14:17

Forum Jump:


Users browsing this thread: 1 Guest(s)