How can i see player's pm while spectating
#6

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
Reply


Messages In This Thread
How can i see player's pm while spectating - by STONEGOLD - 07.07.2015, 14:29
Re: How can i see player's pm while spectating - by SecretBoss - 07.07.2015, 14:31
Re: How can i see player's pm while spectating - by STONEGOLD - 07.07.2015, 15:58
Re: How can i see player's pm while spectating - by SNAKE12 - 07.07.2015, 16:01
Re: How can i see player's pm while spectating - by Shaktimaan - 07.07.2015, 17:14
Re: How can i see player's pm while spectating - by STONEGOLD - 07.07.2015, 18:27

Forum Jump:


Users browsing this thread: 1 Guest(s)