public OnPlayerStreamIn(playerid, forplayerid)
{
UpdatePlayerSyncAks(playerid, forplayerid);
return 1;
}
stock HintIcon(playerid, number = 0)
{
if IsPlayerCefInitiliazed(playerid) *then
{
if(number == 12) return 1;
new BitStream:bsa = BS_New();
static const ida[12][] =
{
{220, 127, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 72, 66, 23, 182, 221, 68, 250, 119, 236, 196, 112, 206, 88, 65, 7, 0, 0, 0, 105, 99, 111, 110, 95, 50, 53, 0, 0, 0, 0},
{220, 127, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 72, 66, 221, 117, 145, 68, 189, 94, 219, 196, 84, 227, 89, 65, 7, 0, 0, 0, 105, 99, 111, 110, 95, 50, 53, 0, 0, 0, 0},
{220, 127, 2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 72, 66, 147, 194, 163, 68, 86, 191, 164, 67, 20, 80, 159, 65, 7, 0, 0, 0, 105, 99, 111, 110, 95, 50, 53, 0, 0, 0, 0},
{220, 127, 3, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 72, 66, 27, 154, 29, 197, 227, 199, 139, 193, 235, 226, 204, 65, 7, 0, 0, 0, 105, 99, 111, 110, 95, 50, 53, 0, 0, 0, 0},
{220, 127, 4, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 72, 66, 25, 211, 188, 194, 180, 166, 153, 68, 7, 240, 157, 65, 7, 0, 0, 0, 105, 99, 111, 110, 95, 50, 53, 0, 0, 0, 0},
{220, 127, 5, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200, 66, 94, 45, 142, 68, 181, 55, 186, 196, 26, 192, 124, 65, 7, 0, 0, 0, 105, 99, 111, 110, 95, 51, 49, 0, 0, 0, 0},
{220, 127, 6, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200, 66, 90, 213, 28, 197, 19, 242, 77, 192, 243, 31, 206, 65, 7, 0, 0, 0, 105, 99, 111, 110, 95, 51, 49, 0, 0, 0, 0},
{220, 127, 7, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200, 65, 182, 79, 107, 68, 161, 0, 193, 196, 5, 163, 11, 66, 7, 0, 0, 0, 105, 99, 111, 110, 95, 49, 55, 0, 0, 0, 0},
{220, 127, 8, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200, 65, 116, 25, 107, 68, 200, 1, 190, 196, 21, 163, 11, 66, 7, 0, 0, 0, 105, 99, 111, 110, 95, 49, 55, 0, 0, 0, 0},
{220, 127, 9, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 92, 66, 252, 109, 155, 68, 12, 116, 227, 196, 144, 160, 86, 65, 7, 0, 0, 0, 105, 99, 111, 110, 95, 50, 51, 0, 0, 0, 0},
{220, 127, 10, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 92, 66, 123, 193, 47, 69, 4, 22, 161, 68, 0, 0, 44, 65, 7, 0, 0, 0, 105, 99, 111, 110, 95, 50, 51, 0, 0, 0, 0},
{220, 127, 11, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 92, 66, 105, 91, 9, 197, 199, 19, 146, 67, 3, 120, 12, 66, 7, 0, 0, 0, 105, 99, 111, 110, 95, 50, 51, 0, 0, 0, 0}
};
for(new i; i < 46; i++) BS_WriteValue(bsa, PR_UINT8, ida[number][i]);
PR_SendPacket(bsa, playerid);
BS_Delete(bsa);
return HintIcon(playerid, number+1);
}
return 1;
}
stock Player_Register(playerid, password[], email[], reftype[], referal[])
{
if !GetString(reftype, "null") *then mysql_tquery(mysql, global_str, "MysqlCheckNickReferal", "ds", playerid, referal);
else SetString(RegReferal[playerid],"No Referal");
if !GetString(email, "null") *then SetString(PlayerMail[playerid], email), mysql_escape_string(email, PlayerMail[playerid]);
else SetString(PlayerMail[playerid],"No Mail Adress"), mysql_escape_string("No Mail Adress", PlayerMail[playerid]);
mysql_escape_string(password, RegPass[playerid]);
ExecuteEvent(playerid, 0, "window.executeEvent('event.setActiveView', '[\"Auth\"]');");
ExecuteEvent(playerid, 0, (str_f("window.executeEvent('event.auth.initializeServerInformation', '[{ \"id\": 1, \"title\": \"%s\", \"flag\": \"http://arizona-recovery.react.domains/desktop/resources/icons/arizona/20.png\", \"online\": %i, \"status\": \"good\", \"username\": \"%s\", \"password\": \"\", \"remember\": false }]');", Mode_City, Iter_Count(Player), PN(playerid))));
ExecuteEvent(playerid, 0, "window.executeEvent('event.auth.initializeCharacterEditor', '[ null ]');");
OnFocusBrowser(playerid, 0, true);
}
stock Player_FinishRegister(playerid, sex[], race[], skinid)
{
if IsPlayerCefInitiliazed(playerid) *then
{
if GetString(sex, "man") *then RegSex[playerid] = 1;
else RegSex[playerid] = 2;
if GetString(race, "white") *then RegRace[playerid] = 0;
else RegRace[playerid] = 1;
if RegSex[playerid] == 1 *then PI[playerid][pSkin] = MBomzSkins[RegRace[playerid]][skinid];
else PI[playerid][pSkin] = GBomzSkins[RegRace[playerid]][skinid];
mysql_tquery(mysql,(str_f("SELECT `ID` FROM accounts WHERE NickName = BINARY('%s') LIMIT 1;",PN(playerid))),"OnPlayerRegister","ds",playerid,RegPass[playerid]);
}
}