OnPlayerLogin Crash
#1

Any help? what could i'we done here wrong? it is working on windows but not on linux.
Reply
#2

Paste the code of the crash
Reply
#3

OnPlayerLogin crash your game while you are playing or it give errors in pawno while compiling?
Reply
#4

i don't have crash log

and
server crashes, it starts to restart :S
Reply
#5

Okay, could you show us your OnPlayerLogin code?
Reply
#6

public OnPlayerLogin(playerid,password[])
{
new tmp2[256];
new string2[64];
new string[128];
new playersip[24];
new playername2[MAX_PLAYER_NAME];
new playernamesplit[3][MAX_PLAYER_NAME];
GetPlayerName(playerid, playername2, sizeof(playername2));
GetPlayerIp(playerid, playersip, sizeof(playersip));
split(playername2, playernamesplit, '_');
format(string2, sizeof(string2), "Users/%s.ini", playername2);
new File: UserFile = fopen(string, io_read);
if (fexist(string, io_read)
{
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][pLevel] = strval( val ); }
if( strcmp( key , "Spawn" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSpawn] = strval( val ); }
if( strcmp( key , "TesterLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTester] = strval( val ); }
if( strcmp( key , "HelperLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelper] = strval( val ); }
if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdmin] = strval( val ); }
if( strcmp( key , "RegularRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRegularRank] = 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][pConnectSeconds] = strval( val ); }
if( strcmp( key , "PlayingHours" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPlayingHours] = 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 , "GPS" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGPS] = strval( val ); }
if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strval( val ); }
if( strcmp( key , "CK" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCK] = strval( val ); }
if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strval( val ); }
if( strcmp( key , "Blind" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBlind] = strval( val ); }
if( strcmp( key , "Frozen" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFrozen] = 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][pAccount] = strval( val ); }
if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrimes] = strval( val ); }
if( strcmp( key , "CrimeReason" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeReason], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Wanted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWanted] = strval( val ); }
if( strcmp( key , "WantedLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedLevel] = 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 , "WhyLeft" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWhyLeft] = 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][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 , "CanRobTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRobTime] = 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 , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLeader] = strval( val ); }
if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMember] = strval( val ); }
if( strcmp( key , "FMember" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFMember] = 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 , "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 , "pArmour" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArmour] = floatstr( val ); }
if( strcmp( key , "Int" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInt] = strval( val ); }
if( strcmp( key , "InteriorNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInteriorNr] = 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 , "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 , "Passport" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPassport] = strval( 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 , "CopLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCopLic] = 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 , "Watch" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWatch] = strval( val ); }
if( strcmp( key , "VIPplayer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pVip] = 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 , "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 , "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 , "WhyLeft" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pWhyLeft], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "SaveNumber1" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][psms], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "SaveNumberer1" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][psmser], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Note1" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote1], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Note1s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote1s] = strval( val ); }
if( strcmp( key , "Note2" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote2], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Note2s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote2s] = strval( val ); }
if( strcmp( key , "Note3" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote3], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Note3s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote3s] = strval( val ); }
if( strcmp( key , "Note4" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote4], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Note4s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote4s] = strval( val ); }
if( strcmp( key , "Note5" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote5], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Note5s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote5s] = 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 , "InvWeapon2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon2] = strval( val ); }
if( strcmp( key , "InvAmmo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo2] = strval( val ); }
if( strcmp( key , "InvWeapon3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon3] = strval( val ); }
if( strcmp( key , "InvAmmo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo3] = strval( val ); }
if( strcmp( key , "InvWeapon4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon4] = strval( val ); }
if( strcmp( key , "InvAmmo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo4] = strval( val ); }
if( strcmp( key , "InvWeapon5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon5] = strval( val ); }
if( strcmp( key , "InvAmmo5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo5] = strval( val ); }
if( strcmp( key , "InvWeapon6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon6] = strval( val ); }
if( strcmp( key , "InvAmmo6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo6] = strval( val ); }
if( strcmp( key , "Lighter" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLighter] = strval( val ); }
if( strcmp( key , "Cigarettes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCigarettes] = strval( val ); }
if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarned] = strval( val ); }
if( strcmp( key , "Swat" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSwat] = strval( val ); }
if( strcmp( key , "Tactical" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTactical] = strval( val ); }
if( strcmp( key , "SpecialF" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSpecialF] = strval( val ); }
if( strcmp( key , "DutyBanned" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDBanned] = strval( val ); }
if( strcmp( key , "OnDuty" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDuty] = strval( val ); }
if( strcmp( key , "DDManager" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDM] = strval( val ); }
if( strcmp( key , "DDTicket" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDTK] = strval( val ); }
if( strcmp( key , "DDSTicket" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDSTK] = strval( val ); }
if( strcmp( key , "Fighting" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFS] = strval( val ); }
if( strcmp( key , "Boxing" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxiSkill] = strval( val ); }
if( strcmp( key , "KneeHead" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKneeSkill] = strval( val ); }
if( strcmp( key , "KungFu" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKungSkill] = strval( val ); }
if( strcmp( key , "GrabKick" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGrabSkill] = strval( val ); }
if( strcmp( key , "Elbow" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pElbowSkill] = strval( val ); }
if( strcmp( key , "CDPlayer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCD] = strval( val ); }
if( strcmp( key , "Speedo" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSpeedo] = strval( val ); }
if( strcmp( key , "Helper" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelper] = strval( val ); }
if( strcmp( key , "Tester" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTester] = strval( val ); }
if( strcmp( key , "HydraDriver" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHydraR] = strval( val ); }
if( strcmp( key , "HunterDriver" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHunterR] = strval( val ); }
if( strcmp( key , "RhinoDriver" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRhinoR] = strval( val ); }
if( strcmp( key , "PredatorDriver" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPredR] = strval( val ); }
if( strcmp( key , "ViewPms" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pViewPms] = strval( val ); }
if( strcmp( key , "AppearList" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAppearList] = strval( val ); }
if( strcmp( key , "AmmunationTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmuTrainTime] = strval( val ); }
if( strcmp( key , "PistolSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPistSkill] = strval( val ); }
if( strcmp( key , "SilencedSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSilenSkill] = strval( val ); }
if( strcmp( key , "DesertSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDesertSkill] = strval( val ); }
if( strcmp( key , "ShotgunSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pShotgSkill] = strval( val ); }
if( strcmp( key , "SawnoffSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSawnSkill] = strval( val ); }
if( strcmp( key , "CombatSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCombSkill] = strval( val ); }
if( strcmp( key , "UziSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pUziSkill] = strval( val ); }
if( strcmp( key , "SmgSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSmgSkill] = strval( val ); }
if( strcmp( key , "Ak47Skill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAkSkill] = strval( val ); }
if( strcmp( key , "M4Skill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pM4Skill] = strval( val ); }
if( strcmp( key , "TutorialDone" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTutDone] = strval( val ); }
if( strcmp( key , "RegularCount" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRegularCount] = strval( val ); }
if( strcmp( key , "PassportTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPassportTime] = strval( val ); }
if( strcmp( key , "OfficerTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOfficerTime] = strval( val ); }
if( strcmp( key , "Achievement0" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement0] = strval( val ); }
if( strcmp( key , "Achievement1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement1] = strval( val ); }
if( strcmp( key , "Achievement2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement2] = strval( val ); }
if( strcmp( key , "Achievement3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement3] = strval( val ); }
if( strcmp( key , "Achievement4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement4] = strval( val ); }
if( strcmp( key , "Achievement5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement5] = strval( val ); }
if( strcmp( key , "Achievement6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement6] = strval( val ); }
if( strcmp( key , "Achievement7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement7] = strval( val ); }
if( strcmp( key , "Achievement8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement8] = strval( val ); }
if( strcmp( key , "Achievement9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement9] = strval( val ); }
if( strcmp( key , "Achievement10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement10] = strval( val ); }
if( strcmp( key , "Achievement11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement11] = strval( val ); }
if( strcmp( key , "Achievement12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement12] = strval( val ); }
if( strcmp( key , "Achievement13" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement13] = strval( val ); }
if( strcmp( key , "Achievement14" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement14] = strval( val ); }
if( strcmp( key , "Achievement15" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement15] = strval( val ); }
if( strcmp( key , "Achievement16" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement16] = strval( val ); }
if( strcmp( key , "Achievement17" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement17] = strval( val ); }
if( strcmp( key , "Achievement18" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement18] = strval( val ); }
if( strcmp( key , "Achievement19" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement19] = strval( val ); }
if( strcmp( key , "Achievement20" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement20] = strval( val ); }
if( strcmp( key , "ShiftName" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pShiftName] = strval( val ); }
if( strcmp( key , "Weapon" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon] = strval( val ); }
if( strcmp( key , "Ammo" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo] = strval( val ); }
if( strcmp( key , "Weapon2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon2] = strval( val ); }
if( strcmp( key , "Ammo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo2] = strval( val ); }
if( strcmp( key , "Weapon3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon3] = strval( val ); }
if( strcmp( key , "Ammo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo3] = strval( val ); }
if( strcmp( key , "Weapon4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon4] = strval( val ); }
if( strcmp( key , "Ammo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo4] = strval( val ); }
if( strcmp( key , "Weapon5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon5] = strval( val ); }
if( strcmp( key , "Ammo5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo5] = strval( val ); }
if( strcmp( key , "Weapon6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon6] = strval( val ); }
if( strcmp( key , "Ammo6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo6] = strval( val ); }
if( strcmp( key , "Weapon7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon7] = strval( val ); }
if( strcmp( key , "Ammo7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo7] = strval( val ); }
if( strcmp( key , "Weapon8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon8] = strval( val ); }
if( strcmp( key , "Ammo8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo8] = strval( val ); }
if( strcmp( key , "Weapon9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon9] = strval( val ); }
if( strcmp( key , "Ammo9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo9] = strval( val ); }
if( strcmp( key , "Weapon10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon10] = strval( val ); }
if( strcmp( key , "Ammo10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo10] = strval( val ); }
if( strcmp( key , "Weapon11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon11] = strval( val ); }
if( strcmp( key , "Ammo11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo11] = strval( val ); }
if( strcmp( key , "Weapon12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon12] = strval( val ); }
if( strcmp( key , "Ammo12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo12] = strval( val ); }
if( strcmp( key , "Atc" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAtc] = strval( val ); }
if( strcmp( key , "AtcRadio" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAtcRadio] = strval( val ); }
if( strcmp( key , "Pending" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPending] = strval( val ); }
if( strcmp( key , "PendingInfo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPendingInfo], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "ChatMode" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChatMode] = strval( val ); }
if( strcmp( key , "Punishment1" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment1], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Punishment2" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment2], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Punishment3" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment3], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Punishment4" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment4], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Punishment5" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment5], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Punishment6" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment6], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Punishment7" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment7], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Punishment8" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment8], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "NextPunishment" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNextPunishment] = strval( val ); }
if( strcmp( key , "Punished" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPunished] = strval( val ); }
if( strcmp( key , "TazerBullets" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTazerBullets] = strval( val ); }
if( strcmp( key , "Changed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChanged] = strval( val ); }
if( strcmp( key , "IP" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pIP], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "LastSeen" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pLastSeen], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "RegistredDate" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pRegistredDate], val, 0, strlen(val)-1, 255); }
}//end while
fclose(UserFile);//close the file after everything has been read in the while
}
else
{
fclose(UserFile);
gPlayerLogTries[playerid] += 1;
ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_INPUT,"Probajte ponovo, logirajte se","Unijeli ste krivu lozinku\nUpisite ispod lozinku za login","Login","Odustani");
if(gPlayerLogTries[playerid] == 3) { Kick(playerid); }
return 1;
}
RingTone[playerid] = 20;
TextDrawShowForPlayer(playerid, Textdraw44);
TextDrawShowForPlayer(playerid, Textdraw45);
TextDrawShowForPlayer(playerid, Textdraw49[playerid]);
TextDrawShowForPlayer(playerid, Textdraw51[playerid]);
TextDrawShowForPlayer(playerid, Textdraw53[playerid]);
TextDrawShowForPlayer(playerid, Textdraw55);
if(PlayerInfo[playerid][pWatch] == 1)
{
TextDrawShowForPlayer(playerid, Textdraw56);
TextDrawShowForPlayer(playerid, Textdraw57);
TextDrawShowForPlayer(playerid, Textdraw5;
}
if(CountdownRunning == 1)
{
TextDrawShowForPlayer(playerid, Textdraw46);
}
if(PlayerInfo[playerid][pChanged] == 1)
{
SendClientMessage(playerid, COLOR_NICERED,"* Ovo ime je izbrisano, javite se na forum ( ilife-rp.tk )!");
return 1;
}
if(PlayerInfo[playerid][pReg] == 0)
{
PlayerInfo[playerid][pLevel] = 1;
PlayerInfo[playerid][pHealth] = 50.0;
PlayerInfo[playerid][pArmour] = 0.0;
PlayerInfo[playerid][pPassportTime] = 18000;
PlayerInfo[playerid][pRegularCount] = 144000;
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
PlayerInfo[playerid][pTeam] = 3;
PlayerInfo[playerid][pModel] = 135;
new randphone = 100000 + random(899999);//minimum 1000 max 9999 //giving one at the start
PlayerInfo[playerid][pPnumber] = randphone;
PlayerInfo[playerid][pPhousekey] = 999;
PlayerInfo[playerid][pPcarkey] = 999;
PlayerInfo[playerid][pPcarkey2] = 999;
PlayerInfo[playerid][pPbiskey] = 255;
PlayerInfo[playerid][pAccount] = 0;
PlayerInfo[playerid][pReg] = 1;
SafeGivePlayerMoney(playerid, 300);
new d,m,y;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "%d/%d/%d at %d:%d:%d",d,m,y,h,mi,s);
strmid(PlayerInfo[playerid][pRegistredDate], string, 0, strlen(string), 255);
}
SetPlayerSkills(playerid);
if(PlayerInfo[playerid][pPending] == 1)
{
format(string, sizeof(string), "[INFO]: %s se logirao sa trenutnim banom, reagiraj!!",playername2);
SendAdminMessage(COLOR_GREEN, string);
}
else if(PlayerInfo[playerid][pCK] > 0)
{
Kick(playerid);
}
if(PlayerInfo[playerid][pAdmin] >= 1)
{
admins ++;
}
SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
SafeSetPlayerArmour(playerid, PlayerInfo[playerid][pArmour]);
SafeResetPlayerMoney(playerid);
SafeGivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
ClearChatbox(playerid, ;
SendClientMessage(playerid, COLOR_GREEN, "================================================= ======================");
format(string2, sizeof(string2), "Trenutna verzija skripte: %s.",Version);
SendClientMessage(playerid, COLOR_GREEN, string2);
format(string2, sizeof(string2), "%s , dobrodošao na iLife RolePlay.",playername2);
SendClientMessage(playerid, COLOR_WHITE,string2);
format(string2, sizeof(string2), "Poštujte Admine i druge igrače.");
SendClientMessage(playerid, COLOR_WHITE,string2);
format(string2, sizeof(string2), "Igrajte pošteno, ne varajte, jer u suprotnom slijedi BAN..");
SendClientMessage(playerid, COLOR_WHITE,string2);
format(string2, sizeof(string2), "Pravila i ostalo vezano uz server: ilife-rp.tk.");
SendClientMessage(playerid, COLOR_WHITE,string2);
strmid(PlayerInfo[playerid][pIP], playersip, 0, strlen(playersip), 255);
if (PlayerInfo[playerid][pRegularRank] > 0)
{
SendClientMessage(playerid, COLOR_WHITE,"Stanovnici LS-a: Dobrodošao natrag!");
}
if (PlayerInfo[playerid][pAdmin] > 0)
{
format(string2, sizeof(string2), "SERVER : Tvoj ADMIN level je %d.",PlayerInfo[playerid][pAdmin]);
SendClientMessage(playerid, TEAM_CYAN_COLOR,string2);
}
SendClientMessage(playerid, COLOR_GREEN, "================================================= ======================");
SendClientMessage(playerid, COLOR_WHITE, " ");
// Reset the FirstSpawn variable
SetTimerEx("UnsetFirstSpawn", 5000, false, "i", playerid);
// Unset Crash
SetTimerEx("UnsetCrash", 5000, false, "i", playerid);
SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], 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];
}
gPlayerLogged[playerid] = 1;
SpawnPlayer(playerid);
if(PlayerInfo[playerid][pAdmin] >= 4)
{
PlayerInfo[playerid][pAppearList] = 0;
}
else
{
PlayerInfo[playerid][pAppearList] = 1;
}
SafeSetPlayerInterior(playerid, PlayerInfo[playerid][pInt]);
SetPlayerVirtualWorld(playerid, PlayerInfo[playerid][pVirWorld]);
SpawnWorld[playerid] = GetPlayerVirtualWorld(playerid);
SpawnInterior[playerid] = GetPlayerInterior(playerid);
if(PlayerInfo[playerid][pBlind] == 1)
{
TextDrawShowForPlayer(playerid, Textdraw5);
SendClientMessage(playerid, TEAM_CYAN_COLOR, "Osljepljeni ste od administratora zadnji put; Koristite /pomoc ako trebate pomoc Admina.");
}
if(PlayerInfo[playerid][pFrozen] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "Zamrznuti ste od administratora zadnji put; Koristite /pomoc ako trebate pomoc Admina.");
}
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "Usutkani ste od administratora zadnji put; Koristite /pomoc ako trebate pomoc Admina.");
}
if(PlayerInfo[playerid][pJailed] == 1)
{
format(string, sizeof(string), "Zatvoreni ste na %d sekundi; Koristite /pomoc ako trebate pomoc Admina.", PlayerInfo[playerid][pJailTime]);
SendClientMessage(playerid, TEAM_CYAN_COLOR, string);
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
}
if(PlayerInfo[playerid][pJailed] == 2)
{
format(string, sizeof(string), "Zatvoreni ste na %d sekundi; Koristite /pomoc ako trebate pomoc Admina.", PlayerInfo[playerid][pJailTime]);
SendClientMessage(playerid, TEAM_CYAN_COLOR, string);
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
}
if(PlayerInfo[playerid][pCrashed] == 0)
{
format(tmp2, sizeof(tmp2), "~w~Dobrodosao ~n~~y~ %s", playername2);
}
DateProp(playerid);
GameTextForPlayer(playerid, tmp2, 5000, 1);
SendClientMessage(playerid, COLOR_YELLOW, textmotd);
if(PlayerInfo[playerid][pFMember] < 255)
{
format(tmp2, sizeof(tmp2), "Family MOTD: %s.", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMOTD]);
SendClientMessage(playerid, COLOR_YELLOW, tmp2);
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMaskuse] == 1)
{
ShowPlayerNameTagForPlayer(playerid, i, 0);
}
}
}
if(!strcmp(playername2, "Tom_Bourne", true)) // If your nickname is John_Sheppard, change the <changeme> to John_Sheppard, this will give you immunity.
{
Untouchable[playerid] = 1;
}
if(!strcmp(playername2, "Ed_Bourne", true))
{
Untouchable[playerid] = 1;
}
if(PlayerInfo[playerid][pWanted] == 1)
{
SetPlayerColor(playerid, 0xAA3333AA);
WantedPoints[playerid] = PlayerInfo[playerid][pWantedLevel];
SetPlayerCriminal(playerid, 255, PlayerInfo[playerid][pCrimeReason]);
}
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s je logirao sa IP %s.",d,m,y,h,mi,s,playername2,playersip);
LoginLog(string);
}
return 1;
}
Reply
#7

public OnPlayerLogin(playerid,password[])
{
new tmp2[256];
new string2[64];
new string[128];
new playersip[24];
new playername2[MAX_PLAYER_NAME];
new playernamesplit[3][MAX_PLAYER_NAME];
GetPlayerName(playerid, playername2, sizeof(playername2));
GetPlayerIp(playerid, playersip, sizeof(playersip));
split(playername2, playernamesplit, '_');
format(string2, sizeof(string2), "Users/%s.ini", playername2);
new File: UserFile = fopen(string, io_read);
if (fexist(string)

not working :S HELP PLEASE!
Reply
#8

Next time use code box.

I'm not sure about this, but using strcmp so often might crash server.

Pawno gives any warnings while you are compiling this?
Reply
#9

what should i use instead of strcmp and how?
Reply
#10

public OnPlayerLogin(playerid,password[])
{
new tmp2[256];
new string2[64];
new string[128];
new playersip[24];
new playername2[MAX_PLAYER_NAME];
new playernamesplit[3][MAX_PLAYER_NAME];
GetPlayerName(playerid, playername2, sizeof(playername2));
GetPlayerIp(playerid, playersip, sizeof(playersip));
split(playername2, playernamesplit, '_');
format(string2, sizeof(string2), "Users/%s.ini", playername2);
new File: UserFile = fopen(string, io_read);
if (fexist(string, io_read)
{
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][pLevel] = strval( val ); }
if( strcmp( key , "Spawn" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSpawn] = strval( val ); }
if( strcmp( key , "TesterLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTester] = strval( val ); }
if( strcmp( key , "HelperLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelper] = strval( val ); }
if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdmin] = strval( val ); }
if( strcmp( key , "RegularRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRegularRank] = 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][pConnectSeconds] = strval( val ); }
if( strcmp( key , "PlayingHours" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPlayingHours] = 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 , "GPS" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGPS] = strval( val ); }
if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strval( val ); }
if( strcmp( key , "CK" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCK] = strval( val ); }
if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strval( val ); }
if( strcmp( key , "Blind" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBlind] = strval( val ); }
if( strcmp( key , "Frozen" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFrozen] = 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][pAccount] = strval( val ); }
if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrimes] = strval( val ); }
if( strcmp( key , "CrimeReason" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pCrimeReason], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Wanted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWanted] = strval( val ); }
if( strcmp( key , "WantedLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedLevel] = 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 , "WhyLeft" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWhyLeft] = 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][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 , "CanRobTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRobTime] = 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 , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLeader] = strval( val ); }
if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMember] = strval( val ); }
if( strcmp( key , "FMember" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFMember] = 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 , "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 , "pArmour" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArmour] = floatstr( val ); }
if( strcmp( key , "Int" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInt] = strval( val ); }
if( strcmp( key , "InteriorNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInteriorNr] = 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 , "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 , "Passport" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPassport] = strval( 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 , "CopLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCopLic] = 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 , "Watch" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWatch] = strval( val ); }
if( strcmp( key , "VIPplayer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pVip] = 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 , "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 , "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 , "WhyLeft" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pWhyLeft], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "SaveNumber1" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][psms], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "SaveNumberer1" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][psmser], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Note1" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote1], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Note1s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote1s] = strval( val ); }
if( strcmp( key , "Note2" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote2], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Note2s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote2s] = strval( val ); }
if( strcmp( key , "Note3" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote3], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Note3s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote3s] = strval( val ); }
if( strcmp( key , "Note4" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote4], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Note4s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote4s] = strval( val ); }
if( strcmp( key , "Note5" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pNote5], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Note5s" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNote5s] = 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 , "InvWeapon2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon2] = strval( val ); }
if( strcmp( key , "InvAmmo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo2] = strval( val ); }
if( strcmp( key , "InvWeapon3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon3] = strval( val ); }
if( strcmp( key , "InvAmmo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo3] = strval( val ); }
if( strcmp( key , "InvWeapon4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon4] = strval( val ); }
if( strcmp( key , "InvAmmo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo4] = strval( val ); }
if( strcmp( key , "InvWeapon5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon5] = strval( val ); }
if( strcmp( key , "InvAmmo5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo5] = strval( val ); }
if( strcmp( key , "InvWeapon6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvWeapon6] = strval( val ); }
if( strcmp( key , "InvAmmo6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInvAmmo6] = strval( val ); }
if( strcmp( key , "Lighter" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLighter] = strval( val ); }
if( strcmp( key , "Cigarettes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCigarettes] = strval( val ); }
if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarned] = strval( val ); }
if( strcmp( key , "Swat" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSwat] = strval( val ); }
if( strcmp( key , "Tactical" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTactical] = strval( val ); }
if( strcmp( key , "SpecialF" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSpecialF] = strval( val ); }
if( strcmp( key , "DutyBanned" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDBanned] = strval( val ); }
if( strcmp( key , "OnDuty" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDuty] = strval( val ); }
if( strcmp( key , "DDManager" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDM] = strval( val ); }
if( strcmp( key , "DDTicket" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDTK] = strval( val ); }
if( strcmp( key , "DDSTicket" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDSTK] = strval( val ); }
if( strcmp( key , "Fighting" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFS] = strval( val ); }
if( strcmp( key , "Boxing" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxiSkill] = strval( val ); }
if( strcmp( key , "KneeHead" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKneeSkill] = strval( val ); }
if( strcmp( key , "KungFu" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKungSkill] = strval( val ); }
if( strcmp( key , "GrabKick" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGrabSkill] = strval( val ); }
if( strcmp( key , "Elbow" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pElbowSkill] = strval( val ); }
if( strcmp( key , "CDPlayer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCD] = strval( val ); }
if( strcmp( key , "Speedo" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSpeedo] = strval( val ); }
if( strcmp( key , "Helper" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelper] = strval( val ); }
if( strcmp( key , "Tester" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTester] = strval( val ); }
if( strcmp( key , "HydraDriver" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHydraR] = strval( val ); }
if( strcmp( key , "HunterDriver" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHunterR] = strval( val ); }
if( strcmp( key , "RhinoDriver" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRhinoR] = strval( val ); }
if( strcmp( key , "PredatorDriver" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPredR] = strval( val ); }
if( strcmp( key , "ViewPms" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pViewPms] = strval( val ); }
if( strcmp( key , "AppearList" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAppearList] = strval( val ); }
if( strcmp( key , "AmmunationTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmuTrainTime] = strval( val ); }
if( strcmp( key , "PistolSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPistSkill] = strval( val ); }
if( strcmp( key , "SilencedSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSilenSkill] = strval( val ); }
if( strcmp( key , "DesertSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDesertSkill] = strval( val ); }
if( strcmp( key , "ShotgunSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pShotgSkill] = strval( val ); }
if( strcmp( key , "SawnoffSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSawnSkill] = strval( val ); }
if( strcmp( key , "CombatSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCombSkill] = strval( val ); }
if( strcmp( key , "UziSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pUziSkill] = strval( val ); }
if( strcmp( key , "SmgSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSmgSkill] = strval( val ); }
if( strcmp( key , "Ak47Skill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAkSkill] = strval( val ); }
if( strcmp( key , "M4Skill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pM4Skill] = strval( val ); }
if( strcmp( key , "TutorialDone" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTutDone] = strval( val ); }
if( strcmp( key , "RegularCount" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRegularCount] = strval( val ); }
if( strcmp( key , "PassportTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPassportTime] = strval( val ); }
if( strcmp( key , "OfficerTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOfficerTime] = strval( val ); }
if( strcmp( key , "Achievement0" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement0] = strval( val ); }
if( strcmp( key , "Achievement1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement1] = strval( val ); }
if( strcmp( key , "Achievement2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement2] = strval( val ); }
if( strcmp( key , "Achievement3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement3] = strval( val ); }
if( strcmp( key , "Achievement4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement4] = strval( val ); }
if( strcmp( key , "Achievement5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement5] = strval( val ); }
if( strcmp( key , "Achievement6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement6] = strval( val ); }
if( strcmp( key , "Achievement7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement7] = strval( val ); }
if( strcmp( key , "Achievement8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement8] = strval( val ); }
if( strcmp( key , "Achievement9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement9] = strval( val ); }
if( strcmp( key , "Achievement10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement10] = strval( val ); }
if( strcmp( key , "Achievement11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement11] = strval( val ); }
if( strcmp( key , "Achievement12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement12] = strval( val ); }
if( strcmp( key , "Achievement13" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement13] = strval( val ); }
if( strcmp( key , "Achievement14" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement14] = strval( val ); }
if( strcmp( key , "Achievement15" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement15] = strval( val ); }
if( strcmp( key , "Achievement16" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement16] = strval( val ); }
if( strcmp( key , "Achievement17" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement17] = strval( val ); }
if( strcmp( key , "Achievement18" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement18] = strval( val ); }
if( strcmp( key , "Achievement19" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement19] = strval( val ); }
if( strcmp( key , "Achievement20" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement20] = strval( val ); }
if( strcmp( key , "ShiftName" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pShiftName] = strval( val ); }
if( strcmp( key , "Weapon" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon] = strval( val ); }
if( strcmp( key , "Ammo" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo] = strval( val ); }
if( strcmp( key , "Weapon2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon2] = strval( val ); }
if( strcmp( key , "Ammo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo2] = strval( val ); }
if( strcmp( key , "Weapon3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon3] = strval( val ); }
if( strcmp( key , "Ammo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo3] = strval( val ); }
if( strcmp( key , "Weapon4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon4] = strval( val ); }
if( strcmp( key , "Ammo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo4] = strval( val ); }
if( strcmp( key , "Weapon5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon5] = strval( val ); }
if( strcmp( key , "Ammo5" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo5] = strval( val ); }
if( strcmp( key , "Weapon6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon6] = strval( val ); }
if( strcmp( key , "Ammo6" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo6] = strval( val ); }
if( strcmp( key , "Weapon7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon7] = strval( val ); }
if( strcmp( key , "Ammo7" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo7] = strval( val ); }
if( strcmp( key , "Weapon8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon8] = strval( val ); }
if( strcmp( key , "Ammo8" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo8] = strval( val ); }
if( strcmp( key , "Weapon9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon9] = strval( val ); }
if( strcmp( key , "Ammo9" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo9] = strval( val ); }
if( strcmp( key , "Weapon10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon10] = strval( val ); }
if( strcmp( key , "Ammo10" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo10] = strval( val ); }
if( strcmp( key , "Weapon11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon11] = strval( val ); }
if( strcmp( key , "Ammo11" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo11] = strval( val ); }
if( strcmp( key , "Weapon12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWeapon12] = strval( val ); }
if( strcmp( key , "Ammo12" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo12] = strval( val ); }
if( strcmp( key , "Atc" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAtc] = strval( val ); }
if( strcmp( key , "AtcRadio" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAtcRadio] = strval( val ); }
if( strcmp( key , "Pending" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPending] = strval( val ); }
if( strcmp( key , "PendingInfo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPendingInfo], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "ChatMode" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChatMode] = strval( val ); }
if( strcmp( key , "Punishment1" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment1], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Punishment2" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment2], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Punishment3" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment3], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Punishment4" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment4], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Punishment5" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment5], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Punishment6" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment6], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Punishment7" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment7], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "Punishment8" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pPunishment8], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "NextPunishment" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNextPunishment] = strval( val ); }
if( strcmp( key , "Punished" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPunished] = strval( val ); }
if( strcmp( key , "TazerBullets" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTazerBullets] = strval( val ); }
if( strcmp( key , "Changed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChanged] = strval( val ); }
if( strcmp( key , "IP" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pIP], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "LastSeen" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pLastSeen], val, 0, strlen(val)-1, 255); }
if( strcmp( key , "RegistredDate" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pRegistredDate], val, 0, strlen(val)-1, 255); }
}//end while
fclose(UserFile);//close the file after everything has been read in the while
}
else
{
fclose(UserFile);
gPlayerLogTries[playerid] += 1;
ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_INPUT,"Probajte ponovo, logirajte se","Unijeli ste krivu lozinku\nUpisite ispod lozinku za login","Login","Odustani");
if(gPlayerLogTries[playerid] == 3) { Kick(playerid); }
return 1;
}
RingTone[playerid] = 20;
TextDrawShowForPlayer(playerid, Textdraw44);
TextDrawShowForPlayer(playerid, Textdraw45);
TextDrawShowForPlayer(playerid, Textdraw49[playerid]);
TextDrawShowForPlayer(playerid, Textdraw51[playerid]);
TextDrawShowForPlayer(playerid, Textdraw53[playerid]);
TextDrawShowForPlayer(playerid, Textdraw55);
if(PlayerInfo[playerid][pWatch] == 1)
{
TextDrawShowForPlayer(playerid, Textdraw56);
TextDrawShowForPlayer(playerid, Textdraw57);
TextDrawShowForPlayer(playerid, Textdraw5;
}
if(CountdownRunning == 1)
{
TextDrawShowForPlayer(playerid, Textdraw46);
}
if(PlayerInfo[playerid][pChanged] == 1)
{
SendClientMessage(playerid, COLOR_NICERED,"* Ovo ime je izbrisano, javite se na forum ( ilife-rp.tk )!");
return 1;
}
if(PlayerInfo[playerid][pReg] == 0)
{
PlayerInfo[playerid][pLevel] = 1;
PlayerInfo[playerid][pHealth] = 50.0;
PlayerInfo[playerid][pArmour] = 0.0;
PlayerInfo[playerid][pPassportTime] = 18000;
PlayerInfo[playerid][pRegularCount] = 144000;
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
PlayerInfo[playerid][pTeam] = 3;
PlayerInfo[playerid][pModel] = 135;
new randphone = 100000 + random(899999);//minimum 1000 max 9999 //giving one at the start
PlayerInfo[playerid][pPnumber] = randphone;
PlayerInfo[playerid][pPhousekey] = 999;
PlayerInfo[playerid][pPcarkey] = 999;
PlayerInfo[playerid][pPcarkey2] = 999;
PlayerInfo[playerid][pPbiskey] = 255;
PlayerInfo[playerid][pAccount] = 0;
PlayerInfo[playerid][pReg] = 1;
SafeGivePlayerMoney(playerid, 300);
new d,m,y;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "%d/%d/%d at %d:%d:%d",d,m,y,h,mi,s);
strmid(PlayerInfo[playerid][pRegistredDate], string, 0, strlen(string), 255);
}
SetPlayerSkills(playerid);
if(PlayerInfo[playerid][pPending] == 1)
{
format(string, sizeof(string), "[INFO]: %s se logirao sa trenutnim banom, reagiraj!!",playername2);
SendAdminMessage(COLOR_GREEN, string);
}
else if(PlayerInfo[playerid][pCK] > 0)
{
Kick(playerid);
}
if(PlayerInfo[playerid][pAdmin] >= 1)
{
admins ++;
}
SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
SafeSetPlayerArmour(playerid, PlayerInfo[playerid][pArmour]);
SafeResetPlayerMoney(playerid);
SafeGivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
ClearChatbox(playerid, ;
SendClientMessage(playerid, COLOR_GREEN, "================================================= ======================");
format(string2, sizeof(string2), "Trenutna verzija skripte: %s.",Version);
SendClientMessage(playerid, COLOR_GREEN, string2);
format(string2, sizeof(string2), "%s , dobrodoљao na iLife RolePlay.",playername2);
SendClientMessage(playerid, COLOR_WHITE,string2);
format(string2, sizeof(string2), "Poљtujte Admine i druge igrače.");
SendClientMessage(playerid, COLOR_WHITE,string2);
format(string2, sizeof(string2), "Igrajte poљteno, ne varajte, jer u suprotnom slijedi BAN..");
SendClientMessage(playerid, COLOR_WHITE,string2);
format(string2, sizeof(string2), "Pravila i ostalo vezano uz server: ilife-rp.tk.");
SendClientMessage(playerid, COLOR_WHITE,string2);
strmid(PlayerInfo[playerid][pIP], playersip, 0, strlen(playersip), 255);
if (PlayerInfo[playerid][pRegularRank] > 0)
{
SendClientMessage(playerid, COLOR_WHITE,"Stanovnici LS-a: Dobrodoљao natrag!");
}
if (PlayerInfo[playerid][pAdmin] > 0)
{
format(string2, sizeof(string2), "SERVER : Tvoj ADMIN level je %d.",PlayerInfo[playerid][pAdmin]);
SendClientMessage(playerid, TEAM_CYAN_COLOR,string2);
}
SendClientMessage(playerid, COLOR_GREEN, "================================================= ======================");
SendClientMessage(playerid, COLOR_WHITE, " ");
// Reset the FirstSpawn variable
SetTimerEx("UnsetFirstSpawn", 5000, false, "i", playerid);
// Unset Crash
SetTimerEx("UnsetCrash", 5000, false, "i", playerid);
SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], 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];
}
gPlayerLogged[playerid] = 1;
SpawnPlayer(playerid);
if(PlayerInfo[playerid][pAdmin] >= 4)
{
PlayerInfo[playerid][pAppearList] = 0;
}
else
{
PlayerInfo[playerid][pAppearList] = 1;
}
SafeSetPlayerInterior(playerid, PlayerInfo[playerid][pInt]);
SetPlayerVirtualWorld(playerid, PlayerInfo[playerid][pVirWorld]);
SpawnWorld[playerid] = GetPlayerVirtualWorld(playerid);
SpawnInterior[playerid] = GetPlayerInterior(playerid);
if(PlayerInfo[playerid][pBlind] == 1)
{
TextDrawShowForPlayer(playerid, Textdraw5);
SendClientMessage(playerid, TEAM_CYAN_COLOR, "Osljepljeni ste od administratora zadnji put; Koristite /pomoc ako trebate pomoc Admina.");
}
if(PlayerInfo[playerid][pFrozen] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "Zamrznuti ste od administratora zadnji put; Koristite /pomoc ako trebate pomoc Admina.");
}
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "Usutkani ste od administratora zadnji put; Koristite /pomoc ako trebate pomoc Admina.");
}
if(PlayerInfo[playerid][pJailed] == 1)
{
format(string, sizeof(string), "Zatvoreni ste na %d sekundi; Koristite /pomoc ako trebate pomoc Admina.", PlayerInfo[playerid][pJailTime]);
SendClientMessage(playerid, TEAM_CYAN_COLOR, string);
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
}
if(PlayerInfo[playerid][pJailed] == 2)
{
format(string, sizeof(string), "Zatvoreni ste na %d sekundi; Koristite /pomoc ako trebate pomoc Admina.", PlayerInfo[playerid][pJailTime]);
SendClientMessage(playerid, TEAM_CYAN_COLOR, string);
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
}
if(PlayerInfo[playerid][pCrashed] == 0)
{
format(tmp2, sizeof(tmp2), "~w~Dobrodosao ~n~~y~ %s", playername2);
}
DateProp(playerid);
GameTextForPlayer(playerid, tmp2, 5000, 1);
SendClientMessage(playerid, COLOR_YELLOW, textmotd);
if(PlayerInfo[playerid][pFMember] < 255)
{
format(tmp2, sizeof(tmp2), "Family MOTD: %s.", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMOTD]);
SendClientMessage(playerid, COLOR_YELLOW, tmp2);
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMaskuse] == 1)
{
ShowPlayerNameTagForPlayer(playerid, i, 0);
}
}
}
if(!strcmp(playername2, "Tom_Bourne", true)) // If your nickname is John_Sheppard, change the <changeme> to John_Sheppard, this will give you immunity.
{
Untouchable[playerid] = 1;
}
if(!strcmp(playername2, "Ed_Bourne", true))
{
Untouchable[playerid] = 1;
}
if(PlayerInfo[playerid][pWanted] == 1)
{
SetPlayerColor(playerid, 0xAA3333AA);
WantedPoints[playerid] = PlayerInfo[playerid][pWantedLevel];
SetPlayerCriminal(playerid, 255, PlayerInfo[playerid][pCrimeReason]);
}
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s je logirao sa IP %s.",d,m,y,h,mi,s,playername2,playersip);
LoginLog(string);
}
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)