OnPlayerConnect: Parancsolj.
public OnPlayerConnect(playerid)
{
for(new x = 0; x < 100; x++) SendClientMessage(playerid, 0x00000000, \" \");
SendClientMessage(playerid, COLOR_LIGHTGREEN, \"Betöltés folyamatban... kérlek várj...\");
AC_Figyelmeztetes[playerid] = 0; Fegyver[playerid] = {false, false, false, false, false, false, false, false, false, false, false, false}; Tolteny[playerid] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
Sisak[playerid] = 0; SisakotVesz[playerid] = 0;
Aukciozik[playerid] = false; Harcol[playerid] = false; HarcolTerulet[playerid] = NINCS; Tamasi[playerid] = false; AJSzokesek[playerid] = 0; KocsitSokkolt[playerid] = 0;
Rejtett[playerid] = 0; Jelzes[playerid] = 0; JelzesIdo[playerid] = 0; Varosban[playerid] = false; Ugrasok[playerid] = {0,0,0}; TaxiHivas[playerid] = false; MentoHivas[playerid] = false;
Vizsgafajta[playerid] = 0; AnimIdo[playerid] = 0; SzemBekotve[playerid] = 0; SzajBekotve[playerid] = 0; JatekBetoltve[playerid] = false; Licitalt[playerid] = false;
OvFlood[playerid] = 0; SebessegKorlat[playerid] = 0; Szunet[playerid] = false; SzunetIdo[playerid] = 0; Fbios[playerid] = NINCS; Hazbanvan[playerid] = 0;
Nyomozott[playerid] = 0; JarmuKulcs[playerid] = NINCS; HazKulcs[playerid] = NINCS; NPC_ID[playerid] = NINCS;
Sokkolt[playerid] = 0; Leutott[playerid] = 0; Leutve[playerid] = false; LeutveIdo[playerid] = 0; BelepesIdo[playerid] = 0; TrafiPax[playerid][tAktiv] = false; TrafiPax[playerid][tBuntetheto] = 0; Tankol[playerid][0] = 0; Kilepesek[playerid] = true;
JatekosZsak[playerid] = NINCS; BenzintSzallit[playerid] = false; PlayerOnline[playerid] = true;
HolTart[playerid] = NINCS; Tszin[playerid] = NINCS; Tkerek[playerid] = NINCS; Csere[playerid] = NINCS; MitCsere[playerid] = NINCS; AdminSzint[playerid] = 0; SzefEngedely[playerid] = 0;
RadioHallgatas[playerid] = NINCS; LezartUtat[playerid] = 0; LezartUtZ[playerid] = 0.000000; LezartUtY[playerid] = 0.000000; LezartUtX[playerid] = 0.000000;
/*MenyiABenzinAra[playerid] = NINCS; MenyitTankol[playerid] = NINCS; Tankol[playerid] = 0;*/
UresUveg[playerid] = 0; KiMergezte[playerid] = NINCS; Mergezve[playerid] = 0; VanSzelvenye[playerid] = 0; talalatok[playerid] = 0;
PSzam5[playerid] = 0; PSzam6[playerid] = 0; PSzam7[playerid] = 0; PSzam8[playerid] = 0;
PSzam1[playerid] = 0; PSzam2[playerid] = 0; PSzam3[playerid] = 0; PSzam4[playerid] = 0;
TudReportolni[playerid] = 0; Locsolas[playerid] = NINCS; Locsolniakar[playerid] = NINCS;
BViadal[playerid] = 0; Nevek[playerid] = 0; Biztos[playerid] = 0; Belepve[playerid] = 0; Fbicelpont[playerid] = NINCS;
PrivatEngedely[playerid] = NINCS; PrivatAr[playerid] = NINCS; PrivatAjanlat[playerid] = NINCS; VizsgaAr[playerid] = 0; VizsgaAjanlat[playerid] = NINCS; C4Kocsiban[playerid] = NINCS; C4Z[playerid] = 0.000000; C4Y[playerid] = 0.000000; C4X[playerid] = 0.000000; C4Lerakva[playerid] = 0;
CsatlakozottSzamla[playerid] = NINCS; Szondaztat[playerid] = NINCS; KereskedoKocsiElad[playerid] = NINCS; KereskedoKocsiVetel[playerid] = NINCS; Rabol[playerid] = 0; //Tankol[playerid] = 0;
Edzik[playerid] = 0; TanultStilus[playerid] = 0; AdasVeteliNeki[playerid] = NINCS; AdasVeteliTipus[playerid] = NINCS; MostLepettBe[playerid] = 1; AdminJelszoMegadva[playerid] = 0; Fegyvere[playerid] = 0;
HitmanDuty[playerid] = 0; HibasBelepes[playerid] = 0; tuningolo[playerid] = 0; //ov[playerid] = 0;
reporttiltva[playerid] = 0; FelujitasElfogadas[playerid] = NINCS; RegEngedely[playerid] = 0; RegAdatok[playerid] = 0;
ElsoSpawn[playerid] = 1; Dialog[playerid] = -1; AFKIdo[playerid] = 0; AdminDuty[playerid] = 0;
AFK[playerid] = 0; Visz[playerid] = NINCS; Engedely[playerid] = 0; LopasProbalkozas[playerid] = 0;
SelectChar[playerid] = 0; HidePM[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; WantLawyer[playerid] = 0;
KickPlayer[playerid] = 0; CurrentMoney[playerid] = 0; UsedFind[playerid] = 0;
CP[playerid] = 0; Robbed[playerid] = 0; Autocp[playerid] = 0; Repulocp[playerid] = 0; Hajocp[playerid] = 0; Kamioncp[playerid] = 0; Motorcp[playerid] = 0; Jogsineki[playerid] = NINCS; Tanulofelpenz[playerid] = 0;
CarOffer[playerid] = 999; CarPrice[playerid] = 0; CarID[playerid] = 0; CarCalls[playerid] = 0;
RobbedTime[playerid] = 0; MoneyMessage[playerid] = 0; Condom[playerid] = 0;
STDPlayer[playerid] = 0; SexOffer[playerid] = 999; SexPrice[playerid] = 0;
RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0;
TalkingLive[playerid] = 255; LiveOffer[playerid] = 999; TakingLesson[playerid] = 0;
RefillOffer[playerid] = 999; RefillPrice[playerid] = 0; MapIconsShown[playerid] = 0;
DrugOffer[playerid] = 999; PlayerCuffed[playerid] = 0; PlayerCuffedTime[playerid] = 0;
DrugPrice[playerid] = 0; RegistrationStep[playerid] = 0; OnCK[playerid] = 999;
DrugGram[playerid] = 0; ConnectedToPC[playerid] = 0; OrderReady[playerid] = 0; HitmanRendeles[playerid] = 0;
JailPrice[playerid] = 0; MedicTime[playerid] = 0; NeedMedicTime[playerid] = 0; MedicBill[playerid] = 0;
WantedPoints[playerid] = 0; PlacedNews[playerid] = 0; skine[playerid] = 0; fegyvere[playerid] = 0;
OnDuty[playerid] = 0; WantedLevel[playerid] = 0; TestFishes[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;
FindTimePoints[playerid] = 0; FindTime[playerid] = 0; JobDuty[playerid] = 0;
Mobile[playerid] = 255; Music[playerid] = 0; BoxOffer[playerid] = 999; PlayerBoxing[playerid] = 0;
Spectate[playerid] = 255; PlayerDrunk[playerid] = 0; PlayerDrunkTime[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; ConsumingMoney[playerid] = 0;
gLastCar[playerid] = 0; FirstSpawn[playerid] = 0; gBooc[playerid] = 0; gBoocszidas[playerid] = 0;
gOoc[playerid] = 0; gNews[playerid] = 0; BigEar[playerid] = 0; gDice[playerid] = 0; gFam[playerid] = 0; gReport[playerid] = 0; gInfo[playerid] = 0;
gSpeedo[playerid] = 0; gGas[playerid] = 1; roadblock[playerid] = 0; block[playerid] = NINCS;
gPlayerLogged[playerid] = 0; gPlayerLogTries[playerid] = 0; gPlayerAccount[playerid] = 0;
gPlayerSpawned[playerid] = 0; PlayerKarting[playerid] = 0; PlayerInKart[playerid] = 0;
PlayerStoned[playerid] = 0;
StartTime[playerid] = 0; TicketOffer[playerid] = 999; TicketMoney[playerid] = 0;
TutTime[playerid] = 0; Drogozott[playerid] = 0; Animban[playerid] = 0; Animbanemrakhato[playerid] = 1; MunkaFelvetel[playerid] = 0;
NevvaltasiEngedely[playerid] = 0; Skinsel[playerid] = 0; MunkaFolyamatban[playerid] = 0; Adminseged[playerid] = 0;
OnPlayerRequestClass:
public OnPlayerRequestClass(playerid, classid)
{
if(IsPlayerNPC(playerid)) return 1;
if(Logged(playerid) || !Logged(playerid) && ElsoSpawn[playerid] == 1)
{
switch(random(7))
{
case 0: PlayerPlaySound(playerid, 1183, 0.0, 0.0, 0.0);
case 1: PlayerPlaySound(playerid, 1185, 0.0, 0.0, 0.0);
case 2: PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
case 3: PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0);
case 4: PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
case 5: PlayerPlaySound(playerid, 1076, 0.0, 0.0, 0.0);
case 6: PlayerPlaySound(playerid, 1097, 0.0, 0.0, 0.0);
}
}
if(Logged(playerid) == 0)
{
SpawnPlayer(playerid);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid, 0);
/*SetPlayerPos(playerid, 1543.207641, -1757.084716, 13.546875);
SetPlayerCameraPos(playerid, 1555.392578, -1749.457031, 30.780603);
SetPlayerCameraLookAt(playerid, 1504.327270, -1713.032226, 14.046875);*/
SetPlayerPos(playerid, LoginSpawn[spawnHely[playerid]][3], LoginSpawn[spawnHely[playerid]][4], LoginSpawn[spawnHely[playerid]][5]);
SetPlayerCameraPos(playerid, LoginSpawn[spawnHely[playerid]][0], LoginSpawn[spawnHely[playerid]][1], LoginSpawn[spawnHely[playerid]][2]);
SetPlayerCameraLookAt(playerid, LoginSpawn[spawnHely[playerid]][3], LoginSpawn[spawnHely[playerid]][4], LoginSpawn[spawnHely[playerid]][5]);
TogglePlayerControllable(playerid, false);
if(ElsoSpawn[playerid] == 1)
{
SetTimer(\"Spawnolas\", 3000, false);
ElsoSpawn[playerid] = 0;
JatekBetoltve[playerid] = true;
if(Registered(playerid) != 0)
SendClientMessage(playerid, COLOR_LIGHTBLUE, \"NAME: Üdv. Regisztrálva vagy. Kérlek lépj be. (/login)\");
else
SendClientMessage(playerid, COLOR_LIGHTBLUE, \"NAME: Üdv. Még nem vagy regisztrálva | Karakter regisztráció a kezelőfelületen: www.teszt.net\");
}
return 1;
}
if(egyezik(cmd, \"/enged\"))
{
if(!Admin(playerid, 1) && !IsAS(playerid)) return 1;
if(params < 1) return Msg(playerid, \"Használata: /enged [játékos]\");
new player = ReturnUser(param[1]);
if(player == INVALID_PLAYER_ID) return Msg(playerid, \"Nincs ilyen játékos!\");
ABroadCastFormat(COLOR_LIGHTRED, 1, \"<< %s megtanította %s-t az RPre és vállalja a felelősséget érte >>\", PlayerName(playerid), PlayerName(player));
Msg(player, \"Az adminisztrátor engedélyezte a játékot számodra! Jó játékot kívánunk!\");
PlayerInfo[player][pTut] = 1;
SetPlayerVirtualWorld(player, 0);
//SpawnPlayer(player);
OnPlayerSpawn(player);
return 1;
}
Dupla hozzászólás automatikusan összefûzve. ( 2016. szeptember 25. - 00:29:10 )
Esetleg ha van ehhez való poszt, kaphatnék egy linket?
Sajnálom hogy rabolom az időtöket de kutatom a megoldást, hogy tudjak haladni a \"Fejlödésemben\"
Szóval minden segítséget nagyon szépen köszönök előre is.!