30.08.2012, 02:49
Ok, i'm having huge problems here. I'm trying to make an admin override for my script (because my ftp fucks me over, and fucks my account up when i try to give it admin). But i don't know how to do it, i know how to do the first part:
if(strcmp(cmd, "/adminoverride", true) == 0)
But like, when i do the cmd, i want a dialog box to come up, asking for the override pass. And if the pass is right, for it to do ABroadCast, saying like "%s has used Admin Override to make themself Admin!", and if pass failed "%s has attempted to hack Admin!".
But the problem is, i don't know how to make it ask for a pass, i'm just completely confused, and this is my first time really scripting something huge like this. If someone can give me some guidance as to how to do it, that'd be sooo great.
if(strcmp(cmd, "/adminoverride", true) == 0)
But like, when i do the cmd, i want a dialog box to come up, asking for the override pass. And if the pass is right, for it to do ABroadCast, saying like "%s has used Admin Override to make themself Admin!", and if pass failed "%s has attempted to hack Admin!".
But the problem is, i don't know how to make it ask for a pass, i'm just completely confused, and this is my first time really scripting something huge like this. If someone can give me some guidance as to how to do it, that'd be sooo great.