Adding a parameter to a command, and if that is right...
#7

Will this work ?
pawn Код:
dcmd_secret(playerid, params[])
{
    new result;
    if(sscanf(params, "d", result)) return SendClientMessage(playerid, COLOR_GRAD2, "...");
    if(!strcmp(params,"..",true) == 0 && IsPlayerInRangeOfPoint(playerid, 5.0, ...))
    {
         ...
    }
    else
    {
        SendClientMessage(playerid, COLOR_GRAD2, "Wrong password.");
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)