admin login box - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: admin login box (
/showthread.php?tid=577839)
admin login box -
silentl747 - 14.06.2015
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;
}
Re: admin login box -
DarkLored - 14.06.2015
Use ShowPlayerDialog function
https://sampwiki.blast.hk/wiki/ShowPlayerDialog