Advertisement
DarkSolutions

To Tiu_DaColombia

Nov 17th, 2012
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.74 KB | None | 0 0
  1. public OnPlayerLogin(playerid,password[])
  2. {
  3. new tmp2[256];
  4. new string2[64];
  5. new senhaacc[128];
  6. format(string2, sizeof(string2), "Contas/%s.ini", PlayerName(playerid));
  7. strmid(PlayerInfo[playerid][pKey], dini_Get(string2, "Key"), 0, strlen(dini_Get(string2, "Key")), 255);
  8. senhaacc = dini_Get(string2,"Key");
  9. new File: UserFile = fopen(string2, io_read);
  10. if (UserFile)
  11. {
  12. if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 || strcmp(senhaacc,encrypt(password), true ) == 0)
  13. {
  14. new key[ 256 ] , val[ 256 ];
  15. new Data[ 256 ];
  16. while (fread(UserFile, Data, sizeof(Data)))
  17. {
  18. key = ini_GetKey( Data );
  19. if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLevel] = strval( val ); }
  20. if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdmin] = strval( val ); }
  21. if( strcmp( key , "HelperLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelper] = strval( val ); }
  22. if( strcmp( key , "DonateRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pVIP] = strval( val ); }
  23. if( strcmp( key , "UpgradePoints" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][gPupgrade] = strval( val ); }
  24. if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConnectTime] = strval( val ); }
  25. if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strval( val ); }
  26. if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strval( val ); }
  27. if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strval( val ); }
  28. if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strval( val ); }
  29. if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); }
  30. if( strcmp( key , "Bank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConta] = strval( val ); }
  31. if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrimes] = strval( val ); }
  32. if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); }
  33. if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strval( val ); }
  34. if( strcmp( key , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhoneBook] = strval( val ); }
  35. if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr] = strval( val ); }
  36. if( strcmp( key , "Fishes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishes] = strval( val ); }
  37. if( strcmp( key , "BiggestFish" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBiggestFish] = strval( val ); }
  38. if( strcmp( key , "Emprego" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pEmprego] = strval( val ); }
  39. if( strcmp( key , "Paycheck" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSalario] = strval( val ); }
  40. if( strcmp( key , "HeadValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeadValue] = strval( val ); }
  41. if( strcmp( key , "HeadValueT" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeadValueT] = strval( val ); }
  42. if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailed] = strval( val ); }
  43. if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailTime] = strval( val ); }
  44. if( strcmp( key , "Capacete" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCapacete] = strval( val ); }
  45. if( strcmp( key , "Materiais" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMats] = strval( val ); }
  46. if( strcmp( key , "Maconha" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrogas] = strval( val ); }
  47. if( strcmp( key , "Cocaina" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrogas2] = strval( val ); }
  48. if( strcmp( key , "Crack" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrogas3] = strval( val ); }
  49. if( strcmp( key , "Lider" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLider] = strval( val ); }
  50. if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMembro] = strval( val ); }
  51. if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCargo] = strval( val ); }
  52. if( strcmp( key , "Char" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSkin] = strval( val ); }
  53. if( strcmp( key , "ContractTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pContractTime] = strval( val ); }
  54. if( strcmp( key , "DetSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDetSkill] = strval( val ); }
  55. if( strcmp( key , "SexSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSexSkill] = strval( val ); }
  56. if( strcmp( key , "BoxSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxSkill] = strval( val ); }
  57. if( strcmp( key , "LawSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawSkill] = strval( val ); }
  58. if( strcmp( key , "MechSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMechSkill] = strval( val ); }
  59. if( strcmp( key , "NewsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewsSkill] = strval( val ); }
  60. if( strcmp( key , "DrogasSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrogasSkill] = strval( val ); }
  61. if( strcmp( key , "CookSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCookSkill] = strval( val ); }
  62. if( strcmp( key , "FishSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishSkill] = strval( val ); }
  63. if( strcmp( key , "pSHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSHealth] = floatstr( val ); }
  64. if( strcmp( key , "Team" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTeam] = strval( val ); }
  65. if( strcmp( key , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strval( val ); }
  66. if( strcmp( key , "House" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPHousekey] = strval( val ); }
  67. if( strcmp( key , "Bizz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPbiskey] = strval( val ); }
  68. if( strcmp( key , "Pos_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_x] = floatstr( val ); }
  69. if( strcmp( key , "Pos_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_y] = floatstr( val ); }
  70. if( strcmp( key , "Pos_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_z] = floatstr( val ); }
  71. if( strcmp( key , "CarLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarLic] = strval( val ); }
  72. if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlyLic] = strval( val ); }
  73. if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoatLic] = strval( val ); }
  74. if( strcmp( key , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishLic] = strval( val ); }
  75. if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strval( val ); }
  76. if( strcmp( key , "PayDay" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDay] = strval( val ); }
  77. if( strcmp( key , "CDPlayer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCDPlayer] = strval( val ); }
  78. if( strcmp( key , "Wins" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWins] = strval( val ); }
  79. if( strcmp( key , "Loses" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLoses] = strval( val ); }
  80. if( strcmp( key , "AlcoholPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAlcoholPerk] = strval( val ); }
  81. if( strcmp( key , "DrugPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugPerk] = strval( val ); }
  82. if( strcmp( key , "MiserPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMiserPerk] = strval( val ); }
  83. if( strcmp( key , "PainPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPainPerk] = strval( val ); }
  84. if( strcmp( key , "TraderPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTraderPerk] = strval( val ); }
  85. if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTut] = strval( val ); }
  86. if( strcmp( key , "Avisos" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); }
  87. if( strcmp( key , "Married" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarried] = strval( val ); }
  88. if( strcmp( key , "MarriedTo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pMarriedTo], val, 0, strlen(val)-1, 255); }
  89. if( strcmp( key , "Spawn" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSpawn] = strval( val ); }
  90. if( strcmp( key , "SafeMaconha" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSafeDrogas] = strval( val ); }
  91. if( strcmp( key , "SafeCocaina" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSafeDrogas2] = strval( val ); }
  92. if( strcmp( key , "SafeCrack" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSafeDrogas3] = strval( val ); }
  93. if( strcmp( key , "NivelProcurado" , true ) == 0 ) { val = ini_GetValue( Data ); WantedPoints[playerid] = strval( val ); }
  94. if( strcmp( key , "SafeMateriais" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][psMats] = strval( val ); }
  95. if( strcmp( key , "Socio" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSocio] = strval( val ); }
  96. if( strcmp( key , "Luta" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLuta] = strval( val ); }
  97. if( strcmp( key , "Dorgado" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDorgado] = strval( val ); }
  98. if( strcmp( key , "Dorgado2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDorgado2] = strval( val ); }
  99. if( strcmp( key , "Doenca" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDoenca] = strval( val ); }
  100. if( strcmp( key , "Creditos" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCreditos] = strval( val ); }
  101. if( strcmp( key , "LU" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pLastLogin], val, 0, strlen(val)-1, 255); }
  102. if( strcmp( key , "Gun1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun1] = strval( val ); }
  103. if( strcmp( key , "Gun2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun2] = strval( val ); }
  104. if( strcmp( key , "Gun3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun3] = strval( val ); }
  105. if( strcmp( key , "Gun4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun4] = strval( val ); }
  106. if( strcmp( key , "Gun5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun5] = strval( val ); }
  107. if( strcmp( key , "Gun6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun6] = strval( val ); }
  108. if( strcmp( key , "Gun7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun7] = strval( val ); }
  109. if( strcmp( key , "Gun8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun8] = strval( val ); }
  110. if( strcmp( key , "Gun9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun9] = strval( val ); }
  111. if( strcmp( key , "Gun10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun10] = strval( val ); }
  112. if( strcmp( key , "Gun11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun11] = strval( val ); }
  113. if( strcmp( key , "Gun12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun12] = strval( val ); }
  114. if( strcmp( key , "Ammo1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo1] = strval( val ); }
  115. if( strcmp( key , "Ammo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo2] = strval( val ); }
  116. if( strcmp( key , "Ammo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo3] = strval( val ); }
  117. if( strcmp( key , "Ammo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo4] = strval( val ); }
  118. if( strcmp( key , "Ammo5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo5] = strval( val ); }
  119. if( strcmp( key , "Ammo6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo6] = strval( val ); }
  120. if( strcmp( key , "Ammo7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo7] = strval( val ); }
  121. if( strcmp( key , "Ammo8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo8] = strval( val ); }
  122. if( strcmp( key , "Ammo9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo9] = strval( val ); }
  123. if( strcmp( key , "Ammo10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo10] = strval( val ); }
  124. if( strcmp( key , "Ammo11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo11] = strval( val ); }
  125. if( strcmp( key , "Ammo12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo12] = strval( val ); }
  126. if( strcmp( key , "Caixinha" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCaixinha] = strval( val ); }
  127. if( strcmp( key , "Ban" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBan] = strval( val ); }
  128. logouagora[playerid] = 1;
  129. CheckOwner(playerid);
  130. //CheckAdmin(playerid);
  131. CheckOwnerb(playerid);
  132. CheckOwnerh(playerid);
  133. //CheckVip(playerid);
  134. }//end while
  135. fclose(UserFile);//close the file after everything has been read in the while
  136. dini_Set(string2,"Key",encrypt(password));
  137. dini_IntSet(string2,"Encrypted",1);
  138. }
  139. else
  140. {
  141. SendClientMessage(playerid, COLOR_YELLOW, "Sua senha está errada, caso erre mais 6 vezes, será banido");
  142. ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "Fazendo Seu Login:", "Seja Bem Vindo(a)\n Brasil Nova Vida.\n\nConta: Registrada\n\nPor Favor coloque Sua Senha Para Logar ! ", "Logar", "Sair");
  143. fclose(UserFile);
  144. gPlayerLogTries[playerid] += 1;
  145. if(gPlayerLogTries[playerid] == 10)
  146. {
  147. new stri[64], tmp[20], tmp3[20], ip[16];
  148. GetPlayerIp(playerid, ip, sizeof ip);
  149. format(stri, sizeof(stri), "IPsBanidos/%s.ini",ip);
  150. getdate(Ano, Mes, Dia);
  151. format(tmp, 20, "%d/%d/%d", Dia, Mes, Ano);
  152. gettime(Hora, Minuto, Segundo);
  153. format(tmp3, 20, "%d:%d:%d", Hora, Minuto, Segundo);
  154. format(stri, sizeof(stri), "IPsBanidos/%s.ini",ip);
  155. dini_Create(stri);
  156. dini_Set(stri,"Motivo","Errou a senha 6 vezes");
  157. dini_Set(stri,"Admin","Homem_Aranha");
  158. dini_Set(stri,"Data",tmp);
  159. dini_Set(stri,"Hora",tmp3);
  160. dini_Set(stri,"Nick",PlayerName(playerid));
  161. }
  162. return true;
  163. }
  164. ClearChatbox(playerid, 100);
  165. ResetPlayerMoney(playerid);
  166. ConsumingMoney[playerid] = 1;
  167. GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
  168. CurrentMoney[playerid] = PlayerInfo[playerid][pCash];
  169. SetPlayerWantedLevel(playerid, WantedPoints[playerid]);
  170. if(PlayerInfo[playerid][pReg] == 0)
  171. {
  172. PlayerInfo[playerid][pLevel] = 2;
  173. PlayerInfo[playerid][pSHealth] = 100;
  174. PlayerInfo[playerid][pPos_x] = 2246.6;
  175. PlayerInfo[playerid][pPos_y] = -1161.9;
  176. PlayerInfo[playerid][pPos_z] = 1029.7;
  177. PlayerInfo[playerid][pInt] = 0;
  178. PlayerInfo[playerid][pLocal] = 255;
  179. PlayerInfo[playerid][pTeam] = 3;
  180. if(PlayerInfo[playerid][pSex] == 1){SetPlayerSkin(playerid, 250);}else{SetPlayerSkin(playerid, 226);}
  181. new randphone = 1000 + random(8999);//
  182. PlayerInfo[playerid][pPnumber] = randphone;
  183. PlayerInfo[playerid][pPHousekey] = 255;
  184. PlayerInfo[playerid][pPbiskey] = 255;
  185. PlayerInfo[playerid][pConta] = 100;
  186. PlayerInfo[playerid][pReg] = 1;
  187. PlayerInfo[playerid][pEmprego] = 0;
  188. PlayerInfo[playerid][pKills] = 0;
  189. PlayerInfo[playerid][pDeaths] = 0;
  190. ResetPlayerMoney(playerid);
  191. }
  192. if(PlayerInfo[playerid][pWarns] == 1) //1 aviso
  193. {
  194. SendClientMessage(playerid, COLOR_YELLOW, "Sua Conta Já tem 1 Aviso!");
  195. SendClientMessage(playerid, COLOR_YELLOW, "Se Você tiver 3 avisos será banido automaticamente!");
  196. }
  197. if(PlayerInfo[playerid][pWarns] == 2) //2 avisos
  198. {
  199. SendClientMessage(playerid, COLOR_YELLOW, "Sua Conta Já tem 2 Avisos!");
  200. SendClientMessage(playerid, COLOR_YELLOW, "Se Você tiver 3 avisos será banido automaticamente!");
  201. }
  202. if(PlayerInfo[playerid][pWarns] >= 3) //3 avisos
  203. {
  204. PlayerInfo[playerid][pWarns] = 0;
  205. }
  206. new string[128];
  207. PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  208. printf("%s has logged in.",PlayerName(playerid));
  209. new Info[6][10];
  210. split(PlayerInfo[playerid][pLastLogin],Info,'/');
  211. format(string2, sizeof(string2), "Seu último login foi no dia %d/%d/%d horário %d:%d:%d",strval(Info[0]),strval(Info[1]),strval(Info[2]),strval(Info[3]),strval(Info[4]),strval(Info[5]));
  212. SendClientMessage(playerid, COLOR_AZULBB,string2);
  213. DateProp(playerid);
  214. new dia,mes,ano,hora,mins,seg,string3[20];
  215. getdate(ano,mes,dia);
  216. gettime(hora,mins,seg);
  217. format(string3, sizeof(string3),"%d/%d/%d/%d/%d/%d",dia,mes,ano,hora,mins,seg);
  218. strmid(PlayerInfo[playerid][pLastLogin],string3,0,strlen(string3),255);
  219. if (VipCheck(playerid) == 0 && PlayerInfo[playerid][pVIP] > 0)//teste vipinfo
  220. {
  221. PlayerInfo[playerid][pVIP] = 0;
  222. SendClientMessage(playerid, COLOR_YELLOW, "Você não é mais um jogador VIP/Premium, renove seu VIP para receber seus benefícios de volta.");
  223. }
  224. else if (PlayerInfo[playerid][pVIP] == 1)
  225. {
  226. SendClientMessage(playerid, COLOR_YELLOW,"[BVV]: Você é jogador Vip.");
  227. }
  228. else if (PlayerInfo[playerid][pSocio] == 1)
  229. {
  230. SendClientMessage(playerid, COLOR_YELLOW,"[BVV]: Você é jogador Sócio.");
  231. }
  232. else if (PlayerInfo[playerid][pVIP] == 2)
  233. {
  234. SendClientMessage(playerid, COLOR_YELLOW,"[BVV]: Você é jogador Vip Premium.");
  235. }
  236. if (AdmCheck(playerid) == 0 && PlayerInfo[playerid][pAdmin] > 0)//teste adminfo
  237. {
  238. PlayerInfo[playerid][pAdmin] = 0;
  239. SendClientMessage(playerid, COLOR_YELLOW, "[BVV]: Você não é mais um Administrador.");
  240. }
  241. if (HelperCheck(playerid) == 0 && PlayerInfo[playerid][pHelper] > 0)//teste adminfo
  242. {
  243. PlayerInfo[playerid][pHelper] = 0;
  244. SendClientMessage(playerid, COLOR_YELLOW, "[BVV]: Você não é mais um Helper.");
  245. }
  246. else if(PlayerInfo[playerid][pAdmin] > 0)
  247. {
  248. format(string2, sizeof(string2), "[BVV]: Você Logou Como Administrador Level [%d].",PlayerInfo[playerid][pAdmin]);
  249. SendClientMessage(playerid, COLOR_YELLOW,string2);
  250. }
  251. else if(PlayerInfo[playerid][pHelper] > 0)
  252. {
  253. format(string2, sizeof(string2), "[BVV]: Você Logou Como Helper Level [%d].",PlayerInfo[playerid][pHelper]);
  254. SendClientMessage(playerid, COLOR_YELLOW,string2);
  255. }
  256. SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
  257. if(gTeam[playerid] == 0)
  258. {
  259. gTeam[playerid] = 3;
  260. }
  261. else
  262. {
  263. gTeam[playerid] = PlayerInfo[playerid][pTeam];
  264. }
  265. MedicBill[playerid] = 0;
  266. gPlayerLogged[playerid] = 1;
  267. SpawnPlayer(playerid);
  268. format(tmp2, sizeof(tmp2), "~w~Bem vindo ~n~~b~~h~~h~ %s", PlayerName(playerid));
  269. GameTextForPlayer(playerid, tmp2, 5000, 1);
  270. SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 999);
  271. SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 999);
  272. SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 999);
  273. SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, 999);
  274. SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 999);
  275. SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, 999);
  276. SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 999);
  277. SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, 999);
  278. SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 999);
  279. SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 999);
  280. SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, 999);
  281. ScoreLevel(playerid);
  282. //new check = PlayerInfo[playerid][pLevel]+1;
  283. /*format(gstring,sizeof(gstring),"~b~Nome: ~w~%s ~b~Level: ~w~%d ~b~Respeito: ~w~%d~b~ / ~w~%d ~b~Celular: ~w~%d ~b~Creditos: ~w~%d", PlayerName(playerid), PlayerInfo[playerid][pLevel],
  284. PlayerInfo[playerid][pExp], check*levelexp, PlayerInfo[playerid][pPnumber], PlayerInfo[playerid][pCreditos]);
  285. TextDrawSetString(forum2[playerid], gstring);*/
  286. gmsg[playerid] = 1;
  287. TextDrawHideForPlayer(playerid, Entrada[playerid]);
  288. tempotd[playerid] = SetTimerEx("PiscarTD", 9000, 1, "i", playerid);
  289. if(PlayerInfo[playerid][pAdmin] >= 1)
  290. {
  291. new AdminName[MAX_PLAYER_NAME];
  292. GetPlayerName(playerid, AdminName, sizeof(AdminName));
  293. format(gstring, sizeof(gstring), "~w~~b~%s: ~g~On~w~", AdminName);
  294. for(new i=0; i<MAX_PLAYERS; i++)
  295. {
  296. if(IsPlayerConnected(i)) GameTextForPlayer(i, gstring , 5000, 1);
  297. }
  298. }
  299. TempoLogin = SetTimerEx("LoginAgora", 10000, 0, "i", playerid);
  300. }
  301. return true;
  302. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement