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

Hey Guys know how to make /r (reply pm command)? with textdraws like (PM Received, PM Sent)? I'm new in scripting so I want to learn how to make it.
This is my PM ''script''
PHP код:
dcmd_pm(playerid,params[])
{
    new 
string[128];
    new 
ID;
    new 
cmdreason[100];
    if(
sscanf(params"us[100]"IDcmdreason))
    {
        
SendClientMessage(playerid,COLOR_ERROR,"USAGE: /pm (Player Name/ID) (Message)");
        return 
1;
    }
    if(
IsMuted[playerid] == 1)
    {
        
SendClientMessage(playerid,COLOR_ERROR,"You are Muted. You Cannot Use This Command");
        return 
1;
    }
    if(
udb_Exists(PlayerName(playerid)) && !PLAYERLIST_authed[playerid])
    {
        
SendClientMessage(playerid,COLOR_ERROR,"You must login before you can talk");
        return 
1;
    }
    if(!
IsPlayerConnected(ID))
    {
        
format(stringsizeof(string), "The Player ID (%d) is not connected to the server.",ID);
        
SendClientMessage(playerid,COLOR_ERROR,string);
        return 
1;
    }
    
format(stringsizeof(string), "PM Sent to: %s (%d): %s",PlayerName(ID),ID,cmdreason);
    
SendClientMessage(playerid,COLOR_YELLOW,string);
    
    
format(stringsizeof(string), "PM From: %s (%d) %s",PlayerName(playerid),playerid,cmdreason);
    
SendClientMessage(ID,COLOR_YELLOW,string);
    
    
format(stringsizeof(string), "3[PM] From %s (%d) to %s (%d): %s",PlayerName(playerid),playerid,PlayerName(ID),ID,cmdreason); // [0] <jacob> hi
    
IRC_GroupSay(gGroupAdminID,IRC_ADMINCHANNEL,string);
    
    
SpamStrings[playerid] ++;
    
PlayerPlaySound(ID,1085,0.0,0.0,0.0);
    return 
1;

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: 2 Guest(s)