u specifier and mask id
#4

Something like this will do I suppose:
pawn Код:
new targetid, text[128];
   
if (sscanf(params, "us[128]", targetid, text))
    return SendClientMessage(playerid, COLOR_GREY, "USAGE: /whisper [playerid/name/maskid] [text]");
       
if (targetid == INVALID_PLAYER_ID)
{
    if ((!sscanf(params, "is[128]", targetid, text) && targetid > MAX_PLAYERS && GetMaskPlayerID(targetid) == INVALID_PLAYER_ID)
        || targetid < MAX_PLAYERS)
        return SendClientMessage(playerid, COLOR_LIGHTRED, "You have specified an invalid player.");
}
Reply


Messages In This Thread
u specifier and mask id - by GoldenLion - 25.12.2016, 16:20
Re: u specifier and mask id - by Jefff - 25.12.2016, 16:26
Re: u specifier and mask id - by GoldenLion - 25.12.2016, 16:38
Re: u specifier and mask id - by Konstantinos - 25.12.2016, 17:06
Re: u specifier and mask id - by Lordzy - 25.12.2016, 17:08
Re: u specifier and mask id - by GoldenLion - 25.12.2016, 17:18

Forum Jump:


Users browsing this thread: 1 Guest(s)