08.05.2014, 08:01
just try this
Код:
YCMD:unban(playerid, params[], help) { #pragma unused help if(P_Data[playerid][pAdmin] < 4) return SCM(playerid, COLOR_RED, "You need to be admin level 4 to use this!"); new name[48],string[64]; if(sscanf(params, "s[48]",name)) return SCM(playerid, COLOR_RED, "Usage: /unban [Player Name]"); format(string,sizeof(string),"%s.ini",name); fremove(string); SCM(playerid, COLOR_RED, "Player has been unbaned!"); SendRconCommand(string); SendRconCommand("reloadbans"); return 1; }