Sziasztok, nekem az a problémám lenne hogy csináltam egy bankrendszert és ha belépek a szerveremre akkor nem látom a TextDrawokat(Pénz TD, Infovonal TD). Szerintetek miért lehet ez?
#include <a_samp>
#include <dini>
#include <dudb>
#include <zcmd>
#include <sscanf2>
#include <fixchars>
#include <streamer>
#include <progress>
#pragma unused ret_memcpy
//DIALOGOK
#define regisztracio 0
#define bejelentkezes 1
#define munka 2
#define pia 3
#define szamla 4
#define vesz 5
#define szamlakezelo 6
#define bszberak 9
#define bszkivesz 10
//SZÍNEK
#define HIBA 0xFF0000FF
#define FEKETE 0x000000AA
#define KEK 0x0009ffAA
#define ZOLD 0x4bb330AA
#define AQA 0x00e2f7AA
#define LILA 0xC2A2DAAA
#define NARANCS 0xff9900AA
#define SARGA 0xFFFF00FF
#define colorRed 0xFF0000FF
#define colorYellow 0xFFFF00FF
//RÖVIDÍTÉSEK
#define msg SendClientMessage
#define msgta SendClientMessageToAll
//MUNKÁK
#define CSOMAGOS 52
#define KUKAS 51
#define NINCS 50
//FRAKCIÓK
#define RENDOR 1
#define RFONOK 2
#define GROVE 3
#define GFONOK 4
#define MEDIC 5
#define MFONOK 6
//VÁLTOZÓK, stb...
#define NextLevelXP 100
#define MAX_WARN 3
new nev[MAX_PLAYER_NAME];
new bool:newPlayer = false;
new Text:Box[MAX_PLAYERS];
new Text:Ft[MAX_PLAYERS];
new check;
forward CheckMoney(playerid);
forward Spawn(playerid);
forward Mentes(playerid);
new tMentes[MAX_PLAYERS];
forward Frissites(playerid);
new tFrissites[MAX_PLAYERS];
forward Autohirdetes(playerid);
new tAutohirdetes[MAX_PLAYERS];
forward kellXP(playerid);
new tkellXP[MAX_PLAYERS];
forward KickTimer(playerid);
forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
new Text:infovonal[MAX_PLAYERS];
new hotelpu1;
new hotelpu2;
new hotelpu3;
new hotelpu4;
new hotelpu5;
new hotelpu6;
new hotelpu7;
new hotelpu8;
enum JatekosAdatok
{
Skin,
Penz,
AdminSzint,
Szint,
XP,
Frakcio,
Munka,
BankPenz,
BankSzam,
BankPin,
Warn,
Float:p_x,
Float:p_y,
Float:p_z,
Szenya,
aviz
}
new JatekosInfo[MAX_PLAYERS][JatekosAdatok];
//Kukás meló
enum trashEnum{
Float:t_x,
Float:t_y,
Float:t_z
}
new tCPs[][trashEnum] = {
{-207.4347,2748.8333,63.0816},
{-259.8026,2664.2134,63.0872},
{-226.3595,2703.0459,63.0878},
{-301.8599,2733.1880,62.5950},
{-313.1693,2681.0615,63.1814}
};
//Csoamgos meló
enum csomagEnum{
Float:cs_x,
Float:cs_y,
Float:cs_z
}
new csCPs[][csomagEnum] = {
{-629.7277,2710.2549,72.3750},
{-236.8311,2808.1772,61.6009},
{-155.4218,2728.1167,61.9091},
{-1492.4562,2679.7783,55.8359},
{-1483.1566,2540.8291,55.8359},
{-1275.3673,2705.5415,50.0625}
};
main()
{
print(\"\\nModNév:NanoRPG\");
print(\"ModVerzió:0.1.2\");
print(\"Scripter:Milán(Jack Rendon)\");
print(\"Tulaj:Milán(Jack Rendon)\\n\");
}
public OnGameModeInit()
{
DisableInteriorEnterExits();
ManualVehicleEngineAndLights();
SetGameModeText(\"NanoRPG 0.1.2\");
hotelpu1 = CreatePickup(1273, 0, 665.2398,665.9958,665.2648, -1);
hotelpu2 = CreatePickup(1273, 0, 665.2162,668.1638,665.2648, -1);
hotelpu3 = CreatePickup(1273, 0, 665.2151,670.2156,665.2648, -1);
hotelpu4 = CreatePickup(1273, 0, 665.2165,672.3248,665.2648, -1);
hotelpu5 = CreatePickup(1273, 0, 659.9080,665.9796,665.2648, -1);
hotelpu6 = CreatePickup(1273, 0, 659.8836,668.1918,665.2648, -1);
hotelpu7 = CreatePickup(1273, 0, 659.9037,670.1973,665.2648, -1);
hotelpu8 = CreatePickup(1273, 0, 659.8831,672.3871,665.2648, -1);
//Mappolás
CreateObject(970, -242.84250, 2612.52661, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -238.70250, 2612.52661, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -234.56250, 2612.52661, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -230.40250, 2612.52661, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -227.47134, 2614.39355, 62.36520, 0.00000, 0.00000, 65.00000);
CreateObject(970, -226.58675, 2618.33301, 62.36520, 0.00000, 0.00000, 90.00000);
CreateObject(970, -226.58670, 2622.49292, 62.36520, 0.00000, 0.00000, 90.00000);
CreateObject(970, -215.29370, 2622.51172, 62.36520, 0.00000, -1.24000, 90.00000);
CreateObject(970, -215.30670, 2618.33301, 62.30520, 0.00000, -1.24000, 90.00000);
CreateObject(970, -214.44366, 2614.36548, 62.30520, 0.00000, 0.00000, -65.00000);
CreateObject(970, -211.46295, 2612.47510, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -207.34300, 2612.47510, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -203.18300, 2612.47510, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -199.04300, 2612.47510, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -196.94400, 2610.42822, 62.36520, 0.00000, 0.00000, 90.00000);
CreateObject(970, -196.94400, 2606.28833, 62.36520, 0.00000, 0.00000, 90.00000);
CreateObject(970, -196.94400, 2602.12842, 62.36520, 0.00000, 0.00000, 90.00000);
CreateObject(970, -196.94400, 2597.96851, 62.36520, 0.00000, 0.00000, 90.00000);
CreateObject(970, -196.94400, 2593.80859, 62.36520, 0.00000, 0.00000, 90.00000);
CreateObject(970, -199.03143, 2591.47363, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -203.17140, 2591.47363, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -207.33141, 2591.47363, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -211.49139, 2591.47363, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -215.65140, 2591.47363, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -219.81140, 2591.47363, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -223.97141, 2591.47363, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -228.13139, 2591.47363, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -232.29140, 2591.47363, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -236.45140, 2591.47363, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -240.61140, 2591.47363, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -242.71140, 2591.47363, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(673, -244.16269, 2611.72510, 61.73280, 0.00000, 0.00000, 0.00000);
CreateObject(673, -236.06270, 2611.72510, 61.73280, 0.00000, 0.00000, 0.00000);
CreateObject(673, -228.40269, 2611.72510, 61.73280, 0.00000, 0.00000, 0.00000);
CreateObject(673, -212.84270, 2611.72510, 61.73280, 0.00000, 0.00000, 0.00000);
CreateObject(673, -205.76270, 2611.72510, 61.73280, 0.00000, 0.00000, 0.00000);
CreateObject(673, -198.98270, 2611.72510, 61.73280, 0.00000, 0.00000, 0.00000);
CreateObject(970, -215.49409, 2726.38257, 62.18270, 0.00000, 0.00000, 90.00000);
CreateObject(970, -215.49409, 2730.56250, 62.18270, 0.00000, 0.00000, 90.00000);
CreateObject(970, -231.39410, 2725.50244, 62.18270, 0.00000, 0.00000, 90.00000);
CreateObject(970, -215.49409, 2734.74243, 62.18270, 0.00000, 0.00000, 90.00000);
CreateObject(970, -231.39410, 2729.68237, 62.18270, 0.00000, 0.00000, 90.00000);
CreateObject(970, -231.39410, 2733.86230, 62.18270, 0.00000, 0.00000, 90.00000);
CreateObject(970, -229.95410, 2737.38208, 62.18270, 0.00000, 0.00000, 45.00000);
CreateObject(970, -226.41078, 2738.82886, 62.18270, 0.00000, 0.00000, 0.00000);
CreateObject(970, -217.28680, 2737.82275, 62.18270, 0.00000, 0.00000, -30.00000);
CreateObject(3283, -241.00000, 5227.00000, 2729.00000, 3.00000, 1416.00000, 0.00000);
CreateObject(3283, -240.00000, 8383.00000, 2732.00000, 0.00000, 0.00000, 0.00000);
CreateObject(3283, -241.00000, 3156.00000, 2733.00000, 0.00000, 0.00000, 0.00000);
CreateObject(3285, -261.00000, 2859.00000, 2744.00000, 356.00000, 8584.00000, 0.00000);
CreateObject(3285, -254.00000, 3596.00000, 2757.00000, 356.00000, 8584.00000, 0.00000);
CreateObject(1686, -1327.03125, 2685.59375, 49.45313, 3.14159, 0.00000, 1.70170);
CreateObject(1686, -1327.03125, 2685.59375, 49.45313, 3.14159, 0.00000, 1.70170);
CreateObject(1686, -1327.03125, 2685.59375, 49.45313, 3.14159, 0.00000, 1.70170);
CreateObject(1686, -1327.03125, 2685.59375, 49.45313, 3.14159, 0.00000, 1.70170);
CreateObject(1686, -734.00000, 9583.00000, 2747.00000, 0.00000, 0.00000, 0.00000);
CreateObject(1686, -738.00000, 8422.00000, 2744.00000, 0.00000, 0.00000, 0.00000);
CreateObject(1686, -738.90576, 2739.33716, 46.24629, 0.00000, 0.00000, -87.41998);
CreateObject(11547, -737.58765, 2747.57080, 49.04141, 0.00000, 0.00000, 0.00000);
CreateObject(1686, -736.66797, 2739.44849, 46.24629, 0.00000, 0.00000, -87.41998);
CreateObject(1686, -736.41187, 2744.83057, 46.26340, 0.00000, 0.00000, -90.48002);
CreateObject(1686, -738.53802, 2744.84448, 46.26340, 0.00000, 0.00000, -90.48002);
CreateObject(1686, -738.55518, 2750.25513, 46.26340, 0.00000, 0.00000, -90.48002);
CreateObject(1686, -736.11243, 2750.24243, 46.26340, 0.00000, 0.00000, -90.48002);
CreateObject(1686, -736.34064, 2755.74268, 46.26340, 0.00000, 0.00000, -90.48002);
CreateObject(1686, -738.80939, 2755.77905, 46.26340, 0.00000, 0.00000, -90.48002);
CreateObject(974, -1522.43872, 2591.08105, 57.46599, 0.00000, 0.00000, 0.00000);
CreateObject(974, -1506.19849, 2577.06421, 54.95937, 0.00000, 0.00000, -89.99999);
CreateObject(19356, 999.06183, 999.19678, 999.00000, 0.00000, 90.00000, 0.00000);
CreateObject(19356, 1002.55682, 999.21613, 999.00000, 0.00000, 90.00000, 0.00000);
CreateObject(19356, 1002.55682, 996.01611, 999.00000, 0.00000, 90.00000, 0.00000);
CreateObject(19356, 999.05682, 996.01611, 999.00000, 0.00000, 90.00000, 0.00000);
CreateObject(19356, 999.06183, 1002.39679, 999.00000, 0.00000, 90.00000, 0.00000);
CreateObject(19356, 1002.56183, 1002.39679, 999.00000, 0.00000, 90.00000, 0.00000);
CreateObject(19356, 999.06183, 1002.39679, 999.00000, 0.00000, 90.00000, 0.00000);
CreateObject(19356, 995.00000, 5568.00000, 996.00000, 0.00000, 0.00000, 90.00000);
CreateObject(19356, 995.55682, 1002.39612, 999.00000, 0.00000, 90.00000, 0.00000);
CreateObject(19366, 994.00000, 3008.00000, 998.00000, 0.00000, 0.00000, 0.00000);
CreateObject(19366, 994.00000, 3008.00000, 998.00000, 0.00000, 0.00000, 0.00000);
CreateObject(19356, 999.06183, 999.19678, 999.00000, 0.00000, 90.00000, 0.00000);
CreateObject(19356, 995.00000, 1765.00000, 999.00000, 0.00000, 0.00000, 90.00000);
CreateObject(19356, 995.00000, 4401.00000, 999.00000, 0.00000, 0.00000, 90.00000);
CreateObject(19356, 1000.00000, 1818.00000, 999.00000, 0.00000, 0.00000, 90.00000);
CreateObject(19356, 995.00000, 6248.00000, 1002.00000, 0.00000, 0.00000, 90.00000);
CreateObject(19356, 995.56830, 999.19708, 999.00000, 0.00000, 90.00000, 0.00000);
CreateObject(19356, 995.55939, 996.03101, 999.00000, 0.00000, 90.00000, 0.00000);
CreateObject(19366, 993.00000, 7316.00000, 996.00000, 0.00000, 0.00000, 0.00000);
CreateObject(19366, 994.00000, 6641.00000, 999.00000, 0.00000, 0.00000, 0.00000);
CreateObject(19366, 992.00000, 5145.00000, 999.00000, 0.00000, 0.00000, 0.00000);
CreateObject(19366, 993.72906, 1002.40387, 1000.66595, 0.00000, 0.00000, 0.00000);
CreateObject(19366, 994.00000, 5922.00000, 1000.00000, 0.00000, 0.00000, 0.00000);
CreateObject(19366, 993.00000, 7435.00000, 1002.00000, 0.00000, 0.00000, 0.00000);
CreateObject(19366, 993.70874, 999.19690, 1000.66595, 0.00000, 0.00000, 0.00000);
CreateObject(19366, 993.71606, 996.03479, 1000.66595, 0.00000, 0.00000, 0.00000);
CreateObject(19366, 995.39117, 994.33160, 1000.66595, 0.00000, 0.00000, 89.99996);
CreateObject(19366, 998.60248, 994.33093, 1000.66595, 0.00000, 0.00000, 89.99996);
CreateObject(19366, 1002.00000, 7112.00000, 994.00000, 0.00000, 0.00000, 0.00000);
CreateObject(19366, 1000.68689, 994.34320, 1000.66595, 0.00000, 0.00000, 89.99996);
CreateObject(19366, 1002.70813, 994.33325, 1000.66595, 0.00000, 0.00000, 89.99996);
CreateObject(19366, 1004.39996, 995.99512, 1000.66595, 0.00000, 0.00000, -0.00005);
CreateObject(19366, 1004.41034, 999.1858, 555, 1000.66595, 0.00000, 0.00000, -0.00005);
CreateObject(19366, 1004.38855, 1002.38965, 1000.66595, 0.00000, 0.00000, -0.00005);
CreateObject(19366, 1002.75873, 1004.10059, 1000.66595, 0.00000, 0.00000, 89.99996);
CreateObject(19366, 999.64429, 1004.08685, 1000.66595, 0.00000, 0.00000, 89.99996);
CreateObject(19366, 995.37817, 1004.09998, 1000.66595, 0.00000, 0.00000, 89.99996);
CreateObject(19366, 996.97217, 1004.09485, 1000.66595, 0.00000, 0.00000, 89.99996);
CreateObject(19357, 995.00000, 1578.00000, 993.00000, 0.00000, 0.00000, 0.00000);
CreateObject(19357, 995.42377, 996.00922, 1002.51190, 0.66009, 90.17998, 0.60000);
CreateObject(19357, 995.36938, 999.15253, 1002.51190, 0.66009, 90.17998, 0.60000);
CreateObject(19357, 995.35333, 1001.49219, 1002.51190, 0.66009, 90.17998, 0.60000);
CreateObject(19357, 995.37744, 1002.47351, 1002.51190, 0.66009, 90.17998, 0.60000);
CreateObject(19357, 999.81598, 1002.61389, 1002.51190, 0.66009, 90.17998, 0.60000);
CreateObject(19357, 1002.74518, 1002.61334, 1002.51190, 0.66009, 90.17998, 0.60000);
CreateObject(19357, 997.35297, 1002.55206, 1002.51190, 0.66009, 90.17998, 0.60000);
CreateObject(19357, 1002.74493, 999.44232, 1002.51190, 0.66009, 90.17998, 0.60000);
CreateObject(19357, 1002.79559, 995.84320, 1002.51190, 0.66009, 90.17998, 0.60000);
CreateObject(19357, 1002.78680, 996.46326, 1002.51190, 0.66009, 90.17998, 0.60000);
CreateObject(19357, 999.49542, 995.79663, 1002.51190, 0.66009, 90.17998, 0.60000);
CreateObject(19357, 999.45459, 998.71680, 1002.51190, 0.66009, 90.17998, 0.60000);
CreateObject(19357, 999.46326, 1000.95715, 1002.51190, 0.66009, 90.17998, 0.60000);
CreateObject(19357, 998.00958, 1000.49677, 1002.51190, 0.66009, 90.17998, 0.60000);
CreateObject(19357, 998.07220, 997.43726, 1002.51190, 0.66009, 90.17998, 0.60000);
CreateObject(19357, 998.13483, 995.81799, 1002.51190, 0.66009, 90.17998, 0.60000);
CreateObject(3061, 1004.28595, 998.80707, 1000.25763, 0.00000, 0.00000, 0.00000);
CreateObject(2637, 997.36420, 995.43445, 999.54419, 0.00000, 0.00000, -90.06003);
CreateObject(2637, 997.35260, 999.54590, 999.54413, 0.00000, 0.00000, -90.06003);
CreateObject(2637, 997.35547, 997.51331, 999.54419, 0.00000, 0.00000, -90.06003);
CreateObject(2637, 995.76801, 999.92352, 999.54413, 0.00000, 0.00000, 0.05984);
CreateObject(1715, 998.76270, 998.18573, 999.07166, 0.00000, 0.00000, -88.97998);
CreateObject(1715, 995.53113, 998.10309, 999.07166, 0.00000, 0.00000, -270.78000);
CreateObject(14631, 997.05005, 997.66791, 999.96918, 0.00000, 0.00000, 0.00000);
CreateObject(19358, 665.72693, 666.05078, 666.00000, 0.00000, 0.00000, 0.00000);
CreateObject(19358, 664.04688, 673.97083, 666.00000, 0.00000, 0.00000, 90.00000);
CreateObject(19358, 665.72693, 672.45081, 666.00000, 0.00000, 0.00000, 0.00000);
CreateObject(19358, 659.36688, 672.45081, 666.00000, 0.00000, 0.00000, 0.00000);
CreateObject(19358, 665.72693, 669.25079, 666.00000, 0.00000, 0.00000, 0.00000);
CreateObject(19358, 659.36688, 669.25079, 666.00000, 0.00000, 0.00000, 0.00000);
CreateObject(19358, 659.37231, 666.05090, 666.00000, 0.00000, 0.00000, 0.00000);
CreateObject(19358, 660.92688, 673.97083, 666.00000, 0.00000, 0.00000, 90.00000);
CreateObject(19358, 660.92688, 664.47083, 666.00000, 0.00000, 0.00000, 90.00000);
CreateObject(19358, 664.12689, 664.47083, 666.00000, 0.00000, 0.00000, 90.00000);
CreateObject(19356, 661.09711, 666.05609, 664.17889, 0.00000, 90.00000, 0.00000);
CreateObject(19356, 664.59711, 666.05609, 664.17889, 0.00000, 90.00000, 0.00000);
CreateObject(19356, 664.57709, 669.25610, 664.17889, 0.00000, 90.00000, 0.00000);
CreateObject(19356, 661.09711, 669.25610, 664.17889, 0.00000, 90.00000, 0.00000);
CreateObject(19356, 660.89709, 672.43610, 664.17889, 0.00000, 90.00000, 0.00000);
CreateObject(19356, 664.39709, 672.43610, 664.17889, 0.00000, 90.00000, 0.00000);
CreateObject(19362, 661.18927, 666.11169, 667.64447, 0.00000, 90.00000, 0.00000);
CreateObject(19362, 664.66931, 666.11169, 667.64447, 0.00000, 90.00000, 0.00000);
CreateObject(19362, 664.66931, 669.29169, 667.64447, 0.00000, 90.00000, 0.00000);
CreateObject(19362, 661.18927, 669.31171, 667.64447, 0.00000, 90.00000, 0.00000);
CreateObject(19362, 661.18927, 672.51172, 667.64447, 0.00000, 90.00000, 0.00000);
CreateObject(19362, 661.18927, 672.51172, 667.64447, 0.00000, 90.00000, 0.00000);
CreateObject(19362, 664.66931, 672.51172, 667.64447, 0.00000, 90.00000, 0.00000);
CreateObject(1506, 661.80389, 664.54211, 664.25293, 0.00000, 0.00000, 0.00000);
CreateObject(1507, 665.67810, 665.17139, 664.24341, 0.00000, 0.00000, 90.00000);
CreateObject(1507, 665.65332, 667.39111, 664.24341, 0.00000, 0.00000, 90.00000);
CreateObject(1507, 665.65192, 669.45117, 664.24341, 0.00000, 0.00000, 90.00000);
CreateObject(1507, 665.65332, 671.59113, 664.24341, 0.00000, 0.00000, 90.00000);
CreateObject(1507, 659.47333, 671.59113, 664.24341, 0.00000, 0.00000, 90.00000);
CreateObject(1507, 659.49188, 669.45117, 664.24341, 0.00000, 0.00000, 90.00000);
CreateObject(1507, 659.47333, 667.39111, 664.24341, 0.00000, 0.00000, 90.00000);
CreateObject(1507, 659.49811, 665.17139, 664.24341, 0.00000, 0.00000, 90.00000);
CreateObject(970, -242.84250, 2612.52661, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -238.70250, 2612.52661, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -234.56250, 2612.52661, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -230.40250, 2612.52661, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -227.47134, 2614.39355, 62.36520, 0.00000, 0.00000, 65.00000);
CreateObject(970, -226.58675, 2618.33301, 62.36520, 0.00000, 0.00000, 90.00000);
CreateObject(970, -226.58670, 2622.49292, 62.36520, 0.00000, 0.00000, 90.00000);
CreateObject(970, -215.29370, 2622.51172, 62.36520, 0.00000, -1.24000, 90.00000);
CreateObject(970, -215.30670, 2618.33301, 62.30520, 0.00000, -1.24000, 90.00000);
CreateObject(970, -214.44366, 2614.36548, 62.30520, 0.00000, 0.00000, -65.00000);
CreateObject(970, -211.46295, 2612.47510, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -203.18300, 2612.47510, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -199.04300, 2612.47510, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -196.94400, 2610.42822, 62.36520, 0.00000, 0.00000, 90.00000);
CreateObject(970, -196.94400, 2606.28833, 62.36520, 0.00000, 0.00000, 90.00000);
CreateObject(970, -196.94400, 2602.12842, 62.36520, 0.00000, 0.00000, 90.00000);
CreateObject(970, -196.94400, 2597.96851, 62.36520, 0.00000, 0.00000, 90.00000);
CreateObject(970, -196.94400, 2593.80859, 62.36520, 0.00000, 0.00000, 90.00000);
CreateObject(970, -199.03143, 2591.47363, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -203.17140, 2591.47363, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -207.33141, 2591.47363, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -211.49139, 2591.47363, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -215.65140, 2591.47363, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -219.81140, 2591.47363, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -223.97141, 2591.47363, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -228.13139, 2591.47363, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -232.29140, 2591.47363, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -236.45140, 2591.47363, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -240.61140, 2591.47363, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(970, -242.71140, 2591.47363, 62.36520, 0.00000, 0.00000, 0.00000);
CreateObject(673, -244.16269, 2611.72510, 61.73280, 0.00000, 0.00000, 0.00000);
CreateObject(673, -236.06270, 2611.72510, 61.73280, 0.00000, 0.00000, 0.00000);
CreateObject(673, -228.40269, 2611.72510, 61.73280, 0.00000, 0.00000, 0.00000);
CreateObject(673, -212.84270, 2611.72510, 61.73280, 0.00000, 0.00000, 0.00000);
CreateObject(673, -205.76270, 2611.72510, 61.73280, 0.00000, 0.00000, 0.00000);
CreateObject(673, -198.98270, 2611.72510, 61.73280, 0.00000, 0.00000, 0.00000);
CreateObject(1330, -229.64343, 2736.30884, 62.43710, 0.00000, 0.00000, 0.00000);
CreateObject(1330, -218.65776, 2728.43433, 62.43710, 0.00000, 0.00000, 0.00000);
CreateObject(1330, -228.64435, 2730.44141, 62.43710, 0.00000, 180.00000, 0.00000);
CreateObject(1330, -215.98590, 2732.10010, 62.25710, 0.00000, 30.00000, 0.00000);
CreateObject(1330, -217.76451, 2734.27148, 62.03710, 0.00000, -90.00000, 0.00000);
CreateObject(1330, -230.99132, 2725.75659, 62.19710, 0.00000, -30.00000, 0.00000);
CreateObject(1330, -225.77652, 2737.16455, 62.03710, 0.00000, 90.00000, -68.00000);
CreateObject(854, -230.05666, 2722.52759, 61.90320, 0.00000, 0.00000, 0.00000);
CreateObject(854, -218.44789, 2736.81152, 61.90320, 0.00000, 0.00000, 0.00000);
CreateObject(854, -229.93436, 2733.39233, 61.90320, 0.00000, 0.00000, 0.00000);
CreateObject(854, -217.50391, 2730.76929, 61.90320, 0.00000, 0.00000, 0.00000);
CreateObject(854, -227.86270, 2737.43311, 61.90320, 0.00000, 0.00000, 0.00000);
CreateObject(850, -228.34413, 2727.33447, 61.78260, 0.00000, 0.00000, 0.00000);
CreateObject(850, -221.94118, 2726.50342, 61.78260, 0.00000, 0.00000, 90.00000);
CreateObject(1238, -239.00000, 3671.00000, 2649.00000, 0.00000, 0.00000, 0.00000);
CreateObject(1424, -231.00000, 6606.00000, 2655.00000, 0.00000, 0.00000, 0.00000);
CreateObject(1424, -241.00000, 2049.00000, 2649.00000, 0.00000, 0.00000, 0.00000);
CreateObject(1424, -240.00000, 9102.00000, 2651.00000, 0.00000, 0.00000, 0.00000);
CreateObject(11545, -231.23489, 2658.41577, 61.78394, -1.40000, -0.34000, 0.32000);
Create3DTextLabel(\"Városháza\", SARGA, -255.1476,2603.3840,62.8582, 40.0, 0, 0);
Create3DTextLabel(\"/munkafelvesz\", SARGA, 998.3539,997.4843,1000.0859, 40.0, 0, 0);
Create3DTextLabel(\"Kocsma\", SARGA, -208.2589,2713.0923,62.9794, 40.0, 0, 0);
Create3DTextLabel(\"/pia\", SARGA, 497.2046,-76.0396,998.7578, 40.0, 0, 0);
Create3DTextLabel(\"Oktatóközpont\", SARGA, -234.9208,2653.6790,63.5729, 40.0, 0, 0);
Create3DTextLabel(\"Bolt\", SARGA, -243.0403,2711.7615,62.6875, 40.0, 0, 0);
Create3DTextLabel(\"/vesz\", SARGA, -30.4816,-28.9849,1003.5573, 40.0, 0, 0);
Create3DTextLabel(\"Bank\", SARGA, -1509.4738,2590.4883,55.8359, 40.0, 0, 0);
Create3DTextLabel(\"/bank\", SARGA, 2316.6213,-9.9246,26.7422, 40.0, 0, 0);
return 1;
}
public OnGameModeExit()
{
DestroyPickup(hotelpu1);
DestroyPickup(hotelpu2);
DestroyPickup(hotelpu3);
DestroyPickup(hotelpu4);
DestroyPickup(hotelpu5);
DestroyPickup(hotelpu6);
DestroyPickup(hotelpu7);
DestroyPickup(hotelpu8);
KillTimer(check);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
if(newPlayer)
{
SetPlayerCameraPos(playerid, 1554.2301,-1676.4877,16.1953);
SetPlayerCameraLookAt(playerid, 1554.2301,-1676.4877,16.1953);
SetPlayerPos(playerid,JatekosInfo[playerid][p_x],JatekosInfo[playerid][p_y],JatekosInfo[playerid][p_z]);
}
else {
SetTimerEx(\"Spawn\",3000,false,\"i\",playerid);
}
new file[256];
GetPlayerName(playerid,nev,sizeof(nev));
format(file,sizeof(file),\"/Karakterek/%s.ini\",nev);
new string[256];
if(!fexist(file))
{
format(string, sizeof string, \"Üdv %s! \\nKérjük regisztrálj! \\n\\nAdd meg a kívánt jelszavadat!\", nev);
ShowPlayerDialog(playerid, regisztracio, DIALOG_STYLE_INPUT, \"Regisztráció\", string, \"Regisztráció\", \"Kilépés\");
newPlayer = true;
SetPlayerSkin(playerid, 26);
}
if(fexist(file))
{
format(string, sizeof string, \"Üdv %s! \\nKérjük jelentkezz be! \\n\\nÍrd be a jelszavadat!\", nev);
ShowPlayerDialog(playerid, bejelentkezes, DIALOG_STYLE_INPUT, \"Bejelentkezés\", string, \"Bejelentkezés\", \"Kilépés\");
}
return 1;
}
public OnPlayerConnect(playerid)
{
if(newPlayer)
{
SetPlayerPos(playerid,JatekosInfo[playerid][p_x],JatekosInfo[playerid][p_y],JatekosInfo[playerid][p_z]);
}
for(new i = 0; i < 25; i++)
{
msg(playerid,-1,\" \");
return 1;
}
msg(playerid,ZOLD,\"\'Y\' GOMB megnyomásával lehet bemenni házakba, interiorokba.\");
infovonal[playerid] = TextDrawCreate(0.0, 0.0, \"x\");
TextDrawUseBox(infovonal[playerid], 1);
TextDrawColor(infovonal[playerid],0x12900BBF);
TextDrawBoxColor(infovonal[playerid], 0x12900BBF);
TextDrawSetOutline(infovonal[playerid],1);
TextDrawBackgroundColor(infovonal[playerid], 0x000000FF);
TextDrawFont(infovonal[playerid], 2);
Box[playerid] = TextDrawCreate(622.000000, 79.000000, \" \");
TextDrawBackgroundColor(Box[playerid], 255);
TextDrawFont(Box[playerid], 1);
TextDrawLetterSize(Box[playerid], 0.500000, 1.000000);
TextDrawColor(Box[playerid], -1);
TextDrawSetOutline(Box[playerid], 0);
TextDrawSetProportional(Box[playerid], 1);
TextDrawSetShadow(Box[playerid], 1);
TextDrawUseBox(Box[playerid], 1);
TextDrawBoxColor(Box[playerid], 0x000035FF);
TextDrawTextSize(Box[playerid], 483.000000, 49.000000);
Ft[playerid] = TextDrawCreate(490.000000, 77.000000, \"00000000Ft\");
TextDrawBackgroundColor(Ft[playerid], 0xF5F51FFF);
TextDrawFont(Ft[playerid], 1);
TextDrawLetterSize(Ft[playerid], 0.539999, 2.299999);
TextDrawColor(Ft[playerid], 0xCACA09FF);
TextDrawSetOutline(Ft[playerid], 1);
TextDrawSetProportional(Ft[playerid], 1);
RemoveBuildingForPlayer(playerid, 669, -1515.2578, 2635.2188, 55.2422, 0.25);
RemoveBuildingForPlayer(playerid, 16367, -892.8906, 2695.5313, 43.0000, 0.25);
RemoveBuildingForPlayer(playerid, 16004, -843.8359, 2746.0078, 47.7109, 0.25);
RemoveBuildingForPlayer(playerid, 3243, -864.7656, 2747.5547, 45.1406, 0.25);
RemoveBuildingForPlayer(playerid, 3243, -878.2344, 2746.2656, 45.1406, 0.25);
RemoveBuildingForPlayer(playerid, 3243, -815.8672, 2751.4141, 45.1406, 0.25);
RemoveBuildingForPlayer(playerid, 3243, -827.1328, 2750.7422, 45.1406, 0.25);
RemoveBuildingForPlayer(playerid, 3243, -865.9219, 2763.5469, 45.1406, 0.25);
RemoveBuildingForPlayer(playerid, 3243, -878.8594, 2762.5156, 45.1406, 0.25);
RemoveBuildingForPlayer(playerid, 3243, -828.8672, 2766.4609, 45.1406, 0.25);
RemoveBuildingForPlayer(playerid, 3243, -817.5625, 2767.2656, 45.1406, 0.25);
RemoveBuildingForPlayer(playerid, 3243, -840.3516, 2763.8359, 45.1406, 0.25);
RemoveBuildingForPlayer(playerid, 3243, -850.4375, 2763.0313, 45.1406, 0.25);
RemoveBuildingForPlayer(playerid, 672, -240.8359, 2737.1484, 62.4844, 0.25);
RemoveBuildingForPlayer(playerid, 16776, -237.0234, 2662.8359, 62.6094, 0.25);
RemoveBuildingForPlayer(playerid, 16062, -222.6641, 2663.3047, 66.2344, 0.25);
RemoveBuildingForPlayer(playerid, 16063, -222.3438, 2663.4531, 71.0156, 0.25);
RemoveBuildingForPlayer(playerid, 669, -206.6328, 2672.2422, 61.8438, 0.25);
RemoveBuildingForPlayer(playerid, 672, -243.0313, 2688.3047, 62.4844, 0.25);
RemoveBuildingForPlayer(playerid, 669, -232.1641, 2685.2734, 61.8438, 0.25);
RemoveBuildingForPlayer(playerid, 669, -202.5703, 2687.9688, 61.8438, 0.25);
SetTimerEx(\"CheckMoney\", 1000, true, \"i\", playerid);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new file[128];
GetPlayerName(playerid,nev,sizeof(nev));
format(file,sizeof(file),\"/Karakterek/%s.ini\",nev);
if(fexist(file)){
dini_IntSet(file,\"AdminSzint\",JatekosInfo[playerid][AdminSzint]);
dini_IntSet(file,\"Skin\",JatekosInfo[playerid][skin]);
dini_IntSet(file,\"Penz\",JatekosInfo[playerid][Penz]);
dini_IntSet(file,\"Szint\",JatekosInfo[playerid][szint]);
dini_IntSet(file,\"XP\",JatekosInfo[playerid][XP]);
dini_IntSet(file,\"BankPenz\",JatekosInfo[playerid][bankPenz]);
dini_IntSet(file,\"BankSzam\",JatekosInfo[playerid][bankSzam]);
dini_IntSet(file,\"BankPin\",JatekosInfo[playerid][bankPin]);
dini_IntSet(file,\"Frakcio\",JatekosInfo[playerid][Frakcio]);
dini_IntSet(file,\"Munka\",JatekosInfo[playerid][Munka]);
dini_IntSet(file,\"Warn\",JatekosInfo[playerid][Warn]);
dini_FloatSet(file,\"p_x\",JatekosInfo[playerid][p_x]);
dini_FloatSet(file,\"p_y\",JatekosInfo[playerid][p_y]);
dini_FloatSet(file,\"p_z\",JatekosInfo[playerid][p_z]);
dini_IntSet(file,\"Szenya\",JatekosInfo[playerid][szenya]);
dini_IntSet(file,\"aviz\",JatekosInfo[playerid][aviz]);
}
JatekosInfo[playerid][AdminSzint]= 0;
JatekosInfo[playerid][skin]= 0;
JatekosInfo[playerid][Penz]= 0;
JatekosInfo[playerid][szint]= 0;
JatekosInfo[playerid][XP]= 0;
JatekosInfo[playerid][bankPenz]= 0;
JatekosInfo[playerid][bankSzam]= 0;
JatekosInfo[playerid][bankPin]= 0;
JatekosInfo[playerid][XP]= 0;
JatekosInfo[playerid][XP]= 0;
JatekosInfo[playerid][Frakcio]= 0;
JatekosInfo[playerid][Munka]= 0;
JatekosInfo[playerid][Warn]= 0;
JatekosInfo[playerid][p_x]= 0;
JatekosInfo[playerid][p_y]= 0;
JatekosInfo[playerid][p_z]= 0;
JatekosInfo[playerid][szenya]= 0;
JatekosInfo[playerid][aviz]= 0;
printf(\"%s kilépett.\",nev);
KillTimer(tMentes[playerid]);
KillTimer(tFrissites[playerid]);
KillTimer(tkellXP[playerid]);
KillTimer(tAutohirdetes[playerid]);
TextDrawHideForPlayer(playerid, infovonal[playerid]);
TextDrawHideForPlayer(playerid, Ft[playerid]);
TextDrawHideForPlayer(playerid, Box[playerid]);
return 1;
}
public OnPlayerSpawn(playerid)
{
if(newPlayer)
{
SetPlayerSkin(playerid,JatekosInfo[playerid][skin]);
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
msg(playerid,colorYellow,\"A jármű indításához /motor, további járművel kapcsolatos parancsokhoz(lámpa stb...) /kocsihelp\");
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
TogglePlayerControllable(playerid,1);
if(GetPVarInt(playerid, \"trash_job\"))
{
SetPVarInt(playerid, \"trash_job\", 0);
DestroyVehicle(GetPVarInt(playerid, \"trash_car\"));
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, SARGA, \"Befejezted a munkát\");
}
if(GetPVarInt(playerid, \"csomagos_job\"))
{
SetPVarInt(playerid, \"csomagos_job\", 0);
DestroyVehicle(GetPVarInt(playerid, \"csomagos_car\"));
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, SARGA, \"Befejezted a munkát\");
}
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(GetPVarInt(playerid, \"csomagos_job\"))
{
new cID = GetPVarInt(playerid, \"csomagos_cp\");
if(IsPlayerInRangeOfPoint(playerid, 5, csCPs[cID][cs_x], csCPs[cID][cs_y], csCPs[cID][cs_z]))
{
cID++;
switch(random(6))
{
case 0:
{
msg(playerid,ZOLD,\"Kaptál a leszállított csomagért 250Ft-t\");
JatekosInfo[playerid][Penz] += 250;
}
case 1:
{
msg(playerid,ZOLD,\"Kaptál a leszállított csomagért 277Ft-t\");
JatekosInfo[playerid][Penz] += 277;
}
case 2:
{
msg(playerid,ZOLD,\"Kaptál a leszállított csomagért 192Ft-t\");
JatekosInfo[playerid][Penz] += 192;
}
case 3:
{
msg(playerid,ZOLD,\"Kaptál a leszállított csomagért 234Ft-t\");
JatekosInfo[playerid][Penz] += 234;
}
case 4:
{
msg(playerid,ZOLD,\"Kaptál a leszállított csomagért 217Ft-t\");
JatekosInfo[playerid][Penz] += 217;
}
case 5:
{
msg(playerid,ZOLD,\"Kaptál a leszállított csomagért 292Ft-t\");
JatekosInfo[playerid][Penz] += 292;
}
}
JatekosInfo[playerid][XP] ++;
if(cID >= sizeof(csCPs))
{
SetPVarInt(playerid, \"csomagos_cp\", 0);
SetPlayerCheckpoint(playerid, csCPs[0][cs_x], csCPs[0][cs_y], csCPs[0][cs_z], 6);
}
else
{
SetPVarInt(playerid, \"csomagos_cp\", cID);
SetPlayerCheckpoint(playerid, csCPs[cID][cs_x], csCPs[cID][cs_y], csCPs[cID][cs_z], 6);
}
}
}
if(GetPVarInt(playerid, \"trash_job\"))
{
new cID = GetPVarInt(playerid, \"trash_cp\");
if(IsPlayerInRangeOfPoint(playerid, 5, tCPs[cID][t_x], tCPs[cID][t_y], tCPs[cID][t_z]))
{
cID++;
switch(random(10))
{
case 0:
{
msg(playerid,ZOLD,\"Kaptál a munkádért 54Ft-t\");
JatekosInfo[playerid][Penz] += 54;
}
case 1:
{
msg(playerid,ZOLD,\"Kaptál a munkádért 86Ft-t\");
JatekosInfo[playerid][Penz] += 86;
}
case 2:
{
msg(playerid,ZOLD,\"Kaptál a munkádért 73Ft-t\");
JatekosInfo[playerid][Penz] += 73;
}
case 3:
{
msg(playerid,ZOLD,\"Kaptál a munkádért 96Ft-t\");
JatekosInfo[playerid][Penz] += 96;
}
case 4:
{
msg(playerid,ZOLD,\"Kaptál a munkádért 48Ft-t\");
JatekosInfo[playerid][Penz] += 48;
}
case 5:
{
msg(playerid,ZOLD,\"Kaptál a munkádért 61Ft-t\");
JatekosInfo[playerid][Penz] += 61;
}
case 6:
{
msg(playerid,ZOLD,\"Kaptál a munkádért 87Ft-t\");
JatekosInfo[playerid][Penz] += 87;
}
case 7:
{
msg(playerid,ZOLD,\"Kaptál a munkádért 52Ft-t\");
JatekosInfo[playerid][Penz] += 52;
}
case 8:
{
msg(playerid,ZOLD,\"Kaptál a munkádért 76Ft-t\");
JatekosInfo[playerid][Penz] += 76;
}
case 9:
{
msg(playerid,ZOLD,\"Kaptál a munkádért 92Ft-t\");
JatekosInfo[playerid][Penz] += 92;
}
}
JatekosInfo[playerid][XP] ++;
if(cID >= sizeof(tCPs))
{
SetPVarInt(playerid, \"trash_cp\", 0);
SetPlayerCheckpoint(playerid, tCPs[0][t_x], tCPs[0][t_y], tCPs[0][t_z], 5);
}
else
{
SetPVarInt(playerid, \"trash_cp\", cID);
SetPlayerCheckpoint(playerid, tCPs[cID][t_x], tCPs[cID][t_y], tCPs[cID][t_z], 5);
}
return 1;
}
}
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
#define PRESSED(%0) \\
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
if(IsPlayerInAnyVehicle(playerid))
{
if (newkeys == KEY_YES)
{
if(GetPlayerState(playerid)!=PLAYER_STATE_DRIVER)return msg(playerid,HIBA,\"Te nem ülsz a sofőr ülésen!\");
new vID=GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vID,engine,lights,alarm,doors,bonnet,boot,objective);
if(engine == 1)
{
msg(playerid,ZOLD,\"Leállítottad a motort.\");
cmd_me(playerid, \"Leállította a járművet\");
engine = 0;
}else {
msg(playerid,ZOLD,\"Beindítottad a motort\");
engine = 1;
}
SetVehicleParamsEx(vID,engine,lights,alarm,doors,bonnet,boot,objective);
}
else if(newkeys == KEY_SUBMISSION )
{
if(GetPlayerState(playerid)!=PLAYER_STATE_DRIVER)return msg(playerid,HIBA,\"Te nem ülsz a sofőr ülésen!\");
new vID=GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vID,engine,lights,alarm,doors,bonnet,boot,objective);
if(lights == 1)
{
lights = 0;
msg(playerid,ZOLD,\"Lekapcsoltad a lámpát\");
cmd_me(playerid, \"Lekapcsolja a lámpát\");
}else {
lights =1;
msg(playerid,ZOLD,\"Bekapcsoltad a lámpát\");
cmd_me(playerid, \"Felkapcsolja a lámpát\");
}
SetVehicleParamsEx(vID,engine,lights,alarm,doors,bonnet,boot,objective);
}
else if(newkeys == KEY_ANALOG_UP )
{
if(GetPlayerState(playerid)!=PLAYER_STATE_DRIVER)return msg(playerid,HIBA,\"Te nem ülsz a sofőr ülésen!\");
new vID=GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vID,engine,lights,alarm,doors,bonnet,boot,objective);
if(bonnet == 1)
{
bonnet = 0;
msg(playerid,ZOLD,\"Lecsuktad a motorháztetőt\");
cmd_me(playerid, \"lecsukja a motorháztetőt\");
}else {
bonnet =1;
msg(playerid,ZOLD,\"Felnyitottad a motorháztetőt \");
cmd_me(playerid, \"Felnyitja a motorháztetőt\");
}
SetVehicleParamsEx(vID,engine,lights,alarm,doors,bonnet,boot,objective);
}
else if(newkeys == KEY_ANALOG_DOWN )
{
if(GetPlayerState(playerid)!=PLAYER_STATE_DRIVER)return msg(playerid,HIBA,\"Te nem ülsz a sofőr ülésen!\");
new vID=GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vID,engine,lights,alarm,doors,bonnet,boot,objective);
if(boot == 1)
{
boot = 0;
msg(playerid,ZOLD,\"Lecsuktad a csomagtartót\");
cmd_me(playerid, \"Lecsukja a csomagtartót\");
}else {
boot =1;
msg(playerid,ZOLD,\"Felnyitottad a csomagtartót\");
cmd_me(playerid, \"Felnyitja a csomagtartót\");
}
SetVehicleParamsEx(vID,engine,lights,alarm,doors,bonnet,boot,objective);
}
}
if(newkeys == KEY_YES )
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, -255.1476,2603.3840,62.8582))
{
SetPlayerPos(playerid, 1003.9331,999.3507,1000.0859);
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1003.9331,999.3507,1000.0859))
{
SetPlayerPos(playerid, -255.1476,2603.3840,62.8582);
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0, -208.2589,2713.0923,62.9794))
{
SetPlayerInterior(playerid,11);
SetPlayerPos(playerid,501.980987,-69.150199,998.757812);
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0, 501.980987,-69.150199,998.757812))
{
SetPlayerInterior(playerid ,0);
SetPlayerPos(playerid,-208.2589,2713.0923,62.9794);
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0, -234.9208,2653.6790,63.5729))
{
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid,-2029.798339,-106.675910,1035.171875);
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0, -2029.798339,-106.675910,1035.171875))
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, -234.9208,2653.6790,63.5729);
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0, -243.0403,2711.7615,62.6875))
{
SetPlayerInterior(playerid, 4);
SetPlayerPos(playerid, -27.312299,-29.277599,1003.557250);
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0,-27.312299,-29.277599,1003.557250))
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, -243.0403,2711.7615,62.6875);
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0,2315.952880,-1.618174,26.742187))
{
SetPlayerPos(playerid, -1509.4738,2590.4883,55.8359);
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0,-1509.4738,2590.4883,55.8359))
{
SetPlayerPos(playerid, 2315.952880,-1.618174,26.742187);
}
}
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if (dialogid == regisztracio)
{
if(response)
{
new file[128];
new string[128];
GetPlayerName(playerid, nev, sizeof(nev));
if(strlen(inputtext) == 0)
{
format(string, sizeof string, \"Üdv %s! \\nKérjük regisztrálj! \\n\\nAdd meg a kívánt jelszavadat!\", nev);
ShowPlayerDialog(playerid, regisztracio, DIALOG_STYLE_INPUT, \"Regisztráció\", string, \"Regisztráció\", \"Kilépés\");
return 0;
}
format(file,sizeof(file),\"/Karakterek/%s.ini\",nev);
if(!fexist(file))
{
dini_Create(file);
dini_IntSet(file, \"Antibug\",0);
dini_IntSet(file, \"Jelszo\",udb_hash(inputtext));
dini_IntSet(file,\"AdminSzint\", 0);
dini_IntSet(file,\"Skin\", 0);
dini_IntSet(file,\"Szint\", 0);
dini_IntSet(file,\"XP\", 0);
dini_IntSet(file,\"BankPenz\", 0);
dini_IntSet(file,\"BankSzam\", 0);
dini_IntSet(file,\"BankPin\", 0);
dini_IntSet(file,\"Penz\", 0);
dini_IntSet(file,\"Frakcio\", 0);
dini_IntSet(file,\"Munka\", 0);
dini_IntSet(file,\"Warn\", 0);
dini_FloatSet(file,\"p_x\", 0);
dini_FloatSet(file,\"p_y\", 0);
dini_FloatSet(file,\"p_z\", 0);
dini_IntSet(file,\"Szenya\", 0);
dini_IntSet(file,\"aviz\", 0);
JatekosInfo[playerid][Munka] = NINCS;
format(string, sizeof string, \"Üdv %s! \\nRegisztrálva vagy! \\n\\nÍrd be a jelszavadat!\", nev);
ShowPlayerDialog(playerid, bejelentkezes, DIALOG_STYLE_INPUT, \"Bejelentkezés\", string, \"Belépés\", \"Kilépés\");
PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
printf(\"%s regisztrált a szerverre!\",nev);
}
else
{
format(string, sizeof string, \"Üdv %s! \\nRegisztrálva vagy! \\n\\nÍrd be a jelszavadat!\", nev);
ShowPlayerDialog(playerid, bejelentkezes, DIALOG_STYLE_INPUT, \"Bejelentkezés\", string, \"Belépés\", \"Kilépés\");
}
}
}
if(dialogid == bejelentkezes)
{
if(response)
{
new file[128];
new string[128];
GetPlayerName(playerid, nev, sizeof(nev));
if(strlen(inputtext) == 0)
{
format(string, sizeof string, \"Bejelentkezés \\n\\nÜdv %s! \\nRegisztrálva vagy! \\n\\nÍrd be a jelszavadat!\", nev);
ShowPlayerDialog(playerid, bejelentkezes, DIALOG_STYLE_INPUT, \"Bejelentkezés\", string, \"Belépés\", \"Kilépés\");
return 0;
}
format(file,sizeof(file),\"/Karakterek/%s.ini\",nev);
if(fexist(file))
{
new jelszo = dini_Int(file, \"Jelszo\");
if(udb_hash(inputtext) == jelszo)
{
ResetPlayerMoney(playerid);
JatekosInfo[playerid][AdminSzint] = dini_Int(file,\"AdminSzint\");
JatekosInfo[playerid][Penz] = dini_Int(file,\"Penz\");
JatekosInfo[playerid][skin] = dini_Int(file,\"Skin\");
JatekosInfo[playerid][szint] = dini_Int(file,\"Szint\");
JatekosInfo[playerid][XP] = dini_Int(file,\"XP\");
JatekosInfo[playerid][bankPenz] = dini_Int(file,\"BankPenz\");
JatekosInfo[playerid][bankSzam] = dini_Int(file,\"BankSzam\");
JatekosInfo[playerid][bankPin] = dini_Int(file,\"BankPin\");
JatekosInfo[playerid][Frakcio] = dini_Int(file,\"Frakcio\");
JatekosInfo[playerid][Munka] = dini_Int(file,\"Munka\");
JatekosInfo[playerid][Warn] = dini_Int(file,\"Warn\");
JatekosInfo[playerid][p_x] = dini_Float(file,\"p_x\");
JatekosInfo[playerid][p_y] = dini_Float(file,\"p_y\");
JatekosInfo[playerid][p_z] = dini_Float(file,\"p_z\");
JatekosInfo[playerid][szenya] = dini_Int(file,\"Szenya\");
JatekosInfo[playerid][aviz] = dini_Int(file,\"aviz\");
tMentes[playerid] = SetTimerEx(\"Mentes\",1500,true,\"i\",playerid);
tFrissites[playerid] = SetTimerEx(\"Frissites\",1500,true,\"i\",playerid);
tkellXP[playerid] = SetTimerEx(\"kellXP\",1000,true,\"d\",playerid);
tAutohirdetes[playerid] = SetTimerEx(\"Autohirdetes\", 1200000,true,\"i\",playerid);
TextDrawShowForPlayer(playerid,infovonal[playerid]);
TextDrawShowForPlayer(playerid, Ft[playerid]);
TextDrawShowForPlayer(playerid, Box[playerid]);
new szoveg[128];
format(szoveg,sizeof(szoveg),\"Név: %s | Szint: %d | XP:%d\",nev,JatekosInfo[playerid][szint],JatekosInfo[playerid][XP]);
TextDrawSetString(infovonal[playerid],szoveg);
Spawn(playerid);
}
else
{
SendClientMessage(playerid, HIBA, \"Rossz jelszó!\");
printf(\"%s bejelentkezése sikertelen volt.\", nev);
Kick(playerid);
}
}
}
else
{
Kick(playerid);
}
}
if(dialogid == munka)
{
if(response)
{
if(listitem == 0)
{
if(JatekosInfo[playerid][szint] >= 0)
{
JatekosInfo[playerid][Munka] = KUKAS;
msg(playerid,SARGA,\"Sikeresen elválaltad a szemétszállító munkát.\");
}
else{
msg(playerid,HIBA,\"Ehhez a munkához minimum 0-ás szint szükséges\");
}
}
if(listitem == 1)
{
if(JatekosInfo[playerid][szint] >= 1)
{
JatekosInfo[playerid][Munka] = CSOMAGOS;
msg(playerid,SARGA,\"Sikeresen elválaltad a csomagszállító munkát\");
}
else{
msg(playerid,HIBA,\"Ehhez a munkához minimum 1-es szint szükséges\");
}
}
}
}
if(dialogid == pia)
{
if(response)
{
if(listitem == 0)
{
JatekosInfo[playerid][Penz] -= 170;
msg(playerid,ZOLD,\"Ittál egy doboz sört\");
SetPlayerDrunkLevel(playerid,1);
ApplyAnimation(playerid,\"PED\",\"WALK_DRUNK\",4.1,1,1 ,1,1,1,1);
}
if(listitem == 1)
{
ApplyAnimation(playerid,\"PED\",\"WALK_DRUNK\",4.1,1,1 ,1,1,1,1);
JatekosInfo[playerid][Penz] -= 250;
msg(playerid,ZOLD,\"Ittál egy üveg bort\");
SetPlayerDrunkLevel(playerid,2);
}
if(listitem == 2)
{
ApplyAnimation(playerid,\"PED\",\"WALK_DRUNK\",4.1,1,1 ,1,1,1,1);
JatekosInfo[playerid][Penz] -= 500;
msg(playerid,ZOLD,\"Ittál egy kis pálinkát\");
SetPlayerDrunkLevel(playerid,3);
}
if(listitem == 3)
{
ApplyAnimation(playerid,\"PED\",\"WALK_DRUNK\",4.1,1,1 ,1,1,1,1);
JatekosInfo[playerid][Penz] -= 1500;
msg(playerid,ZOLD,\"Ittál egy üveg Jack Daniel\'s-t\");
SetPlayerDrunkLevel(playerid,4);
}
if(listitem == 4)
{
ApplyAnimation(playerid,\"PED\",\"WALK_DRUNK\",4.1,1,1 ,1,1,1,1);
JatekosInfo[playerid][Penz] -= 2000;
msg(playerid,ZOLD,\"Ittál egy üveg Jägermeister\");
SetPlayerDrunkLevel(playerid,5);
}
}
}
if(dialogid == vesz)
{
if(response)
{
if(listitem == 0)
{
if(JatekosInfo[playerid][szenya] <= 5)
{
msg(playerid,ZOLD,\"Vettél egy szendvicset\");
JatekosInfo[playerid][szenya] ++;
JatekosInfo[playerid][Penz] -= 50;
}
else msg(playerid,HIBA,\"Maximum 5 Szendvicset tarthatsz magadnál\");
}
if(listitem == 1)
{
if(JatekosInfo[playerid][aviz] <= 5)
{
msg(playerid,ZOLD,\"Vettél egy ásványvizet\");
JatekosInfo[playerid][aviz] ++;
JatekosInfo[playerid][Penz] -= 25;
}
else msg(playerid,HIBA,\"Maximum 5 Ásványvizet tarthatsz magadnál\");
}
}
}
if(dialogid == szamla)
{
if(response)
{
new file[256];
if(Egyezik(inputtext, dini_Get(file, \"BankPin\")))
{
SendClientMessage(playerid, ZOLD, \"A beírt kód helyes!\");
ShowPlayerDialog(playerid, szamlakezelo, DIALOG_STYLE_LIST, \"Bank\", \"Letét\\nFelvétel\\nEgyenleg\", \"Rendben\", \"Mégsem\");
}
else
{
SendClientMessage(playerid, HIBA, \"A beírt kód helytelen!\");
ShowPlayerDialog(playerid, szamla, DIALOG_STYLE_INPUT, \"Bank\", \"Kérem adja meg a PIN kódot!\", \"Rendben\", \"Mégsem\");
}
}
}
if(dialogid == szamlakezelo)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, 9, DIALOG_STYLE_INPUT, \"Bank\", \"Kérem adja meg a lekötni kívánt összeget!\", \"Rendben\", \"Mégsem\");
}
if(listitem == 1)
{
ShowPlayerDialog(playerid, 10, DIALOG_STYLE_INPUT, \"Bank\", \"Kérem adja meg a felvenni kívánt összeget!\", \"Rendben\", \"Mégsem\");
}
if(listitem == 2)
{
new S[128];
format(S, sizeof(S), \"* Egyenleg: %d Ft | Számlaszám: %d *\", JatekosInfo[playerid][bankPenz], JatekosInfo[playerid][bankSzam]);
SendClientMessage(playerid, NARANCS, S);
ShowPlayerDialog(playerid, szamlakezelo, DIALOG_STYLE_LIST, \"Bank\", \"Letét\\nFelvétel\\nEgyenleg\", \"Rendben\", \"Mégsem\");
}
}
}
if(dialogid == bszberak)
{
if(!response) return 1;
if(JatekosInfo[playerid][Penz] >= strval(inputtext))
{
new S[128];
if(strval(inputtext) == 0) return SendClientMessage(playerid, HIBA, \"* Minimum: 1Ft\");
JatekosInfo[playerid][Penz] -= strval(inputtext);
JatekosInfo[playerid][bankPenz] += strval(inputtext);
format(S, sizeof(S), \"Sikeres letét! * Betéve: %d Ft | Egyenleg: %d Ft *\", strval(inputtext), JatekosInfo[playerid][bankPenz]);
SendClientMessage(playerid, ZOLD, S);
cmd_me(playerid, \"betesz némi pénzt.\");
}
else
{
SendClientMessage(playerid, HIBA, \"Sajnos, nincs ennyi pénzed!\");
ShowPlayerDialog(playerid, szamlakezelo, DIALOG_STYLE_LIST, \"Bank\", \"Letét\\nFelvétel\\nEgyenleg\", \"Rendben\", \"Mégsem\");
}
}
if(dialogid == bszkivesz)
{
if(!response) return 1;
if(JatekosInfo[playerid][bankPenz] >= strval(inputtext))
{
new S[128];
JatekosInfo[playerid][Penz] += strval(inputtext);
JatekosInfo[playerid][bankPenz] -= strval(inputtext);
format(S, sizeof(S), \"Sikeres felvétel! * Felvéve: %d Ft | Egyenleg: %d Ft *\", strval(inputtext), JatekosInfo[playerid][bankPenz]);
SendClientMessage(playerid, ZOLD, S);
cmd_me(playerid, \"felvesz némi pénzt.\");
}
else
{
SendClientMessage(playerid, HIBA, \"Sajnos nincs ennyi pénz a számlán!\");
ShowPlayerDialog(playerid, szamlakezelo, DIALOG_STYLE_LIST, \"Bank\", \"Letét\\nFelvétel\\nEgyenleg\", \"Rendben\", \"Mégsem\");
}
}
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
public Mentes(playerid)
{
new file[128];
GetPlayerName(playerid,nev,sizeof(nev));
format(file,sizeof(file),\"/Karakterek/%s.ini\",nev);<br