JuniorRD19

Untitled

Mar 7th, 2017
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.84 KB | None | 0 0
  1. SalvarPlayer(playerid)
  2. {
  3.  
  4. if(Player[playerid][pLogged] == false) return 0;
  5.  
  6. new count = GetTickCount();
  7.  
  8. new String[256];
  9. format(String, sizeof(String), CONTAS, getPName(playerid));
  10. Player[playerid][pDinheiro] = GetPlayerMoney(playerid);
  11. Player[playerid][pScore] = GetPlayerScore(playerid);
  12. Player[playerid][pWanted] = GetPlayerWantedLevel(playerid);
  13. Player[playerid][pSkin] = GetPlayerSkin(playerid);
  14.  
  15.  
  16. // DOF2_SetInt(String,"Exp", Exp[playerid]);
  17. // DOF2_SetInt(String,"TExp", TExp[playerid]);
  18. DOF2_SetInt(String,"Dinheiro", Player[playerid][pDinheiro]);
  19. DOF2_SetInt(String,"Matou", Player[playerid][pMatou]);
  20. DOF2_SetInt(String,"Morreu", Player[playerid][pMorreu]);
  21. DOF2_SetInt(String,"TotalSus", Player[playerid][sutotal]);
  22. DOF2_SetInt(String,"AbatidosSus", Player[playerid][suabatidos]);
  23. DOF2_SetInt(String,"Logou", Player[playerid][pVezesLogadas]);
  24. DOF2_SetInt(String,"Iniciante", Player[playerid][pIniciante]);
  25. DOF2_SetInt(String,"Cidade", Player[playerid][pCidade]);
  26. DOF2_SetInt(String,"Admin", Player[playerid][pAdmin]);
  27. DOF2_SetInt(String,"Traficante", Player[playerid][pTfc]);
  28. DOF2_SetInt(String,"Sexo", Player[playerid][pSexo]);
  29. DOF2_SetInt(String,"RadioPortatil",Player[playerid][pRadioP]);
  30. DOF2_SetInt(String,"DJ", Player[playerid][pDJ]);
  31. DOF2_SetInt(String,"PM", Player[playerid][pPM]);
  32. DOF2_SetInt(String,"NivelProcurado", Player[playerid][pProcurado]);
  33. DOF2_SetInt(String,"EstrelaProcurado", Player[playerid][pWanted]);
  34. DOF2_SetInt(String,"Choque", Player[playerid][pChoque]);
  35. DOF2_SetInt(String,"PresoLS", Player[playerid][pPresoLS]);
  36. DOF2_SetInt(String,"TempoPreso", Player[playerid][pTempoPreso]);
  37. DOF2_SetInt(String,"Maconha", Player[playerid][pMaconha]);
  38. DOF2_SetInt(String,"Cocaina", Player[playerid][pCocaina]);
  39. DOF2_SetInt(String,"Sinalizador", Player[playerid][pSinalizadores]);
  40. DOF2_SetInt(String,"Banco", Player[playerid][pBanco]);
  41. DOF2_SetInt(String,"ReporterLS", Player[playerid][pReporterLS]);
  42. DOF2_SetInt(String,"Emprego", Player[playerid][pEmprego]);
  43. DOF2_SetInt(String,"IngressoC", Player[playerid][pIngressoCasa]);
  44. DOF2_SetInt(String,"IngressoV", Player[playerid][pIngressoVisitante]);
  45. DOF2_SetInt(String,"Pacotes", Player[playerid][pPacotes]);
  46. DOF2_SetInt(String,"Materiais", Player[playerid][pMateriais]);
  47. DOF2_SetInt(String,"PresoSF", Player[playerid][pPresoSF]);
  48. DOF2_SetInt(String,"BOPE", Player[playerid][pBOPE]);
  49. DOF2_SetInt(String,"GEPE", Player[playerid][pGEPE]);
  50. DOF2_SetInt(String,"PresoADM", Player[playerid][pPresoADM]);
  51. DOF2_SetInt(String,"Torcidas", Player[playerid][pTorcida]);
  52. DOF2_SetInt(String,"Puxador", Player[playerid][pPux]);
  53. DOF2_SetInt(String,"HorasJogadas", Player[playerid][pScore]);
  54. DOF2_SetInt(String,"Skin", Player[playerid][pSkin]);
  55. DOF2_SetInt(String,"Organizador", Player[playerid][pOrganizador]);
  56. DOF2_SetInt(String,"Presidente", Player[playerid][pPresidente]);
  57. DOF2_SetInt(String,"BlockKick", Player[playerid][pBlockKick]);
  58. DOF2_SetInt(String,"IrBlock", Player[playerid][pBir]);
  59. DOF2_SetInt(String,"TrBlock", Player[playerid][pBtr]);
  60. DOF2_SetInt(String,"Trazertodos", Player[playerid][pTrazertodos]);
  61. DOF2_SetInt(String,"Vip", Player[playerid][pVip]);
  62. DOF2_SetInt(String,"Vip Premium", Player[playerid][pVipM]);
  63. DOF2_SetInt(String,"Panos", Player[playerid][pPanos]);
  64. DOF2_SetInt(String,"PanosPerdidos", Player[playerid][pPanosPerdidos]);
  65. DOF2_SetInt(String,"Reset", Player[playerid][pReset]);
  66. DOF2_SetInt(String,"TempoOnline", Player[playerid][pOnlineTime]);
  67. DOF2_SetInt(String,"Online", Player[playerid][Connected]);
  68. DOF2_SetInt(String,"Helper", Player[playerid][pHelper]);
  69. DOF2_SetInt(String,"ReportL", Player[playerid][pRel]);
  70. DOF2_SetInt(String,"StatusHelper", Player[playerid][pStatusHelper]);
  71. DOF2_SetInt(String,"VolumeRadio", Player[playerid][pVolume]);
  72. DOF2_SetInt(String,"Radio", Player[playerid][pRadio]);
  73. DOF2_SetInt(String,"MP3", Player[playerid][pMP3]);
  74. DOF2_SetInt(String,"DelayNick", Player[playerid][DelayNick]);
  75. DOF2_SetInt(String,"Fogos", Player[playerid][Fogos]);
  76. DOF2_SetInt(String,"Penitenciaria", Player[playerid][Penitenciaria]);
  77. DOF2_SetInt(String,"Camisas", Player[playerid][Camisas]);
  78. DOF2_SetInt(String,"BermudasTomada", Player[playerid][BermudasTomada]);
  79. DOF2_SetInt(String,"BermudasPerdida", Player[playerid][BermudasPerdida]);
  80. DOF2_SetInt(String,"Bermudas", Player[playerid][Bermudas]);
  81. DOF2_SetInt(String,"Coins", Player[playerid][Coins]);
  82. DOF2_SetInt(String,"Vehicle", Player[playerid][Vehicle]);
  83. DOF2_SetInt(String,"SpawnArmour", Player[playerid][SpawnArmour]);
  84. DOF2_SetInt(String,"WarnDC", Player[playerid][WarnDC]);
  85. DOF2_SetInt(String,"AvisoDC", Player[playerid][AvisoDC]);
  86. DOF2_SetInt(String,"WeaponCoin", Player[playerid][WeaponCoin]);
  87. DOF2_SetInt(String,"TemPergunta", Player[playerid][TemPergunta]);
  88. DOF2_SetInt(String,"Presidente", Player[playerid][pPresidente]);
  89. DOF2_SetInt(String,"pBlockChat", Player[playerid][pBlockChat]);
  90. DOF2_SetInt(String,"PunVIP", Player[playerid][pPunVIP]);
  91. DOF2_SetInt(String,"PunORG", Player[playerid][pPunORG]);
  92.  
  93. if(Player[playerid][BlockPM] == true) {
  94. DOF2_SetInt(String,"StatusPM", 1);
  95. } else DOF2_SetInt(String,"StatusPM", 0);
  96.  
  97. DOF2_SetInt(String,MonthStringKills,Player[playerid][pMonthKills], "months_status");
  98. DOF2_SetInt(String,MonthStringDeaths,Player[playerid][pMonthDeaths], "months_status");
  99.  
  100. new date[32];
  101. new hour, minute, second, day, month, year;
  102. gettime(hour, minute, second);
  103. getdate(year, month, day);
  104. format(date, 32,"%d/%d/%d/%d/%d/%d",day,month,year,hour, minute, second);
  105. DOF2_SetString(String,"LastLogin", date);
  106. DOF2_SetInt(String,"LastLoginTick", Now());
  107. DOF2_SaveFile();
  108. printf("Testando o tempo do SalvarPlayer: %d", GetTickCount() - count);
  109. return 1;
  110. }
Advertisement
Add Comment
Please, Sign In to add comment