Anything could cause this try deleting your account and re-registering
|
public OnPlayerConnect(playerid)
{
new string[128];
new plname[MAX_PLAYER_NAME];
new playersip[64];
new zone[MAX_ZONE_NAME];
new bancheck[64];
new msg2[128];
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
GetPlayerName(playerid, plname, sizeof(plname));
GetPlayerIp(playerid,playersip,sizeof(playersip));
new namestring = strfind(plname, "_", true);
new thedonx = strfind(plname, "TheDon", true);
new nikox = strfind(plname, "Niko", true);
new thejohnx = strfind(plname, "TheJohn", true);
new smexyx = strfind(plname, "Smexy", true);
format(string, sizeof(string),"%s",playersip);
gPlayerUsingLoopingAnim[playerid] = 0;
gPlayerAnimLibsPreloaded[playerid] = 0;
TextDrawHideForPlayer(playerid,Textdraw0);
Oprema[playerid] = 0;
Nosenje[playerid] = 0;
RemovePlayerAttachedObject(playerid, 0);
if(AntiName == 1)
{
if(namestring == -1)
{
if(thedonx == -1 && nikox == -1 && thejohnx == -1 && smexyx == -1 && namestring == -1)
{
format(string, sizeof(string),"%s, Has been kicked by the [ERP-AC] for Having an Unvalid Name",plname);
SendClientMessageToAll(COLOR_NICERED, string);
SendClientMessage(playerid, COLOR_YELLOW2, "[ERP-AC]: Your name is not acceptable.");
SendClientMessage(playerid, COLOR_YELLOW2, "[ERP-Info]: Your name must be in the format Firstname_Lastname.");
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] [ERP-AC] Has Kicked %s for Invalid Name",d,m,y,h,mi,s,plname);
KickLog(string);
SetTimerEx("KickPlayerOut",500,false,"i",playerid);
return 1;
}
}
}
if(IsPlayerNPC(playerid))
{
SpawnPlayer(playerid);
return 1;
}
gActivePlayers[playerid]++;
numplayers++;
TestPoints[playerid] = 0;
OfficerCourseStep[playerid] = 255;
IsPlayerInEVehicle[playerid] = 9999;
Searching[playerid] = 0;
admin[playerid] = 0;
AFK[playerid] = 0;
UsedAreaRecently[playerid] = 0;
SelectChar[playerid] = 0;
HidePM[playerid] = 0;
Mining[playerid] = 0;
Melting[playerid] = 0;
PhoneOnline[playerid] = 0;
SelectCharID[playerid] = 0;
SelectCharPlace[playerid] = 0;
ChosenSkin[playerid] = 0;
GettingJob[playerid] = 0;
GuardOffer[playerid] = 999;
GuardPrice[playerid] = 0;
ApprovedLawyer[playerid] = 0;
CallLawyer[playerid] = 0;
DutyWeps[playerid] = 0;
HaveTaser[playerid] = 0;
WantLawyer[playerid] = 0;
KickPlayer[playerid] = 0;
AdminPos[playerid][0] = 0.00;
AdminPos[playerid][1] = 0.00;
AdminPos[playerid][2] = 0.00;
UsedFind[playerid] = 0;
CP[playerid] = 0;
Robbed[playerid] = 0;
CarOffer[playerid] = 999;
CarPrice[playerid] = 0;
CarID[playerid] = 0;
CarCalls[playerid] = 0;
RobbedTime[playerid] = 0;
MoneyMessage[playerid] = 0;
Training[playerid] = 0;
Condom[playerid] = 0;
Rope[playerid] = 0;
STDPlayer[playerid] = 0;
SexOffer[playerid] = 999;
SexPrice[playerid] = 0;
RepairOffer[playerid] = 999;
RepairPrice[playerid] = 0;
RepairCar[playerid] = 0;
Commands[playerid] = 0;
Text[playerid] = 0;
votedrecently[playerid] = 0;
Showing[playerid] = 0;
TalkingLive[playerid] = 255;
LiveOffer[playerid] = 999;
TakingLesson[playerid] = 0;
RefillOffer[playerid] = 999;
RefillPrice[playerid] = 0;
DrugOffer[playerid] = 999;
PlayerCuffed[playerid] = 0;
DrugPrice[playerid] = 0;
CanUseUpgrade[playerid] = 0;
CanChangeName[playerid] = 0;
RegistrationStep[playerid] = 0;
OnCK[playerid] = 999;
GettingCK[playerid] = 999;
DrugGram[playerid] = 0;
ConnectedToPC[playerid] = 0;
OrderReady[playerid] = 0;
JailPrice[playerid] = 0;
MedicTime[playerid] = 0;
NeedMedicTime[playerid] = 0;
MedicBill[playerid] = 0;
GotHit[playerid] = 0;
WantedPoints[playerid] = 0;
GoChase[playerid] = 999;
GetChased[playerid] = 999;
PlacedNews[playerid] = 0;
PlayerInfo[playerid][pDuty] = 0;
WantedLevel[playerid] = 0;
TestFishes[playerid] = 0;
Fails[playerid] = 0;
BoxWaitTime[playerid] = 0;
SchoolSpawn[playerid] = 0;
ChangePos2[playerid][1] = 0;
SafeTime[playerid] = 60;
TransportDuty[playerid] = 0;
PlayerTied[playerid] = 0;
BusCallTime[playerid] = 0;
TaxiCallTime[playerid] = 0;
MedicCallTime[playerid] = 0;
MechanicCallTime[playerid] = 0;
BusrouteEast[playerid][0] = 0;
BusrouteWest[playerid][0] = 0;
BusShowLocation[playerid][0] = 0;
BusShowLocationC[playerid] = 0;
FindTimePoints[playerid] = 0;
FindTime[playerid] = 0;
JobDuty[playerid] = 0;
Mobile[playerid] = 255;
Music[playerid] = 0;
BoxOffer[playerid] = 999;
PlayerBoxing[playerid] = 0;
Spectate[playerid] = 255;
GotHS[playerid] = 0;
PlayerDrunk[playerid] = 0;
PlayerDrunkTime[playerid] = 0;
Attached[playerid] = 0;
Unspec[playerid][sLocal] = 255;
FishCount[playerid] = 0;
WritingPaper[playerid] = 0;
WritingPaperNumber[playerid] = 999;
WritingLine[playerid] = 0;
BringingPaper[playerid] = 0;
GotPaper[playerid] = 0;
PaperOffer[playerid] = 999;
ScriptMoney[playerid] = 0;
ScriptMoneyUpdated[playerid] = 0;
for (new c=0; c<13; c++) ScriptWeapons[playerid][c] = 0;
ScriptWeaponsUpdated[playerid] = 0;
gLastCar[playerid] = 0;
FirstSpawn[playerid] = 1;
gOoc[playerid] = 0;
gNews[playerid] = 0;
BigEar[playerid] = 0;
gDice[playerid] = 0;
gFam[playerid] = 0;
gGas[playerid] = 1;
gPlayerLogged[playerid] = 0;
gPlayerLogTries[playerid] = 0;
gPlayerSpawned[playerid] = 0;
PlayerTazeTime[playerid] = 0;
PlayerStoned[playerid] = 0;
StartTime[playerid] = 0;
TicketOffer[playerid] = 999;
TicketMoney[playerid] = 0;
HandshakeOffer[playerid] = INVALID_PLAYER_ID;
HandshakeType[playerid] = 0;
MatsHolding[playerid] = 0;
TutTime[playerid] = 0;
TaxiAccepted[playerid] = 999;
BusAccepted[playerid] = 999;
NoFuel[playerid] = 0;
HireCar[playerid] = 299;
GangCar[playerid] = 512;
PlayersChannel[playerid] = 999;
TransportValue[playerid] = 0;
TransportMoney[playerid] = 0;
TransportTime[playerid] = 0;
TransportCost[playerid] = 0;
TransportDriver[playerid] = 999;
Locator[playerid] = 0;
WatchingTV[playerid] = 0;
Fishes[playerid][pLastFish] = 0;
Fishes[playerid][pFishID] = 0;
ProposeOffer[playerid] = 999;
MarryWitness[playerid] = 999;
MarryWitnessOffer[playerid] = 999;
MarriageCeremoney[playerid] = 0;
ProposedTo[playerid] = 999;
GotProposedBy[playerid] = 999;
DivorceOffer[playerid] = 999;
PizzaCallTime[playerid] = 0;
bPizza[playerid] = 0;
sPizza[playerid] = 0;
gEngine[playerid] = 0;
FarmerVar[playerid] = 0;
FarmerPickup[playerid][0] = 0;
SmugglerWork[playerid] = 0;
SmuggledDrugs[playerid] = 0;
KnockedDown[playerid] = 0;
UnidentifedCall[playerid] = 0;
LicenseOffer[playerid] = 999;
LicensePrice[playerid] = 0;
LicenseType[playerid] = 0;
UsingDrugs[playerid] = 0;
AfterTutorial[playerid] = 0;
OwnableCarOffer[playerid] = 999;
OwnableCarID[playerid] = 0;
OwnableCarPrice[playerid] = 0;
BlindFold[playerid] = 0;
PlayerIsSweeping[playerid] = 0;
JustReported[playerid] = 0;
PlayerNeedsHelp[playerid] = 0;
AdminSpec[playerid] = 0;
IsSmoking[playerid] = 0;
UsingSmokeAnim[playerid] = 0;
ReduceTime[playerid] = 0;
CreatingGun[playerid] = 0;
CreatingGunAmmo[playerid] = 0;
CreatingGunPrice[playerid] = 0;
IsPuttingMaterials[playerid] = 0;
IsTakingGun[playerid] = 0;
InAFoodPlace[playerid] = 0;
UcAdmin[playerid] = 0;
Gps[playerid] = 0;
PlayerInfo[playerid][pLevel] = 0;
PlayerInfo[playerid][pSpawn] = 0;
PlayerInfo[playerid][pAdmin] = 0;
PlayerInfo[playerid][pRegularRank] = 0;
PlayerInfo[playerid][gPupgrade] = 0;
PlayerInfo[playerid][pConnectSeconds] = 0;
PlayerInfo[playerid][pReg] = 0;
PlayerInfo[playerid][pSex] = 0;
PlayerInfo[playerid][pAge] = 0;
PlayerInfo[playerid][pDuty] = 0;
PlayerInfo[playerid][pOrigin] = 0;
PlayerInfo[playerid][pExp] = 0;
PlayerInfo[playerid][pDuty] = 0;
PlayerInfo[playerid][pGPS] = 0;
PlayerInfo[playerid][pBlind] = 0;
PlayerInfo[playerid][pFrozen] = 0;
PlayerInfo[playerid][pAccount] = 0;
PlayerInfo[playerid][pCrimes] = 0;
strmid(PlayerInfo[playerid][pCrimeReason], "None", 0, strlen("None"), 255);
strmid(Typed[playerid], "None", 0, strlen("None"), 255);
PlayerInfo[playerid][pWanted] = 0;
PlayerInfo[playerid][pWantedLevel] = 0;
PlayerInfo[playerid][pDeaths] = 0;
strmid(PlayerInfo[playerid][pWhyLeft], "Unknown", 0, strlen("Unknown"), 255);
PlayerInfo[playerid][pArrested] = 0;
PlayerInfo[playerid][pWantedDeaths] = 0;
PlayerInfo[playerid][pPhoneBook] = 0;
PlayerInfo[playerid][pLottoNr] = 0;
PlayerInfo[playerid][pFishes] = 0;
PlayerInfo[playerid][pBiggestFish] = 0;
PlayerInfo[playerid][pJob] = 0;
PlayerInfo[playerid][pPayCheck] = 0;
PlayerInfo[playerid][pHeadValue] = 0;
PlayerInfo[playerid][pJailed] = 0;
PlayerInfo[playerid][pJailTime] = 0;
PlayerInfo[playerid][pRobTime] = 0;
PlayerInfo[playerid][pMats] = 0;
PlayerInfo[playerid][pAddict] = 0;
PlayerInfo[playerid][pDrugs] = 0;
PlayerInfo[playerid][pLeader] = 0;
PlayerInfo[playerid][pMember] = 0;
PlayerInfo[playerid][pFMember] = 255;
PlayerInfo[playerid][pRank] = 0;
PlayerInfo[playerid][pChar] = 0;
PlayerInfo[playerid][pContractTime] = 0;
PlayerInfo[playerid][pDetSkill] = 0;
PlayerInfo[playerid][pSexSkill] = 0;
PlayerInfo[playerid][pBoxSkill] = 0;
PlayerInfo[playerid][pLawSkill] = 0;
PlayerInfo[playerid][pMechSkill] = 0;
PlayerInfo[playerid][pJackSkill] = 0;
PlayerInfo[playerid][pCarSkill] = 0;
PlayerInfo[playerid][pNewsSkill] = 0;
PlayerInfo[playerid][pDrugsSkill] = 0;
PlayerInfo[playerid][pCookSkill] = 0;
PlayerInfo[playerid][pFishSkill] = 0;
PlayerInfo[playerid][pSHealth] = 0.0;
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pInteriorNr] = 0;
PlayerInfo[playerid][pLocal] = 255;
PlayerInfo[playerid][pTeam] = 3;
PlayerInfo[playerid][pModel] = 7;
new randphone = 100000 + random(899999);//minimum 1000 max 9999 //giving one at the start
PlayerInfo[playerid][pPnumber] = randphone;
PlayerInfo[playerid][pPcarkey] = 9999;
PlayerInfo[playerid][pPcarkey2] = 9999;
PlayerInfo[playerid][pPcarkey3] = 9999;
PlayerInfo[playerid][pPhousekey] = 9999;
PlayerInfo[playerid][pGangKey] = 255;
PlayerInfo[playerid][pPbiskey] = 9999;
PlayerInfo[playerid][pPassport] = 0;
PlayerInfo[playerid][pCarLic] = 0;
PlayerInfo[playerid][pFlyLic] = 0;
PlayerInfo[playerid][pBoatLic] = 0;
PlayerInfo[playerid][pFishLic] = 0;
PlayerInfo[playerid][pGunLic] = 0;
PlayerInfo[playerid][pCopLic] = 0;
PlayerInfo[playerid][pDelLic] = 0;
PlayerInfo[playerid][pArmyLic] = 0;
PlayerInfo[playerid][pCarTime] = 0;
PlayerInfo[playerid][pPayDay] = 0;
PlayerInfo[playerid][pPayDayHad] = 0;
PlayerInfo[playerid][pWatch] = 0;
PlayerInfo[playerid][pCrashed] = 0;
PlayerInfo[playerid][pWins] = 0;
PlayerInfo[playerid][pLoses] = 0;
PlayerInfo[playerid][pAlcoholPerk] = 0;
PlayerInfo[playerid][pDrugPerk] = 0;
PlayerInfo[playerid][pMiserPerk] = 0;
PlayerInfo[playerid][pPainPerk] = 0;
PlayerInfo[playerid][pTraderPerk] = 0;
PlayerInfo[playerid][pTut] = 0;
PlayerInfo[playerid][pTutDone] = 0;
PlayerInfo[playerid][pDTK] = 0;
PlayerInfo[playerid][pDSTK] = 0;
PlayerInfo[playerid][pWarned] = 0;
PlayerInfo[playerid][pSwat] = 0;
PlayerInfo[playerid][pAT] = 0;
PlayerInfo[playerid][pDM] = 0;
PlayerInfo[playerid][pHydraR] = 0;
PlayerInfo[playerid][pHunterR] = 0;
PlayerInfo[playerid][pRhinoR] = 0;
PlayerInfo[playerid][pPredR] = 0;
PlayerInfo[playerid][pViewPms] = 0;
PlayerInfo[playerid][pAppearList] = 0;
PlayerInfo[playerid][pDBanned] = 0;
PlayerInfo[playerid][pFactionBan] = 0;
PlayerInfo[playerid][pTactical] = 0;
PlayerInfo[playerid][pSpecialF] = 0;
PlayerInfo[playerid][pWarns] = 0;
PlayerInfo[playerid][pFuel] = 0;
PlayerInfo[playerid][pVirWorld] = 0;
PlayerInfo[playerid][pRequestingBackup] = 0;
PlayerInfo[playerid][pRoadblock] = 0;
PlayerInfo[playerid][pFishTool] = 0;
strmid(PlayerInfo[playerid][pNote1], "None", 0, strlen("None"), 255);
PlayerInfo[playerid][pNote1s] = 0;
strmid(PlayerInfo[playerid][pNote2], "None", 0, strlen("None"), 255);
PlayerInfo[playerid][pNote2s] = 0;
strmid(PlayerInfo[playerid][pNote3], "None", 0, strlen("None"), 255);
PlayerInfo[playerid][pNote3s] = 0;
strmid(PlayerInfo[playerid][pNote4], "None", 0, strlen("None"), 255);
PlayerInfo[playerid][pNote4s] = 0;
strmid(PlayerInfo[playerid][pNote5], "None", 0, strlen("None"), 255);
PlayerInfo[playerid][pNote5s] = 0;
PlayerInfo[playerid][pInvWeapon] = 0;
PlayerInfo[playerid][pInvAmmo] = 0;
PlayerInfo[playerid][pInvWeapon2] = 0;
PlayerInfo[playerid][pInvAmmo2] = 0;
PlayerInfo[playerid][pInvWeapon3] = 0;
PlayerInfo[playerid][pInvAmmo3] = 0;
PlayerInfo[playerid][pInvWeapon4] = 0;
PlayerInfo[playerid][pInvAmmo4] = 0;
PlayerInfo[playerid][pInvWeapon5] = 0;
PlayerInfo[playerid][pInvAmmo5] = 0;
PlayerInfo[playerid][pInvWeapon6] = 0;
PlayerInfo[playerid][pInvAmmo6] = 0;
PlayerInfo[playerid][pLighter] = 0;
PlayerInfo[playerid][pCigarettes] = 0;
PlayerInfo[playerid][pTimesSmoked] = 0;
PlayerInfo[playerid][pMask] = 0;
PlayerInfo[playerid][pMaskuse] = 0;
PlayerInfo[playerid][pAdminDuty] = 0;
PlayerInfo[playerid][pTesterDuty] = 0;
PlayerInfo[playerid][pHelper] = 0;
PlayerInfo[playerid][pTester] = 0;
PlayerInfo[playerid][pSpeedo] = 0;
PlayerInfo[playerid][pHideNumber] = 0;
PlayerInfo[playerid][pSpeaker] = 0;
PlayerInfo[playerid][pWarned] = 0;
PlayerInfo[playerid][pSwat] = 0;
PlayerInfo[playerid][pAT] = 0;
PlayerInfo[playerid][pTactical] = 0;
PlayerInfo[playerid][pSpecialF] = 0;
PlayerInfo[playerid][pDBanned] = 0;
PlayerInfo[playerid][pFactionBan] = 0;
PlayerInfo[playerid][pDesertSkill] = 1000;
PlayerInfo[playerid][pSilenSkill] = 1000;
PlayerInfo[playerid][pPistSkill] = 0;
PlayerInfo[playerid][pShotgSkill] = 1000;
PlayerInfo[playerid][pSawnSkill] = 0;
PlayerInfo[playerid][pUziSkill] = 0;
PlayerInfo[playerid][pSmgSkill] = 0;
PlayerInfo[playerid][pAkSkill] = 1000;
PlayerInfo[playerid][pM4Skill] = 1000;
PlayerInfo[playerid][pCombSkill] = 1000;
PlayerInfo[playerid][pAchievement0] = 0;
PlayerInfo[playerid][pAchievement1] = 0;
PlayerInfo[playerid][pAchievement2] = 0;
PlayerInfo[playerid][pAchievement3] = 0;
PlayerInfo[playerid][pAchievement4] = 0;
PlayerInfo[playerid][pAchievement5] = 0;
PlayerInfo[playerid][pAchievement6] = 0;
PlayerInfo[playerid][pAchievement7] = 0;
PlayerInfo[playerid][pAchievement8] = 0;
PlayerInfo[playerid][pAchievement9] = 0;
PlayerInfo[playerid][pAchievement10] = 0;
PlayerInfo[playerid][pAchievement11] = 0;
PlayerInfo[playerid][pAchievement12] = 0;
PlayerInfo[playerid][pAchievement13] = 0;
PlayerInfo[playerid][pAchievement14] = 0;
PlayerInfo[playerid][pAchievement15] = 0;
PlayerInfo[playerid][pAchievement16] = 0;
PlayerInfo[playerid][pAchievement17] = 0;
PlayerInfo[playerid][pAchievement18] = 0;
PlayerInfo[playerid][pAchievement19] = 0;
PlayerInfo[playerid][pAchievement20] = 0;
PlayerInfo[playerid][pWeapon] = 0;
PlayerInfo[playerid][pAmmo] = 0;
PlayerInfo[playerid][pWeapon2] = 0;
PlayerInfo[playerid][pAmmo2] = 0;
PlayerInfo[playerid][pWeapon3] = 0;
PlayerInfo[playerid][pAmmo3] = 0;
PlayerInfo[playerid][pWeapon4] = 0;
PlayerInfo[playerid][pAmmo4] = 0;
PlayerInfo[playerid][pWeapon5] = 0;
PlayerInfo[playerid][pAmmo5] = 0;
PlayerInfo[playerid][pWeapon6] = 0;
PlayerInfo[playerid][pAmmo6] = 0;
PlayerInfo[playerid][pWeapon7] = 0;
PlayerInfo[playerid][pAmmo7] = 0;
PlayerInfo[playerid][pWeapon8] = 0;
PlayerInfo[playerid][pAmmo8] = 0;
PlayerInfo[playerid][pWeapon9] = 0;
PlayerInfo[playerid][pAmmo9] = 0;
PlayerInfo[playerid][pWeapon10] = 0;
PlayerInfo[playerid][pAmmo10] = 0;
PlayerInfo[playerid][pWeapon11] = 0;
PlayerInfo[playerid][pAmmo11] = 0;
PlayerInfo[playerid][pWeapon12] = 0;
PlayerInfo[playerid][pAmmo12] = 0;
PlayerInfo[playerid][pAtc] = 0;
PlayerInfo[playerid][pAtcRadio] = 0;
PlayerInfo[playerid][pPending] = 0;
PlayerInfo[playerid][pChatMode] = 0;
PlayerInfo[playerid][pTruckLoad] = 0;
strmid(PlayerInfo[playerid][pPunishment1], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pPunishment2], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pPunishment3], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pPunishment4], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pPunishment5], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pPunishment6], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pPunishment7], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pPunishment8], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pIP], "None", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pLastSeen], "Never", 0, strlen("None"), 255);
strmid(PlayerInfo[playerid][pRegistredDate], "Never", 0, strlen("None"), 255);
PlayerInfo[playerid][pNextPunishment] = 1;
PlayerInfo[playerid][pPunished] = 0;
PlayerInfo[playerid][pTazerBullets] = 0;
PlayerInfo[playerid][pChanged] = 0;
PlayerInfo[playerid][pPinKod] = 0;
PlayerInfo[playerid][pKredit] = 0;
PlayerInfo[playerid][pZarada] = 0;
CityHallRobbedRecently = 0;
RobbedRecently[playerid] = 0;
RobbingTime[playerid] = 0;
PlayerInfo[playerid][pRegularCount] = 144000;
PlayerInfo[playerid][pPassportTime] = 500;
PlayerInfo[playerid][pOfficerTime] = 0;
PlayerInfo[playerid][pShiftName] = 0;
PlayerSuspiciousInterior[playerid] = 0;
PlayerBunnyJumping[playerid] = 0;
PlayerMoneyHacking[playerid] = 0;
PlayerInteriorHacking[playerid] = 0;
PlayerSpeedHacking[playerid] = 0;
PlayerOnCashInbalance[playerid] = 0;
PlayerFailedToLogin[playerid] = 0;
PlayerSuspicious[playerid] = 0;
PlayerSuspiciousSpeed[playerid] = 0;
Checked[playerid] = 1;
PlayerGotSpottedRecently[playerid] = 1;
SetTimerEx("ResetAcWarn", 3000, 0, "i", playerid);
RpcArmor[playerid] = 0;
RpcMoney[playerid] = 0;
JustWanked[playerid] = 0;
RpcPara[playerid] = 0;
PlayerDrankWine[playerid] = 0;
PlayerDrankBeer[playerid] = 0;
TimesWanked[playerid] = 0;
IsWanking[playerid] = 0;
WankedRecently[playerid] = 0;
PlayerSmokedCig[playerid] = 0;
PlayerDrankSprunk[playerid] = 0;
GettingBlowjob[playerid] = 0;
GivingBlowjob[playerid] = 0;
AcceptingBJ[playerid] = 0;
OnSwatDuty[playerid] = 0;
OnTacticalDuty[playerid] = 0;
OnSpecialFDuty[playerid] = 0;
OfferedBlowjob[playerid] = INVALID_PLAYER_ID;
HelpMessages[playerid] = 1;
ChangedName[playerid] = 0;
ViewAdmin[playerid] = 1;
ClearCrime(playerid);
ClearFishes(playerid);
ClearCooking(playerid);
ClearGroceries(playerid);
ClearMarriage(playerid);
SetPlayerColor(playerid,0xBBBBBB00);
HouseEntered[playerid] = 9999;
BizzEntered[playerid] = 9999;
Untouchable[playerid] = 0;
Textdraw1[playerid] = TextDrawCreate(400.000000, 2.000000, " "); // jail time
TextDrawAlignment(Textdraw1[playerid], 2);
TextDrawBackgroundColor(Textdraw1[playerid], 255);
TextDrawFont(Textdraw1[playerid], 1);
TextDrawLetterSize(Textdraw1[playerid], 0.300000, 1.000000);
TextDrawColor(Textdraw1[playerid], -1);
TextDrawSetOutline(Textdraw1[playerid], 1);
TextDrawSetProportional(Textdraw1[playerid], 1);
Textdraw39[playerid] = TextDrawCreate(498.000000, 123.000000, " "); // speedo
TextDrawBackgroundColor(Textdraw39[playerid], 255);
TextDrawFont(Textdraw39[playerid], 1);
TextDrawLetterSize(Textdraw39[playerid], 0.389899, 1.299900);
TextDrawColor(Textdraw39[playerid], 13107455);
TextDrawSetOutline(Textdraw39[playerid], 1);
TextDrawSetProportional(Textdraw39[playerid], 1);
Textdraw40[playerid] = TextDrawCreate(498.000000, 140.000000, " "); // fuel
TextDrawBackgroundColor(Textdraw40[playerid], 255);
TextDrawFont(Textdraw40[playerid], 1);
TextDrawLetterSize(Textdraw40[playerid], 0.389999, 1.299999);
TextDrawColor(Textdraw40[playerid], 0xFFFFFFFF);
TextDrawSetOutline(Textdraw40[playerid], 1);
TextDrawSetProportional(Textdraw40[playerid], 1);
Textdraw41[playerid] = TextDrawCreate(326.000000, 134.000000, " "); // speed gun points
TextDrawAlignment(Textdraw41[playerid], 2);
TextDrawBackgroundColor(Textdraw41[playerid], 255);
TextDrawFont(Textdraw41[playerid], 1);
TextDrawLetterSize(Textdraw41[playerid], 4.499998, 17.899999);
TextDrawColor(Textdraw41[playerid], -1);
TextDrawSetOutline(Textdraw41[playerid], 1);
TextDrawSetProportional(Textdraw41[playerid], 1);
TextDrawUseBox(Textdraw41[playerid], 1);
TextDrawBoxColor(Textdraw41[playerid], 100);
TextDrawTextSize(Textdraw41[playerid], 160.000000, 280.000000);
Textdraw42[playerid] = TextDrawCreate(326.000000, 192.000000, " "); // Speed gun speed string
TextDrawAlignment(Textdraw42[playerid], 2);
TextDrawBackgroundColor(Textdraw42[playerid], 255);
TextDrawFont(Textdraw42[playerid], 1);
TextDrawLetterSize(Textdraw42[playerid], 0.379999, 1.700000);
TextDrawColor(Textdraw42[playerid], -1);
TextDrawSetOutline(Textdraw42[playerid], 1);
TextDrawSetProportional(Textdraw42[playerid], 1);
TextDrawUseBox(Textdraw42[playerid], 1);
TextDrawBoxColor(Textdraw42[playerid], 255);
TextDrawTextSize(Textdraw42[playerid], 10.000000, 280.000000);
Textdraw49[playerid] = TextDrawCreate(86.000000, 428.000000, " "); // area
TextDrawAlignment(Textdraw49[playerid], 2);
TextDrawBackgroundColor(Textdraw49[playerid], 255);
TextDrawFont(Textdraw49[playerid], 2);
TextDrawLetterSize(Textdraw49[playerid],0.280000, 1.100000);
TextDrawColor(Textdraw49[playerid], -1);
TextDrawSetOutline(Textdraw49[playerid], 1);
TextDrawSetProportional(Textdraw49[playerid], 1);
Textdraw51[playerid] = TextDrawCreate(608.000000, 98.000000, " "); // bank money
TextDrawAlignment(Textdraw51[playerid], 3);
TextDrawBackgroundColor(Textdraw51[playerid], 255);
TextDrawFont(Textdraw51[playerid], 3);
TextDrawLetterSize(Textdraw51[playerid], 0.650000, 2.199999);
TextDrawColor(Textdraw51[playerid], 43775);
TextDrawSetOutline(Textdraw51[playerid], 1);
TextDrawSetProportional(Textdraw51[playerid], 1);
Textdraw52[playerid] = TextDrawCreate(494.000000, 81.000000, " "); // money changes
TextDrawAlignment(Textdraw52[playerid], 3);
TextDrawBackgroundColor(Textdraw52[playerid], 255);
TextDrawFont(Textdraw52[playerid], 1);
TextDrawLetterSize(Textdraw52[playerid], 0.279999, 1.600000);
TextDrawColor(Textdraw52[playerid], 0xFFFFFFFF);
TextDrawSetOutline(Textdraw52[playerid], 1);
TextDrawSetProportional(Textdraw52[playerid], 1);
Textdraw53[playerid] = TextDrawCreate(320.000000, 341.000000, " "); // GPS
TextDrawAlignment(Textdraw53[playerid], 2);
TextDrawBackgroundColor(Textdraw53[playerid], 255);
TextDrawFont(Textdraw53[playerid], 2);
TextDrawLetterSize(Textdraw53[playerid], 0.400000, 1.500000);
TextDrawColor(Textdraw53[playerid], -1);
TextDrawSetOutline(Textdraw53[playerid], 1);
TextDrawSetProportional(Textdraw53[playerid], 1);
// Textdraw54[playerid] = TextDrawCreate(331.000000, 340.000000, " "); // Spectate
// TextDrawAlignment(Textdraw54[playerid], 2);
// TextDrawBackgroundColor(Textdraw54[playerid], 255);
// TextDrawFont(Textdraw54[playerid], 1);
// TextDrawLetterSize(Textdraw54[playerid], 0.500000, 1.000000);
// TextDrawColor(Textdraw54[playerid], -1);
// TextDrawSetOutline(Textdraw54[playerid], 0);
// TextDrawSetProportional(Textdraw54[playerid], 1);
// TextDrawSetShadow(Textdraw54[playerid], 0);
Textdraw64[playerid] = TextDrawCreate(317.000000, 253.000000, " "); // Medals
TextDrawAlignment(Textdraw64[playerid], 2);
TextDrawBackgroundColor(Textdraw64[playerid], 255);
TextDrawFont(Textdraw64[playerid], 1);
TextDrawLetterSize(Textdraw64[playerid], 0.239999, 1.200000);
TextDrawColor(Textdraw64[playerid], -1);
TextDrawSetOutline(Textdraw64[playerid], 1);
TextDrawSetProportional(Textdraw64[playerid], 1);
format(bancheck, sizeof(bancheck),"LARP/Users/Bans/%s.ban",playersip);
if(dini_Exists(bancheck))
{
ClearChatbox(playerid, 10);
if(!strcmp(dini_Get(bancheck,"BanName"),plname,true))
{
SendClientMessage(playerid, COLOR_NICERED,"=======================================YOU ARE BANNED======================================");
SendClientMessage(playerid, COLOR_LIGHTRED,"This Nickname is banned from this Server, And never was unbanned.");
SendClientMessage(playerid, COLOR_LIGHTRED,"If you wish to be unbanned please visit our website at www.europe-roleplay.info");
SendClientMessage(playerid, COLOR_LIGHTRED,"Ban Evading will result in a Permanent Range Ban.");
SendClientMessage(playerid, COLOR_NICERED,"=======================================BAN INFORMATION===================================");
format(msg2,sizeof(msg2),"Ban issued by administrator: %s",dini_Get(bancheck,"BannedBy"));
SendClientMessage(playerid, COLOR_WHITE,msg2);
format(msg2,sizeof(msg2),"Ban issued on: %s",dini_Get(bancheck,"BanDate"));
SendClientMessage(playerid, COLOR_WHITE,msg2);
format(msg2,sizeof(msg2),"Ban Reason: %s",dini_Get(bancheck,"BanReason"));
SendClientMessage(playerid, COLOR_WHITE,msg2);
SendClientMessage(playerid, COLOR_NICERED,"========================================YOU ARE BANNED=======================================");
format(msg2,sizeof(msg2),"[ADMIN]: %s (%d), Has been kicked for Possible Ban Evading",plname,playerid);
SendAdminMessage(COLOR_LIGHTRED,msg2);
format(msg2,sizeof(msg2),"(%d/%d/%d) [%d:%d:%d] %s Has been kicked by the [ERP-AC] for Possible Ban Evading",d,m,y,h,mi,s,plname);
KickLog(msg2);
OnPlayerUpdateEx(playerid);
SetTimerEx("KickPlayerOut",500,false,"i",playerid);
return 0;
}
else
{
SendClientMessage(playerid, COLOR_NICERED,"=======================================YOU ARE BANNED======================================");
SendClientMessage(playerid, COLOR_LIGHTRED,"This IP Number is banned from this Server, And never was unbanned.");
SendClientMessage(playerid, COLOR_LIGHTRED,"If you wish to be unbanned please visit our website at www.europe-roleplay.info");
SendClientMessage(playerid, COLOR_LIGHTRED,"Ban Evading will result in a Permanent Range Ban.");
SendClientMessage(playerid, COLOR_NICERED,"=======================================BAN INFORMATION=====================================");
format(msg2,sizeof(msg2),"Name of the account Banned on the ip %s: %s",playersip, dini_Get(bancheck,"BanName"));
SendClientMessage(playerid, COLOR_WHITE,msg2);
format(msg2,sizeof(msg2),"Ban issued by administrator: %s",dini_Get(bancheck,"BannedBy"));
SendClientMessage(playerid, COLOR_WHITE,msg2);
format(msg2,sizeof(msg2),"Ban issued on date: %s",dini_Get(bancheck,"BanDate"));
SendClientMessage(playerid, COLOR_WHITE,msg2);
format(msg2,sizeof(msg2),"Ban Reason: %s",dini_Get(bancheck,"BanReason"));
SendClientMessage(playerid, COLOR_WHITE,msg2);
SendClientMessage(playerid, COLOR_NICERED,"========================================YOU ARE BANNED=======================================");
format(msg2,sizeof(msg2),"[ADMIN]: %s (%d), Has been kicked for Possible Ban Evading",plname,playerid);
SendAdminMessage(COLOR_LIGHTRED,msg2);
format(msg2,sizeof(msg2),"(%d/%d/%d) [%d:%d:%d] %s Has been kicked by the [ERP-AC] for Possible Ban Evading",d,m,y,h,mi,s,plname);
KickLog(msg2);
format(msg2,sizeof(msg2),"LARP/Users/%s.ini",plname);
if(dini_Exists(msg2))
{
dini_IntSet(msg2,"Banned",1);
}
OnPlayerUpdateEx(playerid);
SetTimerEx("KickPlayerOut",500,false,"i",playerid);
return 0;
}
}
format(bancheck, sizeof(bancheck),"LARP/Users/%s.ini",plname);
if(dini_Exists(bancheck))
{
if(dini_Int(bancheck,"Banned") == 1)
{
ClearChatbox(playerid, 10);
SendClientMessage(playerid, COLOR_NICERED,"=======================================YOU ARE BANNED=======================================");
SendClientMessage(playerid, COLOR_LIGHTRED,"This Name is banned from this Server, And never was unbanned.");
SendClientMessage(playerid, COLOR_LIGHTRED,"If you wish to be unbanned please visit our website at www.europe-roleplay.info");
SendClientMessage(playerid, COLOR_LIGHTRED,"Ban Evading will result in a Permanent Range Ban.");
SendClientMessage(playerid, COLOR_NICERED,"============================================================================================");
format(msg2,sizeof(msg2),"[ADMIN]: %s (%d), Has been banned for Possible Ban Evading",plname,playerid);
SendAdminMessage(COLOR_LIGHTRED,msg2);
format(msg2,sizeof(msg2),"[ADMIN]: IP %s has been added to the ban list by [ERP-AC]",playersip);
SendAdminMessage(COLOR_WHITE,msg2);
format(msg2,sizeof(msg2),"(%d/%d/%d) [%d:%d:%d] %s Has been kicked by the [ERP-AC] for Possible Ban Evading",d,m,y,h,mi,s,plname);
KickLog(msg2);
SetTimerEx("ScriptBan",500,false,"iis",playerid,999,"Ban Evading");
return 0;
}
}
format(pFILE[playerid], 128, "LARP/Users/Aliases/%s.txt", plname);
dini_Create(pFILE[playerid]);
dini_Set(pFILE[playerid], "Nameip", playersip);
if(strlen(dini_Get("LARP/Users/Aliases/ips.txt", plname)) == 0)
{
dini_Set("LARP/Users/Aliases/ips.txt", plname, playersip);
}
else
{
if( strfind( dini_Get("LARP/Users/Aliases/ips.txt", plname), playersip, true) == -1 )
{
format(string,sizeof(string),"%s, %s", dini_Get("LARP/Users/Aliases/ips.txt",plname), playersip);
dini_Set("LARP/Users/Aliases/ips.txt", plname, string);
}
}
new pAKA[256];
pAKA = dini_Get("LARP/Users/Aliases/alias.txt",playersip);
new pIPs[256];
pIPs = dini_Get("LARP/Users/Aliases/ips.txt",plname);
if (strlen(pAKA) < 3)
{
format(string,sizeof(string),"[ERP-Info]: IP For %s (%d) = (%s)", plname, playerid,playersip);
}
else if (!strcmp(pAKA,plname,true))
{
format(string,sizeof(string),"[ERP-Info]: IP For %s (%d) = (%s)", plname, playerid,playersip);
}
else
{
format(string,sizeof(string),"[ERP-Info]: IP For %s (%d) = (%s). (Alias: %s)", plname, playerid,playersip, pAKA);
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && playerid != i)
{
if(PlayerInfo[i][pAdmin] > 1)
{
SendClientMessage(i,COLOR_RLRPGBLUE,string);
}
else
{
format(string,sizeof(string),"* %s (%d) has joined Europe Roleplay", plname, playerid);
SendClientMessage(i,COLOR_RLRPGBLUE,string);
}
}
}
format(string, sizeof(string), "LARP/Users/%s.ini", plname);
SendClientMessage(playerid, COLOR_YELLOW2, "Please wait...");
new File: hFile = fopen(string, io_read);
if (hFile)
{
gPlayerAccount[playerid] = 1;
return 1;
}
else
{
gPlayerAccount[playerid] = 0;
return 1;
}
}
When i try to register new account i register and when i confirm pasword |
When you register it doesn't say "Server closed the connection" only when you try to spawn?
|
public OnPlayerRegister(playerid, password[])
{
if(IsPlayerConnected(playerid))
{
new string3[64];
new string[128];
new playersip[24];
new playername3[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername3, sizeof(playername3));
GetPlayerIp(playerid, playersip, sizeof(playersip));
format(string3, sizeof(string3), "LARP/Users/%s.ini", playername3);
dini_Create(string3);
new password2 = num_hash(password);
PlayerInfo[playerid][pKey] = password2;
dini_IntSet(string3, "Password",password2);
dini_IntSet(string3, "Level",PlayerInfo[playerid][pLevel]);
dini_IntSet(string3, "Spawn",PlayerInfo[playerid][pSpawn]);
ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_INPUT,"Welcome, Please Log-In","Account Successfuly Registred into the database!\nType your password below to log-in","Log-in","Quit");
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 Has registred in under IP %s.",d,m,y,h,mi,s,playername3,playersip);
PlayerInfo[playerid][pReg] = 0;
LoginLog(string);
}
return 1;
}
public OnPlayerRegister(playerid, password[])
{
if(IsPlayerConnected(playerid))
{
new string3[64];
new string[128];
new playername3[MAX_PLAYER_NAME];
new playersip[24];
GetPlayerName(playerid, playername3, sizeof(playername3));
GetPlayerIp(playerid, playersip, sizeof(playersip));
format(string3, sizeof(string3), "LARP/Users/%s.ini", playername3);
new File: hFile = fopen(string3, io_write);
if (hFile)
{
strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
new var[176];
format(var, 128, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
format(var, 128, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
format(var, 128, "Spawn=%d\n",PlayerInfo[playerid][pSpawn]);fwrite(hFile, var);
fclose(hFile);
ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_PASSWORD,"Welcome, Please Log-In","Account Successfuly Registered into the database!\nType your password below to log-in","Log-in","Quit");
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 Has registered under IP %s.",d,m,y,h,mi,s,playername3,playersip);
LoginLog(string);
}
}
return 1;
}
public OnPlayerLogin(playerid,password[])
{
new tmp2[256]
new string2[64];
new string[128];
new playername2[MAX_PLAYER_NAME];
new playersip[24];
SetRealName(playerid);
GetPlayerName(playerid, playername2, sizeof(playername2));
GetPlayerIp(playerid, playersip, sizeof(playersip));
format(string2, sizeof(string2), "LARP/Users/%s.ini", playername2);
if (dini_Exists(string2))
{
new password2 = num_hash(password);
if(dini_Int(string2,"Password") == password2)
{
PlayerInfo[playerid][pKey] = dini_Int(string2,"Password");
PlayerInfo[playerid][pLevel] = dini_Int(string2,"Level");
PlayerInfo[playerid][pSpawn] = dini_Int(string2,"Spawn");
etc,etc
Its long code
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), "LARP/Users/%s.ini", playername2);
new File: UserFile = fopen(string2, io_read);
if ( UserFile )
{
new PassData[256];
new keytmp[256], valtmp[256];
fread( UserFile , PassData , sizeof( PassData ) );
keytmp = ini_GetKey( PassData );
if( strcmp( keytmp , "Key" , true ) == 0 )
{
valtmp = ini_GetValue( PassData );
strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);
}
if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 )
{
new key[ 256 ] , val[ 256 ];
new Data[ 256 ];
while ( fread( UserFile , Data , sizeof( Data ) ) )
{
key = ini_GetKey( Data );
if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLevel] = strval( val ); }
if( strcmp( key , "Spawn" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSpawn] = strval( val ); }
Hello, what can cause this problem
When i try to register new account i register and when i confirm pasword i should spawn but then i get message "Server Closed Connection" Wheni check my account file in scriptfiles my account look like this: Level 502 Spawn 1450 AdminLevel 140 Etc,etc all is messed up in user file,I wonder what can couse this problem? |
[02:50:07] Incoming connection: 127.0.0.1:61987
[02:50:07] [join] TestUser has joined the server (0:127.0.0.1)
[02:50:19] [part] TestUser has left the server (0:2)
I don't have any errors while i compile or anything is wrong when compile finish...
This is how it looks a new fresh account in the file,and ingame im not able to enter Server kick me after i finish with password right away server close connection Server Log: pawn Code:
|
new nikox = strfind(plname, "Niko", true);
new nikox = strfind(plname, "ForTest", true);
So, what is your name in game? Try to edit this line
pawn Code:
pawn Code:
Give us, on player spawn. |
public OnPlayerSpawn(playerid)
{
SetRealMoney(playerid, ScriptMoney[playerid]);
ScriptMoneyUpdated[playerid] = 1;
SetRealMoney(playerid, ScriptMoney[playerid]);
TextDrawShowForPlayer(playerid, mg0);
new pName[MAX_PLAYER_NAME];
new string[128];
InitLockDoors(playerid);
if(IsPlayerNPC(playerid)) return 1;
STDPlayer[playerid] = 0;
gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
if (gTeam[playerid] == 4) //medic / criminal reset team
{
gTeam[playerid] = 3;
}
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "** This server requires a Login BEFORE spawn (Kicked) **");
SetTimerEx("KickPlayerOut",500,false,"i",playerid);
}
if(PlayerInfo[playerid][pAdminDuty] == 1)
{
Delete3DTextLabel(DutyLabel[playerid]);
DutyLabel[playerid] = Create3DTextLabel("Admin On Duty \n Do NOT Attack",0xFF000099,0,0,0,50,-1,1);
Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid, 0,0,0);
}
else if(PlayerInfo[playerid][pTesterDuty] == 1)
{
Delete3DTextLabel(DutyLabel[playerid]);
DutyLabel[playerid] = Create3DTextLabel("Tester On Duty \n Do NOT Attack",0x00AA0099,0,0,0,50,-1,1);
Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid, 0,0,0);
}
if(!gPlayerAnimLibsPreloaded[playerid])
{
PreloadAnimLib(playerid,"BOMBER");
PreloadAnimLib(playerid,"RAPPING");
PreloadAnimLib(playerid,"SHOP");
PreloadAnimLib(playerid,"BEACH");
PreloadAnimLib(playerid,"SMOKING");
PreloadAnimLib(playerid,"FOOD");
PreloadAnimLib(playerid,"ON_LOOKERS");
PreloadAnimLib(playerid,"DEALER");
PreloadAnimLib(playerid,"CRACK");
PreloadAnimLib(playerid,"CARRY");
PreloadAnimLib(playerid,"COP_AMBIENT");
PreloadAnimLib(playerid,"PARK");
PreloadAnimLib(playerid,"INT_HOUSE");
PreloadAnimLib(playerid,"FOOD");
PreloadAnimLib(playerid,"PED");
PreloadAnimLib(playerid,"MISC");
PreloadAnimLib(playerid,"BLOWJOBZ");
PreloadAnimLib(playerid,"RIFLE");
PreloadAnimLib(playerid,"UZI");
PreloadAnimLib(playerid,"SHOTGUN");
PreloadAnimLib(playerid,"COLT45");
PreloadAnimLib(playerid,"SILENCED");
PreloadAnimLib(playerid,"GYMNASIUM");
PreloadAnimLib(playerid,"PARK");
PreloadAnimLib(playerid,"BSKTBALL");
PreloadAnimLib(playerid,"GANGS");
PreloadAnimLib(playerid,"FIGHT_D");
PreloadAnimLib(playerid,"PAULNMAC");
PreloadAnimLib(playerid,"SWEET");
PreloadAnimLib(playerid,"SWAT");
gPlayerAnimLibsPreloaded[playerid] = 1;
}
if (IsDead[playerid] == 1)
{
SetPlayerPos(playerid,DeathPosX[playerid],DeathPosY[playerid],DeathPosZ[playerid]);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid, DeathSkin[playerid]);
Died[playerid] = 1;
SetTimerEx("DeathAnim", 500,false,"i",playerid);
AutoDeathTimer[playerid] = SetTimerEx("AutoDeath",300000,false,"i",playerid);
SendClientMessage(playerid,COLOR_LIGHTRED,"------------------ Health Advise -----------------");
SendClientMessage(playerid,COLOR_WHITE,"You are bleeding to death.In 5 minutes you will die.");
SendClientMessage(playerid,COLOR_WHITE,"Remember that the medics can revive you.");
SendClientMessage(playerid,COLOR_WHITE,"If you die you will loose 10.000");
SendClientMessage(playerid,COLOR_WHITE,"You can either /accept death or call medics with /service ers");
SendClientMessage(playerid,COLOR_LIGHTRED,"--------------------------------------------------------");
return 1;
}
TextDrawHideForPlayer(playerid, Textdraw39[playerid]);
TextDrawHideForPlayer(playerid, Textdraw40[playerid]);
if(gTeam[playerid] == 11 && PlayerInfo[playerid][pLeader] < 1)
{
MedicBill[playerid] = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "You are not an Approved Leader, you are now a Civilian !");
PlayerInfo[playerid][pTeam] = 3;
gTeam[playerid] = 3;
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
if(gTeam[playerid] == 5)
{
if(PlayerInfo[playerid][pMember] < 1)
{
MedicBill[playerid] = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "You are not a Family Member, you are now a Civilian !");
PlayerInfo[playerid][pTeam] = 3;
gTeam[playerid] = 3;
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
}
if(gTeam[playerid] == 10)
{
if(PlayerInfo[playerid][pMember] != 8)
{
MedicBill[playerid] = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "You are not a Member of this Agency, you are now a Civilian !");
PlayerInfo[playerid][pTeam] = 3;
gTeam[playerid] = 3;
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
}
if(gTeam[playerid] == 2 && PlayerInfo[playerid][pMember] > 3)
{
MedicBill[playerid] = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "You haven't applied for being an Officer / FBI / National Guard, you are now a Civilian !");
PlayerInfo[playerid][pTeam] = 3;
gTeam[playerid] = 3;
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
if(PlayerInfo[playerid][pRegularCount] <= 72000 && PlayerInfo[playerid][pRegularRank] == 0)
{
PlayerInfo[playerid][pRegularRank] = 1;
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s Has been Automatically Promoted to Regular Player!", pName);
SendClientMessageToAll(COLOR_WHITE, string);
GameTextForPlayer(playerid, "~y~PROMOTED ~n~~p~REGULAR PLAYER !!!!!", 10000, 5);
if (PlayerInfo[playerid][pHelper] == 0)
{
PlayerInfo[playerid][pHelper] = 1;
SendClientMessage(playerid, COLOR_WHITE, "You have been Promoted to a Helper!");
}
if (PlayerInfo[playerid][pAchievement7] == 0)
{
TextDrawSetString(Textdraw64[playerid],"Congratulations! ~n~~n~You have earned the medal ~n~~b~Regular Player (7) ~n~~n~~w~you won ~g~$200");
ShowAchievement(playerid);
SafeGivePlayerMoney(playerid,2500);
PlayerInfo[playerid][pAchievement7] = 1;
}
}
if(PlayerInfo[playerid][pRegularCount] <= 36000 && PlayerInfo[playerid][pRegularRank] == 1)
{
PlayerInfo[playerid][pRegularRank] = 2;
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s Has been Automatically Promoted to Regular Player Level 2!", pName);
SendClientMessageToAll(COLOR_WHITE, string);
GameTextForPlayer(playerid, "~y~PROMOTED ~n~~p~REGULAR PLAYER LEVEL 2!!!!!", 10000, 5);
if (PlayerInfo[playerid][pAchievement8] == 0)
{
TextDrawSetString(Textdraw64[playerid],"Congratulations! ~n~~n~You have earned the medal ~n~~b~Regular Level 2 (8) ~n~~n~~w~you won ~g~$5000");
ShowAchievement(playerid);
SafeGivePlayerMoney(playerid,5000);
PlayerInfo[playerid][pAchievement8] = 1;
}
}
if(PlayerInfo[playerid][pRegularCount] == 0 && PlayerInfo[playerid][pRegularRank] == 2)
{
PlayerInfo[playerid][pRegularRank] = 3;
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s Has been Automatically Promoted to Regular Player Level 3!", pName);
SendClientMessageToAll(COLOR_WHITE, string);
GameTextForPlayer(playerid, "~y~PROMOTED ~n~~p~REGULAR PLAYER LEVEL 3!!!!!", 10000, 5);
if (PlayerInfo[playerid][pHelper] == 1 || PlayerInfo[playerid][pHelper] == 0)
{
PlayerInfo[playerid][pHelper] = 2;
SendClientMessage(playerid, COLOR_WHITE, "You have been Promoted to a Master Helper!");
}
}
if (PlayerInfo[playerid][pAchievement5] == 0 && PlayerInfo[playerid][pConnectSeconds] >= 3600)
{
TextDrawSetString(Textdraw64[playerid],"Congratulations! ~n~~n~You have earned the medal ~n~~b~One Hour! (5) ~n~~n~~w~you won ~g~$100");
ShowAchievement(playerid);
SafeGivePlayerMoney(playerid,100);
PlayerInfo[playerid][pAchievement5] = 1;
}
if (PlayerInfo[playerid][pAchievement6] == 0 && PlayerInfo[playerid][pConnectSeconds] >= 18000)
{
TextDrawSetString(Textdraw64[playerid],"Congratulations! ~n~~n~You have earned the medal ~n~~b~Five Hours! (6) ~n~~n~~w~you won ~g~$250");
ShowAchievement(playerid);
SafeGivePlayerMoney(playerid,250);
PlayerInfo[playerid][pAchievement6] = 1;
}
if(gTeam[playerid] == 3)
{
if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "You are part of a Family/Force, you've been forced to the right Class + Char !");
MedicBill[playerid] = 0;
new model = PlayerInfo[playerid][pChar];
if(PlayerInfo[playerid][pMember] == 1) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
else if(PlayerInfo[playerid][pMember] == 2) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
else if(PlayerInfo[playerid][pMember] == 3) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; }
else if(PlayerInfo[playerid][pMember] == 4) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; }
else if(PlayerInfo[playerid][pMember] == 5) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
else if(PlayerInfo[playerid][pMember] == 6) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
else if(PlayerInfo[playerid][pMember] == 7) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pMember] == 8) { SetSpawnInfo(playerid, 10, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; }
else if(PlayerInfo[playerid][pMember] == 9) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
else if(PlayerInfo[playerid][pMember] == 10) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
else if(PlayerInfo[playerid][pMember] == 11) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; }
else if(PlayerInfo[playerid][pMember] == 12) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; }
else if(PlayerInfo[playerid][pMember] == 13) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pMember] == 14) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
else if(PlayerInfo[playerid][pMember] == 15) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
else if(PlayerInfo[playerid][pMember] == 16) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; }
else if(PlayerInfo[playerid][pLeader] == 1) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 2) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 3) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 4) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 5) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 6) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 7) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 8) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 9) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 10) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 11) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 12) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; }
else if(PlayerInfo[playerid][pLeader] == 13) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 14) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 15) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
else if(PlayerInfo[playerid][pLeader] == 16) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; }
//SetSpawnInfo(playerid, team, model,0.0,0.0,0.0,0,0,0,0,0,0,0);
SpawnPlayer(playerid);
}
}
if(PlayerInfo[playerid][pSmokeAddicted] == 1)
{
SendClientMessage(playerid, COLOR_NICERED, "You feel the urge for a cigarette!");
SmokeAddictTimer[playerid] = SetTimerEx("SmokeAddictLooseHP",1800000, true, "i", playerid);
}
if(PlayerInfo[playerid][pLungCancer] == 1)
{
SendClientMessage(playerid, COLOR_NICERED, "You're having trouble breathing... (( Lung Cancer ))");
SetTimerEx("Cough", 3600000, 1, "d", playerid);
}
if(PlayerInfo[playerid][pChar] > 0) { SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]); }
else { SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); }
SetPlayerWeapons(playerid);
SetPlayerSpawn(playerid);
SetPlayerToTeamColor(playerid);
PlayerFixRadio(playerid);
IsFactionAbuser(playerid);
TogglePlayerControllable(playerid, 0);
SetTimerEx("Unfreezeply",5000,0,"d",playerid);
new Float:vector[3];
GetPlayerCameraFrontVector(playerid, vector[0], vector[1], vector[2]);
if(vector[2] <= -0.9958 && vector[2] >= -0.9964)
{
SendClientMessage(playerid, COLOR_GREY,"Hacker!!");
return 1;
}
return 1;
}
I think your gamemode checks for "_" your name doesn't contain "_" that's why you're getting kicked, not sure though just a guess.
Try registering with a Firstname_Lastname format. |