Advertisement
Guest User

Untitled

a guest
May 26th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. CMD:unban(playerid, params[])
  2. {
  3. if(PlayerInfo[playerid][pAdmin] >= 1336)
  4. {
  5. new string[128], id[25];
  6. if(sscanf(params, "s[25]", id)) return SCM(playerid,-1, "/unban [ Ime_Prezime na Igracot ]");
  7. format(string,sizeof(string),"Smetke/%s.ini",id);
  8. if(!fexist(string)) return SCM(playerid,-1, "{FF4040}GRESKA:{FFFFFF}Toj igrac ne e pronajden vo bazata.");
  9. new INI:File = INI_Open(string);
  10. INI_SetTag(File,"data");
  11. INI_WriteInt(File, "Ban", 0);
  12. INI_Close(File);
  13. SCM(playerid, -1, "Igracot e unbaniran.");
  14. }
  15. return 1;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement