- 0
Cum fac sa mearga ban pe ip?
-
Similar Content
-
- 0 replies
- 198 views
-
- 3 replies
- 523 views
-
- 3 replies
- 240 views
-
- 5 replies
- 413 views
-
- 0 replies
- 529 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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!
Link to comment
Share on other sites
7 answers to this question
Recommended Posts