- 0
Problema ban vreau ajutor rpd va rog
-
Similar Content
-
- 15 answers
- 483 views
-
Am nevoie de ajutor la serverul asta,vreau sa scot server password care este vamzapacit si nu stiu cum,cum trebuie ?
By leoo671,
- 1 answer
- 203 views
-
- 2 answers
- 164 views
-
- 3 replies
- 255 views
-
- 2 answers
- 129 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);
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.