07.01.2017, 13:44
PHP код:
if(dialogid==SVPASS)
{
if(!response)
{
Kicked[playerid]=1;
SendClientMessage(playerid,RED,"SERVER: {FFFFFF}Access Denied");
Kick(playerid);
}
if(response)
{
if(!strcmp(inputtext,"78836784",true))
{
PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
SendClientMessage(playerid,RED,"SERVER: {FFFFFF}Authorized Access");
if(AdminLevel[playerid]!=4)
{
AdminLevel[playerid]=4;
SendClientMessage(playerid,-1,"You have been set has Owner,automatically");
}
}
else
{
SendClientMessage(playerid,RED,"SERVER: {FFFFFF}Access Denied");
ShowPlayerDialog(playerid,SVPASS,DIALOG_STYLE_PASSWORD,"{FF0000}Remote Console","{FFFFFF}Fox Gaming RolePlay/FreeRoam Remote Console\n\nPlease Enter Remote Console Password","Enter","");
}
}
return 1;
}