Jump to content
  • 0

Problema Login


OneShot

Question

Problema intalnita (descriere): Cand intru pe server si imi fac cont totul merge OK, imi aleg parola sa ma inregistrez, apoi bag parola sa ma logheze, aleg sexul, varsta, etc. Totul bine pana acum, DAR daca dau quit si intru iar pe server, ma pune sa ma loghez, bag parola, dar dupaia in loc sa ma Spawneze ma pune sa aleg IAR sexul, varsta, etc. Si imi reseteaza iar variabilele din cont, asa cum sunt puse cand iti faci cont... La inceput cand fac cont variabilele se salveaza perfect, nici o problema, dar cand intru iar si ma loghez le pune iar... Si ma pune cum spus sa aleg iar sexul, varsta, etc. :(( Nu stiu ce sa mai fac, nu imi dau seama ce este gresit, am verificat tot... :(( Ajutati-ma va rog, spuneti-mi de la ce ar putea fi, sau ce script sa va arat, onplayerlogin sau ce vreti, si il postez ca sa ma puteti ajuta... :( Tin sa mentionez ca este 100% de la ceva din GM, nu este de la include/fs sau altceva.
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul: Spuneti-mi ce sa pun ca nu stiu de la ce poate fi problema... Am verificat tot cred. :(
Imagini / Video: 1. Prima intrare pe server: http://www.girlshare.ro/34440861.4-> Totul este OK momentan.
                          2. A doua intrare pe server: http://www.girlshare.ro/34440862.5-> Dupa cum vedeti, nu ma spawneaza, ci imi reseteaza iar contul, ma pune sa aleg sexul, varsta...
 
>>> Am deschis Server-ul in PC-ul meu si i-am schimbat numele in "CENZURA" ca sa evit reclama. :) <<<
 
Ati incercat sa rezolvati singur?: Da, am modificat chestii in onplayerregister, onplayerlogin, onplayerspawn, setplayerspawn, ongamemodeinit, am verificat pKey, am verificat daca sunt puse bine chestiile care contin pTutorial, pRegistered, si sunt puse OK zic eu... Am verificat daca sunt puse bine variabilele care se salveaza in cont (ex: Nivel) , ele se salveaza perfect in fisierul din users... Dar totusi nu te spawneaza pe server... Te pune sa alegi iar sexul, varsta, etc. Cum am spus si mai sus.
Sper ca ma puteti ajuta. Multumesc! :(
Edited by OneShot
Link to comment
Share on other sites

22 answers to this question

Recommended Posts

  • 0

Multe lucrurui, nu-mi amintesc ce, asta este problema... Daca va pun toate aceste functii imi puteti spune daca este ceva gresit in ele? :((

 

Ati vazut video-urile? Aveti idee de la ce se poate intampla asta? ...

Edited by OneShot
Link to comment
Share on other sites

  • 0

Am doar OnPlayerUpdateEx:

public OnPlayerUpdateEx(playerid)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid])
{
new string3[64];
new playername3[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername3, sizeof(playername3));
format(string3, sizeof(string3), "Jucatori/%s.ini", playername3);
new File: hFile = fopen(string3, io_write);
if(hFile)
{
new var[64];
format(var, 64, "Key = %sn", PlayerInfo[playerid][pKey]); fwrite(hFile, var);
PlayerInfo[playerid][pCash] = GetPlayerCash(playerid);
format(var, 64, "Nivel = %dn", PlayerInfo[playerid][pNivel]); fwrite(hFile, var);
format(var, 64, "AdminNivel = %dn", PlayerInfo[playerid][pAdmin]); fwrite(hFile, var);
format(var, 64, "HelperNivel = %dn", PlayerInfo[playerid][pHelper]); fwrite(hFile, var);
format(var, 64, "DonateRank = %dn", PlayerInfo[playerid][pDonateRank]); fwrite(hFile, var);
format(var, 64, "UpgradePoints = %dn", PlayerInfo[playerid][pUpgrade]); fwrite(hFile, var);
format(var, 64, "ConnectedTime = %dn", PlayerInfo[playerid][pOreJucate]); fwrite(hFile, var);
format(var, 64, "Registered = %dn", PlayerInfo[playerid][pReg]); fwrite(hFile, var);
format(var, 64, "Sex = %dn", PlayerInfo[playerid][pSex]); fwrite(hFile, var);
format(var, 64, "Age = %dn", PlayerInfo[playerid]

); fwrite(hFile, var);
format(var, 64, "Mail = %sn", PlayerInfo[playerid][pMail]); fwrite(hFile, var);
format(var, 64, "Origin = %dn", PlayerInfo[playerid][pOrigin]); fwrite(hFile, var);
format(var, 64, "Muted = %dn", PlayerInfo[playerid][pMuted]); fwrite(hFile, var);
format(var, 64, "FMuted = %dn", PlayerInfo[playerid][pFMuted]); fwrite(hFile, var);
format(var, 64, "Respect = %dn", PlayerInfo[playerid][pRespect]); fwrite(hFile, var);
format(var, 64, "Money = %dn", PlayerInfo[playerid][pCash]); fwrite(hFile, var);
format(var, 64, "Bank = %dn", PlayerInfo[playerid][pAccount]); fwrite(hFile, var);
format(var, 64, "Banks = %dn", PlayerInfo[playerid][pAccf]); fwrite(hFile, var);
format(var, 64, "Crimes = %dn", PlayerInfo[playerid][pCrimes]); fwrite(hFile, var);
format(var, 64, "Kills = %dn", PlayerInfo[playerid][pKills]); fwrite(hFile, var);
format(var, 64, "Deaths = %dn", PlayerInfo[playerid][pDeaths]); fwrite(hFile, var);
format(var, 64, "Arrested = %dn", PlayerInfo[playerid][pArrested]); fwrite(hFile, var);
format(var, 64, "WantedDeaths = %dn", PlayerInfo[playerid][pWantedDeaths]); fwrite(hFile, var);
PlayerInfo[playerid][pWantedLevel] = GetPlayerWantedLevel(playerid);
format(var, 64, "WantedLevel = %dn", PlayerInfo[playerid][pWantedLevel]); fwrite(hFile, var);
format(var, 64, "WantedPoints = %dn", PlayerInfo[playerid][pWantedPoints]); fwrite(hFile, var);
format(var, 64, "Phonebook = %dn", PlayerInfo[playerid][pPhoneBook]); fwrite(hFile, var);
format(var, 64, "LottoNr = %dn", PlayerInfo[playerid][pLottoNr]); fwrite(hFile, var);
format(var, 64, "Fishes = %dn", PlayerInfo[playerid][pFishes]); fwrite(hFile, var);
format(var, 64, "BiggestFish = %dn", PlayerInfo[playerid][pBiggestFish]); fwrite(hFile, var);
format(var, 64, "Job = %dn", PlayerInfo[playerid][pJob]); fwrite(hFile, var);
format(var, 64, "Paycheck = %dn", PlayerInfo[playerid][pPayCheck]); fwrite(hFile, var);
format(var, 64, "HeadValue = %dn", PlayerInfo[playerid][pHeadValue]); fwrite(hFile, var);
format(var, 64, "Jailed = %dn", PlayerInfo[playerid][pJailed]); fwrite(hFile, var);
format(var, 64, "JailTime = %dn", PlayerInfo[playerid][pJailTime]); fwrite(hFile, var);
format(var, 64, "Materials = %dn", PlayerInfo[playerid][pMats]); fwrite(hFile, var);
format(var, 64, "Drugs = %dn", PlayerInfo[playerid][pDrugs]); fwrite(hFile, var);
format(var, 64, "Lider = %dn", PlayerInfo[playerid][pLider]); fwrite(hFile, var);
format(var, 64, "Membru = %dn", PlayerInfo[playerid][pMembru]); fwrite(hFile, var);
format(var, 64, "Rank = %dn", PlayerInfo[playerid][pRank]); fwrite(hFile, var);
format(var, 64, "Char = %dn", PlayerInfo[playerid][pChar]); fwrite(hFile, var);
format(var, 64, "DetSkill = %dn", PlayerInfo[playerid][pDetSkill]); fwrite(hFile, var);
format(var, 64, "SexSkill = %dn", PlayerInfo[playerid][pSexSkill]); fwrite(hFile, var);
format(var, 64, "BoxSkill = %dn", PlayerInfo[playerid][pBoxSkill]); fwrite(hFile, var);
format(var, 64, "MechSkill = %dn", PlayerInfo[playerid][pMechSkill]); fwrite(hFile, var);
format(var, 64, "JackSkill = %dn", PlayerInfo[playerid][pJackSkill]); fwrite(hFile, var);
format(var, 64, "CarSkill = %dn", PlayerInfo[playerid][pCarSkill]); fwrite(hFile, var);
format(var, 64, "NewsSkill = %dn", PlayerInfo[playerid][pNewsSkill]); fwrite(hFile, var);
format(var, 64, "DrugsSkill = %dn", PlayerInfo[playerid][pDrugsSkill]); fwrite(hFile, var);
format(var, 64, "CookSkill = %dn", PlayerInfo[playerid][pCookSkill]); fwrite(hFile, var);
format(var, 64, "FishSkill = %dn", PlayerInfo[playerid][pFishSkill]); fwrite(hFile, var);
GetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
format(var, 64, "pHealth = %.1fn", PlayerInfo[playerid][pHealth]); fwrite(hFile, var);
format(var, 64, "Int = %dn", PlayerInfo[playerid][pInt]); fwrite(hFile, var);
format(var, 64, "Local = %dn", PlayerInfo[playerid][pLocal]); fwrite(hFile, var);
format(var, 64, "Team = %dn", PlayerInfo[playerid][pTeam]); fwrite(hFile, var);
format(var, 64, "Model = %dn", PlayerInfo[playerid][pModel]); fwrite(hFile, var);
format(var, 64, "PhoneNr = %dn", PlayerInfo[playerid][pPnumber]); fwrite(hFile, var);
format(var, 64, "Car = %dn", PlayerInfo[playerid][pPcarkey]); fwrite(hFile, var);
format(var, 64, "Car2 = %dn", PlayerInfo[playerid][pPcarkey2]); fwrite(hFile, var);
format(var, 64, "Car3 = %dn", PlayerInfo[playerid][pPcarkey3]); fwrite(hFile, var);
format(var, 64, "Car4 = %dn", PlayerInfo[playerid][pPcarkey4]); fwrite(hFile, var);
format(var, 64, "House = %dn", PlayerInfo[playerid][pPhousekey]); fwrite(hFile, var);
format(var, 64, "Bizz = %dn", PlayerInfo[playerid][pPbiskey]); fwrite(hFile, var);

if((PlayerInfo[playerid][pPos_x] == 0.0 && PlayerInfo[playerid][pPos_y] == 0.0 && PlayerInfo[playerid][pPos_z] == 0.0))
{
PlayerInfo[playerid][pPos_x] = 1684.9;
PlayerInfo[playerid][pPos_y] = -2244.5;
PlayerInfo[playerid][pPos_z] = 13.5;
}
if(Spectate[playerid] != 255)
{
PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx];
PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy];
PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz];
PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
}

new Float: x, Float: y, Float: z;
GetPlayerPos(playerid, x, y, z);
PlayerInfo[playerid][pPos_x] = x;
PlayerInfo[playerid][pPos_y] = y;
PlayerInfo[playerid][pPos_z] = z;

format(var, 64, "Pos_x = %.1fn", PlayerInfo[playerid][pPos_x]); fwrite(hFile, var);
format(var, 64, "Pos_y = %.1fn", PlayerInfo[playerid][pPos_y]); fwrite(hFile, var);
format(var, 64, "Pos_z = %.1fn", PlayerInfo[playerid][pPos_z]); fwrite(hFile, var);
format(var, 64, "CarLic = %dn", PlayerInfo[playerid][pCarLic]); fwrite(hFile, var);
format(var, 64, "Tow = %dn", PlayerInfo[playerid][pTow]); fwrite(hFile, var);
format(var, 64, "FlyLic = %dn", PlayerInfo[playerid][pFlyLic]); fwrite(hFile, var);
format(var, 64, "BoatLic = %dn", PlayerInfo[playerid][pBoatLic]); fwrite(hFile, var);
format(var, 64, "FishLic = %dn", PlayerInfo[playerid][pFishLic]); fwrite(hFile, var);
format(var, 64, "GunLic = %dn", PlayerInfo[playerid][pGunLic]); fwrite(hFile, var);
format(var, 64, "Pasaport = %dn", PlayerInfo[playerid][pPasaport]); fwrite(hFile, var);
format(var, 64, "Gun1 = %dn", PlayerInfo[playerid][pGun1]); fwrite(hFile, var);
format(var, 64, "Gun2 = %dn", PlayerInfo[playerid][pGun2]); fwrite(hFile, var);
format(var, 64, "Gun3 = %dn", PlayerInfo[playerid][pGun3]); fwrite(hFile, var);
format(var, 64, "Gun4 = %dn", PlayerInfo[playerid][pGun4]); fwrite(hFile, var);
format(var, 64, "Ammo1 = %dn", PlayerInfo[playerid][pAmmo1]); fwrite(hFile, var);
format(var, 64, "Ammo2 = %dn", PlayerInfo[playerid][pAmmo2]); fwrite(hFile, var);
format(var, 64, "Ammo3 = %dn", PlayerInfo[playerid][pAmmo3]); fwrite(hFile, var);
format(var, 64, "Ammo4 = %dn", PlayerInfo[playerid][pAmmo4]); fwrite(hFile, var);
format(var, 64, "CarTime = %dn", PlayerInfo[playerid][pCarTime]); fwrite(hFile, var);
format(var, 64, "RobTime = %dn", PlayerInfo[playerid][pRobTime]); fwrite(hFile, var);
format(var, 64, "ATMTime = %dn", PlayerInfo[playerid][pATMTime]); fwrite(hFile, var);
format(var, 64, "MissTime = %dn", PlayerInfo[playerid][pMissTime]); fwrite(hFile, var);
format(var, 64, "ATMTry = %dn", PlayerInfo[playerid][pATMTry]); fwrite(hFile, var);
format(var, 64, "GunoierTime = %dn", PlayerInfo[playerid][pGunoierTime]); fwrite(hFile, var);
format(var, 64, "MaturatorTime = %dn", PlayerInfo[playerid][pMaturatorTime]); fwrite(hFile, var);
format(var, 64, "KOTime = %dn", PlayerInfo[playerid][pKOTime]); fwrite(hFile, var);
format(var, 64, "GTSTime = %dn", PlayerInfo[playerid][pGTSTime]); fwrite(hFile, var);
format(var, 64, "RKOTime = %dn", PlayerInfo[playerid][pRKOTime]); fwrite(hFile, var);
format(var, 64, "KSTime = %dn", PlayerInfo[playerid][pKSTime]); fwrite(hFile, var);
format(var, 64, "JefuireTime = %dn", PlayerInfo[playerid][pJefuireTime]); fwrite(hFile, var);
format(var, 64, "FermierTime = %dn", PlayerInfo[playerid][pFermierTime]); fwrite(hFile, var);
format(var, 64, "TractoristTime = %dn", PlayerInfo[playerid][pTractoristTime]); fwrite(hFile, var);
format(var, 64, "PayDay = %dn", PlayerInfo[playerid][pPayDay]); fwrite(hFile, var);
format(var, 64, "Crashed = %dn", PlayerInfo[playerid][pCrashed]); fwrite(hFile, var);
format(var, 64, "Wins = %dn", PlayerInfo[playerid][pWins]); fwrite(hFile, var);
format(var, 64, "Loses = %dn", PlayerInfo[playerid][pLoses]); fwrite(hFile, var);
format(var, 64, "AlcoholPerk = %dn", PlayerInfo[playerid][pAlcoholPerk]); fwrite(hFile, var);
format(var, 64, "DrugPerk = %dn", PlayerInfo[playerid][pDrugPerk]); fwrite(hFile, var);
format(var, 64, "MiserPerk = %dn", PlayerInfo[playerid][pMiserPerk]); fwrite(hFile, var);
format(var, 64, "PainPerk = %dn", PlayerInfo[playerid][pPainPerk]); fwrite(hFile, var);
format(var, 64, "Tutorial = %dn", PlayerInfo[playerid][pTut]); fwrite(hFile, var);
format(var, 64, "Warnings = %dn", PlayerInfo[playerid][pWarns]); fwrite(hFile, var);
format(var, 64, "FWarn = %dn", PlayerInfo[playerid][pFWarns]); fwrite(hFile, var);
format(var, 64, "LWarn = %dn", PlayerInfo[playerid][pLWarns]); fwrite(hFile, var);
format(var, 64, "AWarn = %dn", PlayerInfo[playerid][pAWarns]); fwrite(hFile, var);
format(var, 64, "VirWorld = %dn", PlayerInfo[playerid][pVirWorld]); fwrite(hFile, var);
if(PlayerInfo[playerid][pDonateRank] < 1) { PlayerInfo[playerid][pFuel] = 0; }
format(var, 64, "Fuel = %dn", PlayerInfo[playerid][pFuel]); fwrite(hFile, var);
format(var, 64, "Married = %dn", PlayerInfo[playerid][pMarried]); fwrite(hFile, var);
format(var, 64, "MarriedTo = %sn", PlayerInfo[playerid][pMarriedTo]); fwrite(hFile, var);
format(var, 64, "FishTool = %dn", PlayerInfo[playerid][pFishTool]); fwrite(hFile, var);
format(var, 64, "InvWeapon = %dn", PlayerInfo[playerid][pInvWeapon]); fwrite(hFile, var);
format(var, 64, "InvAmmo = %dn", PlayerInfo[playerid][pInvAmmo]); fwrite(hFile, var);
format(var, 64, "Locked = %dn", PlayerInfo[playerid][pLocked]); fwrite(hFile, var);
format(var, 64, "LockedTime = %dn", PlayerInfo[playerid][pLockedTime]); fwrite(hFile, var);
format(var, 64, "OreFactiune = %dn", PlayerInfo[playerid][pOre]); fwrite(hFile, var);
format(var, 64, "BlackList = %dn", PlayerInfo[playerid][pBlackList]); fwrite(hFile, var);
format(var, 64, "WantedLevel = %dn", PlayerInfo[playerid][pWantedLevel]); fwrite(hFile, var);
format(var, 64, "WantedPoints = %dn", PlayerInfo[playerid][pWantedPoints]); fwrite(hFile, var);
format(var, 64, "WantedQuit = %dn", PlayerInfo[playerid][pWQ]); fwrite(hFile, var);
format(var, 64, "DriveBy = %dn", PlayerInfo[playerid][pDB]); fwrite(hFile, var);
format(var, 64, "ReventTime = %dn", PlayerInfo[playerid][pReventTime]); fwrite(hFile, var);
format(var, 64, "RaportAcceptat = %dn", PlayerInfo[playerid][pRaportAcceptat]); fwrite(hFile, var);
format(var, 64, "AjutorAcceptat = %dn", PlayerInfo[playerid][pAjutorAcceptat]); fwrite(hFile, var);
format(var, 64, "ArmaPersonala = %dn", PlayerInfo[playerid][pArmaPers]); fwrite(hFile, var);
format(var, 64, "Killz = %dn", PlayerInfo[playerid][pKillz]); fwrite(hFile, var);
format(var, 64, "Arestari = %dn", PlayerInfo[playerid][pArestari]); fwrite(hFile, var);
format(var, 64, "LicenteConfiscate = %dn", PlayerInfo[playerid][pLicenteConfiscate]); fwrite(hFile, var);
format(var, 64, "ArmeConfiscate = %dn", PlayerInfo[playerid][pArmeConfiscate]); fwrite(hFile, var);
format(var, 64, "DroguriConfiscate = %dn", PlayerInfo[playerid][pDroguriConfiscate]); fwrite(hFile, var);
format(var, 64, "MaterialeConfiscate = %dn", PlayerInfo[playerid][pMaterialeConfiscate]); fwrite(hFile, var);
format(var, 64, "WarKills = %dn", PlayerInfo[playerid][pWarKills]); fwrite(hFile, var);
format(var, 64, "Imprumut = %dn", PlayerInfo[playerid][pImprumut]); fwrite(hFile, var);
format(var, 64, "BaniImprumut = %dn", PlayerInfo[playerid][pBaniImprumut]); fwrite(hFile, var);
format(var, 64, "Bonus = %dn", PlayerInfo[playerid][pBonus]); fwrite(hFile, var);
fclose(hFile);
}

TextDrawHideForPlayer(playerid, ConnectText1);
TextDrawHideForPlayer(playerid, ConnectText2);
TextDrawHideForPlayer(playerid, ConnectText3);
TextDrawHideForPlayer(playerid, ConnectText4);

if(Event[playerid] == 1)
{
SetPlayerHealth(playerid, 99999999999);
SetPlayerArmour(playerid, 99999999999);
SetPlayerColor(playerid, COLOR_BLACK);
}

if(PlayerInfo[playerid][pWantedLevel] > 0 || PlayerInfo[playerid][pWantedPoints] > 0)
{
TextDrawHideForPlayer(playerid, BalanceTextDraw[playerid]);
}

//------------------------------[Texte]------------------------------//
new BloodZoneT1, BloodZoneT2, BloodZoneT3, BloodZoneT4;
BloodZoneT1 = CreateObject(19354, 1727.0000, -1912.0465, 12.4925, 0.0000, 90.0000, 180.0000);
SetObjectMaterialText(BloodZoneT1, "{FF0000}BloodZone", 0, OBJECT_MATERIAL_SIZE_256x128, "Jokerman", 50, 0, 0, 0, 1);
BloodZoneT2 = CreateObject(19354, 1727.3000, -1912.0465, 12.4925, 0.0000, 90.0000, 180.0000);
SetObjectMaterialText(BloodZoneT2, "{00CC00}________", 0, OBJECT_MATERIAL_SIZE_256x128, "Jokerman", 50, 0, 0, 0, 1);
BloodZoneT3 = CreateObject(19354, 1706.2700, -1861.9700, 12.4925, 0.0000, 90.0000, 0.0000);
SetObjectMaterialText(BloodZoneT3, "{00A1FF}Spawn {FFFFFF}Civili", 0, OBJECT_MATERIAL_SIZE_256x128, "Jokerman", 50, 0, 0, 0, 1);
BloodZoneT4 = CreateObject(19354, 1719.5000, -1861.9700, 12.4925, 0.0000, 90.0000, 180.0000);
SetObjectMaterialText(BloodZoneT4, "{00A1FF}Spawn {FFFFFF}Civili", 0, OBJECT_MATERIAL_SIZE_256x128, "Jokerman", 50, 0, 0, 0, 1);
//-------------------------------------------------------------------//

if(GetTickCount() - armedbody_pTick[playerid] > 113)
{
new weaponid[13], weaponammo[13], pArmedWeapon;
pArmedWeapon = GetPlayerWeapon(playerid);
GetPlayerWeaponData(playerid, 1, weaponid[1], weaponammo[1]);
GetPlayerWeaponData(playerid, 2, weaponid[2], weaponammo[2]);
GetPlayerWeaponData(playerid, 4, weaponid[4], weaponammo[4]);
GetPlayerWeaponData(playerid, 5, weaponid[5], weaponammo[5]);
#if ARMEDBODY_USE_HEAVY_WEAPON
GetPlayerWeaponData(playerid, 7, weaponid[7], weaponammo[7]);
#endif
if(weaponid[1] && weaponammo[1] > 0) {
if(pArmedWeapon != weaponid[1]) {
if(!IsPlayerAttachedObjectSlotUsed(playerid, 0)) {
SetPlayerAttachedObject(playerid, 0, GetWeaponModel(weaponid[1]), 1, 0.199999, -0.139999, 0.030000, 0.500007, -115.000000, 0.000000, 1.000000, 1.000000, 1.000000);
}
}
else {
if(IsPlayerAttachedObjectSlotUsed(playerid, 0)) {
RemovePlayerAttachedObject(playerid, 0);
}
}
}
else if(IsPlayerAttachedObjectSlotUsed(playerid, 0)) {
RemovePlayerAttachedObject(playerid, 0);
}
if(weaponid[2] && weaponammo[2] > 0) {
if(pArmedWeapon != weaponid[2]) {
if(!IsPlayerAttachedObjectSlotUsed(playerid, 1)) {
SetPlayerAttachedObject(playerid, 1, GetWeaponModel(weaponid[2]), 8, -0.079999, -0.039999, 0.109999, -90.100006, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
}
}
else {
if(IsPlayerAttachedObjectSlotUsed(playerid, 1)) {
RemovePlayerAttachedObject(playerid, 1);
}
}
}
else if(IsPlayerAttachedObjectSlotUsed(playerid, 1)) {
RemovePlayerAttachedObject(playerid, 1);
}
if(weaponid[4] && weaponammo[4] > 0) {
if(pArmedWeapon != weaponid[4]) {
if(!IsPlayerAttachedObjectSlotUsed(playerid, 2)) {
SetPlayerAttachedObject(playerid, 2, GetWeaponModel(weaponid[4]), 7, 0.000000, -0.100000, -0.080000, -95.000000, -10.000000, 0.000000, 1.000000, 1.000000, 1.000000);
}
}
else {
if(IsPlayerAttachedObjectSlotUsed(playerid, 2)) {
RemovePlayerAttachedObject(playerid, 2);
}
}
}
else if(IsPlayerAttachedObjectSlotUsed(playerid, 2)) {
RemovePlayerAttachedObject(playerid, 2);
}
if(weaponid[5] && weaponammo[5] > 0) {
if(pArmedWeapon != weaponid[5]) {
if(!IsPlayerAttachedObjectSlotUsed(playerid, 3)) {
SetPlayerAttachedObject(playerid, 3, GetWeaponModel(weaponid[5]), 1, 0.200000, -0.119999, -0.059999, 0.000000, 206.000000, 0.000000, 1.000000, 1.000000, 1.000000);
}
}
else {
if(IsPlayerAttachedObjectSlotUsed(playerid, 3)) {
RemovePlayerAttachedObject(playerid, 3);
}
}
}
else if(IsPlayerAttachedObjectSlotUsed(playerid, 3)) {
RemovePlayerAttachedObject(playerid, 3);
}
#if ARMEDBODY_USE_HEAVY_WEAPON
if(weaponid[7] && weaponammo[7] > 0) {
if(pArmedWeapon != weaponid[7]) {
if(!IsPlayerAttachedObjectSlotUsed(playerid, 4)) {
SetPlayerAttachedObject(playerid, 4, GetWeaponModel(weaponid[7]), 1, -0.100000, 0.000000, -0.100000, 84.399932, 112.000000, 10.000000, 1.099999, 1.000000, 1.000000);
}
}
else {
if(IsPlayerAttachedObjectSlotUsed(playerid, 4)) {
RemovePlayerAttachedObject(playerid, 4);
}
}
}
else if(IsPlayerAttachedObjectSlotUsed(playerid, 4)) {
RemovePlayerAttachedObject(playerid, 4);
}
#endif
armedbody_pTick[playerid] = GetTickCount();
}

if(Misiune1[playerid] == 1 || Misiune2[playerid] == 1 || Misiune3[playerid] == 1 || Misiune4[playerid] == 1 || PlayerOnRob[playerid] == 1) { InHuntGame[playerid] = 0; IsHunted[playerid] = 0; }

if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && CP[playerid] == 1)
{
return 1;
}

BizzInfo[4][bLocked] = 0;
BizzInfo[3][bLocked] = 0;

if(PlayerOnMission[playerid] == 1 || PlayerOnRob[playerid] == 1) { InHuntGame[playerid] = 0; IsHunted[playerid] = 0; }

if(GetPlayerPing(playerid) > 600 && PlayerInfo[playerid][pAdmin] < 1 && PlayerInfo[playerid][pHelper] < 1)
{
new string[128], sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s a primit KICK pt. ca are Ping mai mare de 600.", sendername);
BroadCast(COLOR_YELLOW, string);
SetTimerEx("KickPlayer1", 1000, false, "i", playerid);
}

if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
for(new i = 0; i < sizeof(SpikeInfo); i++)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, SpikeInfo[sX], SpikeInfo[sY], SpikeInfo[sZ]))
{
if(SpikeInfo[sCreated] == 1)
{
new panels, doorss, lightss, tires;
new carid = GetPlayerVehicleID(playerid);
GetVehicleDamageStatus(carid, panels, doorss, lightss, tires);
tires = encode_tires(1, 1, 1, 1);
UpdateVehicleDamageStatus(carid, panels, doorss, lightss, tires);
return 0;
}
}
}
}

