this is my onplayer login code im useing a timer to skip the spawn selection but some times a player will login and the camera will apear over this ocean area im useing a GF Major edited copy and i dont know why it dose this
Код:
public OnPlayerLogin(playerid,password[])
{
new tmp2[256];
new string2[128];
format(string2, sizeof(string2), "%s.ini", PlayerName(playerid));
new File: UserFile = fopen(string2, io_read);
if ( UserFile )
{
new PassData[128];
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][pLevel] = strvalEx( val ); }
if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdmin] = strvalEx( val ); }
if( strcmp( key , "Band" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBand] = strvalEx( val ); }
if( strcmp( key , "PermaBand" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPermBand] = strvalEx( val ); }
if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strvalEx( val ); }
if( strcmp( key , "Disabled" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDisabled] = strvalEx( val ); }
if( strcmp( key , "DonateRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDonateRank] = strvalEx( val ); }
if( strcmp( key , "BanAppealer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBanAppealer] = strvalEx( val ); }
if( strcmp( key , "GangMod" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGangMod] = strvalEx( val ); }
if( strcmp( key , "UpgradePoints" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][gPupgrade] = strvalEx( val ); }
if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConnectTime] = strvalEx( val ); }
if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strvalEx( val ); }
if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strvalEx( val ); }
if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAge] = strvalEx( val ); }
if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strvalEx( val ); }
if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strvalEx( val ); }
if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strvalEx( val ); }
if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strvalEx( val ); }
if( strcmp( key , "Bank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAccount] = strvalEx( val ); }
if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrimes] = strvalEx( val ); }
if( strcmp( key , "Accent" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(Accent[playerid], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strvalEx( val ); }
if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strvalEx( val ); }
if( strcmp( key , "CHits" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCHits] = strvalEx( val ); }
if( strcmp( key , "FHits" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFHits] = strvalEx( val ); }
if( strcmp( key , "Arrested" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArrested] = strvalEx( val ); }
if( strcmp( key , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhoneBook] = strvalEx( val ); }
if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr] = strvalEx( val ); }
if( strcmp( key , "Fishes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishes] = strvalEx( val ); }
if( strcmp( key , "BiggestFish" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBiggestFish] = strvalEx( val ); }
if( strcmp( key , "Job" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJob] = strvalEx( val ); }
if( strcmp( key , "Paycheck" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayCheck] = strvalEx( val ); }
if( strcmp( key , "HeadValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeadValue] = strvalEx( val ); }
if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailed] = strvalEx( val ); }
if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailTime] = strvalEx( val ); }
if( strcmp( key , "Materials" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMats] = strvalEx( val ); }
if( strcmp( key , "Pot" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPot] = strvalEx( val ); }
if( strcmp( key , "Crack" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrack] = strvalEx( val ); }
if( strcmp( key , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLeader] = strvalEx( val ); }
if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMember] = strvalEx( val ); }
if( strcmp( key , "SFMember" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSFMember] = strvalEx( val ); }
if( strcmp( key , "SFLeader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSFLeader] = strvalEx( val ); }
if( strcmp( key , "FMember" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFMember] = strvalEx( val ); }
if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRank] = strvalEx( val ); }
if( strcmp( key , "DetSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDetSkill] = strvalEx( val ); }
if( strcmp( key , "SexSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSexSkill] = strvalEx( val ); }
if( strcmp( key , "BoxSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxSkill] = strvalEx( val ); }
if( strcmp( key , "LawSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawSkill] = strvalEx( val ); }
if( strcmp( key , "MechSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMechSkill] = strvalEx( val ); }
if( strcmp( key , "JackSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJackSkill] = strvalEx( val ); }
if( strcmp( key , "CarSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarSkill] = strvalEx( val ); }
if( strcmp( key , "NewsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewsSkill] = strvalEx( val ); }
if( strcmp( key , "DrugsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugsSkill] = strvalEx( val ); }
if( strcmp( key , "ArmsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArmsSkill] = strvalEx( val ); }
// if( strcmp( key , "TrashSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTrashSkill] = strvalEx( val ); } // Trashman
if( strcmp( key , "SmugglerSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSmugglerSkill] = strvalEx( val ); }
if( strcmp( key , "FishSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishSkill] = strvalEx( val ); }
if( strcmp( key , "FightingStyle" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFightingStyle] = strvalEx( val ); }
if( strcmp( key , "pHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHealth] = floatstr( val ); }
if( strcmp( key , "pArmor" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArmor] = floatstr( val ); }
if( strcmp( key , "pSHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSHealth] = strvalEx( val ); }
if( strcmp( key , "Int" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInt] = strvalEx( val ); }
if( strcmp( key , "Local" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocal] = strvalEx( val ); }
if( strcmp( key , "VirtualWorld" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pVirtualWorld] = strvalEx( val ); }
if( strcmp( key , "Model" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pModel] = strvalEx( val ); }
if( strcmp( key , "Clothes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pClothes] = strvalEx( val ); }
if( strcmp( key , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strvalEx( val ); }
if( strcmp( key , "Bizz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPbiskey] = strvalEx( val ); }
if( strcmp( key , "Apartment" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPaptkey] = strvalEx( val ); }
if( strcmp( key , "CarLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarLic] = strvalEx( val ); }
if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlyLic] = strvalEx( val ); }
if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoatLic] = strvalEx( val ); }
if( strcmp( key , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishLic] = strvalEx( val ); }
if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strvalEx( val ); }
if( strcmp( key , "Gun0" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun0] = strvalEx( val ); }
if( strcmp( key , "Gun1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun1] = strvalEx( val ); }
if( strcmp( key , "Gun2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun2] = strvalEx( val ); }
if( strcmp( key , "Gun3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun3] = strvalEx( val ); }
if( strcmp( key , "Gun4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun4] = strvalEx( val ); }
if( strcmp( key , "Gun5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun5] = strvalEx( val ); }
if( strcmp( key , "Gun6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun6] = strvalEx( val ); }
if( strcmp( key , "Gun7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun7] = strvalEx( val ); }
if( strcmp( key , "Gun8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun8] = strvalEx( val ); }
if( strcmp( key , "Gun9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun9] = strvalEx( val ); }
if( strcmp( key , "Gun10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun10] = strvalEx( val ); }
if( strcmp( key , "Gun11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun11] = strvalEx( val ); }
if( strcmp( key , "Gun12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun12] = strvalEx( val ); }
if( strcmp( key , "HouseTag" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pHouseTag], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "HouseRequested" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHouseRequested] = strval( val ); }
if( strcmp( key , "HouseAccepted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHouseAccepted] = strval( val ); }
if( strcmp( key , "HouseApproved" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHouseApproved] = strval( val ); }
if( strcmp( key , "HouseOwnerTag" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pHouseOwnerTag], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "HouseLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHouseLevel] = strval( val ); }
if( strcmp( key , "HouseLocTag" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pHouseLocTag], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "HouseX" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHouseX] = floatstr( val ); }
if( strcmp( key , "HouseY" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHouseY] = floatstr( val ); }
if( strcmp( key , "HouseZ" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHouseZ] = floatstr( val ); }
if( strcmp( key , "HouseExitX" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHouseExitX] = floatstr( val ); }
if( strcmp( key , "HouseExitY" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHouseExitY] = floatstr( val ); }
if( strcmp( key , "HouseExitZ" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHouseExitZ] = floatstr( val ); }
if( strcmp( key , "HouseExitR" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHouseExitR] = floatstr( val ); }
if( strcmp( key , "HouseCarModel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHouseCarModel] = strval( val ); }
if( strcmp( key , "HouseCarFacing" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHouseCarFacing] = floatstr( val ); }
if( strcmp( key , "HouseCarColor" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHouseCarColor] = strval( val ); }
if( strcmp( key , "HouseCarColor2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHouseCarColor2] = strval( val ); }
if( strcmp( key , "HouseLocked" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHouseLocked] = strval( val ); }
if( strcmp( key , "HouseCarX" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHouseCarX] = floatstr( val ); }
if( strcmp( key , "HouseCarY" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHouseCarY] = floatstr( val ); }
if( strcmp( key , "HouseCarZ" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHouseCarZ] = floatstr( val ); }
if( strcmp( key , "hCash" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][hCash] = strvalEx( val ); }
if( strcmp( key , "hPot" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][hPot] = strvalEx( val ); }
if( strcmp( key , "hCrack" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][hCrack] = strvalEx( val ); }
if( strcmp( key , "hMats" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][hMats] = strvalEx( val ); }
if( strcmp( key , "hGun1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][hGun1] = strvalEx( val ); }
if( strcmp( key , "hGun2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][hGun2] = strvalEx( val ); }
if( strcmp( key , "hGun3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][hGun3] = strvalEx( val ); }
if( strcmp( key , "hGun4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][hGun4] = strvalEx( val ); }
if( strcmp( key , "hGun5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][hGun5] = strvalEx( val ); }
if( strcmp( key , "hGL" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][hGL] = strvalEx( val ); }
if( strcmp( key , "hValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][hValue] = strvalEx( val ); }
if( strcmp( key , "hAlarmSystem" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][hAlarmSystem] = strvalEx( val ); }
if( strcmp( key , "hAlarmNumber" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][hAlarmNumber] = strvalEx( val ); }
if( strcmp( key , "hNitro" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][hNitro] = strvalEx( val ); }
if( strcmp( key , "hLicensePlate" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][hLicensePlate] = strvalEx( val ); }
if( strcmp( key , "hVehLock" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][hVehLock] = strvalEx( val ); }
if( strcmp( key , "hTicket" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][hTicket] = strvalEx( val ); }
if( strcmp( key , "CarTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarTime] = strvalEx( val ); }
if( strcmp( key , "DrugsTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugsTime] = strvalEx( val ); }
if( strcmp( key , "LawyerTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawyerTime] = strvalEx( val ); }
if( strcmp( key , "LawyerFreeTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawyerFreeTime] = strvalEx( val ); }
if( strcmp( key , "MechTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMechTime] = strvalEx( val ); }
if( strcmp( key , "SexTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSexTime] = strvalEx( val ); }
if( strcmp( key , "PayDay" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDay] = strvalEx( val ); }
if( strcmp( key , "PayDayHad" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDayHad] = strvalEx( val ); }
if( strcmp( key , "CDPlayer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCDPlayer] = strvalEx( val ); }
if( strcmp( key , "Dice" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDice] = strvalEx( val ); }
if( strcmp( key , "Spraycan" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSpraycan] = strvalEx( val ); }
if( strcmp( key , "Screw" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pScrew] = strvalEx( val ); }
if( strcmp( key , "Rope" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRope] = strvalEx( val ); }
if( strcmp( key , "Cigars" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCigars] = strvalEx( val ); }
if( strcmp( key , "Sprunk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSprunk] = strvalEx( val ); }
if( strcmp( key , "Cookies" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCookies] = strvalEx( val ); }
if( strcmp( key , "WT" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWT] = strvalEx( val ); }
if( strcmp( key , "WTc" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWTc] = strvalEx( val ); }
if( strcmp( key , "Bombs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBombs] = strvalEx( val ); }
if( strcmp( key , "Scope" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pScope] = strvalEx( val ); }
if( strcmp( key , "Wins" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWins] = strvalEx( val ); }
if( strcmp( key , "Loses" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLoses] = strvalEx( val ); }
if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTut] = strvalEx( val ); }
if( strcmp( key , "OnDuty" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOnDuty] = strvalEx( val ); }
if( strcmp( key , "Hospital" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHospital] = strvalEx( val ); }
if( strcmp( key , "Adjustable" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdjustable] = strvalEx( val ); }
if( strcmp( key , "Married" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarried] = strvalEx( val ); }
if( strcmp( key , "MarriedTo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pMarriedTo], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "ContractBy" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pContractBy], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "IP" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pIP], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "WantedLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedLevel] = strvalEx( val ); }
if( strcmp( key , "NewbieMuted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewbieMuted] = strvalEx( val ); }
if( strcmp( key , "SafeSpawn" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSafeSpawn] = strvalEx( val ); }
if( strcmp( key , "SPos_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSPos_x] = floatstr( val ); }
if( strcmp( key , "SPos_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSPos_y] = floatstr( val ); }
if( strcmp( key , "SPos_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSPos_z] = floatstr( val ); }
if( strcmp( key , "SPos_r" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSPos_r] = floatstr( val ); }
if( strcmp( key , "HelperLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelper] = strval( val ); }
if( strcmp( key , "Mask" , true ) == 0 ) { val = ini_GetValue( Data ); HasBoughtMask[playerid] = strvalEx( val ); }
if( strcmp( key , "Blindfolds" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBlindfolds] = strvalEx( val ); }
if( strcmp( key , "Speedo" , true ) == 0 ) { val = ini_GetValue( Data ); gSpeedo[playerid] = strvalEx( val ); }
if( strcmp( key , "Seeds" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSeeds] = strvalEx( val ); }
}
fclose(UserFile);
}
else
{
SendClientMessage(playerid, COLOR_RED, "SERVER: Password does not match your name. you have been kicked as a result.");
Kick(playerid);
return 1;
}
if(PlayerInfo[playerid][pPermBand] == 1)
{
new banstring[256];
format(banstring,sizeof(banstring),"AdmCmd: %s has been banned, reason: Attempting to log into a perma-banned account.",PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTRED,banstring);
}
if(PlayerInfo[playerid][pBand] == 3)
{
new banstring[256];
format(banstring,sizeof(banstring),"AdmCmd: %s has been banned, reason: Attempting to log into a banned account.",PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTRED,banstring);
}
if(PlayerInfo[playerid][pDisabled] == 1) //account disabled
{
SendClientMessage(playerid, COLOR_RED, "SERVER: Your account has been disabled.");
Kick(playerid);
}
if(PlayerInfo[playerid][pReg] == 0)
{
PlayerInfo[playerid][pLevel] = 1;
PlayerInfo[playerid][pAccount] = 20000;
PlayerInfo[playerid][pReg] = 1;
}
strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 128);
format(tmp2, sizeof(tmp2), "SERVER: Welcome %s.", PlayerName(playerid));
SendClientMessage(playerid, COLOR_WHITE, tmp2);
format(tmp2, sizeof(tmp2), "~w~Welcome ~n~~y~ %s", PlayerName(playerid));
GameTextForPlayer(playerid, tmp2, 5000, 1);
SendClientMessage(playerid, COLOR_YELLOW, motd);
if(PlayerInfo[playerid][pAdmin] > 0)
{
format(tmp2, sizeof(tmp2), "SERVER: You are logged in as a Level %d Admin.",PlayerInfo[playerid][pAdmin]);
SendClientMessage(playerid, COLOR_WHITE,tmp2);
}
if(PlayerInfo[playerid][pFMember] < 255)
{
format(tmp2, sizeof(tmp2), "Family MOTD: %s", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMOTD]);
SendClientMessage(playerid, COLOR_YELLOW, tmp2);
}
if(PlayerInfo[playerid][pHouseAccepted] > 0)
{
print("/// CREATE HOUSE ///");
printf("PlayerID: %d", playerid);
new hnametag[64];
new hloctag[64];
//pickup
HousePickupIDTemp[playerid] = CreatePickup(1273,1,PlayerInfo[playerid][pHouseX],PlayerInfo[playerid][pHouseY],PlayerInfo[playerid][pHouseZ]);
printf("PickupID: %d", HousePickupIDTemp[playerid]);
//nametag
strmid(hnametag, PlayerInfo[playerid][pHouseTag], 0, strlen(PlayerInfo[playerid][pHouseTag]), 255);
House3dTextID[playerid] = Create3DTextLabel(hnametag,COLOR_HOUSETEXT,PlayerInfo[playerid][pHouseX],PlayerInfo[playerid][pHouseY],PlayerInfo[playerid][pHouseZ]+0.88,20.0,0,1);
printf("House3dTextID: %d", _:House3dTextID[playerid]);
//owner
new string[256];
format(string, sizeof(string),"Owner: %s", PlayerName(playerid));
HouseTextOwnerID[playerid] = Create3DTextLabel(string,COLOR_HOUSETEXT,PlayerInfo[playerid][pHouseX],PlayerInfo[playerid][pHouseY],PlayerInfo[playerid][pHouseZ]+0.74,20.0,0,1);
strmid(PlayerInfo[playerid][pHouseOwnerTag], PlayerName(playerid), 0, strlen(PlayerName(playerid)), 255);
printf("HouseTextOwnerID: %d", _:HouseTextOwnerID[playerid]);
//location
strmid(hloctag, PlayerInfo[playerid][pHouseLocTag], 0, strlen(PlayerInfo[playerid][pHouseLocTag]), 255);
format(string, sizeof(string),"Location: %s", hloctag);
HouseTextLocationID[playerid] = Create3DTextLabel(string,COLOR_HOUSETEXT,PlayerInfo[playerid][pHouseX],PlayerInfo[playerid][pHouseY],PlayerInfo[playerid][pHouseZ]+0.60,20.0,0,1);
printf("HouseTextLocationID: %d", _:HouseTextLocationID[playerid]);
//vehicle
HouseVehicleIDTemp[playerid] = CreateVehicle(PlayerInfo[playerid][pHouseCarModel],PlayerInfo[playerid][pHouseCarX],PlayerInfo[playerid][pHouseCarY],PlayerInfo[playerid][pHouseCarZ],PlayerInfo[playerid][pHouseCarFacing],PlayerInfo[playerid][pHouseCarColor],PlayerInfo[playerid][pHouseCarColor2], 900);
if(PlayerInfo[playerid][hVehLock] > 0)
{
LockCar(HouseVehicleIDTemp[playerid]);
}
printf("VehicleID: %d", HouseVehicleIDTemp[playerid]);
print("/// CREATE HOUSE END ///");
}
else
{
ClearHouseInfo(playerid);
}
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
SetPlayerVirtualWorld(playerid, PlayerInfo[playerid][pVirtualWorld]);
SetPlayerFightingStyle(playerid, PlayerInfo[playerid][pFightingStyle]);
TogglePlayerSpectating(playerid, 0);
new plrIP[16];
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
strmid(PlayerInfo[playerid][pIP], plrIP, 0, strlen(plrIP), 255);
PlayerInfo[playerid][pAdjustable] = 0;
InitLockDoors(playerid);
gPlayerLogged[playerid] = 1;
}
return 1;
}
1) Comment 'OnPlayerRequestClass' and the SkipSpawn shit.
no luck it just shows the player selection thingy with the "< > spawn" buttons
OnPlayerRequestClass is the right place. Should you be passing both parameters in your timer?
Well the timer is starting to bug the accounts, sometimes when they login there camera will spawn over this ocean/lake thingy and itll say you havnt logged in yet....I dont know why and i tryed what california said and i got the "<< >> Spawn" buttons.