- 0
Problema Ban Poate sa ma ajute cineva? fast va rog
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
NuamNume
Ma poate ajuta cineva? Cand dau de ex /ban PetardaBUM1998 0 NeAuzim imi apare "syntax: /ban etc
Va rog...
COD:
YCMD:ban(playerid, params[], help)
{
if(!PlayerInfo[playerid][pAdmin])
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>");
if(!IsPlayerLogged(playerid))
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);
Edited by NuamNumereturn true;
}
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now