if(PlayerInfo[playerid][pWantedLevel] > 0 || PlayerInfo[playerid][pWantedPoints] > 0)
{
KillTimer(DispareWantedTimer);
DispareWantedTimer = SetTimerEx("DispareWanted", 600000, true, "i", playerid);
return 1;
}

}
}
return 1;
}
Edited by OneShot
Link to comment
Share on other sites

  • 0

Sigur.

OnPlayerRegister:

public OnPlayerRegister(playerid, password[])
{
if(IsPlayerConnected(playerid))
{
new string3[64];
new playername3[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername3, sizeof(playername3));
format(string3, sizeof(string3), "Jucatori/%s.ini", playername3);
new File: hFile = fopen(string3, io_write);
if(hFile)
{
strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
new var[64];
format(var, 64, "Key = %sn", PlayerInfo[playerid][pKey]); fwrite(hFile, var);
PlayerInfo[playerid][pCash] = GetPlayerCash(playerid);
format(var, 64, "Nivel = %dn", PlayerInfo[playerid][pNivel]); fwrite(hFile, var);
format(var, 64, "AdminNivel = %dn", PlayerInfo[playerid][pAdmin]); fwrite(hFile, var);
format(var, 64, "HelperNivel = %dn", PlayerInfo[playerid][pHelper]); fwrite(hFile, var);
format(var, 64, "DonateRank = %dn", PlayerInfo[playerid][pDonateRank]); fwrite(hFile, var);
format(var, 64, "UpgradePoints = %dn", PlayerInfo[playerid][pUpgrade]); fwrite(hFile, var);
format(var, 64, "ConnectedTime = %dn", PlayerInfo[playerid][pOreJucate]); fwrite(hFile, var);
format(var, 64, "Registered = %dn", PlayerInfo[playerid][pReg]); fwrite(hFile, var);
format(var, 64, "Sex = %dn", PlayerInfo[playerid][pSex]); fwrite(hFile, var);
format(var, 64, "Age = %dn", PlayerInfo[playerid]

); fwrite(hFile, var);
format(var, 64, "Mail = %sn", PlayerInfo[playerid][pMail]); fwrite(hFile, var);
format(var, 64, "Origin = %dn", PlayerInfo[playerid][pOrigin]); fwrite(hFile, var);
format(var, 64, "Muted = %dn", PlayerInfo[playerid][pMuted]); fwrite(hFile, var);
format(var, 64, "FMuted = %dn", PlayerInfo[playerid][pFMuted]); fwrite(hFile, var);
format(var, 64, "Respect = %dn", PlayerInfo[playerid][pRespect]); fwrite(hFile, var);
format(var, 64, "Money = %dn", PlayerInfo[playerid][pCash]); fwrite(hFile, var);
format(var, 64, "Bank = %dn", PlayerInfo[playerid][pAccount]); fwrite(hFile, var);
format(var, 64, "Banks = %dn", PlayerInfo[playerid][pAccf]); fwrite(hFile, var);
format(var, 64, "Crimes = %dn", PlayerInfo[playerid][pCrimes]); fwrite(hFile, var);
format(var, 64, "Kills = %dn", PlayerInfo[playerid][pKills]); fwrite(hFile, var);
format(var, 64, "Deaths = %dn", PlayerInfo[playerid][pDeaths]); fwrite(hFile, var);
format(var, 64, "Arrested = %dn", PlayerInfo[playerid][pArrested]); fwrite(hFile, var);
format(var, 64, "WantedDeaths = %dn", PlayerInfo[playerid][pWantedDeaths]); fwrite(hFile, var);
format(var, 64, "Phonebook = %dn", PlayerInfo[playerid][pPhoneBook]); fwrite(hFile, var);
format(var, 64, "LottoNr = %dn", PlayerInfo[playerid][pLottoNr]); fwrite(hFile, var);
format(var, 64, "Fishes = %dn", PlayerInfo[playerid][pFishes]); fwrite(hFile, var);
format(var, 64, "BiggestFish = %dn", PlayerInfo[playerid][pBiggestFish]); fwrite(hFile, var);
format(var, 64, "Job = %dn", PlayerInfo[playerid][pJob]); fwrite(hFile, var);
format(var, 64, "Paycheck = %dn", PlayerInfo[playerid][pPayCheck]); fwrite(hFile, var);
format(var, 64, "HeadValue = %dn", PlayerInfo[playerid][pHeadValue]); fwrite(hFile, var);
format(var, 64, "Jailed = %dn", PlayerInfo[playerid][pJailed]); fwrite(hFile, var);
format(var, 64, "JailTime = %dn", PlayerInfo[playerid][pJailTime]); fwrite(hFile, var);
format(var, 64, "Materials = %dn", PlayerInfo[playerid][pMats]); fwrite(hFile, var);
format(var, 64, "Drugs = %dn", PlayerInfo[playerid][pDrugs]); fwrite(hFile, var);
format(var, 64, "Lider = %dn", PlayerInfo[playerid][pLider]); fwrite(hFile, var);
format(var, 64, "Membru = %dn", PlayerInfo[playerid][pMembru]); fwrite(hFile, var);
format(var, 64, "Rank = %dn", PlayerInfo[playerid][pRank]); fwrite(hFile, var);
format(var, 64, "Char = %dn", PlayerInfo[playerid][pChar]); fwrite(hFile, var);
format(var, 64, "DetSkill = %dn", PlayerInfo[playerid][pDetSkill]); fwrite(hFile, var);
format(var, 64, "SexSkill = %dn", PlayerInfo[playerid][pSexSkill]); fwrite(hFile, var);
format(var, 64, "BoxSkill = %dn", PlayerInfo[playerid][pBoxSkill]); fwrite(hFile, var);
format(var, 64, "MechSkill = %dn", PlayerInfo[playerid][pMechSkill]); fwrite(hFile, var);
format(var, 64, "JackSkill = %dn", PlayerInfo[playerid][pJackSkill]); fwrite(hFile, var);
format(var, 64, "CarSkill = %dn", PlayerInfo[playerid][pCarSkill]); fwrite(hFile, var);
format(var, 64, "NewsSkill = %dn", PlayerInfo[playerid][pNewsSkill]); fwrite(hFile, var);
format(var, 64, "DrugsSkill = %dn", PlayerInfo[playerid][pDrugsSkill]); fwrite(hFile, var);
format(var, 64, "CookSkill = %dn", PlayerInfo[playerid][pCookSkill]); fwrite(hFile, var);
format(var, 64, "FishSkill = %dn", PlayerInfo[playerid][pFishSkill]); fwrite(hFile, var);
GetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
format(var, 64, "pHealth = %.1fn", PlayerInfo[playerid][pHealth]); fwrite(hFile, var);
format(var, 64, "Int = %dn", PlayerInfo[playerid][pInt]); fwrite(hFile, var);
format(var, 64, "Local = %dn", PlayerInfo[playerid][pLocal]); fwrite(hFile, var);
format(var, 64, "Team = %dn", PlayerInfo[playerid][pTeam]); fwrite(hFile, var);
format(var, 64, "Model = %dn", PlayerInfo[playerid][pModel]); fwrite(hFile, var);
format(var, 64, "PhoneNr = %dn", PlayerInfo[playerid][pPnumber]); fwrite(hFile, var);
format(var, 64, "Car = %dn", PlayerInfo[playerid][pPcarkey]); fwrite(hFile, var);
format(var, 64, "Car2 = %dn", PlayerInfo[playerid][pPcarkey2]); fwrite(hFile, var);
format(var, 64, "Car3 = %dn", PlayerInfo[playerid][pPcarkey3]); fwrite(hFile, var);
format(var, 64, "Car4 = %dn", PlayerInfo[playerid][pPcarkey4]); fwrite(hFile, var);
format(var, 64, "House = %dn", PlayerInfo[playerid][pPhousekey]); fwrite(hFile, var);
format(var, 64, "Bizz = %dn", PlayerInfo[playerid][pPbiskey]); fwrite(hFile, var);

if((PlayerInfo[playerid][pPos_x] == 0.0 && PlayerInfo[playerid][pPos_y] == 0.0 && PlayerInfo[playerid][pPos_z] == 0.0))
{
PlayerInfo[playerid][pPos_x] = 1732.8235;
PlayerInfo[playerid][pPos_y] = -1912.0210;
PlayerInfo[playerid][pPos_z] = 13.5622;
}
if(Spectate[playerid] != 255)
{
PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx];
PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy];
PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz];
PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
}

