- 0
[Problema /unban] Dini
-
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
Crassus
Am o problema cu comandaa offline unban care functioneaza perfect, dar cand ii dau unban fisierul jucatorului se face de 2kb, se adauga spatii dupa fiecare data, si nu ii mai recunoaste parola la logare dupa si nici datele pana nu ii sterg spatiile din fisier.
Inainte de unban:
Factiune=xxx Level=xx Bani=xxxDupa unban:
Factiun=xxx Unban=xx Bani=xxCMD:unban(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 1337)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "[Server] Nu ai acces la aceasta comanda !");
return 1;
}
new PlayerFile[50];
format(PlayerFile, sizeof(PlayerFile), "/users/%s.ini", strtolower(params));
if(!strlen(params)) return SendClientMessage(playerid, COLOR_LIGHTRED, "[Server] CMD: /unban <NUME CONT>");
if(!dini_Exists(PlayerFile)) return SendClientMessage(playerid, COLOR_RED, "[Server] Acest cont nu exista !");
dini_IntSet(PlayerFile, "Banned", 0);
new string[256];
format(string, sizeof(string), "[DiaVoLa.Ro] Ai debanat contul: %s", params);
SendClientMessage(playerid, COLOR_GREEN, string);
return 1;
}
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