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

pawn Код:
dcmd_secretthing(playerid, params[])
{
    new result[32];
    if(sscanf(params, "s[32]", result)) return SendClientMessage(playerid, COLOR_GRAD2, "Wrong password.");
    if(passwordcorrect)
    {
         ...    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)