11.06.2014, 14:33
hey dude here is Solution I m sure it will help !!
PHP код:
switch( dialogid )
{
case DIALOG_REGISTER:
{
if (!response) return Kick(playerid);
if(response)
{
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""COL_WHITE"Registering...",""COL_RED"You have entered an invalid password.\n"COL_WHITE"Type your password below to register a new account.","Register","Quit");
Player[playerid][pAdmin] = 0; // add this Line
INI_SetTag(File,"data");
INI_WriteInt(File,"Username",MAX_PLAYER_NAME);
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"Cash",0);
INI_WriteString(File, "Ip", IP);
INI_WriteInt(File,"Score",0);
INI_WriteInt(File,"Admin",0);
INI_WriteInt(File,"Kills",0);
INI_WriteInt(File,"Deaths",0);
INI_WriteInt(File,"Banned",0);
INI_WriteInt(File,"BannedBy",0);
INI_WriteInt(File,"BannedName",0);
INI_WriteInt(File,"BannedFor",0);
INI_Close(File);