Command Help
#1

hey im trying to make a block/unblock cmd but i cant pls someone help me

Pm codes

PHP код:
COMMAND:pm(playeridparams[])
{
    if(
GetPVarInt(playerid"togPM") == 1) return SendClientError(playerid"You have private mesasges disables. Use /togpm to re-enable.");
    new 
iPlayeriText128 ];
    if( 
sscanf params"us"iPlayeriText))  return SCP(playerid"[PlayerID/PartOfName] [message]");
    if(
PlayerTemp[playerid][muted]) return SendClientError(playerid"You are muted!");
    if(
FindIP(iText))
    {
       
KickReas("[SERVER]",playerid,"Attempting to advertise IP's!");
       return 
1;
    }
    if(
GetPVarInt(iPlayer"togPM") == && !GetAdminLevel(playerid)) return SendClientError(playerid"That player has blocked incoming private messages.");
    
format(iStrsizeof(iStr), "(( %s(%d): %s ))"RPName(playerid), playeridiText);
    
SendClientMessage(iPlayer0xFF66FFAAiStr);
    if(
PlayerTemp[iPlayer][lastpm] == 666SendClientMessage(iPlayer, -1"{d9d9d5} You can use {b4b4b1}\"/re [message]\"{d9d9d5}to send a quick reply.");
    
format(iStrsizeof(iStr), "(( PM sent %s(%d): %s ))"RPName(iPlayer), iPlayeriText);
    
SendClientMessage(playerid0xFF66FFAAiStr);
    
formatiStrsizeof(iStr), "13[PM] (( %s(%d) to %s(%d): %s ))",PlayerName(playerid), playeridPlayerName(iPlayer), iPlayeriText);
    
iEchoiStr );
    
PlayerLoop(i)
    {
        if(
PlayerTemp[i][adminspy] == 1)
        {
            
format(iStrsizeof(iStr), "(/pm) %s to %s: %s"PlayerName(playerid), PlayerName(iPlayer), iText);
            
SendClientMessage(iCOLOR_LIGHTGREYiStr);
        }
    }
    
PlayerTemp[iPlayer][lastpm] = playerid;
    if(
iAFKp[iPlayer] > 3)
    {
        
format(iStrsizeof(iStr),"%s is currently AFK",RPName(iPlayer));
        
SendClientMessage(playeridCOLOR_GREYiStr);
    }
    return 
1;

Reply


Messages In This Thread
Command Help - by Diti1 - 18.01.2015, 21:18
Re: Command Help - by ball - 18.01.2015, 21:28
Re: Command Help - by Diti1 - 18.01.2015, 21:30
Re: Command Help - by nezo2001 - 18.01.2015, 21:32
Re: Command Help - by Diti1 - 18.01.2015, 21:38
Re: Command Help - by CharlieSanchez - 18.01.2015, 21:46
Re: Command Help - by nezo2001 - 19.01.2015, 07:15
Re: Command Help - by Diti1 - 19.01.2015, 10:15
Re: Command Help - by ball - 19.01.2015, 14:28
Re: Command Help - by nezo2001 - 19.01.2015, 14:53

Forum Jump:


Users browsing this thread: 2 Guest(s)