Advertisement
Guest User

Untitled

a guest
Apr 16th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. BSL::ProcurandoHit(playerid)
  2. {
  3. new string[MAX_STRING];
  4. new searchhit = 0;
  5. foreach(new i: Player)
  6. {
  7. if(IsPlayerConnected(i))
  8. {
  9. if(searchhit == 0)
  10. {
  11. if(PlayerInfo[i][pHeadValue] > 0 && GotHit[i] == 0 && PlayerInfo[i][pMembro] != 8)
  12. {
  13. searchhit = 1;
  14. hitfound = 1;
  15. hitmanid = i;
  16. {
  17. if(PlayerInfo[playerid][pMembro] == 8 || PlayerInfo[playerid][pLider] == 8)
  18. {
  19. format(gstring,sizeof(string), "[%s]\t %s[%d]\t R${ff00FF}[%d]\n", GetPlayerOrg(i), PlayerName(i), i, PlayerInfo[i][pHeadValue]);
  20. ShowPlayerDialog(playerid, 25876, DIALOG_STYLE_TABLIST_HEADERS, "Lista de Contratos", gs_Buffer, "Pegar","Voltar");
  21. strcat(gs_Buffer,string);
  22. }
  23. }
  24. }
  25. }
  26. }
  27. }
  28. if(searchhit == 0)
  29. {
  30. }
  31. return 0;
  32. }
  33. BSL::ProcurandoAss(playerid)
  34. {
  35. new string[MAX_STRING];
  36. new searchass = 0;
  37. foreach(new i: Player)
  38. {
  39. if(IsPlayerConnected(i))
  40. {
  41. if(searchass == 0)
  42. {
  43. if(PlayerInfo[i][pHeadValue] > 0 && GotAss[i] == 0 && PlayerInfo[i][pMembro] != 26)
  44. {
  45. searchass = 1;
  46. assfound = 1;
  47. assid = i;
  48. {
  49. if(PlayerInfo[playerid][pMembro] == 26 || PlayerInfo[playerid][pLider] == 26)
  50. {
  51. format(gstring,sizeof(string), "[%s]\t %s[%d]\t R${ff00FF}[%d]\n", GetPlayerOrg(i), PlayerName(i), i, PlayerInfo[i][pHeadValue]);
  52. ShowPlayerDialog(playerid, 25876, DIALOG_STYLE_TABLIST_HEADERS, "Lista de Contratos", gs_Buffer, "Pegar","Voltar");
  53. strcat(gs_Buffer,string);
  54. }
  55. }
  56. }
  57. }
  58. }
  59. }
  60. if(searchass == 0)
  61. {
  62. }
  63. return 0;
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement