- 0
Problema ban offline
-
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
Alexutzuuu23
Problema intalnita (descriere): Am incercat sa fac o comanda de ban offline,nu am nici-o eroare dar nu da ban...adica folosesc comanda si player-ul nu este banat.
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):
if(strcmp(cmd, "/banoff", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}Folosire{FFFFFF}: /banoff [Numele Contului] [Motiv]"); return 1; } if (PlayerInfo[playerid][pAdmin] >= 5 ) { GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}Folosire{FFFFFF}: /banoff [Numele Contului] [Motiv]"); return 1; } format(string, sizeof(string), "users/%s.ini", tmp); if ( !fexist ( string ) ) return SendClientMessage ( playerid, -1, "* Nu exista un jucator cu acel nume ." ); strreplace ( string, "Locked=0\n", "Locked=1\n" ); new year, month,day; getdate(year, month, day); format(string, sizeof(string), "[Zi: %d | Luna: %d | An:%d]%s(offline) a fost banat de catre %s.Motiv:, %s.", day,month,year, tmp, sendername, (result)); BanLog(string); format(string, sizeof(string), "AdmCmd: %s(offline) a fost banat de catre %s.Motiv: %s", tmp, sendername, (result)); ABroadCast(COLOR_LIGHTRED,string,1); } else { format(string, sizeof(string), "Nu ai acces sa utilizezi aceasta camanda", giveplayerid); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; } Imagini / Video (optional): Ati incercat sa rezolvati singur?: Da11 answers to this question
Recommended Posts