Problema Server[BAN ALL]
#1

Salutare tuturor!Am si eu o problema la SA:MP.Mai exact este vorba despre banall fara ca playerul sa aiba admin.Acel player nu este jucatorul nostru ci doar isi face reclama pentru el.Credeti ca:Exista o comanda ascunsa in GAMEMODE care da ban all chiar daca nu esti admin?Nu are cine sa stie RCON sau parola de la gamecp al hostului.Ce credeti ca se intampla?Astept un raspuns si multumesc tuturor!
Reply
#2

ai comanda in gm ....ce gm folosesti ?
Reply
#3

E GameMode Sky-Zone.
Reply
#4

Cauta in gm Ban sau BanEX si vezi comenzile unde da bann. Nu este folosit in multe cazuri, deci gasesti imediat. Stiam un gm la care era ascuns bann in comanda "/forum".
Reply
#5

Eu am tot gm ala .. Si la mine Cand intra careva pe srv . sau dai relog etc primesti owner
Reply
#6

Nu am problema cu owner sau altceva.Direct intra si banall..
Reply
#7

Quote:
Originally Posted by 20CM
View Post
Nu am problema cu owner sau altceva.Direct intra si banall..
Fa cum ti-am zis eu.
Reply
#8

//================================================== ==========/ban=============================================== ============================
if(strcmp(cmd, "/ban", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}Info{FFFFFF}: /ban [id] [motiv]");
return 1;
}
new playa;
playa = ReturnUser(tmp);
giveplayerid = ReturnUser(tmp);
if(PlayerBanned[playerid] == -1 && PlayerInfo[playerid][pAdminServer] < 5000)//report timer
{
SendClientMessage(playerid,COLOR_WHITE,"[{F50000}Protectie Server{FFFFFF}]: Poti da /kick /ban /warn doar o data la 3 minute!");
return 1;
}
PlayerBanned[playerid] = 1;
SetTimerEx("ResetBan", 180000, 0, "d", playerid);
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playa][pAdminServer] >= 6000)
{
SendClientMessage(playerid, COLOR_LIGHTRED, " Admini nu pot fi banati.");
format(string, 256, "{F3FF02}ATENTIE: %s a incercat comanda /ban pe %s. A primit automat Admin 0.", sendername, giveplayer);
ABroadCast(COLOR_YELLOW,string,1);
PlayerInfo[playerid][pAdminServer] = 0;
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdminServer] >= 1337)
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
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}Info{FFFFFF}: /ban [id] [motiv]");
return 1;
}
new year, month,day;
getdate(year, month, day);
format(string, sizeof(string), "AdmCmd: %s a primit ban de la %s. Motiv: %s (banned) (%d-%d-%d)", giveplayer, sendername, (result),month,day,year);
BanLog(string);
format(string, sizeof(string), "AdmCmd: %s a primit ban de la %s. Motiv: %s (banned)", giveplayer, sendername, (result));
SendClientMessageToAll(COLOR_LIGHTRED, string);
new plrIP[16];
GetPlayerIp(giveplayerid,plrIP, sizeof(plrIP));
SendClientMessage(giveplayerid,COLOR_DBLUE,"{F3FF0 2}|___________[{F81414}BAN INFO{F3FF02}]___________|");
format(string, sizeof(string), "Numele tau:{FFFFFF} %s.",giveplayer);
SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "IP-ul tau:{FFFFFF} %s.",plrIP);
SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "Ai fost banat de:{FFFFFF} %s.",sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "Motiv:{FFFFFF} %s.",(result));
SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "Data:{FFFFFF} %d/%d/%d",day,month,year);
SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
SendClientMessage(giveplayerid,COLOR_DBLUE,"{F3FF0 2}|___________[{F81414}BAN INFO{F3FF02}]___________|");
SendClientMessage(giveplayerid,COLOR_LIGHTRED,"* Forum: www.overs.ro/forum/");
SendClientMessage(giveplayerid,COLOR_WHITE,"{F3FF0 2}* Apasa F8 pentru a face poza pentru cererea unban!");
PlayerInfo[giveplayerid][pLock] = 1;
Ban(giveplayerid);
return 1;
}
}//not connected
}
else
{
// format(string, sizeof(string), " Acest player nu este online %d. Sau nu ai acces la comanda! BAFTA!", giveplayerid);
// SendClientMessage(playerid, COLOR_GRAD1, string);
format(string, sizeof(string),"AdmWarn: id(%d) %s incearca sa baneze pe id(%d) %s !!!", playerid, sendername, giveplayerid, giveplayer);
ABroadCast(COLOR_RED, string, 6000);
}
}
return 1;
}
if(strcmp(cmd, "/ccban", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}Info{FFFFFF}: /ban [id] [motiv]");
return 1;
}
new playa;
playa = ReturnUser(tmp);
giveplayerid = ReturnUser(tmp);
if(PlayerBanned[playerid] == -1 && PlayerInfo[playerid][pAdminServer] < 5000)//report timer
{
SendClientMessage(playerid,COLOR_WHITE,"[{F50000}Protectie Server{FFFFFF}]: Poti da /kick /ban /warn doar o data la 3 minute!");
return 1;
}
PlayerBanned[playerid] = -1;
SetTimerEx("ResetBan", 180000, 0, "d", playerid);
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playa][pAdminServer] >= 6000)
{
SendClientMessage(playerid, COLOR_LIGHTRED, " Admini nu pot fi banati.");
format(string, 256, "{F3FF02}ATENTIE: %s a incercat comanda /ban pe %s. A primit automat Admin 0.", sendername, giveplayer);
ABroadCast(COLOR_YELLOW,string,1);
PlayerInfo[playerid][pAdminServer] = 0;
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdminServer] >= 1337)
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
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}Info{FFFFFF}: /ban [id] [motiv]");
return 1;
}
ClearChat();
new year, month,day;
getdate(year, month, day);
format(string, sizeof(string), "AdmCmd: %s a primit ban de la %s. Motiv: %s (banned) (%d-%d-%d)", giveplayer, sendername, (result),month,day,year);
BanLog(string);
format(string, sizeof(string), "AdmCmd: %s a primit ban de la %s. Motiv: %s (banned)", giveplayer, sendername, (result));
SendClientMessageToAll(COLOR_LIGHTRED, string);
new plrIP[16];
GetPlayerIp(giveplayerid,plrIP, sizeof(plrIP));
SendClientMessage(giveplayerid,COLOR_DBLUE,"{F3FF0 2}|___________[{F81414}BAN INFO{F3FF02}]___________|");
format(string, sizeof(string), "Numele tau:{FFFFFF} %s.",giveplayer);
SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "IP-ul tau:{FFFFFF} %s.",plrIP);
SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "Ai fost banat de:{FFFFFF} %s.",sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "Motiv:{FFFFFF} %s.",(result));
SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "Data:{FFFFFF} %d/%d/%d",day,month,year);
SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
SendClientMessage(giveplayerid,COLOR_DBLUE,"{F3FF0 2}|___________[{F81414}BAN INFO{F3FF02}]___________|");
SendClientMessage(giveplayerid,COLOR_LIGHTRED,"* Forum: www.overs.ro/forum/");
SendClientMessage(giveplayerid,COLOR_WHITE,"{F3FF0 2}* Apasa F8 pentru a face poza pentru cererea unban!");
PlayerInfo[giveplayerid][pLock] = 1;
Ban(giveplayerid);
return 1;
}
}//not connected
}
else
{
// format(string, sizeof(string), " Acest player nu este online %d. Sau nu ai acces la comanda! BAFTA!", giveplayerid);
// SendClientMessage(playerid, COLOR_GRAD1, string);
format(string, sizeof(string),"AdmWarn: id(%d) %s incearca sa baneze pe id(%d) %s !!!", playerid, sendername, giveplayerid, giveplayer);
ABroadCast(COLOR_RED, string, 6000);
}
}
return 1;
}



Uitati aici scriptul de la ban.
Reply
#9



Aici e BanEX
Reply
#10

Probabil ti-ai editat User file direct pe host si ti s-a buguit parola, iar ca urmare vreun player ti-a intrat pe contu tau si-a dat admin ascuns pe alt cont adica mai mare decat 1339( sau cat e la tine onwer level) si a inceput sa baneze alti jucatori. Cand vrei sa iti da admin pe un cont de pe host, descarca intai fisieru userului in PC, edita-l si dupa urca-l din nou pe host inlocuindu-l pe cel actual.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)