How to hide text from params?
#1

Hello reader,

I didn't know how to explain it in the title so fast but I mean like someone types the command "/pm 0 test." and it should just show "test." at params, I am using ZCMD.

This is the code I'm using:
pawn Код:
CMD:pm(playerid, params[])
{
    if (isnull(params)) return SendClientMessage(playerid, KLEUR_VOORB, "USAGE: /pm [ID] [text]");
    else if (strlen(params) >= 62) return SendClientMessage(playerid, KLEUR_VOORB, "You have exceeded the maximum command length, please use a shorter command.");
        else
        {
        new pmontvang[110];
        format(pmontvang, sizeof(pmontvang), "(( PM To %s [ %d ]: %s ))", pNaam(playerid), playerid, params);
        SendClientMessage(senderid, KLEUR_PM, pmontvang);
        new pmverstuur[110];
        format(pmverstuur, sizeof(pmverstuur), "(( PM From %s [ %d ]: %s ))", pNaam(playerid), playerid, params);
        SendClientMessage(playerid, KLEUR_PM, pmverstuur);
        }
    return 1;
}
and it works as this:

in game.

Thank you in advance.

Best regards,
Jesse
Reply


Messages In This Thread
How to hide text from params? - by jessejanssen - 21.02.2012, 10:52
Re: How to hide text from params? - by deltapro - 21.02.2012, 10:55
Re: How to hide text from params? - by Konstantinos - 21.02.2012, 11:01
Re: How to hide text from params? - by Kellicia - 21.02.2012, 11:02

Forum Jump:


Users browsing this thread: 3 Guest(s)