format(var, 64, "Pos_x = %.1fn", PlayerInfo[playerid][pPos_x]); fwrite(hFile, var);
format(var, 64, "Pos_y = %.1fn", PlayerInfo[playerid][pPos_y]); fwrite(hFile, var);
format(var, 64, "Pos_z = %.1fn", PlayerInfo[playerid][pPos_z]); fwrite(hFile, var);
format(var, 64, "Tow = %dn", PlayerInfo[playerid][pTow]); fwrite(hFile, var);
format(var, 64, "CarLic = %dn", PlayerInfo[playerid][pCarLic]); fwrite(hFile, var);
format(var, 64, "FlyLic = %dn", PlayerInfo[playerid][pFlyLic]); fwrite(hFile, var);
format(var, 64, "BoatLic = %dn", PlayerInfo[playerid][pBoatLic]); fwrite(hFile, var);
format(var, 64, "FishLic = %dn", PlayerInfo[playerid][pFishLic]); fwrite(hFile, var);
format(var, 64, "GunLic = %dn", PlayerInfo[playerid][pGunLic]); fwrite(hFile, var);
format(var, 64, "Pasaport = %dn", PlayerInfo[playerid][pPasaport]); fwrite(hFile, var);
format(var, 64, "Gun1 = %dn", PlayerInfo[playerid][pGun1]); fwrite(hFile, var);
format(var, 64, "Gun2 = %dn", PlayerInfo[playerid][pGun2]); fwrite(hFile, var);
format(var, 64, "Gun3 = %dn", PlayerInfo[playerid][pGun3]); fwrite(hFile, var);
format(var, 64, "Gun4 = %dn", PlayerInfo[playerid][pGun4]); fwrite(hFile, var);
format(var, 64, "Ammo1 = %dn", PlayerInfo[playerid][pAmmo1]); fwrite(hFile, var);
format(var, 64, "Ammo2 = %dn", PlayerInfo[playerid][pAmmo2]); fwrite(hFile, var);
format(var, 64, "Ammo3 = %dn", PlayerInfo[playerid][pAmmo3]); fwrite(hFile, var);
format(var, 64, "Ammo4 = %dn", PlayerInfo[playerid][pAmmo4]); fwrite(hFile, var);
format(var, 64, "CarTime = %dn", PlayerInfo[playerid][pCarTime]); fwrite(hFile, var);
format(var, 64, "RobTime = %dn", PlayerInfo[playerid][pRobTime]); fwrite(hFile, var);
format(var, 64, "ATMTime = %dn", PlayerInfo[playerid][pATMTime]); fwrite(hFile, var);
format(var, 64, "MissTime = %dn", PlayerInfo[playerid][pMissTime]); fwrite(hFile, var);
format(var, 64, "ATMTry = %dn", PlayerInfo[playerid][pATMTry]); fwrite(hFile, var);
format(var, 64, "GunoierTime = %dn", PlayerInfo[playerid][pGunoierTime]); fwrite(hFile, var);
format(var, 64, "MaturatorTime = %dn", PlayerInfo[playerid][pMaturatorTime]); fwrite(hFile, var);
format(var, 64, "KOTime = %dn", PlayerInfo[playerid][pKOTime]); fwrite(hFile, var);
format(var, 64, "GTSTime = %dn", PlayerInfo[playerid][pGTSTime]); fwrite(hFile, var);
format(var, 64, "RKOTime = %dn", PlayerInfo[playerid][pRKOTime]); fwrite(hFile, var);
format(var, 64, "KSTime = %dn", PlayerInfo[playerid][pKSTime]); fwrite(hFile, var);
format(var, 64, "JefuireTime = %dn", PlayerInfo[playerid][pJefuireTime]); fwrite(hFile, var);
format(var, 64, "FermierTime = %dn", PlayerInfo[playerid][pFermierTime]); fwrite(hFile, var);
format(var, 64, "TractoristTime = %dn", PlayerInfo[playerid][pTractoristTime]); fwrite(hFile, var)
format(var, 64, "PayDay = %dn", PlayerInfo[playerid][pPayDay]); fwrite(hFile, var);
format(var, 64, "Crashed = %dn", PlayerInfo[playerid][pCrashed]); fwrite(hFile, var);
format(var, 64, "Wins = %dn", PlayerInfo[playerid][pWins]); fwrite(hFile, var);
format(var, 64, "Loses = %dn", PlayerInfo[playerid][pLoses]); fwrite(hFile, var);
format(var, 64, "AlcoholPerk = %dn", PlayerInfo[playerid][pAlcoholPerk]); fwrite(hFile, var);
format(var, 64, "DrugPerk = %dn", PlayerInfo[playerid][pDrugPerk]); fwrite(hFile, var);
format(var, 64, "MiserPerk = %dn", PlayerInfo[playerid][pMiserPerk]); fwrite(hFile, var);
format(var, 64, "PainPerk = %dn", PlayerInfo[playerid][pPainPerk]); fwrite(hFile, var);
format(var, 64, "Tutorial = %dn", PlayerInfo[playerid][pTut]); fwrite(hFile, var);
format(var, 64, "Warnings = %dn", PlayerInfo[playerid][pWarns]); fwrite(hFile, var);
format(var, 64, "FWarn = %dn", PlayerInfo[playerid][pFWarns]); fwrite(hFile, var);
format(var, 64, "LWarn = %dn", PlayerInfo[playerid][pLWarns]); fwrite(hFile, var);
format(var, 64, "AWarn = %dn", PlayerInfo[playerid][pAWarns]); fwrite(hFile, var);
format(var, 64, "VirWorld = %dn", PlayerInfo[playerid][pVirWorld]); fwrite(hFile, var);
format(var, 64, "Fuel = %dn", PlayerInfo[playerid][pFuel]); fwrite(hFile, var);
format(var, 64, "Married = %dn", PlayerInfo[playerid][pMarried]); fwrite(hFile, var);
format(var, 64, "MarriedTo = %sn", PlayerInfo[playerid][pMarriedTo]); fwrite(hFile, var);
format(var, 64, "FishTool = %dn", PlayerInfo[playerid][pFishTool]); fwrite(hFile, var);
format(var, 64, "InvWeapon = %dn", PlayerInfo[playerid][pInvWeapon]); fwrite(hFile, var);
format(var, 64, "InvAmmo = %dn", PlayerInfo[playerid][pInvAmmo]); fwrite(hFile, var);
format(var, 64, "Locked = %dn", PlayerInfo[playerid][pLocked]); fwrite(hFile, var);
format(var, 64, "LockedTime = %dn", PlayerInfo[playerid][pLockedTime]); fwrite(hFile, var);
format(var, 64, "OreFactiune = %dn", PlayerInfo[playerid][pOre]); fwrite(hFile, var);
format(var, 64, "BlackList = %dn", PlayerInfo[playerid][pBlackList]); fwrite(hFile, var);
format(var, 64, "WantedLevel = %dn", PlayerInfo[playerid][pWantedLevel]); fwrite(hFile, var);
format(var, 64, "WantedPoints = %dn", PlayerInfo[playerid][pWantedPoints]); fwrite(hFile, var);
format(var, 64, "WantedQuit = %dn", PlayerInfo[playerid][pWQ]); fwrite(hFile, var);
format(var, 64, "DriveBy = %dn", PlayerInfo[playerid][pDB]); fwrite(hFile, var);
format(var, 64, "ReventTime = %dn", PlayerInfo[playerid][pReventTime]); fwrite(hFile, var);
format(var, 64, "RaportAcceptat = %dn", PlayerInfo[playerid][pRaportAcceptat]); fwrite(hFile, var);
format(var, 64, "AjutorAcceptat = %dn", PlayerInfo[playerid][pAjutorAcceptat]); fwrite(hFile, var);
format(var, 64, "ArmaPersonala = %dn", PlayerInfo[playerid][pArmaPers]); fwrite(hFile, var);
format(var, 64, "Killz = %dn", PlayerInfo[playerid][pKillz]); fwrite(hFile, var);
format(var, 64, "Arestari = %dn", PlayerInfo[playerid][pArestari]); fwrite(hFile, var);
format(var, 64, "LicenteConfiscate = %dn", PlayerInfo[playerid][pLicenteConfiscate]); fwrite(hFile, var);
format(var, 64, "ArmeConfiscate = %dn", PlayerInfo[playerid][pArmeConfiscate]); fwrite(hFile, var);
format(var, 64, "DroguriConfiscate = %dn", PlayerInfo[playerid][pDroguriConfiscate]); fwrite(hFile, var);
format(var, 64, "MaterialeConfiscate = %dn", PlayerInfo[playerid][pMaterialeConfiscate]); fwrite(hFile, var);
format(var, 64, "WarKills = %dn", PlayerInfo[playerid][pWarKills]); fwrite(hFile, var);
format(var, 64, "Imprumut = %dn", PlayerInfo[playerid][pImprumut]); fwrite(hFile, var);
format(var, 64, "BaniImprumut = %dn", PlayerInfo[playerid][pBaniImprumut]); fwrite(hFile, var);
format(var, 64, "Bonus = %dn", PlayerInfo[playerid][pBonus]); fwrite(hFile, var);
fclose(hFile);

