Advertisement
Guest User

[FS]Status em Textdraws

a guest
Feb 7th, 2014
2,009
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 27.11 KB | None | 0 0
  1. //[FS] totalmente feito por Higor_Gamer
  2. // Creditos Higor_Gamer
  3. // pode ate dizer que vc que fez mais na sua mente vc sabera que os creditos n e seu XD
  4. // faça bom aproveito desse [FS]
  5. // [FS] totalmente feito para www.DominioSamp.net
  6. // acesse www.DominioSamp.net
  7. // acesse www.DominioSamp.net
  8. #include <a_samp>
  9. #include sscanf2
  10. #include dini
  11. #pragma tabsize 0
  12. // acesse www.DominioSamp.net
  13. // acesse www.DominioSamp.net
  14. // acesse www.DominioSamp.net
  15. new PlayerText:Status0[MAX_PLAYERS];
  16. new PlayerText:Status1[MAX_PLAYERS];
  17. new PlayerText:Status2[MAX_PLAYERS];
  18. new PlayerText:Status3[MAX_PLAYERS];
  19. new PlayerText:Status4[MAX_PLAYERS];
  20. new PlayerText:Status5[MAX_PLAYERS];
  21. new PlayerText:Status6[MAX_PLAYERS];
  22. new PlayerText:Status7[MAX_PLAYERS];
  23. new PlayerText:Status8[MAX_PLAYERS];
  24. new PlayerText:Status9[MAX_PLAYERS];
  25. new PlayerText:Status10[MAX_PLAYERS];
  26. new PlayerText:Status11[MAX_PLAYERS];
  27. new PlayerText:Status12[MAX_PLAYERS];
  28. new PlayerText:Status13[MAX_PLAYERS];
  29. new PlayerText:Status14[MAX_PLAYERS];
  30. new PlayerText:Status15[MAX_PLAYERS];
  31. new PlayerText:Status16[MAX_PLAYERS];
  32. new PlayerText:Status17[MAX_PLAYERS];
  33. new PlayerText:Status18[MAX_PLAYERS];
  34. new PlayerText:Status19[MAX_PLAYERS];
  35. new PlayerText:Status20[MAX_PLAYERS];
  36. new PlayerText:Status21[MAX_PLAYERS];
  37. new PlayerText:Status22[MAX_PLAYERS];
  38. new PlayerText:Status23[MAX_PLAYERS];
  39. new PlayerText:Status24[MAX_PLAYERS];
  40. new PlayerText:Status25[MAX_PLAYERS];
  41. new PlayerText:Status26[MAX_PLAYERS];
  42. new PlayerText:Status27[MAX_PLAYERS];
  43.  
  44.  
  45. // acesse www.DominioSamp.net
  46. // acesse www.DominioSamp.net
  47. // acesse www.DominioSamp.net
  48. new DesbugarStatus[MAX_PLAYERS] = 0;
  49. #define COLOR_GREEN                                             0x33AA33AA
  50. #define Vermelho                                                0x33AA33AA
  51. #define PASTA_CONTAS                                            "/Contas/%s.ini"
  52. #define PASTA_VIPS "                                            /Vips/%s.ini"
  53. // acesse www.DominioSamp.net
  54. // acesse www.DominioSamp.net
  55. enum pInfo
  56. {
  57.     Sexo,
  58.     Grana,
  59.     pSkin,
  60.     _Faculdade,
  61.     _Level,
  62.     _EXP,
  63.     _SaldoBancario,
  64.     _CasouCom[MAX_PLAYER_NAME],
  65.     _Skin
  66. };
  67. // acesse www.DominioSamp.net
  68. // acesse www.DominioSamp.net
  69. new PlayerInfo[MAX_PLAYERS][pInfo];
  70. // acesse www.DominioSamp.net
  71. // acesse www.DominioSamp.net
  72. public OnPlayerRequestClass(playerid, classid)
  73. {
  74.     return 1;
  75. }
  76. // acesse www.DominioSamp.net
  77. // acesse www.DominioSamp.net
  78. public OnPlayerConnect(playerid)
  79. {
  80. SendClientMessage(playerid, -1,"fs /status criado por Higor_Gamer");
  81. return 1;
  82. }
  83. // acesse www.DominioSamp.net
  84. // acesse www.DominioSamp.net
  85. public OnPlayerCommandText(playerid, cmdtext[])
  86. {
  87. new cmd[250];
  88. new file2[128];
  89. // acesse www.DominioSamp.net
  90. // acesse www.DominioSamp.net
  91. // acesse www.DominioSamp.net
  92.     if ( strcmp( cmdtext, "/skype", true)   == 0)
  93.     {
  94.     SendClientMessage(playerid, -1,"fs /status criado por Higor_Gamer");
  95.     ShowPlayerDialog(playerid, 19340, DIALOG_STYLE_INPUT, "Sistema de skype Higor_Gamer", "Digite Seu Skype:", "Adicionar", "Cancelar");
  96.     return 1;
  97.     }
  98.     if(strcmp("/status", cmd, true) == 0)
  99.     {
  100.         new plid;
  101.         LoadStatus(playerid);
  102.         DesbugarStatus[playerid] = 1;
  103.         if(sscanf(cmdtext, "s[8]u", cmd, plid))
  104.         {
  105.             SendClientMessage(playerid, COLOR_GREEN, "Use /status [id]");
  106.             return 1;
  107.         }
  108.         if(IsPlayerConnected(plid))
  109.         {
  110.             SendClientMessage(playerid, -1,"fs /status criado por Higor_Gamer");
  111.             new Skype[41], Dinheiro[20], Banco[20], Nick[41], casado[30], VipDay[50], Level[20], Estudo[20];
  112.  
  113.             new pname[MAX_PLAYER_NAME];
  114.             GetPlayerName(plid, pname, MAX_PLAYER_NAME);
  115.             format(file2, sizeof(file2), PASTA_CONTAS, pname);
  116.  
  117.             format(Skype, sizeof(Skype), "Skype: %s", dini_Get(file2, "Skype"));// aki vc muda para a funçao que geta o skype do player
  118.             PlayerTextDrawSetString(playerid, Status7[playerid], Skype);
  119.  
  120.             format(Dinheiro, sizeof(Dinheiro), "Dinheiro: $%d", GetPlayerMoney(plid));// aki vc muda para a funçao que geta o dinheiro do player
  121.             PlayerTextDrawSetString(playerid, Status3[playerid], Dinheiro);
  122.  
  123.             format(Banco, sizeof(Banco), "Banco: $%d", PlayerInfo[plid][_SaldoBancario]);// aki vc muda para a funçao que geta o o valor da conta bancaria do player
  124.             PlayerTextDrawSetString(playerid, Status4[playerid], Banco);
  125.  
  126.             format(Nick, sizeof(Nick), "Nick: %s", GetPlayerNameEx(plid));// aki vc muda para a funçao que geta o nome do player
  127.             PlayerTextDrawSetString(playerid, Status2[playerid], Nick);
  128.  
  129.             format(casado, sizeof(casado), "Casado: %s", PlayerInfo[plid][_CasouCom]);// aki vc muda para a funçao que geta o casamento do player
  130.             PlayerTextDrawSetString(playerid, Status5[playerid], casado);
  131.  
  132.             format(VipDay, sizeof(VipDay), "Dias Vip: %d", GetVIPDays(plid));// aki vc muda para a funçao que geta o vip do player
  133.             PlayerTextDrawSetString(playerid, Status6[playerid], VipDay);
  134.  
  135.             format(Level, sizeof(Level), "Level: %d", PlayerInfo[plid][_Level]);// aki vc muda para a funçao que geta o level do player
  136.             PlayerTextDrawSetString(playerid, Status17[playerid], Level);
  137.  
  138.             format(Estudo, sizeof(Estudo), "Estudo: %d", PlayerInfo[plid][_Faculdade]);// aki vc muda para a funçao que geta o estudo do player
  139.             PlayerTextDrawSetString(playerid, Status27[playerid], Estudo);
  140.  
  141.             PlayerTextDrawSetPreviewModel(playerid, Status1[playerid], PlayerInfo[plid][_Skin]); // funçao para pegar a skin do player
  142.             PlayerTextDrawSetPreviewModel(playerid, Status1[playerid], PlayerInfo[plid][_Skin]); // funçao para pegar a skin do player
  143.  
  144.             PlayerTextDrawShow(playerid, Status0[playerid]);
  145.             PlayerTextDrawShow(playerid, Status1[playerid]);
  146.             PlayerTextDrawShow(playerid, Status2[playerid]);
  147.             PlayerTextDrawShow(playerid, Status3[playerid]);
  148.             PlayerTextDrawShow(playerid, Status4[playerid]);
  149.             PlayerTextDrawShow(playerid, Status5[playerid]);
  150.             PlayerTextDrawShow(playerid, Status6[playerid]);
  151.             PlayerTextDrawShow(playerid, Status7[playerid]);
  152.             PlayerTextDrawShow(playerid, Status8[playerid]);
  153.             PlayerTextDrawShow(playerid, Status9[playerid]);
  154.             PlayerTextDrawShow(playerid, Status10[playerid]);
  155.             PlayerTextDrawShow(playerid, Status11[playerid]);
  156.             PlayerTextDrawShow(playerid, Status12[playerid]);
  157.             PlayerTextDrawShow(playerid, Status13[playerid]);
  158.             PlayerTextDrawShow(playerid, Status14[playerid]);
  159.             PlayerTextDrawShow(playerid, Status15[playerid]);
  160.             PlayerTextDrawShow(playerid, Status16[playerid]);
  161.             PlayerTextDrawShow(playerid, Status17[playerid]);
  162.             PlayerTextDrawShow(playerid, Status18[playerid]);
  163.             PlayerTextDrawShow(playerid, Status19[playerid]);
  164.             PlayerTextDrawShow(playerid, Status20[playerid]);
  165.             PlayerTextDrawShow(playerid, Status21[playerid]);
  166.             PlayerTextDrawShow(playerid, Status22[playerid]);
  167.             PlayerTextDrawShow(playerid, Status23[playerid]);
  168.             PlayerTextDrawShow(playerid, Status24[playerid]);
  169.             PlayerTextDrawShow(playerid, Status25[playerid]);
  170.             PlayerTextDrawShow(playerid, Status26[playerid]);
  171.             PlayerTextDrawShow(playerid, Status27[playerid]);
  172.  //           PlayerTextDrawShow(playerid, Status28[playerid]);
  173.             new string[150];
  174.             format(string, sizeof(string), "%s está vendo seu status. ( /status )", GetPlayerNameEx(playerid));
  175.             SendClientMessage(plid, COLOR_GREEN, string);
  176.         }
  177.         else
  178.         {
  179.             SendClientMessage(playerid, Vermelho, "Valor inválido, tente novamente!");
  180.         }
  181.         return 1;
  182.     }
  183.     return 1;
  184.     }
  185. // acesse www.DominioSamp.net
  186. // acesse www.DominioSamp.net
  187. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  188. {
  189. if(dialogid == 19340)
  190.     {
  191.         new string[128];
  192.         new file2[250];
  193.         if(strlen(inputtext) < 1 || strlen(inputtext) > 40) return SendClientMessage(playerid, 0xAFAFAFAA, "Texto Invalido.");
  194.         else
  195.         {
  196.             format(string, sizeof(string), "Você mudou o seu skype para '%s'.", inputtext);
  197.             SendClientMessage(playerid, 0x33CCFFAA, string);
  198.  
  199.             new pname[MAX_PLAYER_NAME];
  200.             GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
  201.             format(file2, sizeof(file2), PASTA_CONTAS, pname);
  202.             dini_Set(file2, "Skype", inputtext);
  203.         }
  204.     }
  205.     return 0;
  206. }
  207. // acesse www.DominioSamp.net
  208. // acesse www.DominioSamp.net
  209. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  210. {
  211. if(newkeys == 8)
  212. {
  213. if(DesbugarStatus[playerid] == 0)
  214. {
  215. UnLoadStatus(playerid);
  216. }
  217. else if(DesbugarStatus[playerid] == 1)
  218. {
  219. CancelSelectTextDraw(playerid);
  220. UnLoadStatus(playerid);
  221. DesbugarStatus[playerid] = 0;
  222. }
  223. }
  224. return 1;
  225. }
  226. // acesse www.DominioSamp.net
  227. // acesse www.DominioSamp.net
  228. stock UnLoadStatus(playerid)
  229. {
  230.             PlayerTextDrawDestroy(playerid, Status0[playerid]);
  231.             PlayerTextDrawDestroy(playerid, Status1[playerid]);
  232.             PlayerTextDrawDestroy(playerid, Status2[playerid]);
  233.             PlayerTextDrawDestroy(playerid, Status3[playerid]);
  234.             PlayerTextDrawDestroy(playerid, Status4[playerid]);
  235.             PlayerTextDrawDestroy(playerid, Status5[playerid]);
  236.             PlayerTextDrawDestroy(playerid, Status6[playerid]);
  237.             PlayerTextDrawDestroy(playerid, Status7[playerid]);
  238.             PlayerTextDrawDestroy(playerid, Status8[playerid]);
  239.             PlayerTextDrawDestroy(playerid, Status9[playerid]);
  240.             PlayerTextDrawDestroy(playerid, Status10[playerid]);
  241.             PlayerTextDrawDestroy(playerid, Status11[playerid]);
  242.             PlayerTextDrawDestroy(playerid, Status12[playerid]);
  243.             PlayerTextDrawDestroy(playerid, Status13[playerid]);
  244.             PlayerTextDrawDestroy(playerid, Status14[playerid]);
  245.             PlayerTextDrawDestroy(playerid, Status15[playerid]);
  246.             PlayerTextDrawDestroy(playerid, Status16[playerid]);
  247.             PlayerTextDrawDestroy(playerid, Status17[playerid]);
  248.             PlayerTextDrawDestroy(playerid, Status18[playerid]);
  249.             PlayerTextDrawDestroy(playerid, Status19[playerid]);
  250.             PlayerTextDrawDestroy(playerid, Status20[playerid]);
  251.             PlayerTextDrawDestroy(playerid, Status21[playerid]);
  252.             PlayerTextDrawDestroy(playerid, Status22[playerid]);
  253.             PlayerTextDrawDestroy(playerid, Status23[playerid]);
  254.             PlayerTextDrawDestroy(playerid, Status24[playerid]);
  255.             PlayerTextDrawDestroy(playerid, Status25[playerid]);
  256.             PlayerTextDrawDestroy(playerid, Status26[playerid]);
  257.             PlayerTextDrawDestroy(playerid, Status27[playerid]);
  258. //          PlayerTextDrawDestroy(playerid, Status28[playerid]);
  259. }
  260. // acesse www.DominioSamp.net
  261. // acesse www.DominioSamp.net
  262. stock LoadStatus(playerid)
  263. {
  264. Status0[playerid] = CreatePlayerTextDraw(playerid, 152.737930, 335.416687, "LD_SPAC:white");
  265. PlayerTextDrawLetterSize(playerid, Status0[playerid], 0.000000, 0.000000);
  266. PlayerTextDrawTextSize(playerid, Status0[playerid], 321.874084, -0.583374);
  267. PlayerTextDrawAlignment(playerid, Status0[playerid], 1);
  268. PlayerTextDrawColor(playerid, Status0[playerid], -1);
  269. PlayerTextDrawSetShadow(playerid, Status0[playerid], 0);
  270. PlayerTextDrawSetOutline(playerid, Status0[playerid], 0);
  271. PlayerTextDrawFont(playerid, Status0[playerid], 4);
  272. /*
  273. Status1[playerid] = CreatePlayerTextDraw(playerid, 343.894317, 166.250030, "_");
  274. PlayerTextDrawTextSize(playerid, Status1[playerid], 112.445129, 128.916656);
  275. PlayerTextDrawFont(playerid, Status1[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW);
  276. PlayerTextDrawColor(playerid, Status1[playerid], 255);
  277. PlayerTextDrawUseBox(playerid, Status1[playerid], 1);
  278. PlayerTextDrawBoxColor(playerid, Status1[playerid], 0x000000FF);
  279. PlayerTextDrawSetPreviewModel(playerid, Status1[playerid], 411);
  280. */
  281.     Status1[playerid] = CreatePlayerTextDraw(playerid, 343.894317, 166.250030, "_");
  282.     PlayerTextDrawFont(playerid, Status1[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW);
  283.     PlayerTextDrawUseBox(playerid, Status1[playerid], 1);
  284.     PlayerTextDrawBoxColor(playerid, Status1[playerid], 0x000000FF);
  285.     PlayerTextDrawTextSize(playerid, Status1[playerid], 112.445129, 128.916656);
  286.     PlayerTextDrawSetPreviewModel(playerid, Status1[playerid], 411); // Show an Infernus (model 411)
  287.  
  288. Status2[playerid] = CreatePlayerTextDraw(playerid, 155.549057, 165.083374, "Nick:");
  289. PlayerTextDrawLetterSize(playerid, Status2[playerid], 0.449999, 1.600000);
  290. PlayerTextDrawAlignment(playerid, Status2[playerid], 1);
  291. PlayerTextDrawColor(playerid, Status2[playerid], -1);
  292. PlayerTextDrawSetShadow(playerid, Status2[playerid], 0);
  293. PlayerTextDrawSetOutline(playerid, Status2[playerid], 1);
  294. PlayerTextDrawBackgroundColor(playerid, Status2[playerid], 51);
  295. PlayerTextDrawFont(playerid, Status2[playerid], 1);
  296. PlayerTextDrawSetProportional(playerid, Status2[playerid], 1);
  297.  
  298. Status3[playerid] = CreatePlayerTextDraw(playerid, 156.017562, 186.083374, "Dinheiro:");
  299. PlayerTextDrawLetterSize(playerid, Status3[playerid], 0.449999, 1.600000);
  300. PlayerTextDrawAlignment(playerid, Status3[playerid], 1);
  301. PlayerTextDrawColor(playerid, Status3[playerid], -1);
  302. PlayerTextDrawSetShadow(playerid, Status3[playerid], 0);
  303. PlayerTextDrawSetOutline(playerid, Status3[playerid], 1);
  304. PlayerTextDrawBackgroundColor(playerid, Status3[playerid], 51);
  305. PlayerTextDrawFont(playerid, Status3[playerid], 1);
  306. PlayerTextDrawSetProportional(playerid, Status3[playerid], 1);
  307.  
  308. Status4[playerid] = CreatePlayerTextDraw(playerid, 156.954605, 209.416671, "Banco:");
  309. PlayerTextDrawLetterSize(playerid, Status4[playerid], 0.449999, 1.600000);
  310. PlayerTextDrawAlignment(playerid, Status4[playerid], 1);
  311. PlayerTextDrawColor(playerid, Status4[playerid], -1);
  312. PlayerTextDrawSetShadow(playerid, Status4[playerid], 0);
  313. PlayerTextDrawSetOutline(playerid, Status4[playerid], 1);
  314. PlayerTextDrawBackgroundColor(playerid, Status4[playerid], 51);
  315. PlayerTextDrawFont(playerid, Status4[playerid], 1);
  316. PlayerTextDrawSetProportional(playerid, Status4[playerid], 1);
  317.  
  318. Status5[playerid] = CreatePlayerTextDraw(playerid, 157.423141, 233.916717, "Casado:");
  319. PlayerTextDrawLetterSize(playerid, Status5[playerid], 0.449999, 1.600000);
  320. PlayerTextDrawAlignment(playerid, Status5[playerid], 1);
  321. PlayerTextDrawColor(playerid, Status5[playerid], -1);
  322. PlayerTextDrawSetShadow(playerid, Status5[playerid], 0);
  323. PlayerTextDrawSetOutline(playerid, Status5[playerid], 1);
  324. PlayerTextDrawBackgroundColor(playerid, Status5[playerid], 51);
  325. PlayerTextDrawFont(playerid, Status5[playerid], 1);
  326. PlayerTextDrawSetProportional(playerid, Status5[playerid], 1);
  327.  
  328. Status6[playerid] = CreatePlayerTextDraw(playerid, 158.828704, 257.249969, "Dias Vip:");
  329. PlayerTextDrawLetterSize(playerid, Status6[playerid], 0.449999, 1.600000);
  330. PlayerTextDrawAlignment(playerid, Status6[playerid], 1);
  331. PlayerTextDrawColor(playerid, Status6[playerid], -1);
  332. PlayerTextDrawSetShadow(playerid, Status6[playerid], 0);
  333. PlayerTextDrawSetOutline(playerid, Status6[playerid], 1);
  334. PlayerTextDrawBackgroundColor(playerid, Status6[playerid], 51);
  335. PlayerTextDrawFont(playerid, Status6[playerid], 1);
  336. PlayerTextDrawSetProportional(playerid, Status6[playerid], 1);
  337.  
  338. Status7[playerid] = CreatePlayerTextDraw(playerid, 158.828689, 277.083343, "Skype:");
  339. PlayerTextDrawLetterSize(playerid, Status7[playerid], 0.449999, 1.600000);
  340. PlayerTextDrawAlignment(playerid, Status7[playerid], 1);
  341. PlayerTextDrawColor(playerid, Status7[playerid], -1);
  342. PlayerTextDrawSetShadow(playerid, Status7[playerid], 0);
  343. PlayerTextDrawSetOutline(playerid, Status7[playerid], 1);
  344. PlayerTextDrawBackgroundColor(playerid, Status7[playerid], 51);
  345. PlayerTextDrawFont(playerid, Status7[playerid], 1);
  346. PlayerTextDrawSetProportional(playerid, Status7[playerid], 1);
  347.  
  348. Status8[playerid] = CreatePlayerTextDraw(playerid, 225.827148, 343.583343, "Aperte (espaco)");
  349. PlayerTextDrawLetterSize(playerid, Status8[playerid], 0.449999, 1.600000);
  350. PlayerTextDrawAlignment(playerid, Status8[playerid], 1);
  351. PlayerTextDrawColor(playerid, Status8[playerid], -5963521);
  352. PlayerTextDrawSetShadow(playerid, Status8[playerid], 0);
  353. PlayerTextDrawSetOutline(playerid, Status8[playerid], 3);
  354. PlayerTextDrawBackgroundColor(playerid, Status8[playerid], 51);
  355. PlayerTextDrawFont(playerid, Status8[playerid], 1);
  356. PlayerTextDrawSetProportional(playerid, Status8[playerid], 1);
  357.  
  358. Status9[playerid] = CreatePlayerTextDraw(playerid, 152.737915, 371.583343, "LD_SPAC:white");
  359. PlayerTextDrawLetterSize(playerid, Status9[playerid], 0.000000, 0.000000);
  360. PlayerTextDrawTextSize(playerid, Status9[playerid], -0.468504, -247.916656);
  361. PlayerTextDrawAlignment(playerid, Status9[playerid], 1);
  362. PlayerTextDrawColor(playerid, Status9[playerid], -1);
  363. PlayerTextDrawSetShadow(playerid, Status9[playerid], 0);
  364. PlayerTextDrawSetOutline(playerid, Status9[playerid], 0);
  365. PlayerTextDrawFont(playerid, Status9[playerid], 4);
  366.  
  367. Status10[playerid] = CreatePlayerTextDraw(playerid, 152.269393, 314.416595, "LD_SPAC:white");
  368. PlayerTextDrawLetterSize(playerid, Status10[playerid], 0.000000, 0.000000);
  369. PlayerTextDrawTextSize(playerid, Status10[playerid], 321.405578, 0.583374);
  370. PlayerTextDrawAlignment(playerid, Status10[playerid], 1);
  371. PlayerTextDrawColor(playerid, Status10[playerid], -1);
  372. PlayerTextDrawSetShadow(playerid, Status10[playerid], 0);
  373. PlayerTextDrawSetOutline(playerid, Status10[playerid], 0);
  374. PlayerTextDrawFont(playerid, Status10[playerid], 4);
  375.  
  376. Status11[playerid] = CreatePlayerTextDraw(playerid, 153.206436, 182.583328, "LD_SPAC:white");
  377. PlayerTextDrawLetterSize(playerid, Status11[playerid], 0.000000, 0.000000);
  378. PlayerTextDrawTextSize(playerid, Status11[playerid], 190.688140, 0.583343);
  379. PlayerTextDrawAlignment(playerid, Status11[playerid], 1);
  380. PlayerTextDrawColor(playerid, Status11[playerid], -1);
  381. PlayerTextDrawSetShadow(playerid, Status11[playerid], 0);
  382. PlayerTextDrawSetOutline(playerid, Status11[playerid], 0);
  383. PlayerTextDrawFont(playerid, Status11[playerid], 4);
  384.  
  385. Status12[playerid] = CreatePlayerTextDraw(playerid, 152.269409, 204.749984, "LD_SPAC:white");
  386. PlayerTextDrawLetterSize(playerid, Status12[playerid], 0.000000, 0.000000);
  387. PlayerTextDrawTextSize(playerid, Status12[playerid], 190.688110, 0.583311);
  388. PlayerTextDrawAlignment(playerid, Status12[playerid], 1);
  389. PlayerTextDrawColor(playerid, Status12[playerid], -1);
  390. PlayerTextDrawSetShadow(playerid, Status12[playerid], 0);
  391. PlayerTextDrawSetOutline(playerid, Status12[playerid], 0);
  392. PlayerTextDrawFont(playerid, Status12[playerid], 4);
  393.  
  394. Status13[playerid] = CreatePlayerTextDraw(playerid, 152.737930, 228.666702, "LD_SPAC:white");
  395. PlayerTextDrawLetterSize(playerid, Status13[playerid], 0.000000, 0.000000);
  396. PlayerTextDrawTextSize(playerid, Status13[playerid], 191.625183, 0.583328);
  397. PlayerTextDrawAlignment(playerid, Status13[playerid], 1);
  398. PlayerTextDrawColor(playerid, Status13[playerid], -1);
  399. PlayerTextDrawSetShadow(playerid, Status13[playerid], 0);
  400. PlayerTextDrawSetOutline(playerid, Status13[playerid], 0);
  401. PlayerTextDrawFont(playerid, Status13[playerid], 4);
  402.  
  403. Status14[playerid] = CreatePlayerTextDraw(playerid, 152.269409, 251.416671, "LD_SPAC:white");
  404. PlayerTextDrawLetterSize(playerid, Status14[playerid], 0.000000, 0.000000);
  405. PlayerTextDrawTextSize(playerid, Status14[playerid], 191.625152, 0.583328);
  406. PlayerTextDrawAlignment(playerid, Status14[playerid], 1);
  407. PlayerTextDrawColor(playerid, Status14[playerid], -1);
  408. PlayerTextDrawSetShadow(playerid, Status14[playerid], 0);
  409. PlayerTextDrawSetOutline(playerid, Status14[playerid], 0);
  410. PlayerTextDrawFont(playerid, Status14[playerid], 4);
  411.  
  412. Status15[playerid] = CreatePlayerTextDraw(playerid, 153.206451, 274.166595, "LD_SPAC:white");
  413. PlayerTextDrawLetterSize(playerid, Status15[playerid], 0.000000, 0.000000);
  414. PlayerTextDrawTextSize(playerid, Status15[playerid], 191.625167, -0.583354);
  415. PlayerTextDrawAlignment(playerid, Status15[playerid], 1);
  416. PlayerTextDrawColor(playerid, Status15[playerid], -1);
  417. PlayerTextDrawSetShadow(playerid, Status15[playerid], 0);
  418. PlayerTextDrawSetOutline(playerid, Status15[playerid], 0);
  419. PlayerTextDrawFont(playerid, Status15[playerid], 4);
  420.  
  421. Status16[playerid] = CreatePlayerTextDraw(playerid, 476.143554, 124.583343, "usebox");
  422. PlayerTextDrawLetterSize(playerid, Status16[playerid], 0.000000, 27.035188);
  423. PlayerTextDrawTextSize(playerid, Status16[playerid], 149.800430, 0.000000);
  424. PlayerTextDrawAlignment(playerid, Status16[playerid], 1);
  425. PlayerTextDrawColor(playerid, Status16[playerid], 0);
  426. PlayerTextDrawUseBox(playerid, Status16[playerid], true);
  427. PlayerTextDrawBoxColor(playerid, Status16[playerid], 102);
  428. PlayerTextDrawSetShadow(playerid, Status16[playerid], 0);
  429. PlayerTextDrawSetOutline(playerid, Status16[playerid], 0);
  430. PlayerTextDrawFont(playerid, Status16[playerid], 0);
  431.  
  432. Status17[playerid] = CreatePlayerTextDraw(playerid, 160.702804, 319.083312, "Level:");
  433. PlayerTextDrawLetterSize(playerid, Status17[playerid], 0.449999, 1.600000);
  434. PlayerTextDrawAlignment(playerid, Status17[playerid], 1);
  435. PlayerTextDrawColor(playerid, Status17[playerid], -1);
  436. PlayerTextDrawSetShadow(playerid, Status17[playerid], 0);
  437. PlayerTextDrawSetOutline(playerid, Status17[playerid], 1);
  438. PlayerTextDrawBackgroundColor(playerid, Status17[playerid], 51);
  439. PlayerTextDrawFont(playerid, Status17[playerid], 1);
  440. PlayerTextDrawSetProportional(playerid, Status17[playerid], 1);
  441.  
  442. Status18[playerid] = CreatePlayerTextDraw(playerid, 455.402587, 167.416656, "LD_SPAC:white");
  443. PlayerTextDrawLetterSize(playerid, Status18[playerid], 0.000000, 0.000000);
  444. PlayerTextDrawTextSize(playerid, Status18[playerid], -0.468506, 128.333312);
  445. PlayerTextDrawAlignment(playerid, Status18[playerid], 1);
  446. PlayerTextDrawColor(playerid, Status18[playerid], -1);
  447. PlayerTextDrawSetShadow(playerid, Status18[playerid], 0);
  448. PlayerTextDrawSetOutline(playerid, Status18[playerid], 0);
  449. PlayerTextDrawFont(playerid, Status18[playerid], 4);
  450.  
  451. Status19[playerid] = CreatePlayerTextDraw(playerid, 152.269393, 370.416687, "LD_SPAC:white");
  452. PlayerTextDrawLetterSize(playerid, Status19[playerid], 0.000000, 0.000000);
  453. PlayerTextDrawTextSize(playerid, Status19[playerid], 321.405578, 0.583311);
  454. PlayerTextDrawAlignment(playerid, Status19[playerid], 1);
  455. PlayerTextDrawColor(playerid, Status19[playerid], -1);
  456. PlayerTextDrawSetShadow(playerid, Status19[playerid], 0);
  457. PlayerTextDrawSetOutline(playerid, Status19[playerid], 0);
  458. PlayerTextDrawFont(playerid, Status19[playerid], 4);
  459.  
  460. Status20[playerid] = CreatePlayerTextDraw(playerid, 474.143463, 123.083328, "LD_SPAC:white");
  461. PlayerTextDrawLetterSize(playerid, Status20[playerid], 0.000000, 0.000000);
  462. PlayerTextDrawTextSize(playerid, Status20[playerid], 0.468504, 248.500030);
  463. PlayerTextDrawAlignment(playerid, Status20[playerid], 1);
  464. PlayerTextDrawColor(playerid, Status20[playerid], -1);
  465. PlayerTextDrawSetShadow(playerid, Status20[playerid], 0);
  466. PlayerTextDrawSetOutline(playerid, Status20[playerid], 0);
  467. PlayerTextDrawFont(playerid, Status20[playerid], 4);
  468.  
  469. Status21[playerid] = CreatePlayerTextDraw(playerid, 152.737915, 121.916587, "LD_SPAC:white");
  470. PlayerTextDrawLetterSize(playerid, Status21[playerid], 0.000000, 0.000000);
  471. PlayerTextDrawTextSize(playerid, Status21[playerid], 322.342620, 30.333343);
  472. PlayerTextDrawAlignment(playerid, Status21[playerid], 1);
  473. PlayerTextDrawColor(playerid, Status21[playerid], -2139062017);
  474. PlayerTextDrawSetShadow(playerid, Status21[playerid], 0);
  475. PlayerTextDrawSetOutline(playerid, Status21[playerid], 0);
  476. PlayerTextDrawFont(playerid, Status21[playerid], 4);
  477.  
  478. Status22[playerid] = CreatePlayerTextDraw(playerid, 153.206436, 295.166503, "LD_SPAC:white");
  479. PlayerTextDrawLetterSize(playerid, Status22[playerid], 0.000000, 0.000000);
  480. PlayerTextDrawTextSize(playerid, Status22[playerid], 261.434722, -0.583354);
  481. PlayerTextDrawAlignment(playerid, Status22[playerid], 1);
  482. PlayerTextDrawColor(playerid, Status22[playerid], -1);
  483. PlayerTextDrawSetShadow(playerid, Status22[playerid], 0);
  484. PlayerTextDrawSetOutline(playerid, Status22[playerid], 0);
  485. PlayerTextDrawFont(playerid, Status22[playerid], 4);
  486.  
  487. Status23[playerid] = CreatePlayerTextDraw(playerid, 343.426025, 167.416778, "LD_SPAC:white");
  488. PlayerTextDrawLetterSize(playerid, Status23[playerid], 0.000000, 0.000000);
  489. PlayerTextDrawTextSize(playerid, Status23[playerid], 111.508056, 0.583343);
  490. PlayerTextDrawAlignment(playerid, Status23[playerid], 1);
  491. PlayerTextDrawColor(playerid, Status23[playerid], -1);
  492. PlayerTextDrawSetShadow(playerid, Status23[playerid], 0);
  493. PlayerTextDrawSetOutline(playerid, Status23[playerid], 0);
  494. PlayerTextDrawFont(playerid, Status23[playerid], 4);
  495.  
  496. Status24[playerid] = CreatePlayerTextDraw(playerid, 343.894561, 167.999984, "LD_SPAC:white");
  497. PlayerTextDrawLetterSize(playerid, Status24[playerid], 0.000000, 0.000000);
  498. PlayerTextDrawTextSize(playerid, Status24[playerid], -0.468504, 127.166687);
  499. PlayerTextDrawAlignment(playerid, Status24[playerid], 1);
  500. PlayerTextDrawColor(playerid, Status24[playerid], -1);
  501. PlayerTextDrawSetShadow(playerid, Status24[playerid], 0);
  502. PlayerTextDrawSetOutline(playerid, Status24[playerid], 0);
  503. PlayerTextDrawFont(playerid, Status24[playerid], 4);
  504.  
  505. Status25[playerid] = CreatePlayerTextDraw(playerid, 343.426086, 295.166717, "LD_SPAC:white");
  506. PlayerTextDrawLetterSize(playerid, Status25[playerid], 0.000000, 0.000000);
  507. PlayerTextDrawTextSize(playerid, Status25[playerid], 112.445114, -0.583333);
  508. PlayerTextDrawAlignment(playerid, Status25[playerid], 1);
  509. PlayerTextDrawColor(playerid, Status25[playerid], -1);
  510. PlayerTextDrawSetShadow(playerid, Status25[playerid], 0);
  511. PlayerTextDrawSetOutline(playerid, Status25[playerid], 0);
  512. PlayerTextDrawFont(playerid, Status25[playerid], 4);
  513.  
  514. Status26[playerid] = CreatePlayerTextDraw(playerid, 158.360168, 129.499984, "Status Do Jogador");
  515. PlayerTextDrawLetterSize(playerid, Status26[playerid], 0.449999, 1.600000);
  516. PlayerTextDrawAlignment(playerid, Status26[playerid], 1);
  517. PlayerTextDrawColor(playerid, Status26[playerid], 16711935);
  518. PlayerTextDrawSetShadow(playerid, Status26[playerid], 0);
  519. PlayerTextDrawSetOutline(playerid, Status26[playerid], 1);
  520. PlayerTextDrawBackgroundColor(playerid, Status26[playerid], 51);
  521. PlayerTextDrawFont(playerid, Status26[playerid], 1);
  522. PlayerTextDrawSetProportional(playerid, Status26[playerid], 1);
  523.  
  524. Status27[playerid] = CreatePlayerTextDraw(playerid, 159.765731, 298.666564, "Estudo:");
  525. PlayerTextDrawLetterSize(playerid, Status27[playerid], 0.449999, 1.600000);
  526. PlayerTextDrawAlignment(playerid, Status27[playerid], 1);
  527. PlayerTextDrawColor(playerid, Status27[playerid], -1);
  528. PlayerTextDrawSetShadow(playerid, Status27[playerid], 0);
  529. PlayerTextDrawSetOutline(playerid, Status27[playerid], 1);
  530. PlayerTextDrawBackgroundColor(playerid, Status27[playerid], 51);
  531. PlayerTextDrawFont(playerid, Status27[playerid], 1);
  532. PlayerTextDrawSetProportional(playerid, Status27[playerid], 1);
  533.  
  534. /*
  535. Status28[playerid] = CreatePlayerTextDraw(playerid, 408.550781, 128.916671, "Fechar()");
  536. PlayerTextDrawLetterSize(playerid, Status28[playerid], 0.449999, 1.600000);
  537. PlayerTextDrawAlignment(playerid, Status28[playerid], 1);
  538. PlayerTextDrawColor(playerid, Status28[playerid], -1);
  539. PlayerTextDrawSetShadow(playerid, Status28[playerid], 0);
  540. PlayerTextDrawSetOutline(playerid, Status28[playerid], 1);
  541. PlayerTextDrawBackgroundColor(playerid, Status28[playerid], 51);
  542. PlayerTextDrawFont(playerid, Status28[playerid], 1);
  543. PlayerTextDrawSetProportional(playerid, Status28[playerid], 1);
  544. */
  545. }
  546. // acesse www.DominioSamp.net
  547. // acesse www.DominioSamp.net
  548. stock GetPlayerNameEx(playerid)
  549. {
  550.     new PlayerNameLevel[MAX_PLAYER_NAME];
  551.     GetPlayerName(playerid, PlayerNameLevel, MAX_PLAYER_NAME);
  552.     return PlayerNameLevel;
  553. }
  554. // acesse www.DominioSamp.net
  555. // acesse www.DominioSamp.net
  556. stock GetVIPDays(playerid)
  557. {
  558.     new VIPS[128];
  559.  
  560.     format(VIPS, sizeof(VIPS), PASTA_VIPS, GetPlayerNameEx(playerid));
  561.     if(dini_Exists(VIPS))
  562.     {
  563.         return dini_Int(VIPS, "Dias");
  564.     }
  565.     else
  566.     {
  567.         return 0;
  568.     }
  569. }
  570. // acesse www.DominioSamp.net
  571. // acesse www.DominioSamp.net
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement