SA-MP Forums Archive
How can i see player's pm while spectating - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How can i see player's pm while spectating (/showthread.php?tid=580697)



How can i see player's pm while spectating - STONEGOLD - 07.07.2015

How can i see players pms while i m spectating him. ?

if he sends msg to someone or someone send msg to him. i want to see everything while spectating so.

Also, I need a command /checkpms so it shows me all players pms.

I would be your so thankful if you guyz give me codes/

Thanks!


Re: How can i see player's pm while spectating - SecretBoss - 07.07.2015

I created a PM system but someone deleted I don't know why, so it has /spypms command where you can enable/disable the feature to see the pms while specing you need to create a variable and set it to 1 when you spec someone then put on your system the if and sends the message to online admins

to get my script add me on skype
SecretBoss GR


Re: How can i see player's pm while spectating - STONEGOLD - 07.07.2015

Added you. Someone can help me and post here codes?


Re: How can i see player's pm while spectating - SNAKE12 - 07.07.2015

give us pm codes in your script to help you


Re: How can i see player's pm while spectating - Shaktimaan - 07.07.2015

Post your /pm command and /spec command.


Re: How can i see player's pm while spectating - STONEGOLD - 07.07.2015

PHP код:
CMD:pm(playeridparams[])
{
    new 
idmsg[64], string[256];
    if(
sscanf(params"us[64]"idmsg)) return SendClientMessage(playeridRED"[USAGE]: /pm [name/id] [msg]");
    if(!
IsPlayerConnected(id)) return SendClientMessage(playeridRED"Player not found.");
    if(
strlen(msg) < || strlen(msg) > 64) return SendClientMessage(playeridRED"Your message can only contain 1-64 characters.");
    if(
playerid == id) return SendClientMessage(playeridRED"You cannot PM yourself.");
    if(
IsIgnoringPMs{id} == 1) return SendClientMessage(playeridRED"That player is currently ignoring private messages.");
    {
        
format(stringsizeof(string), "[PM] To %s (%d): %s"GetName(id), idmsg);
        
SendClientMessage(playeridYELLOWstring);
        
format(stringsizeof(string), "[PM] From %s (%d): %s"GetName(playerid), playeridmsg);
        
SendClientMessage(idYELLOWstring);
        
SendClientMessage(idYELLOW"Use /r [msg] to reply to this PM, use /nopm to ignore all PMs.");
        
PlayerPlaySound(id,1085,0.0,0.0,0.0);
        
chattingwith[id] = playerid;

    }
    return 
true;

I would like to see all players pms by type /checkpms and /checkpmsoff

That would be better if you make with cmds