30.05.2014, 21:20
Here
PHP код:
case DIALOG_REGISTER:
{
if (!response) return Kick(playerid);
if(response)
{
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, ""COL_WHITE"Registering...",""COL_RED"You have not entered a password.\n"COL_WHITE"Type a password below to register a new account.","Register","Quit");
WP_Hash(pVariables[playerid][pPassword], 129, inputtext);
pVariables[playerid][pMoney] = 1500;
mysql_format(mysql, query, sizeof(query), "INSERT INTO `users` (`Username`, `Password`, `IP`, `Admin`, `Helper`, `VIP`, `Money`, `PosX`, `PosY`, `PosZ`, `Faction`, `FRank`, `Family`, `Medical`) VALUES ('%s', '%s', '%s', 0, 0, 0, 1500, '%f', '%f', '%f', '0', '0', '0', '0')", Name[playerid], pVariables[playerid][pPassword], IP[playerid], Spawn_X, Spawn_Y, Spawn_Z);
mysql_tquery(mysql, query, "OnAccountRegister", "i", playerid);
SendClientMessage(playerid, COL_BLUE, "----Credits----");
SendClientMessage(playerid, COL_BLUE, "Scripted by Connor and Tony ( All rights reserved © SF-RP )");
SendClientMessage(playerid, COL_BLUE, "Mappings - Damon");
}