/pm problem
#4

pawn Код:
CMD:pm(playerid, params[])
{
    new ID, string[128], str[256];
    if(sscanf(params, "us[256]", ID, str)) return SCM(playerid, COLOR_WHITE, ""WORD_USAGE"/pm [PLAYER_ID] [MESSAGE]");
    if(!IsPlayerConnected(ID) || playerid == id) return SCM(playerid, COLOR_WHITE, ""WORD_ERROR"Invalid player");
   
    format(string, sizeof(string), ""COL_YELLOW"[MESSAGE]{FFFFFF} To %s(%d): {C4C4C4}%s", PlayerName(ID), ID, str);
    SCM(playerid, COLOR_WHITE, string);
    format(string, sizeof(string), ""COL_YELLOW"[MESSAGE]{FFFFFF} From %s(%d): {C4C4C4}%s", PlayerName(playerid), playerid, str);
    SCM(ID, COLOR_WHITE, string);
    return 1;
}
Reply


Messages In This Thread
/pm problem - by aCloudy - 18.04.2015, 12:30
Re: /pm problem - by 036 - 18.04.2015, 12:33
Re: /pm problem - by Azula - 18.04.2015, 12:33
Re: /pm problem - by J4Rr3x - 18.04.2015, 12:37

Forum Jump:


Users browsing this thread: 1 Guest(s)