- 0
Problem? UNBAN!
-
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
Addons
'Nea?a,
Am 2 comenzi care nu func?ioneaz? de nicio culoare.
/unbanip:
PAWN Code : [select]
[pawn]if(strcmp(cmd,"/unbanip",true)==0)
{
if(PlayerInfo[playerid][pAdmin] >= 5)
{
tmp = strtok(cmdtext,idx);
if(!strlen(tmp))
{
SendClientMessage(playerid,COLOR_GRAD1,"Foloseste: /unbanip [jucator ip]");
return 1;
}
format(string,sizeof(string),"bans/%s.ini",tmp);
fremove(string);
format(string,sizeof(string),"unbanip %s",tmp);
SendRconCommand(string);
SendRconCommand("reloadbans");
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "AdmCmd: %s a scos ban-ul de pe ip-ul "ALB"%s", sendername, tmp);
ABroadCast(0xFF5555FF,string,1);
}
return 1;
}[/pawn]
/unban:
PAWN Code : [select]
[pawn]if (strcmp(cmd, "/unban", true)==0)
{
giveplayerid = ReturnUser(tmp);
if(PlayerInfo[playerid][pAdmin] >= 6)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, ""ALBASTRU2"Tasteaza: "ALB"/unban [PlayerName]");
return 1;
}
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "AdmCmd: %s i-a scos ban-ul lui %s", sendername,tmp);
ABroadCast(0xFF0000FF,string,1);
format(string, 256, "AdmCmd: %s i-a scos ban-ul lui %s", sendername,tmp);
printf(string);
SendClientMessage(playerid, COLOR_GRAD1, "Jucator unbanat!");
}
return 1;
}
[/pawn]
Le-am modificat în toate modurile, nu ?tiu ce s? le mai fac.
Dac? ave?i alte comenzi mai bune, nu m-a? sup?ra s? le oferi?i (DCMD/ZCMD)!
Thanks!
3 answers to this question
Recommended Posts