Ezek vannak
if(dialogid == regeles)
{
if(response)
{
new file[128];
GetPlayerName(playerid, neve, sizeof(neve));
if(strlen(inputtext) == 0)
{
ShowPlayerDialog(playerid, regeles, DIALOG_STYLE_INPUT, \"Regisztráció\", \"Írj be egy jelszót:\", \"Regisztráció\", \"Mégse.\");
return 0;
}
format(file,sizeof(file),\"/players/%s.ini\",neve);
if(!fexist(file))
{
dini_Create(file);
dini_IntSet(file,\"Password\", udb_hash(inputtext));
dini_IntSet(file,\"Admin\", 0);
/*dini_IntSet(file,\"As\",0);*/
dini_IntSet(file,\"Penz\",0);
dini_IntSet(file,\"Oles\",0);
dini_IntSet(file,\"Halal\",0);
dini_IntSet(file,\"Ban\",0);
dini_IntSet(file,\"Warn\",0);
ShowPlayerDialog(playerid, belepes, DIALOG_STYLE_INPUT, \"Bejelentkezés\", \"Írd be a jelszavad\", \"Belép\", \"Mégse.\");
}
}
}
if(dialogid == belepes)
{
if(response)
{
new file[128];
GetPlayerName(playerid, neve, sizeof(neve));
if(strlen(inputtext) == 0)
{
ShowPlayerDialog(playerid, belepes, DIALOG_STYLE_INPUT, \"Bejelentkezés\", \"Írd be a jelszavad:\", \"Belép\", \"Mégse.\");
return 0;
}
format(file,sizeof(file),\"/players/%s.ini\",neve);
if(fexist(file))
{
new password = dini_Int(file, \"Password\");
if(udb_hash(inputtext) != password)
{
SendClientMessage(playerid, zold, \"A jelszó amit beírtál hibás ezért kickelve lettél..\");
Kick(playerid);
}
else
{
Info[playerid][admin] = dini_Int(file,\"Admin\");
/*Info[playerid][as] = dini_Int(file,\"As\");*/
Info[playerid][penz] = dini_Int(file,\"Penz\");
Info[playerid][oles] = dini_Int(file,\"Oles\");
Info[playerid][halal] = dini_Int(file,\"Halal\");
Info[playerid][ban] = dini_Int(file,\"Ban\");
Info[playerid][warn] = dini_Int(file,\"Warn\");
SendClientMessage(playerid, zold, \"Sikeresen bejelentkeztél.\");
SpawnPlayer(playerid);
if(Info[playerid][ban] == 1)
{
SendClientMessage(playerid, neon, \"Bannolva vagy!\");
Kick(playerid);
}
}
}
switch(dialogid) {
case DIALOG_V2: {
if(!response) return 1;
new title[128];
format(title, sizeof(title), \"{FFBB00}%s\", inputtext);
switch(listitem) {
case 0: ShowPlayerDialog(playerid, DIALOG_V2+(1+listitem), DIALOG_STYLE_LIST, title, \"Andromada\\nAT-400\\nBeagle\\nCropduster\\nDodo\\nHydra\\nNevada\\nRustler\\nShamal\\nSkimmer\\nStuntplane\", \"Lerak\", \"Vissza\");
case 1: ShowPlayerDialog(playerid, DIALOG_V2+(1+listitem), DIALOG_STYLE_LIST, title, \"Cargobob\\nHunter\\nLeviathan\\nMaverick\\nNews Maverick\\nPolice Maverick\\nRaindance\\nSeasparrow\\nSparrow\", \"Lerak\", \"Vissza\");
case 2: ShowPlayerDialog(playerid, DIALOG_V2+(1+listitem), DIALOG_STYLE_LIST, title, \"BF-400\\nBike\\nBMX\\nFaggio\\nFCR-900\\nFreeway\\nMountain Bike\\nNRG-500\\nPCJ-600\\nPizzaboy\\nQuad\\nSanchez\\nWayfarer\", \"Lerak\", \"Vissza\");
case 3: ShowPlayerDialog(playerid, DIALOG_V2+(1+listitem), DIALOG_STYLE_LIST, title, \"Comet\\nFeltzer\\nStallion\\nWindsor\", \"Lerak\", \"Vissza\");
case 4: ShowPlayerDialog(playerid, DIALOG_V2+(1+listitem), DIALOG_STYLE_LIST, title, \"Benson\\nBobcat\\nBurrito\\nBoxville\\nBoxburg\\nCement Truck\\nDFT-30\\nFlatbed\\nLinerunner\\nMule\\nNewsvan\\nPacker\\nPetrol Tanker\\nPony\\nRoadtrain\\nRumpo\\nSadler\\nSadler Shit\\nTopfun\\nTractor\\nTrashmaster\\nUtility Van\\nWalton\\nYankee\\nYosemite\", \"Lerak\", \"Vissza\");
case 5: ShowPlayerDialog(playerid, DIALOG_V2+(1+listitem), DIALOG_STYLE_LIST, title, \"Blade\\nBroadway\\nRemington\\nSavanna\\nSlamvan\\nTahoma\\nTornado\\nVoodoo\", \"Lerak\", \"Vissza\");
case 6: ShowPlayerDialog(playerid, DIALOG_V2+(1+listitem), DIALOG_STYLE_LIST, title, \"Bandito\\nBF Injection\\nDune\\nHuntley\\nLandstalker\\nMesa\\nMonster\\nMonster A\\nMonster B\\nPatriot\\nRancher A\\nRancher B\\nSandking\", \"Lerak\", \"Vissza\");
case 7: ShowPlayerDialog(playerid, DIALOG_V2+(1+listitem), DIALOG_STYLE_LIST, title, \"Ambulance\\nBarracks\\nBus\\nCabbie\\nCoach\\nCop Bike (HPV-1000)\\nEnforcer\\nFBI Rancher\\nFBI Truck\\nFiretruck\\nFiretruck LA\\nPolice Car (LSPD)\\nPolice Car (LVPD)\\nPolice Car (SFPD)\\nRanger\\nRhino\\nS.W.A.T\\nTaxi\", \"Lerak\", \"Vissza\");
case 8: ShowPlayerDialog(playerid, DIALOG_V2+(1+listitem), DIALOG_STYLE_LIST, title, \"Admiral\\nBloodring Banger\\nBravura\\nBuccaneer\\nCadrona\\nClover\\nElegant\\nElegy\\nEmperor\\nEsperanto\\nFortune\\nGlendale Shit\\nGlendale\\nGreenwood\\nHermes\\nIntruder\\nMajestic\\nManana\\nMerit\\nNebula\\nOceanic\\nPicador\\nPremier\\nPrevion\\nPrimo\\nSentinel\\nStafford\\nSultan\\nSunrise\\nTampa\\nVincent\\nVirgo\\nWillard\\nWashington\", \"Lerak\", \"Vissza\");
case 9: ShowPlayerDialog(playerid, DIALOG_V2+(1+listitem), DIALOG_STYLE_LIST, title, \"Alpha\\nBanshee\\nBlista Compact\\nBuffalo\\nBullet\\nCheetah\\nClub\\nEuros\\nFlash\\nHotring Racer\\nHotring Racer A\\nHotring Racer B\\nInfernus\\nJester\\nPhoenix\\nSabre\\nSuper GT\\nTurismo\\nUranus\\nZR-350\", \"Lerak\", \"Vissza\");
case 10: ShowPlayerDialog(playerid, DIALOG_V2+(1+listitem), DIALOG_STYLE_LIST, title, \"Moonbeam\\nPerenniel\\nRegina\\nSolair\\nStratum\", \"Lerak\", \"Vissza\");
case 11: ShowPlayerDialog(playerid, DIALOG_V2+(1+listitem), DIALOG_STYLE_LIST, title, \"Coastguard\\nDinghy\\nJetmax\\nLaunch\\nMarquis\\nPredator\\nReefer\\nSpeeder\\nSquallo\\nTropic\", \"Lerak\", \"Vissza\");
case 12: ShowPlayerDialog(playerid, DIALOG_V2+(1+listitem), DIALOG_STYLE_LIST, title, \"Article Trailer\\nArticle Trailer 2\\nArticle Trailer 3\\nBaggage Trailer A\\nBaggage Trailer B\\nFarm Trailer\\nFreight Flat Trailer (Train)\\nFreight Box Trailer (Train)\\nPetrol Trailer\\nStreak Trailer (Train)\\nStairs Trailer\\nUtility Trailer\", \"Lerak\", \"Vissza\");
case 13: ShowPlayerDialog(playerid, DIALOG_V2+(1+listitem), DIALOG_STYLE_LIST, title, \"Baggage\\nBrownstreak (Train)\\nCaddy\\nCamper\\nCamper A\\nCombine Harvester\\nDozer\\nDumper\\nForklift\\nFreight (Train)\\nHotknife\\nHustler\\nHotdog\\nKart\\nMower\\nMr Whoopee\\nRomero\\nSecuricar\\nStretch\\nSweeper\\nTram\\nTowtruck\\nTug\\nVortex\", \"Lerak\", \"Vissza\");
case 14: ShowPlayerDialog(playerid, DIALOG_V2+(1+listitem), DIALOG_STYLE_LIST, title, \"RC Bandit\\nRC Baron\\nRC Raider\\nRC Goblin\\nRC Tiger\\nRC Cam\", \"Lerak\", \"Vissza\");
}
}
case DIALOG_V2+1..DIALOG_V2+15: {
if(!response) return cmd_vlist(playerid);
CarSpawner(playerid, GetVehicleModelIDFromName(inputtext));
new sor[128]; format(sor, 128, \"Sikeresen lekértél egy {00FF00}%s{DCDCDC}(Modell: %i){FFFFFF}-t!\", inputtext, GetVehicleModelIDFromName(inputtext));
SendClientMessage(playerid, -1, sor);
}
}
}
}
return 1;
regeles dialog idjét 100-raírtam
belepes idjét meg 101-re de így se enged tovább lépni.
Beírom,hogy /vlist és kiválasztom a kategoriát de nem reagál rá még mindig :/
ez van a mód elején
#define regeles 100
#define belepes 101
#define DIALOG_V2 820