Guest User

Untitled

a guest
Feb 20th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. #include "DLLMain.h"
  2.  
  3. void Outros::Tab(int clientid,int cmd_addr)
  4. {
  5. MOB *player = (MOB*)GetMobFromIndex(clientid);
  6. FILE *fp;
  7. char local [80];
  8. char taab[26];
  9. char comand2[100];
  10. sprintf_s(comand2,"%s",cmd_addr+0x1C);
  11. char comando[100];
  12. sprintf_s(comando,"%s %s",cmd_addr+0x0C,cmd_addr+0x1C);
  13. Atualizar *a;
  14. sprintf(local,"Tabs\\%s",player->Name);
  15. fp = fopen (local,"w");
  16. sscanf(comando,"tab %41[^\n]",&taab);
  17. char *tmp = strtok(comand2, "_");
  18.  
  19. if(!(tmp = strtok(comand2, " ")))
  20. {
  21. fclose(fp);
  22. remove(local);
  23. SendCreateMob(clientid,clientid,1);
  24. return;
  25. }
  26.  
  27. else
  28. {
  29.  
  30. if(player->bStatus.Level < 69)
  31. {
  32. a->SendClientMsg(clientid,"Você Não possui Level superior a 70.");
  33. remove(local);
  34. return;
  35. }
  36. fputs(taab, fp);
  37. fclose(fp);
  38. SendCreateMob(clientid,clientid,1);
  39. return;
  40. }
  41.  
  42. return;
  43. }
Add Comment
Please, Sign In to add comment