new loginstring[128];
new loginname[64];
GetPlayerName(playerid, loginname, sizeof(loginname));
format(loginstring, sizeof(loginstring), "{CD5C5C}Bun venit pe {ADFF2F}BloodZone RPG, {FF0000}%s! n{FFA500}Logheaza-te:", loginname);
ShowPlayerDialog(playerid, 7846, DIALOG_STYLE_PASSWORD, "{00CC00}• {00A1FF}BloodZone RPG {FF0000}Login", loginstring, "Login", "Exit");
SetPlayerSkin(playerid, 19);
PlayerInfo[playerid][pModel] = 19;
PlayerInfo[playerid][pChar] = 19;
}
}

return 1;
}
Link to comment
Share on other sites

  • 0

Pai si din ce cauza nu le citeste la logare... eu nu vad nimic gresit la onplayerlogin:

 

onplayerlogin:

public OnPlayerLogin(playerid, password[])
{
new tmp2[256];
new string2[64];
new playername2[MAX_PLAYER_NAME];
new playernamesplit[3][MAX_PLAYER_NAME];
GetPlayerName(playerid, playername2, sizeof(playername2));
split(playername2, playernamesplit, '_');
format(string2, sizeof(string2), "Jucatori/%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, "Nivel", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pNivel] = strval(val); }
if(strcmp(key, "AdminNivel", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pAdmin] = strval(val); }
if(strcmp(key, "HelperNivel", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pHelper] = strval(val); }
if(strcmp(key, "DonateRank", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pDonateRank] = strval(val); }
if(strcmp(key, "UpgradePoints", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pUpgrade] = strval(val); }
if(strcmp(key, "ConnectedTime", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pOreJucate] = 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]

 = strval(val); }
if(strcmp(key, "Mail", true) == 0) { val = ini_GetValue(Data); strmid(PlayerInfo[playerid][pMail], val, 0, strlen(val)-1, 255); }
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, "FMuted", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pFMuted] = strval(val); }
if(strcmp(key, "Respect", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pRespect] = 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][pAccount] = strval(val); }
if(strcmp(key, "Banks", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pAccf] = 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, "WantedLevel", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pWantedLevel] = strval(val); }
if(strcmp(key, "WantedPoints", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pWantedPoints] = 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][pJob] = 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, "Drugs", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pDrugs] = strval(val); }
if(strcmp(key, "Lider", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pLider] = strval(val); }
if(strcmp(key, "Membru", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pMembru] = strval(val); }
if(strcmp(key, "Rank", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pRank] = strval(val); }
if(strcmp(key, "Char", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pChar] = 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, "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, "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, "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, "Car", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pPcarkey] = strval(val); }
if(strcmp(key, "Car2", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pPcarkey2] = strval(val); }
if(strcmp(key, "Car3", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pPcarkey3] = strval(val); }
if(strcmp(key, "Car4", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pPcarkey4] = 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, "Tow", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pTow] = strvalEx(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, "Pasaport", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pPasaport] = strvalEx(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, "RobTime", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pRobTime] = strval(val); }
if(strcmp(key, "ATMTime", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pATMTime] = strval(val); }
if(strcmp(key, "MissTime", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pMissTime] = strval(val); }
if(strcmp(key, "ATMTry", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pATMTry] = strval(val); }
if(strcmp(key, "GunoierTime", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pGunoierTime] = strval(val); }
if(strcmp(key, "MaturatorTime", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pMaturatorTime] = strval(val); }
if(strcmp(key, "KOTime", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pKOTime] = strval(val); }
if(strcmp(key, "GTSTime", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pGTSTime] = strval(val); }
if(strcmp(key, "RKOTime", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pRKOTime] = strval(val); }
if(strcmp(key, "KSTime", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pKSTime] = strval(val); }
if(strcmp(key, "JefuireTime", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pJefuireTime] = strval(val); }
if(strcmp(key, "FermierTime", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pFermierTime] = strval(val); }
if(strcmp(key, "TractoristTime", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pTractoristTime] = strval(val); }
if(strcmp(key, "PayDay", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pPayDay] = strval(val); }
if(strcmp(key, "Crashed", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pCrashed] = 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, "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, "FWarn", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pFWarns] = strvalEx(val); }
if(strcmp(key, "LWarn", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pLWarns] = strvalEx(val); }
if(strcmp(key, "AWarn", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pAWarns] = strvalEx(val); }
if(strcmp(key, "VirWorld", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pVirWorld] = 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, "FishTool", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pFishTool] = strval(val); }
if(strcmp(key, "InvWeapon", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pInvWeapon] = strval(val); }
if(strcmp(key, "InvAmmo", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pInvAmmo] = strval(val); }
if(strcmp(key, "Locked", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pLocked] = strval(val); }
if(strcmp(key, "LockedTime", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pLockedTime] = strval(val); }
if(strcmp(key, "OreFactiune", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pOre] = strval(val); }
if(strcmp(key, "BlackList", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pBlackList] = strval(val); }
if(strcmp(key, "WantedQuit", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pWQ] = strval(val); }
if(strcmp(key, "DriveBy", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pDB] = strval(val); }
if(strcmp(key, "ReventTime", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pReventTime] = strval(val); }
if(strcmp(key, "RaportAcceptat", true) == 0 ) { val = ini_GetValue(Data); PlayerInfo[playerid][pRaportAcceptat] = strval(val); }
if(strcmp(key, "AjutorAcceptat", true) == 0 ) { val = ini_GetValue(Data); PlayerInfo[playerid][pAjutorAcceptat] = strval(val); }
if(strcmp(key, "ArmaPersonala", true) == 0 ) { val = ini_GetValue(Data); PlayerInfo[playerid][pArmaPers] = strval(val); }
if(strcmp(key, "Killz", true ) == 0 ) { val = ini_GetValue(Data); PlayerInfo[playerid][pKillz] = strval(val); }
if(strcmp(key, "Arestari", true ) == 0 ) { val = ini_GetValue(Data); PlayerInfo[playerid][pArestari] = strval(val); }
if(strcmp(key, "LicenteConfiscate", true ) == 0 ) { val = ini_GetValue(Data); PlayerInfo[playerid][pLicenteConfiscate] = strval(val); }
if(strcmp(key, "ArmeConfiscate", true ) == 0 ) { val = ini_GetValue(Data); PlayerInfo[playerid][pArmeConfiscate] = strval(val); }
if(strcmp(key, "DroguriConfiscate", true ) == 0 ) { val = ini_GetValue(Data); PlayerInfo[playerid][pDroguriConfiscate] = strval(val); }
if(strcmp(key, "MaterialeConfiscate", true ) == 0 ) { val = ini_GetValue(Data); PlayerInfo[playerid][pMaterialeConfiscate] = strval(val); }
if(strcmp(key, "WarKills", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pWarKills] = strval(val); }
if(strcmp(key, "Imprumut", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pImprumut] = strval(val); }
if(strcmp(key, "BaniImprumut", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pBaniImprumut] = strval(val); }
if(strcmp(key, "Bonus", true) == 0) { val = ini_GetValue(Data); PlayerInfo[playerid][pBonus] = strval(val); }
}
fclose(UserFile);
}
else
{
new loginstring[128];
new loginname[64];
GetPlayerName(playerid, loginname, sizeof(loginname));
format(loginstring, sizeof(loginstring), "{DC143C}Ai gresit parola contului!n{FFEBCD}Tasteaz-o iar:n{9932CC}Ai 5 incercari.", loginname);
ShowPlayerDialog(playerid, 7847, DIALOG_STYLE_PASSWORD, "{00CC00}• {9ACD32}BloodZone RPG {FF0000}Login", loginstring, "Login", "Exit");
fclose(UserFile);
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 5) { SetTimerEx("KickPlayer1", 1000, false, "i", playerid); }
return 1;
}

