#include static PlayerText:PlayerTD[MAX_PLAYERS][40]; static bool:IsSelectionTDShowing[MAX_PLAYERS]; static SelSQLID[MAX_PLAYERS][MAX_PLAYER_CHARACTERS]; static SelFirstName[MAX_PLAYERS][MAX_PLAYER_CHARACTERS][MAX_PLAYER_NAME]; static SelLastName[MAX_PLAYERS][MAX_PLAYER_CHARACTERS][MAX_PLAYER_NAME]; static SelFullName[MAX_PLAYERS][MAX_PLAYER_CHARACTERS][MAX_PLAYER_NAME]; static SelSkin[MAX_PLAYERS][MAX_PLAYER_CHARACTERS]; static SelAge[MAX_PLAYERS][MAX_PLAYER_CHARACTERS]; static SelSex[MAX_PLAYERS][MAX_PLAYER_CHARACTERS]; static ViewingCharacter[MAX_PLAYERS]; hook OnPlayerConnect(playerid) { new zeroVal[MAX_PLAYER_CHARACTERS]; SelSQLID[playerid] = zeroVal; SelSkin[playerid] = zeroVal; SelAge[playerid] = zeroVal; SelSex[playerid] = zeroVal; ViewingCharacter[playerid] = 0; IsSelectionTDShowing[playerid] = false; PlayerTD[playerid][0] = CreatePlayerTextDraw(playerid, 17.500000, 271.000000, "mdl-4001:menu3"); PlayerTextDrawFont(playerid, PlayerTD[playerid][0], 4); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][0], 0.600000, 2.000000); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][0], 130.500000, 160.500000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][0], 1); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][0], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][0], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][0], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][0], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][0], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][0], 1); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][0], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][0], 0); PlayerTD[playerid][1] = CreatePlayerTextDraw(playerid, 17.000000, 215.000000, "WELCOME,"); PlayerTextDrawFont(playerid, PlayerTD[playerid][1], 1); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][1], 0.337498, 1.500000); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][1], 400.000000, 17.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][1], 0); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][1], 1); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][1], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][1], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][1], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][1], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][1], 0); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][1], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][1], 0); PlayerTD[playerid][2] = CreatePlayerTextDraw(playerid, 77.000000, 215.000000, "~h~PLAYERID~w~!"); PlayerTextDrawFont(playerid, PlayerTD[playerid][2], 1); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][2], 0.337498, 1.500000); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][2], 400.000000, 17.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][2], 0); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][2], 1); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][2], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][2], -16776961); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][2], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][2], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][2], 0); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][2], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][2], 0); PlayerTD[playerid][3] = CreatePlayerTextDraw(playerid, 16.000000, 230.000000, "SELECT A CHARACTER"); PlayerTextDrawFont(playerid, PlayerTD[playerid][3], 1); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][3], 0.395830, 1.599997); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][3], 400.000000, 17.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][3], 0); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][3], 1); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][3], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][3], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][3], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][3], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][3], 0); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][3], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][3], 0); PlayerTD[playerid][4] = CreatePlayerTextDraw(playerid, -2.000000, 204.000000, "mdl-4001:menu1"); PlayerTextDrawFont(playerid, PlayerTD[playerid][4], 4); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][4], 0.600000, 2.000000); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][4], 169.000000, 115.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][4], 1); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][4], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][4], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][4], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][4], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][4], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][4], 1); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][4], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][4], 0); PlayerTD[playerid][5] = CreatePlayerTextDraw(playerid, -2.000000, 211.000000, "mdl-4001:menu2"); PlayerTextDrawFont(playerid, PlayerTD[playerid][5], 4); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][5], 0.600000, 2.000000); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][5], 171.000000, 102.500000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][5], 1); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][5], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][5], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][5], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][5], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][5], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][5], 1); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][5], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][5], 0); PlayerTD[playerid][6] = CreatePlayerTextDraw(playerid, 26.000000, 394.000000, "mdl-4001:menu5test"); PlayerTextDrawFont(playerid, PlayerTD[playerid][6], 4); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][6], 0.600000, 2.000000); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][6], 25.500000, 30.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][6], 1); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][6], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][6], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][6], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][6], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][6], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][6], 1); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][6], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][6], 1); PlayerTD[playerid][7] = CreatePlayerTextDraw(playerid, 112.000000, 394.000000, "mdl-4001:menu6test"); PlayerTextDrawFont(playerid, PlayerTD[playerid][7], 4); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][7], 0.600000, 2.000000); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][7], 25.500000, 30.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][7], 1); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][7], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][7], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][7], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][7], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][7], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][7], 1); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][7], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][7], 1); PlayerTD[playerid][8] = CreatePlayerTextDraw(playerid, 53.000000, 392.000000, "mdl-4001:menu7test"); PlayerTextDrawFont(playerid, PlayerTD[playerid][8], 4); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][8], 0.600000, 2.000000); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][8], 57.500000, 32.500000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][8], 1); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][8], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][8], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][8], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][8], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][8], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][8], 1); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][8], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][8], 1); PlayerTD[playerid][9] = CreatePlayerTextDraw(playerid, 225.000000, 303.000000, "mdl-4001:menu8"); PlayerTextDrawFont(playerid, PlayerTD[playerid][9], 4); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][9], 0.600000, 2.000000); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][9], 195.000000, 127.500000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][9], 1); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][9], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][9], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][9], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][9], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][9], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][9], 1); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][9], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][9], 0); PlayerTD[playerid][10] = CreatePlayerTextDraw(playerid, 225.000000, 303.000000, "mdl-4001:menu10"); PlayerTextDrawFont(playerid, PlayerTD[playerid][10], 4); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][10], 0.600000, 2.000000); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][10], 195.000000, 127.500000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][10], 1); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][10], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][10], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][10], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][10], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][10], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][10], 1); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][10], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][10], 0); PlayerTD[playerid][11] = CreatePlayerTextDraw(playerid, 225.000000, 299.000000, "mdl-4001:menu9"); PlayerTextDrawFont(playerid, PlayerTD[playerid][11], 4); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][11], 0.600000, 2.000000); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][11], 195.000000, 27.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][11], 1); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][11], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][11], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][11], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][11], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][11], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][11], 1); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][11], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][11], 0); PlayerTD[playerid][12] = CreatePlayerTextDraw(playerid, 225.000000, 303.000000, "mdl-4001:menu10"); PlayerTextDrawFont(playerid, PlayerTD[playerid][12], 4); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][12], 0.600000, 2.000000); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][12], 195.000000, 127.500000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][12], 1); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][12], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][12], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][12], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][12], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][12], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][12], 1); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][12], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][12], 0); PlayerTD[playerid][13] = CreatePlayerTextDraw(playerid, 219.000000, 256.000000, "mdl-4001:menu11"); PlayerTextDrawFont(playerid, PlayerTD[playerid][13], 4); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][13], 0.600000, 2.000000); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][13], 200.000000, 109.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][13], 1); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][13], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][13], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][13], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][13], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][13], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][13], 1); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][13], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][13], 0); PlayerTD[playerid][14] = CreatePlayerTextDraw(playerid, 239.000000, 337.000000, "mdl-4001:menu12"); PlayerTextDrawFont(playerid, PlayerTD[playerid][14], 4); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][14], 0.600000, 2.000000); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][14], 40.000000, 50.500000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][14], 1); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][14], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][14], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][14], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][14], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][14], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][14], 1); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][14], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][14], 0); PlayerTD[playerid][15] = CreatePlayerTextDraw(playerid, 248.000000, 394.000000, "mdl-4001:menu13"); PlayerTextDrawFont(playerid, PlayerTD[playerid][15], 4); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][15], 0.600000, 2.000000); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][15], 21.500000, 25.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][15], 1); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][15], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][15], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][15], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][15], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][15], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][15], 1); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][15], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][15], 0); PlayerTD[playerid][16] = CreatePlayerTextDraw(playerid, 239.000000, 336.000000, "Preview_Model"); PlayerTextDrawFont(playerid, PlayerTD[playerid][16], 5); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][16], 0.600000, 2.000000); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][16], 38.000000, 48.500000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][16], 0); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][16], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][16], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][16], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][16], 0); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][16], 255); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][16], 0); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][16], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][16], 0); PlayerTextDrawSetPreviewModel(playerid, PlayerTD[playerid][16], 141); PlayerTextDrawSetPreviewRot(playerid, PlayerTD[playerid][16], 0.000000, 0.000000, 0.000000, 0.860000); PlayerTextDrawSetPreviewVehCol(playerid, PlayerTD[playerid][16], 1, 1); PlayerTD[playerid][17] = CreatePlayerTextDraw(playerid, 287.000000, 375.000000, "DOB"); PlayerTextDrawFont(playerid, PlayerTD[playerid][17], 1); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][17], 0.233327, 0.999997); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][17], 400.000000, 17.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][17], 0); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][17], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][17], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][17], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][17], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][17], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][17], 0); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][17], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][17], 0); PlayerTD[playerid][18] = CreatePlayerTextDraw(playerid, 287.000000, 352.000000, "LN"); PlayerTextDrawFont(playerid, PlayerTD[playerid][18], 1); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][18], 0.183329, 0.899999); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][18], 400.000000, 17.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][18], 0); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][18], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][18], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][18], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][18], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][18], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][18], 0); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][18], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][18], 0); PlayerTD[playerid][19] = CreatePlayerTextDraw(playerid, 287.000000, 362.000000, "FN"); PlayerTextDrawFont(playerid, PlayerTD[playerid][19], 1); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][19], 0.183329, 0.899999); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][19], 400.000000, 17.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][19], 0); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][19], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][19], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][19], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][19], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][19], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][19], 0); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][19], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][19], 0); PlayerTD[playerid][20] = CreatePlayerTextDraw(playerid, 286.000000, 336.000000, "ID"); PlayerTextDrawFont(playerid, PlayerTD[playerid][20], 1); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][20], 0.262497, 1.099997); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][20], 400.000000, 17.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][20], 0); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][20], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][20], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][20], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][20], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][20], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][20], 0); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][20], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][20], 0); PlayerTD[playerid][21] = CreatePlayerTextDraw(playerid, 312.000000, 336.000000, "00000000"); PlayerTextDrawFont(playerid, PlayerTD[playerid][21], 1); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][21], 0.183329, 0.899999); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][21], 400.000000, 17.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][21], 0); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][21], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][21], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][21], -1094795521); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][21], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][21], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][21], 0); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][21], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][21], 0); PlayerTD[playerid][22] = CreatePlayerTextDraw(playerid, 312.000000, 352.000000, "CENGIZ"); PlayerTextDrawFont(playerid, PlayerTD[playerid][22], 1); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][22], 0.183329, 0.899999); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][22], 400.000000, 17.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][22], 0); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][22], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][22], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][22], -1094795521); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][22], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][22], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][22], 0); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][22], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][22], 0); PlayerTD[playerid][23] = CreatePlayerTextDraw(playerid, 312.000000, 362.000000, "BUCAK"); PlayerTextDrawFont(playerid, PlayerTD[playerid][23], 1); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][23], 0.183329, 0.899999); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][23], 400.000000, 17.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][23], 0); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][23], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][23], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][23], -1094795521); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][23], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][23], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][23], 0); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][23], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][23], 0); PlayerTD[playerid][24] = CreatePlayerTextDraw(playerid, 312.000000, 376.000000, "0000"); PlayerTextDrawFont(playerid, PlayerTD[playerid][24], 1); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][24], 0.183329, 0.899999); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][24], 400.000000, 17.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][24], 0); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][24], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][24], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][24], -1094795521); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][24], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][24], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][24], 0); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][24], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][24], 0); PlayerTD[playerid][25] = CreatePlayerTextDraw(playerid, 350.000000, 331.000000, "mdl-4001:game1"); PlayerTextDrawFont(playerid, PlayerTD[playerid][25], 4); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][25], 0.600000, 2.000000); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][25], 56.500000, 59.500000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][25], 1); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][25], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][25], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][25], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][25], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][25], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][25], 1); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][25], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][25], 0); PlayerTD[playerid][26] = CreatePlayerTextDraw(playerid, 287.000000, 395.000000, "SEX"); PlayerTextDrawFont(playerid, PlayerTD[playerid][26], 1); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][26], 0.183329, 0.899999); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][26], 400.000000, 17.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][26], 0); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][26], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][26], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][26], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][26], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][26], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][26], 0); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][26], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][26], 0); PlayerTD[playerid][27] = CreatePlayerTextDraw(playerid, 287.000000, 410.000000, "HGT"); PlayerTextDrawFont(playerid, PlayerTD[playerid][27], 1); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][27], 0.183329, 0.899999); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][27], 400.000000, 17.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][27], 0); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][27], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][27], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][27], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][27], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][27], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][27], 0); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][27], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][27], 0); PlayerTD[playerid][28] = CreatePlayerTextDraw(playerid, 300.000000, 395.000000, "Male"); PlayerTextDrawFont(playerid, PlayerTD[playerid][28], 1); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][28], 0.183329, 0.899999); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][28], 400.000000, 17.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][28], 0); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][28], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][28], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][28], -1094795521); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][28], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][28], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][28], 0); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][28], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][28], 0); PlayerTD[playerid][29] = CreatePlayerTextDraw(playerid, 300.000000, 410.000000, "6.7"); PlayerTextDrawFont(playerid, PlayerTD[playerid][29], 1); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][29], 0.183329, 0.899999); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][29], 400.000000, 17.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][29], 0); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][29], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][29], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][29], -1094795521); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][29], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][29], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][29], 0); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][29], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][29], 0); PlayerTD[playerid][30] = CreatePlayerTextDraw(playerid, 324.000000, 395.000000, "HAIR"); PlayerTextDrawFont(playerid, PlayerTD[playerid][30], 1); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][30], 0.183329, 0.899999); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][30], 400.000000, 17.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][30], 0); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][30], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][30], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][30], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][30], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][30], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][30], 0); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][30], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][30], 0); PlayerTD[playerid][31] = CreatePlayerTextDraw(playerid, 340.000000, 395.000000, "Black"); PlayerTextDrawFont(playerid, PlayerTD[playerid][31], 1); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][31], 0.183329, 0.899999); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][31], 400.000000, 17.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][31], 0); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][31], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][31], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][31], -1094795521); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][31], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][31], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][31], 0); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][31], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][31], 0); PlayerTD[playerid][32] = CreatePlayerTextDraw(playerid, 368.000000, 395.000000, "EYES"); PlayerTextDrawFont(playerid, PlayerTD[playerid][32], 1); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][32], 0.183329, 0.899999); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][32], 400.000000, 17.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][32], 0); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][32], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][32], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][32], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][32], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][32], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][32], 0); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][32], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][32], 0); PlayerTD[playerid][33] = CreatePlayerTextDraw(playerid, 384.000000, 395.000000, "Dark"); PlayerTextDrawFont(playerid, PlayerTD[playerid][33], 1); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][33], 0.183329, 0.899999); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][33], 400.000000, 17.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][33], 0); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][33], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][33], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][33], -1094795521); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][33], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][33], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][33], 0); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][33], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][33], 0); PlayerTD[playerid][34] = CreatePlayerTextDraw(playerid, 324.000000, 410.000000, "WGT"); PlayerTextDrawFont(playerid, PlayerTD[playerid][34], 1); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][34], 0.183329, 0.899999); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][34], 400.000000, 17.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][34], 0); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][34], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][34], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][34], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][34], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][34], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][34], 0); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][34], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][34], 0); PlayerTD[playerid][35] = CreatePlayerTextDraw(playerid, 340.000000, 410.000000, "90"); PlayerTextDrawFont(playerid, PlayerTD[playerid][35], 1); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][35], 0.183329, 0.899999); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][35], 400.000000, 17.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][35], 0); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][35], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][35], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][35], -1094795521); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][35], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][35], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][35], 0); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][35], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][35], 0); PlayerTD[playerid][36] = CreatePlayerTextDraw(playerid, 27.000000, 300.000000, "mdl-4001:menu9"); PlayerTextDrawFont(playerid, PlayerTD[playerid][36], 4); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][36], 0.600000, 2.000000); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][36], 110.000000, 79.500000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][36], 1); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][36], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][36], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][36], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][36], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][36], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][36], 1); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][36], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][36], 0); PlayerTD[playerid][37] = CreatePlayerTextDraw(playerid, 27.000000, 300.000000, "mdl-4001:game3"); PlayerTextDrawFont(playerid, PlayerTD[playerid][37], 4); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][37], 0.600000, 2.000000); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][37], 110.000000, 79.500000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][37], 1); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][37], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][37], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][37], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][37], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][37], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][37], 1); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][37], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][37], 0); PlayerTD[playerid][38] = CreatePlayerTextDraw(playerid, -39.000000, 280.000000, "mdl-4001:game2"); PlayerTextDrawFont(playerid, PlayerTD[playerid][38], 4); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][38], 0.600000, 2.000000); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][38], 176.000000, 100.000000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][38], 1); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][38], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][38], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][38], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][38], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][38], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][38], 1); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][38], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][38], 0); PlayerTD[playerid][39] = CreatePlayerTextDraw(playerid, 52.000000, 331.000000, "mdl-4001:menu17"); PlayerTextDrawFont(playerid, PlayerTD[playerid][39], 4); PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][39], 0.600000, 2.000000); PlayerTextDrawTextSize(playerid, PlayerTD[playerid][39], 57.500000, 32.500000); PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][39], 1); PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][39], 0); PlayerTextDrawAlignment(playerid, PlayerTD[playerid][39], 1); PlayerTextDrawColor(playerid, PlayerTD[playerid][39], -1); PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][39], 255); PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][39], 50); PlayerTextDrawUseBox(playerid, PlayerTD[playerid][39], 1); PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][39], 1); PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][39], 1); } hook OnPlayerDisconnect(playerid, reason) { SelectCharacter_HideMenu(playerid); for(new i; i < 40; i++) { PlayerTextDrawDestroy(playerid, PlayerTD[playerid][i]); } } hook OnPlayerLogin(playerid) { inline const OnCharacterSQLIDLoaded() { new rows = cache_num_rows(); if(rows) { for(new i = 0; i < rows; i++) { cache_get_value_name_int(i, "id", SelSQLID[playerid][i]); cache_get_value_name(i, "name", SelFullName[playerid][i]); cache_get_value_name_int(i, "skin", SelSkin[playerid][i]); cache_get_value_name_int(i, "age", SelAge[playerid][i]); cache_get_value_name_int(i, "gender", SelSex[playerid][i]); new underscore = strfind(SelFullName[playerid][i], "_"); strmid(SelFirstName[playerid][i], SelFullName[playerid][i], 0, underscore); strmid(SelLastName[playerid][i], SelFullName[playerid][i], underscore + 1, MAX_PLAYER_NAME); } SelectCharacter_ShowMenu(playerid, 0); } else Character_Menu(playerid); } MySQL_TQueryInline(MySQL_GetHandle(), using inline OnCharacterSQLIDLoaded, "SELECT skin, id, name, age, gender FROM characters WHERE master_id = %d LIMIT %d", Account_GetSQLID(playerid), MAX_PLAYER_CHARACTERS); } hook OnPlayerClickPlayerTD(playerid, PlayerText:playertextid) { if(IsSelectionTDShowing[playerid]) { new slotid = ViewingCharacter[playerid]; if(playertextid == PlayerTD[playerid][6]) // left { if(slotid == 0) return 0; slotid --; SelectCharacter_ShowMenu(playerid, slotid); } else if(playertextid == PlayerTD[playerid][7]) // right { if(slotid == MAX_PLAYER_CHARACTERS - 1) return 0; if(SelSQLID[playerid][slotid + 1] == 0) return 0; slotid ++; SelectCharacter_ShowMenu(playerid, slotid); } else if(playertextid == PlayerTD[playerid][8]) { if(SelSQLID[playerid][slotid] == 0) return 0; Character_SetSQLID(playerid, SelSQLID[playerid][slotid]); Character_SetName(playerid, SelFullName[playerid][slotid]); SelectCharacter_HideMenu(playerid); Character_Load(playerid); } } return 1; } hook OnPlayerClickTextDraw(playerid, Text:clickedid) { if(IsSelectionTDShowing[playerid]) { if(clickedid == INVALID_TEXT_DRAW) { SendErrorMessage(playerid, "You canceled character selection."); Kick(playerid); } } } SelectCharacter_ShowMenu(playerid, slotid) { ViewingCharacter[playerid] = slotid; PlayerTextDrawSetString(playerid, PlayerTD[playerid][2], Account_GetName(playerid)); PlayerTextDrawSetString(playerid, PlayerTD[playerid][22], SelFirstName[playerid][slotid]); PlayerTextDrawSetString(playerid, PlayerTD[playerid][23], SelLastName[playerid][slotid]); PlayerTextDrawSetString(playerid, PlayerTD[playerid][24], va_return("%d", 2022 - SelAge[playerid][slotid])); PlayerTextDrawSetString(playerid, PlayerTD[playerid][21], va_return("%d", SelSQLID[playerid][slotid])); PlayerTextDrawSetPreviewModel(playerid, PlayerTD[playerid][16], SelSkin[playerid][slotid]); if(!IsSelectionTDShowing[playerid]) { SelectTextDraw(playerid, 0xB3D9FFFF); for(new i; i < 40; i++) { PlayerTextDrawShow(playerid, PlayerTD[playerid][i]); } IsSelectionTDShowing[playerid] = true; } } SelectCharacter_HideMenu(playerid) { if(IsSelectionTDShowing[playerid]) { CancelSelectTextDraw(playerid); for(new i; i < 40; i++) { PlayerTextDrawHide(playerid, PlayerTD[playerid][i]); } IsSelectionTDShowing[playerid] = false; } }