COMMAND:unban(playerid,params[])
{
new tmp[256], Index, file[256];
tmp = strtok(params,Index);
if(PlayerInfo[playerid][Admin] < 3) return SendClientMessage(playerid,COLOR_ERROR,"You need to be level 3 to use this command!");
if(!strlen(tmp)) return
SendClientMessage(playerid,COLOR_ERROR , "{6EF83C}Usage:{FFFFFF} /unban [Player Name]");
format(file,sizeof(file),"ZeroAdmin/Zero_Info.ini");
new ip[256],string[256];
ip = dini_Get(file,tmp);
format(string,256,"unbanip %s",ip);
SendRconCommand(string);
return 1;
}
mám tento kod v dini ale ako dám do INI suboru toto????
format(file,sizeof(file),"ZeroAdmin/Zero_Info.ini");
new ip[256],string[256];
ip = dini_Get(file,tmp);
format(string,256,"unbanip %s",ip);
SendRconCommand(string);
Dotaz
Mivčo 90
mám tento kod v dini ale ako dám do INI suboru toto????
Link to comment
Share on other sites
2 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now