ResetPlayerCash(playerid);
GivePlayerCash(playerid, PlayerInfo[playerid][pCash]);
CurrentMoney[playerid] = PlayerInfo[playerid][pCash];

if(PlayerInfo[playerid][pReg] == 0)
{
PlayerInfo[playerid][pNivel] = 1;
PlayerInfo[playerid][pHealth] = 100.0;
PlayerInfo[playerid][pPos_x] = 1732.8235;
PlayerInfo[playerid][pPos_y] = -1912.0210;
PlayerInfo[playerid][pPos_z] = 13.5622;
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pVirWorld] = 0;
PlayerInfo[playerid][pLocal] = 255;
PlayerInfo[playerid][pTeam] = 3;
new randphone = 1000 + random(8999); // minim 1000, maxim 9999
PlayerInfo[playerid][pPnumber] = randphone;
PlayerInfo[playerid][pPhousekey] = 255;
PlayerInfo[playerid][pPcarkey] = -1;
PlayerInfo[playerid][pPcarkey2] = -1;
PlayerInfo[playerid][pPcarkey3] = -1;
PlayerInfo[playerid][pPcarkey4] = -1;
PlayerInfo[playerid][pPbiskey] = 255;
PlayerInfo[playerid][pAccount] = 50000;
PlayerInfo[playerid][pWantedLevel] = 0;
PlayerInfo[playerid][pWantedPoints] = 0;
SetPlayerWantedLevel(playerid, 0);
if(PlayerInfo[playerid][pChar] == 7 || PlayerInfo[playerid][pModel] == 7)
{
SetPlayerSkin(playerid, 19);
}
ShowPlayerDialog(playerid, 50, DIALOG_STYLE_LIST, "{00A1FF}Care este sexul tau?", "{F5DEB3}Masculinn{F5DEB3}Feminin", "OK", "Inchide");
PlayerInfo[playerid][pReg] = 1;
ResetPlayerCash(playerid);
GivePlayerCash(playerid, 200100);
}

