- 0
[Problema /unban] Dini
-
Similar Content
-
Problema turf
By Soryn.,
- 3 answers
- 255 views
-
- 1 reply
- 177 views
-
Problema
By ImJustSlim,
- 3 answers
- 286 views
-
- 2 replies
- 157 views
-
- 1 answer
- 311 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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=xxx
Dupa unban:
Factiun=xxx Unban=xx Bani=xx
CMD: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;
}
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.