Code:
public OnPlayerLogin(playerid,password[])
{
new tmp2[400];
new string2[400];
new count = GetTickCount();
new playername2[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername2, sizeof(playername2));
format(string2, sizeof(string2), "Contas/%s.ini", playername2);
new File: UserFile = fopen(string2, io_read);
if ( UserFile )
{
new PassData[256];
new keytmp[256], valtmp[256];
fread( UserFile , PassData , sizeof( PassData ) );
keytmp = ini_GetKey( PassData );
if( strcmp( keytmp , "Key" , true ) == 0 )
{
valtmp = ini_GetValue( PassData );
strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);
}
if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 )
{
new key[ 256 ] , val[ 256 ];
new Data[ 256 ];
while ( fread( UserFile , Data , sizeof( Data ) ) )
{
key = ini_GetKey( Data );
if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNivel] = strval( val ); }
if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdminPUSSY] = strval( val ); }
if( strcmp( key , "HelperLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelper] = strval( val ); }
if( strcmp( key , "Locutor" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocutor] = strval( val ); }
if( strcmp( key , "Luta" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLuta] = strval( val ); }
SetPlayerLuta(playerid);
if( strcmp( key , "Spawn" , true ) == 0 ) { val = ini_GetValue( Data ); SpawnChange[playerid] = strval( val ); }
if( strcmp( key , "DonateRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pVIP] = strval( val ); }
if( strcmp( key , "UpgradePoints" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][gPupgrade] = strval( val ); }
if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHorasJogadas] = strval( val ); }
if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strval( val ); }
if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strval( val ); }
if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAge] = strval( val ); }
if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strval( val ); }
if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strval( val ); }
if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strval( val ); }
if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); }
if( strcmp( key , "Bank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConta] = strval( val ); }
if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrimes] = strval( val ); }
if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); }
if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strval( val ); }
if( strcmp( key , "Arrested" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArrested] = strval( val ); }
if( strcmp( key , "WantedDeaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedDeaths] = strval( val ); }
if( strcmp( key , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhoneBook] = strval( val ); }
if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr] = strval( val ); }
if( strcmp( key , "Fishes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishes] = strval( val ); }
if( strcmp( key , "BiggestFish" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBiggestFish] = strval( val ); }
if( strcmp( key , "Job" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pEmprego] = strval( val ); }
if( strcmp( key , "Paycheck" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayCheck] = strval( val ); }
if( strcmp( key , "HeadValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeadValue] = strval( val ); }
if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailed] = strval( val ); }
if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailTime] = strval( val ); }
if( strcmp( key , "Materials" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMats] = strval( val ); }
if( strcmp( key , "SafeD" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSafeDrogas] = strval( val ); }
if( strcmp( key , "SafeM" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSafeMateriais] = strval( val ); }
if( strcmp( key , "Maconha" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMaconha] = strval( val ); }
if( strcmp( key , "Crack" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrack] = strval( val ); }
if( strcmp( key , "Cocaina" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCocaina] = strval( val ); }
if( strcmp( key , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLider] = strval( val ); }
if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMembro] = strval( val ); }
if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCargo] = strval( val ); }
if( strcmp( key , "Char" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSkin] = strval( val ); }
if( strcmp( key , "ContractTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pContractTime] = strval( val ); }
if( strcmp( key , "DetSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDetSkill] = strval( val ); }
if( strcmp( key , "SexSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSexSkill] = strval( val ); }
if( strcmp( key , "BoxSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxSkill] = strval( val ); }
if( strcmp( key , "LawSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawSkill] = strval( val ); }
if( strcmp( key , "MechSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMechSkill] = strval( val ); }
if( strcmp( key , "JackSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJackSkill] = strval( val ); }
if( strcmp( key , "CarSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarSkill] = strval( val ); }
if( strcmp( key , "NewsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewsSkill] = strval( val ); }
if( strcmp( key , "DrugsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugsSkill] = strval( val ); }
if( strcmp( key , "CookSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCookSkill] = strval( val ); }
if( strcmp( key , "FishSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishSkill] = strval( val ); }
if( strcmp( key , "pSHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSHealth] = floatstr( val ); }
if( strcmp( key , "pHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHealth] = floatstr( val ); }
if( strcmp( key , "Int" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInt] = strval( val ); }
if( strcmp( key , "Local" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocal] = strval( val ); }
if( strcmp( key , "LoginD" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pLastLogin], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "HoraLogin" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pLastHora], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "MinutoLogin" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pLastMinuto], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "SegundoLogin" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pLastSegundo], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "DiaLogin" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pLastDia], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "MesLogin" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pLastMes], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "AnoLogin" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pLastAno], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Team" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTeam] = strval( val ); }
if( strcmp( key , "Model" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pModel] = strval( val ); }
if( strcmp( key , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strval( val ); }
if( strcmp( key , "House" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhousekey] = strval( val ); }
if( strcmp( key , "Bizz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPbiskey] = strval( val ); }
if( strcmp( key , "Pos_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_x] = floatstr( val ); }
if( strcmp( key , "Pos_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_y] = floatstr( val ); }
if( strcmp( key , "Pos_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_z] = floatstr( val ); }
if( strcmp( key , "CarLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarLic] = strval( val ); }
if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlyLic] = strval( val ); }
if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoatLic] = strval( val ); }
if( strcmp( key , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishLic] = strval( val ); }
if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strval( val ); }
if( strcmp( key , "Gun1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun1] = strval( val ); }
if( strcmp( key , "Gun2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun2] = strval( val ); }
if( strcmp( key , "Gun3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun3] = strval( val ); }
if( strcmp( key , "Gun4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun4] = strval( val ); }
if( strcmp( key , "Ammo1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo1] = strval( val ); }
if( strcmp( key , "Ammo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo2] = strval( val ); }
if( strcmp( key , "Ammo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo3] = strval( val ); }
if( strcmp( key , "Ammo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo4] = strval( val ); }
if( strcmp( key , "CarTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarTime] = strval( val ); }
if( strcmp( key , "PayDay" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDay] = strval( val ); }
if( strcmp( key , "PayDayHad" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDayHad] = strval( val ); }
if( strcmp( key , "CDPlayer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCDPlayer] = strval( val ); }
if( strcmp( key , "Cigarros" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCigarro] = strval( val ); }
if( strcmp( key , "Wins" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWins] = strval( val ); }
if( strcmp( key , "Loses" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLoses] = strval( val ); }
if( strcmp( key , "AlcoholPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAlcoholPerk] = strval( val ); }
if( strcmp( key , "DrugPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugPerk] = strval( val ); }
if( strcmp( key , "MiserPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMiserPerk] = strval( val ); }
if( strcmp( key , "PainPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPainPerk] = strval( val ); }
if( strcmp( key , "TraderPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTraderPerk] = strval( val ); }
if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTut] = strval( val ); }
if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); }
if( strcmp( key , "Adjustable" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdjustable] = strval( val ); }
if( strcmp( key , "Fuel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFuel] = strval( val ); }
if( strcmp( key , "Married" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarried] = strval( val ); }
if( strcmp( key , "MarriedTo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pMarriedTo], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Ban" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBan] = strval( val ); }
if( strcmp( key , "CrashX" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrashX] = floatstr( val ); }
if( strcmp( key , "CrashY" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrashY] = floatstr( val ); }
if( strcmp( key , "CrashZ" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrashZ] = floatstr( val ); }
if( strcmp( key , "CrashInt" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrashInt] = strval( val ); }
if( strcmp( key , "CrashW" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrashW] = strval( val ); }
if( strcmp( key , "Crashed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrashed] = strval( val ); }
if( strcmp( key , "Chamada" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pUsaChamada] = strval( val ); }
if( strcmp( key , "P1" , true ) == 0 ) { val = ini_GetValue( Data ); WantedLevel[playerid] = strval( val ); }
if( strcmp( key , "P2" , true ) == 0 ) { val = ini_GetValue( Data ); WantedPoints[playerid] = strval( val ); }
if( strcmp( key , "Chave" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarKey] = strval( val ); }
if( strcmp( key , "Caixinha" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCaixinha] = strval( val ); }
if( strcmp( key , "Atendidos" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAtendidos] = strval( val ); }
}//end while
fclose(UserFile);//close the file after everything has been read in the while
}
else
{
new loginstring[450];
new loginname[MAX_PLAYER_NAME];
GetPlayerName(playerid,loginname,sizeof(loginname));
new plrIP[32];
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
format(loginstring,sizeof(loginstring),"{EEEE88}*\t\t{1EFF00}Brasil {EEEE88}Play{5167BD}pussy {1EFF00}R{E01B4C}P{EEEE88}G\t\t{EEEE88}*\n\n{EEEE88}* {EEEE88}Conta: {FFFFFF}%s\n{EEEE88}* {EEEE88}Status: {1EFF00}Registrada\n{EEEE88}* {EEEE88}Endereзo IP: {1EFF00} %s\n\n\n{FFFFFF}Senha incorreta, coloque sua senha abaixo:",loginname, plrIP);
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"{00FF04}Brasil {FFFF00}Play{0044FF}pussy {9EB5FF} - Logando:",loginstring,"Logar-se","Sair");
fclose(UserFile);
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 4)
{
SendClientMessage(playerid, COLOR_YELLOW2, "Vocк foi kickado por errar a senha 4 vezes.");
Kick(playerid);
}
return 1;
}
printf("Isso aki demorou %d segundos pra carregar0", GetTickCount() - count);
PlayerPlaySound(playerid, 1185, 0.0, 0.0, 0.0);
//{FFFFFF}Coloque a sua Senha Abaixo:
PlayerInfo[playerid][pAdjustable] = 0;
ResetPlayerMoneyEx(playerid);
ConsumingMoney[playerid] = 1;
WantedLevel[playerid] = WantedLevel[playerid];
WantedPoints[playerid] = WantedPoints[playerid];
GivePlayerMoneyEx(playerid,PlayerInfo[playerid][pCash]);
CurrentMoney[playerid] = PlayerInfo[playerid][pCash];
SetPlayerWantedLevel(playerid, WantedLevel[playerid]);
if(PlayerInfo[playerid][pReg] == 0)
{
PlayerInfo[playerid][pNivel] = 2;
PlayerInfo[playerid][pSHealth] = 0.0;
PlayerInfo[playerid][pHealth] = 50.0;
PlayerInfo[playerid][pPos_x] = 2246.6;
PlayerInfo[playerid][pPos_y] = -1161.9;
PlayerInfo[playerid][pPos_z] = 1029.7;
PlayerInfo[playerid][pInt] = 15;
PlayerInfo[playerid][pLocal] = 255;
PlayerInfo[playerid][pTeam] = 3;
PlayerInfo[playerid][pModel] = 73;
new randphone = 1000 + random(9999);//minimum 1000 max 9999 //giving one at the start
PlayerInfo[playerid][pPnumber] = randphone;
PlayerInfo[playerid][pPhousekey] = 255;
PlayerInfo[playerid][pPbiskey] = 255;
PlayerInfo[playerid][pConta] = 100000;
PlayerInfo[playerid][pReg] = 1;
GivePlayerMoneyEx(playerid, 5000);
}
if(PlayerInfo[playerid][pNivel] == 2)
{
PlayerInfo[playerid][pNivel] = 3;
PlayerInfo[playerid][pConta] += 5000000;
format(string2, sizeof(string2), "Olб %s, Bem vindo pela primeira vez ao nosso servidor! Com isso recebeu 5kk e nivel 3!",playername2);
SendClientMessage(playerid, COLOR_LIGHTRED, string2);
}
new string[256];
if(PlayerInfo[playerid][pOrigin] == 1)//Brasil
{
format(string, sizeof(string),"\n\n{00FF04}Bra{FFFF00}sile{0044FF}iro\n{FFFFFF}• Nнvel: {E01B4C}%d{FFFFFF} •",PlayerInfo[playerid][pNivel]);
Nacionalidade[playerid] = Create3DTextLabel(string, COLOR_LIGHTBLUE, 0.0,0.0,0.0, 5.0, GetPlayerVirtualWorld(playerid));
Attach3DTextLabelToPlayer(Nacionalidade[playerid], playerid, 0.0, 0.0, 1.0);
}
else if(PlayerInfo[playerid][pOrigin] == 2)//Portugal
{
format(string, sizeof(string),"\n\n{00FF00}Por{FFFF00}tug{FF0000}uкs\n{FFFFFF}• Nнvel: {E01B4C}%d{FFFFFF} •",PlayerInfo[playerid][pNivel]);
Nacionalidade[playerid] = Create3DTextLabel(string, COLOR_LIGHTBLUE, 0.0,0.0,0.0, 5.0, GetPlayerVirtualWorld(playerid));
Attach3DTextLabelToPlayer(Nacionalidade[playerid], playerid, 0.0, 0.0, 1.0);
}
else if(PlayerInfo[playerid][pOrigin] == 3)//America
{
format(string, sizeof(string),"\n\nAmericano\n{FFFFFF}• Nнvel: {E01B4C}%d{FFFFFF} •",PlayerInfo[playerid][pNivel]);
Nacionalidade[playerid] = Create3DTextLabel(string, COLOR_LIGHTBLUE, 0.0,0.0,0.0, 5.0, GetPlayerVirtualWorld(playerid));
Attach3DTextLabelToPlayer(Nacionalidade[playerid], playerid, 0.0, 0.0, 1.0);
}
pOnline();
format(string, sizeof(string), "(B.P.S): %s entrou no servidor (%d/%d)",PlayerName(playerid),totalon,MaxP);
EntrouMensagem(COLOR_MENSAGEM, string);
EntrouMensagem2(COLOR_MENSAGEM, string);
SendClientMessage(playerid, COLOR_NEWS, "·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·");
format(string2, sizeof(string2), "Bem vindo ao Pussy's RPG: {FFFFFF}%s.",playername2);
SendClientMessage(playerid, AZULCLARO, string2);
SendClientMessage(playerid, 0x87DEFFFF, "Donos do Servidor: {FFFFFF}The Pussy Is The Power");
SendClientMessage(playerid, 0x87D6FFFF, "Sub-Donos do Servidor: {FFFFFF}Ninguйm");
SendClientMessage(playerid, 0x87CDFFFF, "WebSite do Servidor: {FFFFFF}www.pussy.net");
SendClientMessage(playerid, COLOR_NEWS, "·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·•·");
StopAudioStreamForPlayer(playerid);
printf("Teste 1");
printf("Isso aki demorou %d segundos pra carregar1", GetTickCount() - count);
MedicBill[playerid] = 0;
DollahScoreUpdate();
new dia,mes,ano,hora,mins,seg;
getdate(ano,mes,dia);
gettime(hora,mins,seg);
FixHour(hora);
hora = shifthour;
format(string2, 256,"%d/%d/%d/%d/%d/%d",dia,mes,ano,hora+3,mins,seg);
strmid(PlayerInfo[playerid][pLastLogin],string2,0,strlen(string2),255);
format(string2, 256,"%d",dia);
strmid(PlayerInfo[playerid][pLastDia],string2,0,strlen(string2),255);
format(string2, 256,"%d",mes);
strmid(PlayerInfo[playerid][pLastMes],string2,0,strlen(string2),255);
format(string2, 256,"%d",ano);
strmid(PlayerInfo[playerid][pLastAno],string2,0,strlen(string2),255);
format(string2, 256,"%d",hora+1);
strmid(PlayerInfo[playerid][pLastHora],string2,0,strlen(string2),255);
format(string2, 256,"%d",mins);
strmid(PlayerInfo[playerid][pLastMinuto],string2,0,strlen(string2),255);
format(string2, 256,"%d",seg);
strmid(PlayerInfo[playerid][pLastSegundo],string2,0,strlen(string2),255);
pOnline();
printf("%s Logou no servidor. (%i/%i)",playername2, totalon, MaxP);
if (PlayerInfo[playerid][pVIP] == 1)
{
SendClientMessage(playerid, BRANCO,"[{E01B4C}INFO{FFFFFF}]: Vocк й um Jogador {FF6347}VIP.");
}
if (PlayerInfo[playerid][pVIP] == 2)
{
SendClientMessage(playerid, BRANCO,"[{E01B4C}INFO{FFFFFF}]: Vocк й um Jogador {FF4FA5}VIP-STAR.");
}
if (GetPlayerOrg(playerid) > 0)
{
format(string2, sizeof(string2), "[{E01B4C}INFO{FFFFFF}]: Vocк pertence a organizaзгo: %s.",NomeORG(playerid));
SendClientMessage(playerid, BRANCO,string2);
}
if (PlayerInfo[playerid][pHelper] >= 1)
{
format(string2, sizeof(string2), "[{E01B4C}INFO{FFFFFF}]: Vocк logou com nнvel %d de Helper.",PlayerInfo[playerid][pHelper]);
SendClientMessage(playerid, BRANCO,string2);
}
if (PlayerInfo[playerid][pLocutor] >= 1)
{
format(string2, sizeof(string2), "[{E01B4C}INFO{FFFFFF}]: Vocк й Locutor da Rбdio Pussy's.");
SendClientMessage(playerid, BRANCO,string2);
}
if (PlayerInfo[playerid][pAdminPussy] >= 1 && PlayerInfo[playerid][pAdminPussy] <= 2999)
{
format(string2, sizeof(string2), "[{E01B4C}INFO{FFFFFF}]: Vocк logou com nнvel {FF4FA5}%d de Admin.",PlayerInfo[playerid][pAdminPussy]);
SendClientMessage(playerid, BRANCO,string2);
modoadmin[playerid] = 1;
SetPlayerColor(playerid, COLOR_ROSA);
TempoAdministrador = SetTimerEx("Administrador", 1000, 1, "i", playerid);
PhoneOnline[playerid] = 1;
SendClientMessage(playerid,BRANCO,"[{E01B4C}INFO{FFFFFF}]: Vocк й admin e logou com o Celular Desligado, se quiser ligar use /desligarcel.");
}
if (PlayerInfo[playerid][pAdminPussy] >= 3000)
{
format(string2, sizeof(string2), "[{E01B4C}INFO{FFFFFF}]: Vocк logou com nнvel {FF4FA5}%d de Admin Oculto.",PlayerInfo[playerid][pAdminPussy]);
SendClientMessage(playerid, BRANCO,string2);
modoadmin[playerid] = 2;
PhoneOnline[playerid] = 1;
SendClientMessage(playerid,BRANCO,"[{E01B4C}INFO{FFFFFF}]: Vocк й admin e logou com o Celular Desligado, se quiser ligar use /desligarcel.");
}
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);
if(gTeam[playerid] == 0)
{
gTeam[playerid] = 3;
}
else
{
gTeam[playerid] = PlayerInfo[playerid][pTeam];
}
SpawnPlayer(playerid);
printf("Isso aki demorou %d segundos pra carregar2", GetTickCount() - count);
new arquivo[100];
format(arquivo, sizeof(arquivo), "Cadeias/%s.ini",PlayerName(playerid));
if(dini_Exists(arquivo))
{
new TempoPrisao[MAX_SLOTS];
TempoPrisao[playerid] = dini_Int(arquivo, "Tempo");
SendClientMessage(playerid, COLOR_YELLOW2, "|_(B.P.S)_|Agendamento de Cadeia|_(B.P.S)_|");
format(string, sizeof(string), "Administrador que Agendou: {FFFFFF}%s", dini_Get(arquivo, "Admin"));
SendClientMessage(playerid, TEAM_BALLAS_COLOR, string);
format(string, sizeof(string), "Tempo Agendado: {FFFFFF}%d minutos", TempoPrisao[playerid]);
SendClientMessage(playerid, TEAM_BALLAS_COLOR, string);
format(string, sizeof(string), "Motivo: {FFFFFF}%s", dini_Get(arquivo, "Motivo"));
SendClientMessage(playerid, TEAM_BALLAS_COLOR, string);
ResetPlayerWeapons(playerid);
WantedPoints[playerid] = 0;
PlayerInfo[playerid][pJailed] = 5;
PlayerInfo[playerid][pJailTime] = TempoPrisao[playerid]*60;
SetPlayerInterior(playerid, 18);
SetPlayerWantedLevel(playerid, 0);
SetPlayerVirtualWorld(playerid, playerid+1);
SetPlayerPos(playerid, -221.059051,1408.984008,27.773437);
dini_Remove(arquivo);
}
printf("Isso aki demorou %d segundos pra carregar3", GetTickCount() - count);
MedicBill[playerid] = 0;
GameTextForPlayer(playerid, "~d~~r~~h~Pussy Versao: ~w~V2.4" , 5000, 1);
format(tmp2, sizeof(tmp2), "~w~Bem Vindo ~n~~y~ %s", playername2);
//DateProp(playerid);
printf("Isso aki demorou %d segundos pra carregar4", GetTickCount() - count);
SendClientMessage(playerid, BRANCO, "[{E01B4C}PROMOЗГO{FFFFFF}]: Valendo dinheiro e respeito ativadas, pegue a sua quando tiver 15+ Online!");
GameTextForPlayer(playerid, tmp2, 5000, 1);
SendClientMessage(playerid, AZULCLARO, motd);
gPlayerLogged[playerid] = 1;
printf("Isso aki demorou %d segundos pra carregar5", GetTickCount() - count);
CheckInfoOrg(playerid);
printf("Isso aki demorou %d segundos pra carregar6", GetTickCount() - count);
//Rest of OnPlayerConnect
CheckBan(playerid);
DateProp(playerid);
printf("Isso aki demorou %d segundos pra carregar7", GetTickCount() - count);
if((PlayerInfo[playerid][pAdminPUSSY] >= 1) && (PlayerInfo[playerid][pAdminPussy] <= 2999))
{
format(string, sizeof(string), "~y~%s~g~ ON", PlayerName(playerid));
countadmin++;
for(new i=0; i<MAX_SLOTS; i++)
{
GameTextForPlayer(i, string , 5000, 1);
}
}
VerificarCrash(playerid);
printf("Isso aki demorou %d segundos pra carregar8", GetTickCount() - count);
}
return 1;
}