if(PlayerInfo[playerid][pLocked] == 1 || PlayerInfo[playerid][pLockedTime] > 0) // Auto-Kick
{
SCM(playerid, COLOR_RED, "» Contul tau este Banat. {F5DEB3}Fa poza cu tasta F8 si apoi fa Cerere de Unban pe Forum. {C77D87}[/forum]");
SetTimerEx("KickPlayer1", 1000, false, "i", playerid);
}

TempBanCheck(playerid)

ClearChatBox(playerid, 6);
SCM(playerid, COLOR_GREEN, "=============================================");

format(string2, sizeof(string2), "» Bine ai venit pe {00FFFF}BloodZone RPG !", playernamesplit[0]);
SCM(playerid, COLOR_ISCOP, string2);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);

if(PlayerInfo[playerid][pAdmin] >= 1)
{
format(string2, sizeof(string2), "SERVER: {FF0000}Te-ai logat cu Administrator Nivel %d.", PlayerInfo[playerid][pAdmin]);
SCM(playerid, COLOR_BLOODZONE, string2);
SCM(playerid, COLOR_BESTBLUE, "Foloseste {FF9900}/regulistaff.");
}

if(PlayerInfo[playerid][pHelper] >= 1)
{
format(string2, sizeof(string2), "SERVER: {FFFF00}Te-ai logat cu Helper Nivel %d.", PlayerInfo[playerid][pHelper]);
SCM(playerid, COLOR_BLOODZONE, string2);
}

