/pm command help
#3

PHP код:
CMD:pm(playeridparams[])
{
    new 
PIDpName[MAX_PLAYER_NAME], Sender[MAX_PLAYER_NAME];
    if(
sscanf(params"us[128]"PIDparams)) return SendClientMessage(playeridCOLOR_GREY"USAGE: /pm [playerid] [message]");
    if(!
IsPlayerConnected(PID)) return SendClientMessage(playeridCOLOR_GREY"Player is not connected!");
    new 
Str[128];
    
GetPlayerRPName(PIDpNamesizeof(pName));
    
GetPlayerRPName(playeridSendersizeof(Sender));
    
format(Strsizeof(Str), "PM From %s (%d): %s"Senderplayeridparams);
    
SendClientMessage(PIDCOLOR_YELLOWStr);
    
SendClientMessage(playeridCOLOR_YELLOW"Your PM Message has been sent.");
    }
    return 
1;

Reply


Messages In This Thread
/pm command help - by seanny - 28.07.2011, 07:26
Re: /pm command help - by iPLEOMAX - 28.07.2011, 07:29
Re: /pm command help - by Kush - 28.07.2011, 07:33

Forum Jump:


Users browsing this thread: 1 Guest(s)