- 0
Problema Ban Poate sa ma ajute cineva? fast va rog
-
Similar Content
-
- 15 answers
- 396 views
-
- 13 replies
- 340 views
-
- 2 replies
- 72 views
-
- 7 answers
- 557 views
-
- 2 answers
- 94 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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;
}
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.