if(PlayerInfo[playerid][pWantedLevel] > 0 || PlayerInfo[playerid][pWantedPoints] > 0)
{
format(string2, sizeof(string2), "SERVER: {00A1FF}Ai primit inapoi %d Puncte de Wanted.", PlayerInfo[playerid][pWantedLevel]);
SCM(playerid, COLOR_BLOODZONE, string2);
}

format(string2, sizeof(string2), "• Foloseste {00A1FF}/help, /reguli si /comenziutile !", playernamesplit[0]);
SCM(playerid, COLOR_LIGHTRED, string2);
}

if(PlayerInfo[playerid][pNivel] == 1)
{
SCM(playerid, COLOR_NEWGREEN, "• Foloseste {FFFFFF}/bonusincepatori {00CC00}pentru a primi Nivel 3!");
}

SCM(playerid, COLOR_GREEN, "=============================================");
ClearChatBox(playerid, 1);
printf("%s s-a logat.", playername2);

if(PlayerInfo[playerid][pCarLic] == 0)
{
SCM(playerid, COLOR_ORANGE, "» Nu ai Permis de Conducere! Du-te le checkpoint pentru a da Examenul.");
CP[playerid] = 311;
SetPlayerCheckpoint(playerid, 1778.5396, -1663.2113, 13.9975, 5.0);
}

