Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "DLLMain.h"
- void Outros::Tab(int clientid,int cmd_addr)
- {
- MOB *player = (MOB*)GetMobFromIndex(clientid);
- FILE *fp;
- char local [80];
- char taab[26];
- char comand2[100];
- sprintf_s(comand2,"%s",cmd_addr+0x1C);
- char comando[100];
- sprintf_s(comando,"%s %s",cmd_addr+0x0C,cmd_addr+0x1C);
- Atualizar *a;
- sprintf(local,"Tabs\\%s",player->Name);
- fp = fopen (local,"w");
- sscanf(comando,"tab %41[^\n]",&taab);
- char *tmp = strtok(comand2, "_");
- if(!(tmp = strtok(comand2, " ")))
- {
- fclose(fp);
- remove(local);
- SendCreateMob(clientid,clientid,1);
- return;
- }
- else
- {
- if(player->bStatus.Level < 69)
- {
- a->SendClientMsg(clientid,"Você Não possui Level superior a 70.");
- remove(local);
- return;
- }
- fputs(taab, fp);
- fclose(fp);
- SendCreateMob(clientid,clientid,1);
- return;
- }
- return;
- }
Add Comment
Please, Sign In to add comment