Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:unbanip(playerid,params[])
- {
- if(PlayerInfo[playerid][Level] < 2) return SendClientMessage(playerid,-1,"Nis' admin level 2");
- new ip[16],string2[65],string3[128];
- if(sscanf(params,"s[16]",ip)) return SendClientMessage(playerid,-1,"Korisi: /unbanip [IP]");
- GetPlayerIp(playerid,ip,16);
- format(string2,sizeof(string2),"unbanip %s",tmp);
- SendRconCommand(string2);
- format(string3, 128, "Administrator %s je unbanao IP %s", GetN(playerid),ip);
- ABroadCast(COLOR_RED,string3,1);
- return 1;
- }
- GetN(playerid)
- {
- new a[MAX_PLAYER_NAME];
- GetPlayerName(playerid,a,MAX_PLAYER_NAME);
- return a;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement