Jump to content
  • 0

Problema ban vreau ajutor rpd va rog



Ma poate ajuta cineva? Cand dau de ex /ban PetardaBUM1998 0 NeAuzim imi apare "syntax: /ban etc

Va rog...


YCMD:ban(playerid, params[], help)
        return SCM(playerid, 0xa3e080FF, "You are not an admin!");

    if(GetPVarInt(playerid, "ban_cooldown") > gettime())
        return SendFormatMessage(playerid, COLOR_GREY, "You need to wait %d seconds for another ban.", (GetPVarInt(playerid, "ban_cooldown") - gettime()));

    new userID, days, reason[64];
    if(sscanf(params, "usd[64]", userID, days, reason) || days < 0)
        return SCM(playerid, -1, "Syntax: /ban <playerid/name> <days (0 = permanent)> <reason>");

        return SCM(playerid, COLOR_GREY, "This player is not connected!");

    if(userID == playerid)
        return SCM(playerid, COLOR_GREY, "Nu poti folosi aceasta comanda aspura ta.");

    if(PlayerInfo[playerid][pAdmin] >= PlayerInfo[playerid][pAdmin] && !strmatch(GetPlayerNameEx(playerid), "R4uL"))
        return SCM(playerid, COLOR_GREY, "Nu poti folosi aceasta comanda pe acel jucator.");

    banPlayer(userID, playerid, days, reason);
    return true;

se poate fast?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.