- 0
Cum fac sa mearga ban pe ip?
-
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
Abramovic
Am o problema.. cand dau ban pe ip baneaza clasa.. si apoi nu mai intra toti cei cu acea clasa.
Am acest script.
[pawn]stock RangeBan(playerid)
{
new string[128];
if(!IsPlayerConnected(playerid)) return 0;
new total[32],ip[32];
GetPlayerIp(playerid, ip, sizeof(ip));
new cnt;
for(new i=0;i<strlen(ip);i++)
{
if(ip == '.') cnt++;
if(cnt == 2)
{
i++;
strdel(ip, i, strlen(ip));
format(total,sizeof(total),"%s*.*",ip);
}
}
format(string, sizeof(string),"banip %s",total);
SendRconCommand(string);
SendRconCommand("reloadbans");
return 1;
}[/pawn]
Cum fac sa baneze corect si sa intre si restu de jucatori ? Un exemplu de script ar fi bun.. banuiesc ca nu e greu.
Multumesc celor care raspund si incearca sa ma ajute! x10 Thanks!
7 answers to this question
Recommended Posts