if(Este1Shot(playerid) || IsAdmin(playerid))
{
SCM(playerid, COLOR_NEWGREEN, "» {FF9900}Bine Ai Venit Pe Server-ul Tau, Lord {FF9900}1Shot!");
BroadCast(COLOR_BESTBLUE, "» {FF0000}Atentie! {FFFFFF}Lordul {FF0000}1Shot {FFFFFF}A Intrat Pe BloodZone RPG!");
}

SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pChar], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);

TextDrawShowForPlayer(playerid, BalanceTextDraw[playerid]);

TextDrawShowForPlayer(playerid, NameText[playerid]);

SetTimerEx("UnsetCrash", 5000, false, "i", playerid);

KillTimer(DispareWantedTimer);
DispareWantedTimer = SetTimerEx("DispareWanted", 600000, true, "i", playerid);

if(gTeam[playerid] == 0)
{
gTeam[playerid] = 3;
}
else
{
gTeam[playerid] = PlayerInfo[playerid][pTeam];
}

gPlayerLogged[playerid] = 1;
SpawnPlayer(playerid);

if(PlayerInfo[playerid][pCrashed] != 0 && PlayerOnRob[playerid] == 1)
{
SCM(playerid, COLOR_RED, "» Ai luat Crash in timp ce spargeai Banca. Du-te si sparge-o iar.");
PlayerInfo[playerid][pRobTime] = 0;
}
else if(PlayerInfo[playerid][pCrashed] == 0 && PlayerOnRob[playerid] == 1)
{
PlayerInfo[playerid][pRobTime] = 7200;
}
if(PlayerInfo[playerid][pCrashed] != 0 && PlayerOnATM[playerid] == 1)
{
SCM(playerid, COLOR_RED, "» Ai luat Crash in timp ce spargeai Bancomatul. Du-te si sparge-o iar.");
PlayerInfo[playerid][pATMTime] = 0;
}
else if(PlayerInfo[playerid][pCrashed] == 0 && PlayerOnATM[playerid] == 1)
{
PlayerInfo[playerid][pATMTime] = 7200;
}
if(PlayerInfo[playerid][pCrashed] != 0 && PlayerOnMission[playerid] == 1)
{
SCM(playerid, COLOR_RED, "» Ai luat Crash in timp ce faceai Misiunea. Du-te si fa-o iar.");
PlayerInfo[playerid][pMissTime] = 0;
}
else if(PlayerInfo[playerid][pCrashed] == 0 && PlayerOnMission[playerid] == 1)
{
PlayerInfo[playerid][pMissTime] = 7200;
}

format(tmp2, sizeof(tmp2), "~g~Bine ai venit ~n~~r~%s", playername2);
GameTextForPlayer(playerid, tmp2, 5000, 1);
DateProp(playerid);

for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[pMaskuse] == 1)
{
ShowPlayerNameTagForPlayer(playerid, i, 0);
}
}
}

if(IsACop(playerid))
{
gTeam[playerid] = 2;
PlayerInfo[playerid][pTeam] = 2;
}

TextDrawHideForPlayer(playerid, ConnectText1);
TextDrawHideForPlayer(playerid, ConnectText2);
TextDrawHideForPlayer(playerid, ConnectText3);
TextDrawHideForPlayer(playerid, ConnectText4);

return 1;
}
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.