PM the last User you pmed
#5

pawn Код:
// Global variable
new
    Last_PM_From[ MAX_PLAYERS ]
;

// OnPlayerConnect
Last_PM_From[ playerid ] = -1;

// Command
if( Last_PM_From[ playerid ] == -1 ) return SendClientMessage( playerid, -1, "You did not recieve any PM to reply back!" );
if( Last_PM_From[ playerid ] == INVALID_PLAYER_ID ) return SendClientMessage( playerid, -1, "That player is not online anymore!" );
// code...
SendClientMessage( ast_PM_From[ playerid ], color_here, message_here );
Oh and when you recieve a message, assign to the variable the id of the player.
Reply


Messages In This Thread
PM the last User you pmed - by Blackazur - 16.07.2013, 10:01
Re: PM the last User you pmed - by PaulDinam - 16.07.2013, 10:02
Respuesta: PM the last User you pmed - by Xabi - 16.07.2013, 10:03
AW: PM the last User you pmed - by Blackazur - 16.07.2013, 10:06
Re: PM the last User you pmed - by Konstantinos - 16.07.2013, 10:07
AW: PM the last User you pmed - by Blackazur - 16.07.2013, 10:21
Re: PM the last User you pmed - by Konstantinos - 16.07.2013, 10:27
AW: PM the last User you pmed - by Blackazur - 16.07.2013, 10:30
Re: PM the last User you pmed - by Konstantinos - 16.07.2013, 10:33
AW: PM the last User you pmed - by Blackazur - 16.07.2013, 10:43

Forum Jump:


Users browsing this thread: 1 Guest(s)