14.06.2015, 15:07
hi guys i m having problem when i login into my server i need to type /adminlogin password but i want to change it to login box any 1 can help
CMD:adminlogin(playerid, params[])
{
if(pInfo[playerid][Adminlevel] < 1) return SCM(playerid,COLOR_ERROR,""ERROR_MESSAGE"");
if(pInfo[playerid][LoggedInAsAdmin]) return SCM(playerid, COLOR_ERROR, "You have already logged in as admin");
if(!strcmp(params, "password", true))
{
pInfo[playerid][LoggedInAsAdmin] = true;
SCM(playerid, -1, "You have successfully logged in as admin!");
}
else
{
return Kick(playerid);
}
return 1;
}
CMD:adminlogin(playerid, params[])
{
if(pInfo[playerid][Adminlevel] < 1) return SCM(playerid,COLOR_ERROR,""ERROR_MESSAGE"");
if(pInfo[playerid][LoggedInAsAdmin]) return SCM(playerid, COLOR_ERROR, "You have already logged in as admin");
if(!strcmp(params, "password", true))
{
pInfo[playerid][LoggedInAsAdmin] = true;
SCM(playerid, -1, "You have successfully logged in as admin!");
}
else
{
return Kick(playerid);
}
return 1;
}