Ez a szekció lehetővé teszi a felhasználó által írt összes hozzászólás megtekintését. Vedd figyelembe, hogy csak azokba a fórumokba írt hozzászólásokat látod, amelyekhez hozzáférésed van.
Üzenetek - Amf
Oldalak: 1 ... 93 94 [95] 96 97
1411
« Dátum: 2012. április 28. - 23:09:28 »
1412
« Dátum: 2012. április 28. - 16:35:18 »
Üdv! A hamarosan nyíló Börtön Role Play szerveremre keresek: scripter/mapper-t! Script: Munkák, Bandák... pár parancs! Map: Ebédlõ, Kórház... meg ami közben jön! Pénzt sajnos nem tudok, csak a szerveren admint tudok biztosítani!
1413
« Dátum: 2012. április 26. - 18:49:50 »
Helló! Hoztam nektek egy alap TDM módot! Két csapat van: USA, Németek. Van pár bug Készítõ: Én (Amf) http://www.solidfiles.com/d/f2abb1e293/Remélem tetszik! /* ==================================================================== */ /* ==================================================================== */ /* ==================== [ Battle Field Game Mode ] ==================== */ /* ==================================================================== */ /* ==================================================================== */ /* ========================= [ Tulajdonos ] =========================== */ /* ==================================================================== */ /* ==================================================================== */ /* ========================== [ The Amf ] ============================= */ /* ==================================================================== */ /* ==================================================================== */ #include < a_samp > #include < dini > #define PIROS 0xf50808AA #define KÉK 0x2708f5AA #define VILÁGOSKÉK 0x08e1f5AA #define ZÖLD 0x08f514AA #define SÁRGA 0xf5ed08AA #define LILA 0xf508e9AA new gTeam[MAX_PLAYERS]; #define USA 0 #define NEMETEK 1 #pragma unused PRIVATE_Last_Money #define SERVER_NAME \"D-Day 1.0\" #define INFINITY (Float:0x7F800000) #define DINI_REGISTER 1 #define DINI_LOGIN 2 #define NORMAL_REGISTER 3 #define NORMAL_LOGIN 4 new FegyoElet1, FegyoElet2; new bool:afk[MAX_PLAYERS]; new AfkTimer[MAX_PLAYERS]; main() { } forward Encrypt(string[]); forward SaveAccounts(); forward ini_GetKey( line[] ); forward ini_GetValue( line[] ); forward AwayFromKeyboard(playerid); forward DropPlayerWeapons(playerid); forward GetWeaponModel(weaponid); new pLogged[MAX_PLAYERS]; enum td { Text:TDSpeedClock[15] } new TextDraws[td]; new Text:TextDrawsd[MAX_PLAYERS][4]; new DeActiveSpeedometer[MAX_PLAYERS]; new bomb; new bomb1; new bomb2; new bomb3; new bomb4; new bomb0; new bomb01; new bomb02; new bomb03; new bomb04; new Float:X,Float:Y,Float:Z; enum pInfo { pPassword[64], pIP[32], pRegistered, pAdmin, pTeam, pLevel, pMoney, pSkin, pBann, pHalalok, }; new PlayerInfo[MAX_PLAYERS][pInfo]; public OnGameModeInit() { CreateObject(16773, -3263.25, -2885.07, -0.01, -90.00, 0.00, 22.00); CreateObject(16773, -3261.79, -2888.67, 2.39, 0.02, 0.00, 22.00); CreateObject(16773, -3264.73, -2881.42, 2.39, 0.00, 0.00, 22.00); CreateObject(16773, -3263.22, -2885.04, 6.26, -90.00, 0.00, 22.00); CreateObject(16773, -3256.59, -2882.32, -0.97, 0.00, 90.00, 112.00); CreateObject(1508, -3272.01, -2890.45, 0.68, -16.00, 90.00, -68.00); CreateObject(1508, -3270.70, -2885.64, 3.18, -90.00, 1.00, 23.00); CreateObject(2048, -3269.43, -2889.32, 5.80, 0.00, 0.00, -68.00); CreateObject(1683, -3386.44, -3022.32, 28.00, 0.00, 62.00, 54.00); CreateObject(2780, -3385.78, -3023.56, 25.94, 0.00, 0.00, 0.00); CreateObject(2780, -3396.04, -3020.95, 28.60, 0.00, 0.00, 0.00); CreateObject(2780, -3388.74, -3027.15, 35.73, 0.00, 0.00, 0.00); CreateObject(2780, -3389.00, -3028.57, 38.67, 0.00, 0.00, 0.00); CreateObject(2357, -3259.68, -2880.18, 0.26, 0.00, 0.00, 22.00); CreateObject(2357, -3257.44, -2886.11, 0.26, 0.00, 0.00, 22.00); CreateObject(2357, -3263.63, -2881.78, 0.26, 0.00, 0.00, 22.00); CreateObject(2357, -3261.33, -2887.69, 0.26, 0.00, 0.00, 22.00); CreateObject(2357, -3257.28, -2882.59, 0.26, 0.00, 0.00, 112.00); CreateObject(1299, -3345.41, -2926.12, 2.28, 0.00, 0.00, 0.00); CreateObject(1412, -3342.54, -2915.22, 1.72, 0.00, 0.00, -56.00); CreateObject(2780, -3384.20, -2934.71, 10.49, 0.00, 0.00, 0.00); CreateObject(1980, -3474.37, -3003.36, 20.00, -163.00, 90.00, 95.00); CreateObject(13702,-3395.126,-2900.312,-17.834,8.594,20.626,-38.047); CreateObject(13872,-3399.294,-2951.235,-5.241,6.875,-12.032,-69.451); CreateObject(13105,-3471.194,-3014.627,-4.231,0.0,0.0,25.156); CreateObject(13105,-3524.251,-2895.698,3.685,0.0,0.0,-12.032); CreateObject(18362,-3425.676,-3002.704,4.652,-49.847,85.084,-129.370); CreateObject(13370,-3454.539,-3042.775,18.357,12.032,-12.032,32.813); CreateObject(13872,-3377.652,-3104.000,4.546,17.189,0.859,-11.250); CreateObject(13872,-3482.381,-3106.223,9.184,17.189,-9.454,-45.000); CreateObject(13872,-3550.058,-3060.227,2.516,29.221,-6.875,-75.390); CreateObject(13105,-3545.988,-2981.035,9.279,0.0,2.578,122.968); CreateObject(16260,-3345.686,-2915.025,-5.369,15.470,-6.016,123.827); CreateObject(16093,-3380.851,-2934.432,10.355,0.0,0.0,93.515); CreateObject(13105,-3586.300,-3043.445,-5.252,4.297,-2.578,-40.393); CreateObject(16093,-3405.760,-3021.209,29.619,0.0,0.0,159.142); CreateObject(16061,-3486.691,-3104.027,21.285,0.0,0.0,-106.407); CreateObject(762,-3415.923,-2959.788,10.294,0.0,0.0,0.0); CreateObject(762,-3359.873,-3052.423,20.537,0.0,0.0,0.0); CreateObject(827,-3384.114,-2998.345,16.185,0.0,0.0,33.750); CreateObject(826,-3380.000,-3035.784,16.346,0.0,0.0,0.0); CreateObject(855,-3423.178,-2895.959,4.276,0.0,0.0,-56.250); CreateObject(16390,-3478.845,-2900.037,19.093,-6.875,6.016,-45.000); CreateObject(14469,-3455.149,-2973.735,20.231,0.0,15.470,-33.750); CreateObject(9153,-3462.677,-2960.742,22.490,0.0,0.0,0.0); CreateObject(635,-3403.261,-3019.212,32.114,0.0,-87.662,-110.781); CreateObject(635,-3405.922,-3018.151,31.969,0.0,-88.522,-109.844); CreateObject(703,-3544.097,-3075.667,16.089,0.0,0.0,0.0); CreateObject(691,-3553.725,-3047.815,21.580,0.0,0.0,0.0); CreateObject(706,-3532.769,-2993.153,0.098,0.0,0.0,0.0); CreateObject(2064,-3384.186,-2938.601,11.117,0.0,0.0,45.000); CreateObject(2064,-3400.012,-2860.800,30.734,2.578,-0.859,56.250); CreateObject(2064,-3531.334,-2940.851,27.952,0.0,0.0,101.250); CreateObject(2060,-3530.353,-2940.350,28.238,0.0,0.0,-56.250); CreateObject(2060,-3530.188,-2942.080,27.400,0.0,0.0,-112.500); CreateObject(2060,-3530.052,-2941.175,27.438,0.0,0.0,-78.750); CreateObject(2060,-3530.338,-2940.289,27.707,0.0,0.0,-45.000); CreateObject(2060,-3529.970,-2941.162,27.678,0.0,0.0,-78.750); CreateObject(2060,-3530.358,-2940.294,27.998,0.0,0.0,-45.000); CreateObject(2060,-3530.223,-2942.102,27.640,0.0,0.0,-112.500); CreateObject(2060,-3530.397,-2940.327,27.442,0.0,0.0,-45.000); CreateObject(2060,-3530.669,-2942.992,27.472,0.0,0.0,-135.000); CreateObject(2060,-3530.305,-2942.022,27.831,0.0,0.0,-112.500); CreateObject(2060,-3530.029,-2941.098,27.944,0.0,0.0,-78.750); CreateObject(2060,-3399.018,-2860.883,30.313,0.0,0.0,56.250); CreateObject(2060,-3399.075,-2860.054,30.961,0.0,0.0,-90.000); CreateObject(2060,-3399.144,-2858.988,30.329,0.0,0.0,-56.250); CreateObject(2060,-3399.714,-2861.604,30.602,0.0,0.0,40.780); CreateObject(2060,-3399.218,-2860.970,30.503,0.0,0.0,67.500); CreateObject(2060,-3398.841,-2859.981,30.530,0.0,0.0,-90.000); CreateObject(2060,-3399.220,-2859.065,30.644,0.0,0.0,-67.500); CreateObject(2060,-3399.576,-2861.635,30.362,0.0,0.0,-146.250); CreateObject(2060,-3398.897,-2860.038,30.721,0.0,0.0,-90.000); CreateObject(2060,-3434.181,-2928.554,19.122,0.0,0.0,-101.250); CreateObject(2060,-3434.794,-2926.744,19.285,0.0,0.0,-45.000); CreateObject(2060,-3434.394,-2927.485,19.239,0.0,0.0,-67.500); CreateObject(2060,-3434.551,-2926.801,19.450,0.0,0.0,-45.000); CreateObject(2060,-3434.059,-2928.533,19.338,0.0,0.0,-101.250); CreateObject(2060,-3434.494,-2927.556,19.024,0.0,0.0,-67.500); CreateObject(2060,-3434.291,-2928.601,18.882,0.0,0.0,-101.250); CreateObject(2060,-3435.045,-2926.704,19.170,0.0,0.0,146.250); CreateObject(2064,-3435.375,-2931.148,19.336,0.0,0.0,78.750); CreateObject(2060,-3379.154,-2934.200,10.544,0.0,0.0,-88.281); CreateObject(2060,-3403.030,-3020.860,29.834,0.0,0.0,-67.500); CreateObject(16157,-3335.814,-2885.042,-20.604,8.594,-4.297,-121.799); CreateObject(17071,-3380.052,-2947.769,10.393,0.0,0.0,18.985); CreateObject(1410,-3386.889,-2929.374,9.205,0.0,18.908,-2.501); CreateObject(1410,-3387.776,-2933.252,9.520,0.0,-10.313,-180.000); CreateObject(1410,-3390.479,-2927.403,9.780,0.0,0.0,-90.000); CreateObject(1410,-3392.811,-2930.030,10.080,0.0,-9.454,-171.328); CreateObject(1410,-3392.457,-2933.354,10.122,0.0,-3.438,-177.344); CreateObject(1472,-3385.925,-2932.206,10.023,0.0,0.0,-90.000); CreateObject(1472,-3386.881,-2932.160,9.224,0.0,0.0,-90.000); CreateObject(1411,-3340.952,-2928.667,0.475,0.0,0.0,112.500); CreateObject(1411,-3336.669,-2945.710,1.148,0.0,0.0,85.625); CreateObject(2060,-3434.659,-2929.495,19.357,0.0,0.0,-123.750); CreateObject(2060,-3434.683,-2929.619,18.876,0.0,0.0,-125.314); CreateObject(2060,-3434.570,-2929.573,19.092,0.0,0.0,-125.314); CreateObject(2985,-3435.236,-2929.407,18.826,0.0,12.032,0.0); CreateObject(2060,-3434.097,-2927.730,19.480,0.0,0.0,-78.750); CreateObject(2060,-3434.047,-2928.477,19.603,0.0,0.0,-101.250); CreateObject(2985,-3379.248,-2933.059,10.634,0.0,0.0,9.454); CreateObject(2060,-3379.159,-2932.974,10.569,0.0,0.0,-88.281); CreateObject(16061,-3612.987,-3012.849,6.796,9.454,0.0,-150.470); CreateObject(18270,-3464.284,-2973.173,38.868,0.0,0.0,-9.840); CreateObject(13105,-3423.658,-3135.367,-6.931,4.297,3.438,-141.643); CreateObject(18225,-3371.290,-3080.708,10.503,0.0,3.438,-252.734); CreateObject(18269,-3379.405,-3009.847,31.137,0.0,0.0,-11.250); CreateObject(18268,-3523.808,-3077.552,43.223,0.0,0.0,192.514); CreateObject(18271,-3471.976,-2877.657,34.991,0.0,0.0,56.250); CreateObject(789,-3523.504,-2913.722,36.384,0.0,0.0,0.0); CreateObject(3279,-3487.226,-2979.525,21.976,0.0,0.0,101.250); CreateObject(3279,-3505.517,-2953.513,21.976,0.0,0.0,-78.750); CreateObject(3279,-3548.939,-2969.805,28.679,0.0,-6.016,-348.750); CreateObject(5184,-3498.095,-3013.726,40.784,0.0,0.0,101.250); CreateObject(3267,-3500.621,-2951.442,22.734,0.0,0.0,-90.000); CreateObject(13367,-3484.847,-3009.633,33.895,0.0,0.0,11.250); CreateObject(17010,-3532.364,-2942.958,27.367,0.0,0.0,-78.750); CreateObject(986,-3486.979,-2957.016,23.611,0.0,0.0,-78.750); CreateObject(986,-3485.369,-2964.892,23.611,0.0,0.0,-78.750); CreateObject(986,-3483.850,-2972.808,23.611,0.0,0.0,-78.750); CreateObject(986,-3482.280,-2980.667,23.611,0.0,0.0,-78.750); CreateObject(986,-3480.672,-2988.507,23.611,0.0,0.0,-78.750); CreateObject(986,-3502.181,-2948.346,23.611,0.0,0.0,11.250); CreateObject(986,-3510.103,-2949.976,23.611,0.0,0.0,11.250); CreateObject(986,-3514.838,-2950.911,23.611,0.0,0.0,-168.750); CreateObject(986,-3517.827,-2955.332,23.584,0.0,0.0,-78.750); CreateObject(986,-3516.268,-2963.171,23.607,0.0,0.0,-78.750); CreateObject(986,-3514.682,-2970.986,23.599,0.0,0.0,-78.750); CreateObject(986,-3511.984,-2983.356,23.453,0.0,0.0,-78.750); CreateObject(986,-3510.445,-2991.227,23.475,0.0,0.0,-78.750); CreateObject(986,-3508.852,-2999.116,23.461,0.0,0.0,-78.750); CreateObject(986,-3505.846,-3006.343,23.611,0.0,0.0,-56.250); CreateObject(986,-3501.365,-3013.113,23.635,0.0,0.0,-56.250); CreateObject(986,-3479.141,-2996.439,23.615,0.0,0.0,-78.750); CreateObject(986,-3475.904,-3011.868,23.611,0.0,0.0,-78.750); CreateObject(18234,-3482.380,-2993.399,21.899,0.0,0.0,11.250); CreateObject(16359,-3487.052,-2961.946,21.900,0.0,0.0,11.250); CreateObject(11015,-3501.806,-2993.355,23.865,0.0,0.0,101.250); CreateObject(18234,-3512.891,-2962.648,21.896,0.0,0.0,-168.750); CreateObject(3788,-3506.656,-2983.506,22.420,0.0,0.0,0.0); CreateObject(3794,-3503.462,-2982.204,22.500,0.0,0.0,-101.250); CreateObject(3795,-3506.251,-2981.146,22.242,0.0,0.0,-45.000); CreateObject(2985,-3503.583,-2953.271,38.086,0.0,0.0,11.250); CreateObject(2985,-3485.198,-2978.329,38.086,0.0,0.0,33.750); CreateObject(2985,-3545.164,-2968.881,36.389,0.0,0.0,11.250); CreateObject(3267,-3487.833,-2979.673,37.615,0.0,0.0,-45.000); CreateObject(623,-3461.787,-2989.565,29.415,0.0,0.0,22.500); CreateObject(624,-3480.307,-2956.960,22.019,0.0,0.0,0.0); CreateObject(624,-3505.755,-3014.653,27.861,0.0,0.0,45.000); CreateObject(621,-3515.668,-2948.645,22.019,0.0,0.0,0.0); CreateObject(7916,-3524.022,-3040.712,26.716,0.0,0.0,-88.281); CreateObject(17030,-3459.715,-3132.406,10.302,0.0,18.048,-141.953); CreateObject(17030,-3513.056,-3050.516,24.441,0.0,18.048,-217.265); CreateObject(2985,-3530.914,-2942.049,27.158,0.0,0.0,11.250); CreateObject(635,-3377.986,-2933.588,12.757,0.0,-93.679,-174.766); CreateObject(762,-3373.298,-3016.321,15.102,0.0,0.0,0.0); CreateObject(762,-3505.699,-2930.021,24.798,0.0,0.0,0.0); CreateObject(762,-3601.828,-3118.439,6.329,0.0,0.0,0.0); CreateObject(623,-3496.496,-2914.521,23.528,0.0,0.0,-135.000); CreateObject(664,-3552.022,-2883.667,21.586,0.0,0.0,0.0); CreateObject(714,-3527.894,-2849.506,9.899,0.0,0.0,0.0); CreateObject(763,-3589.921,-2946.785,21.344,0.0,0.0,0.0); CreateObject(18273,-3575.158,-2881.018,27.068,0.0,0.0,-67.500); CreateObject(1410,-3394.637,-2935.750,10.172,0.0,-3.438,-87.344); CreateObject(1410,-3397.165,-2930.532,10.954,0.0,-9.454,-171.328); CreateObject(1410,-3399.539,-2928.480,11.190,0.0,2.578,-87.344); CreateObject(3286,-3509.844,-2983.927,26.640,0.0,0.0,-78.750); CreateObject(2600,-3503.634,-2952.145,38.827,0.0,0.0,-259.532); CreateObject(16663,-3496.366,-3009.656,26.404,0.0,0.0,-213.750); CreateObject(17951,-3499.199,-2983.769,23.403,0.0,0.0,-78.750); CreateObject(1967,-3493.103,-2994.029,23.399,0.0,0.0,-168.750); CreateObject(3786,-3495.294,-3008.998,24.107,0.0,91.100,11.250); CreateObject(3461,-3495.298,-3008.990,23.896,179.622,-0.859,0.0); CreateObject(3387,-3490.504,-3008.024,22.763,0.0,0.0,11.250); CreateObject(17037,-3502.097,-3006.199,24.392,0.0,0.0,-168.750); CreateObject(3393,-3502.585,-3003.523,21.899,0.0,0.0,-258.750); CreateObject(3395,-3504.568,-3006.311,21.899,0.0,0.0,-168.750); CreateObject(3396,-3501.876,-3008.311,21.899,0.0,0.0,-78.750); CreateObject(3794,-3489.327,-3012.312,22.500,0.0,0.0,45.000); CreateObject(3789,-3491.184,-3015.217,22.244,0.0,0.0,-11.250); CreateObject(1671,-3501.833,-3006.967,22.361,0.0,0.0,0.0); CreateObject(1671,-3503.001,-3004.707,22.361,0.0,0.0,-168.750); CreateObject(1671,-3503.827,-3006.476,22.394,0.0,0.0,-33.750); CreateObject(744,-3395.511,-2926.941,6.472,0.0,0.0,0.0); CreateObject(744,-3399.946,-3012.753,16.484,0.0,0.0,0.0); CreateObject(800,-3399.804,-3011.073,21.168,0.0,0.0,0.0); CreateObject(806,-3395.999,-3012.381,23.030,0.0,0.0,0.0); CreateObject(808,-3403.413,-2965.629,10.644,0.0,0.0,0.0); CreateObject(744,-3381.313,-2928.365,5.715,0.0,0.0,0.0); CreateObject(815,-3381.541,-2923.919,6.309,0.0,0.0,0.0); CreateObject(826,-3574.556,-3041.776,16.728,0.0,0.0,0.0); CreateObject(1411,-3336.534,-2938.243,0.637,0.0,8.594,106.252); CreateObject(1217,-3509.469,-2981.587,22.322,0.0,0.0,0.0); CreateObject(1410,-3399.296,-2935.873,10.988,0.0,2.578,-87.344); CreateObject(1410,-3392.881,-2939.830,9.630,0.0,6.016,-53.594); CreateObject(879,-3397.811,-2922.370,10.345,-6.016,-0.859,0.0); CreateObject(617,-3428.718,-2977.244,9.894,0.0,0.0,0.0); CreateObject(16061,-3388.309,-3149.775,7.812,0.0,0.0,-67.500); CreateObject(18268,-3416.515,-3136.940,33.754,0.0,0.0,312.035); CreateObject(16061,-3580.965,-3079.627,11.322,0.0,0.0,22.500); CreateObject(16061,-3578.258,-2990.122,19.381,2.578,0.0,22.500); CreateObject(16061,-3486.717,-3157.856,3.230,0.0,0.0,-112.500); CreateObject(616,-3546.772,-3109.643,11.680,0.0,0.0,-33.750); CreateObject(616,-3615.985,-3049.860,3.146,0.0,0.0,-33.750); CreateObject(617,-3594.491,-3083.990,9.744,0.0,0.0,0.0); CreateObject(620,-3608.855,-3075.291,4.509,0.0,0.0,0.0); CreateObject(622,-3592.285,-3103.852,9.621,0.0,0.0,112.500); CreateObject(622,-3511.591,-3113.732,18.827,0.0,0.0,180.000); CreateObject(691,-3584.653,-3113.274,10.798,11.173,-24.064,0.0); CreateObject(703,-3563.363,-3127.696,11.901,0.0,0.0,0.0); CreateObject(706,-3580.853,-3133.744,8.786,0.0,0.0,0.0); CreateObject(708,-3445.428,-3180.380,6.029,0.0,0.0,0.0); CreateObject(713,-3483.066,-3084.514,34.197,0.0,0.0,0.0); CreateObject(715,-3520.258,-3107.219,26.234,0.0,0.0,0.0); CreateObject(727,-3548.819,-3131.623,12.797,0.0,0.0,0.0); CreateObject(726,-3562.486,-3152.784,7.832,0.0,0.0,0.0); CreateObject(731,-3533.074,-3123.075,2.784,0.0,0.0,0.0); CreateObject(736,-3465.045,-3186.953,14.381,0.0,0.0,0.0); CreateObject(763,-3412.904,-3170.043,6.356,0.0,0.0,0.0); CreateObject(768,-3430.795,-3155.113,10.317,0.0,0.0,0.0); CreateObject(774,-3422.726,-3107.120,28.241,0.0,0.0,33.750); CreateObject(789,-3322.330,-3132.064,17.572,0.0,0.0,0.0); CreateObject(624,-3358.666,-3145.833,5.549,0.0,0.0,0.0); CreateObject(623,-3393.771,-3169.790,5.505,0.0,0.0,-168.750); CreateObject(624,-3496.939,-2902.530,21.046,0.0,0.0,0.0); CreateObject(624,-3510.061,-2933.916,19.661,0.0,0.0,0.0); CreateObject(620,-3376.997,-2995.194,8.748,0.0,0.0,0.0); CreateObject(622,-3502.542,-2860.672,15.538,0.0,0.0,-22.500); CreateObject(691,-3592.087,-2992.966,16.799,0.0,-12.032,0.0); CreateObject(762,-3598.774,-3061.811,14.692,0.0,0.0,0.0); CreateObject(813,-3589.228,-3093.150,13.740,0.0,0.0,0.0); CreateObject(823,-3622.813,-3010.226,7.485,0.0,0.0,0.0); CreateObject(615,-3630.456,-3005.322,-0.087,0.0,0.0,0.0); CreateObject(17299,-3618.039,-3042.275,-6.054,3.438,-30.080,-296.875); CreateObject(3275,-3344.910,-2931.906,0.903,61.020,-47.269,-18.435); SetTimer(\"SaveAccounts\",1,1800000); FegyoElet1 = CreatePickup( 1310, 23, -3502.2166, -2982.7681, 22.9012); FegyoElet2 = CreatePickup( 1310, 23, -3343.4966,-2925.4023,2.5383); SetGameModeText( SERVER_NAME ); SendRconCommand( \"mapname Omaha Beach\" ); SendRconCommand( \"hostname [HUN] BattleField By.: AmF | @ Sunwell\" ); UsePlayerPedAnims(); ShowPlayerMarkers(false); ShowNameTags(false); TextDraws[TDSpeedClock][0] = TextDrawCreate(496.000000,400.000000,\"~g~20\"); TextDraws[TDSpeedClock][1] = TextDrawCreate(487.000000,388.000000,\"~g~40\"); TextDraws[TDSpeedClock][2] = TextDrawCreate(483.000000,375.000000,\"~g~60\"); TextDraws[TDSpeedClock][3] = TextDrawCreate(488.000000,362.000000,\"~g~80\"); TextDraws[TDSpeedClock][4] = TextDrawCreate(491.000000,349.000000,\"~g~100\"); TextDraws[TDSpeedClock][5] = TextDrawCreate(508.000000,336.500000,\"~g~120\"); TextDraws[TDSpeedClock][6] = TextDrawCreate(536.000000,332.000000,\"~g~140\"); TextDraws[TDSpeedClock][7] = TextDrawCreate(567.000000,337.000000,\"~g~160\"); TextDraws[TDSpeedClock][8] = TextDrawCreate(584.000000,348.000000,\"~g~180\"); TextDraws[TDSpeedClock][9] = TextDrawCreate(595.000000,360.000000,\"~g~200\"); TextDraws[TDSpeedClock][10] = TextDrawCreate(603.000000,374.000000,\"~g~220\"); TextDraws[TDSpeedClock][11] = TextDrawCreate(594.000000,386.000000,\"~g~240\"); TextDraws[TDSpeedClock][12] = TextDrawCreate(585.000000,399.000000,\"~g~260\"); TextDraws[TDSpeedClock][13] = TextDrawCreate(534.000000,396.000000,\"~r~/ \\\\\"); TextDraws[TDSpeedClock][14] = TextDrawCreate(548.000000,401.000000,\".\"); TextDrawLetterSize(TextDraws[TDSpeedClock][13], 1.059999, 2.100000); TextDrawLetterSize(TextDraws[TDSpeedClock][14], 0.73, -2.60); for(new i; i < 15; i++) { TextDrawSetShadow(TextDraws[TDSpeedClock], 1); TextDrawSetOutline(TextDraws[TDSpeedClock], 0); } return 1; } stock PlayerName(playerid) { new name[24]; GetPlayerName(playerid, name, 24); return name; } stock ShowRegistration(playerid) { new file[128]; format(file, sizeof(file), \"/GAMER/%s.ini\", PlayerName(playerid)); #if defined DINI if(dini_Exists(file)) { ShowPlayerDialog(playerid, DINI_LOGIN, DIALOG_STYLE_INPUT, \"Belépés\",\"Kérlek, írd be a jelszót!\",\"Belépés\",\"Kilépés\"); return 1; } else if(!dini_Exists(file)) { ShowPlayerDialog(playerid, DINI_REGISTER, DIALOG_STYLE_INPUT, \"Regisztráció\",\"Kérlek,írd be a kívánt jelszót!\",\"Regisztráció\",\"Kilépés\"); } #else if(fexist(file)) { ShowPlayerDialog(playerid, NORMAL_LOGIN, DIALOG_STYLE_INPUT, \"Belépés\",\"Kérlek, írd be a jelszót!\",\"Belépés\",\"Kilépés\"); } else if(!fexist(file)) { ShowPlayerDialog(playerid, NORMAL_REGISTER, DIALOG_STYLE_INPUT, \"Regisztráció\",\"Kérlek,írd be a kívánt jelszót!\",\"Regisztráció\",\"Kilépés\"); } #endif return 1; } stock udb_hash(buf[]) { new length=strlen(buf); new s1 = 1; new s2 = 0; new n; for (n=0; n<length; n++) { s1 = (s1 + buf[n]) % 65521; s2 = (s2 + s1) % 65521; } return (s2 << 16) + s1; } public OnPlayerPickUpPickup ( playerid, pickupid ) { if ( pickupid == FegyoElet1 ) { SendClientMessage ( playerid, KÉK, \"Felvettél egy csomagot!\" ); SetPlayerHealth(playerid, 100); GivePlayerWeapon(playerid, 16, 50); GivePlayerWeapon(playerid, 29, 200); GivePlayerWeapon(playerid, 22, 200); } if ( pickupid == FegyoElet2 ) { SendClientMessage ( playerid, KÉK, \"Felvettél egy csomagot!\" ); SetPlayerHealth(playerid, 100); GivePlayerWeapon(playerid, 23, 200); GivePlayerWeapon(playerid, 31, 200); GivePlayerWeapon(playerid, 16, 50); } return 1; } public OnPlayerClickPlayer(playerid, clickedplayerid, source) { if(IsPlayerAdmin(playerid)) { TogglePlayerSpectating(playerid, 1); PlayerSpectatePlayer(playerid, clickedplayerid); SetPlayerInterior(playerid,GetPlayerInterior(clickedplayerid)); } else { SendClientMessage(playerid, PIROS, \"Ezt, nem használhatod!\"); if ((IsPlayerAdmin(playerid) == IsPlayerAdmin(clickedplayerid))) SendClientMessage(playerid, ZÖLD ,\"Kiléptél a speec-bõl!\"); TogglePlayerSpectating(playerid, 0); SetCameraBehindPlayer(playerid); } return 1; } public OnPlayerRequestClass(playerid, classid) { switch(classid) { case 0: { gTeam[playerid] = USA; GameTextForPlayer(playerid,\"~r~~h~ United States of America\",2500,6); SetPlayerPos(playerid, -3260.4541, -2883.8921, 0.4706); SetPlayerCameraPos(playerid,-3260.4541, -2883.8921, 0.4706); SetPlayerCameraLookAt(playerid, -3260.4541, -2883.8921, 0.4706); SetPlayerFacingAngle(playerid, 161.2592); } case 1: { gTeam[playerid] = NEMETEK; GameTextForPlayer(playerid,\"~b~~h~ Deautscland\",2500,6); SetPlayerPos(playerid,-3550.7070,-2970.0442,45.6585); SetPlayerCameraPos(playerid,-3550.7070,-2970.0442,45.6585); SetPlayerCameraLookAt(playerid, -3550.7070,-2970.0442,45.6585); SetPlayerFacingAngle(playerid, 279.4105); } } return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if ( newkeys & KEY_UP || newkeys & KEY_DOWN || newkeys & KEY_RIGHT || newkeys & KEY_LEFT) { KillTimer(AfkTimer[playerid]); AfkTimer[playerid] = SetTimerEx(\"AwayFromKeyboard\", 5 * ( 60 * 1000 ), 0, \"i\", playerid); } return 1; } stock Kirug(playerid, reason[]) { new stR[200]; new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, sizeof(pName)); format(stR, sizeof(stR), \" %s ki lett rúgva. Ok: %s\", pName, reason); SendClientMessageToAll(-1,stR); Kick(playerid); return stR; } public AwayFromKeyboard(playerid) { if(afk[playerid] == false) { SendClientMessage(playerid, PIROS, \"Túl sokáig voltál AFK. Máskor /afk!\"); Kirug(playerid,\"Away From Keyboard\"); } return 1; } public OnPlayerConnect(playerid) { new string[128]; format(string,sizeof(string),\"<<< %s belépett a szerverre >>>\",PlayerName(playerid)); SendClientMessageToAll(VILÁGOSKÉK, string); ShowRegistration(playerid); AddPlayerClass(285,-3259.6821, -2883.4409, 0.1600,161.2592,16,10,24,500,31,500); SetPlayerWeather(playerid, 9 ); AddPlayerClass(287,-3550.7070,-2970.0442,45.6585,279.4105,16,10,24,500,30,500); SetPlayerWeather(playerid, 9 ); return 1; } public OnPlayerDisconnect(playerid, reason) { new file[64]; new string[128]; format(file, sizeof(file), \"/GAMER/%s.ini\", PlayerName(playerid)); dini_IntSet(file,\"Registered\",PlayerInfo[playerid][pRegistered]); dini_IntSet(file,\"Admin\",PlayerInfo[playerid][pAdmin]); dini_IntSet(file,\"Bann\",PlayerInfo[playerid][pBann]); dini_IntSet(file,\"Ölések\",GetPlayerScore(playerid)); dini_IntSet(file,\"Skin\",GetPlayerSkin(playerid)); dini_IntSet(file,\"Pénz\", GetPlayerMoney(playerid)); dini_IntSet(file,\"Halálok\", PlayerInfo[playerid][pHalalok]); format(string,sizeof(string),\"<<< %s kilépett a szerverrõl >>>\",PlayerName(playerid)); SendClientMessageToAll(VILÁGOSKÉK, string); return 1; } public OnPlayerText(playerid, text[]) { new Float:x, Float:y, Float:z, str[200], name[MAX_PLAYERS]; for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i)==1) { GetPlayerPos(playerid, x, y, z); if(IsPlayerInRangeOfPoint(i, 7, x, y, z)) { GetPlayerName(playerid, name, sizeof(name)); format(str, sizeof(str), \"%s mondja: %s\", name, text); SendClientMessage(i, VILÁGOSKÉK, str); } } } return 0; } public OnRconLoginAttempt(ip[], password[], success) { if(!success) { new name[MAX_PLAYERS]; new Hour, Minute, Second; new string[56], sd[256]; gettime(Hour, Minute, Second); new Year,Month,Day; getdate(Year,Month,Day); for(new i=0; i<MAX_PLAYERS; i++) { GetPlayerName(i,name,sizeof(name)); format(sd,sizeof(sd),\"/RCON/%s.ini\", name); dini_Create(sd); dini_Set(\"rcon.ini\",\"Név\", name); format(string,sizeof(string),\"|%d|%d|%d|\",Year,Month,Day); dini_Set(\"rcon.ini\",\"Dátum\", string); dini_Set(\"rcon.ini\", \"IP\", ip); dini_Set(\"rcon.ini\", \"Hibás jelszó\", password); Kick(i); } } return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER && !DeActiveSpeedometer[playerid]) { for(new i; i < 15; i++) TextDrawShowForPlayer(playerid, TextDraws[TDSpeedClock]); for(new i; i < 4; i++) TextDrawsd[playerid] = TextDrawCreate(555.0, 402.0, \"~b~.\"); } else { for(new i; i < 4; i++) TextDrawHideForPlayer(playerid, TextDrawsd[playerid]); for(new i; i < 15; i++) TextDrawHideForPlayer(playerid, TextDraws[TDSpeedClock]); } return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { new parancs[256], tmp[256]; new idx; new id; new string[128], player; parancs = strtok(cmdtext, idx); id = strval(tmp); if(strcmp(parancs, \"/élet\", true) == 0) { if(IsPlayerAdmin(playerid)) { SendClientMessage(playerid, PIROS, \" Egy admin, szolgálatba állt!\" ); SetPlayerHealth(playerid, 100000); SetPlayerArmour(playerid, 100000); SetPlayerSkin(playerid, 167); GivePlayerWeapon(playerid, 16, 500); GivePlayerWeapon(playerid, 24, 500); GivePlayerWeapon(playerid, 27, 500); GivePlayerWeapon(playerid, 19, 500); GivePlayerWeapon(playerid, 34, 500); } return 1; } if(strcmp(parancs, \"/bomba\", true) == 0) { ShowPlayerDialog(playerid, 01, DIALOG_STYLE_LIST, \"<<< BombáK >>>\", \"Kicsi - $ 2000\\nKözepes - $ 4000\\nÁtlagos - $ 6000\\nNagy - $ 8000\\nFat Man - $ 10000\", \"Rendbe\", \"Mégsem\"); return 1; } if(strcmp(parancs, \"/detonáció\", true) == 0) { if(IsValidPlayerObject(playerid,bomb)) { KillTimer(bomb0); CreateExplosion(X,Y,Z,11,300.0); DestroyPlayerObject(playerid,bomb); } else if(IsValidPlayerObject(playerid,bomb1)) { KillTimer(bomb01); CreateExplosion(X,Y,Z,5,300.0); DestroyPlayerObject(playerid,bomb1); } else if(IsValidPlayerObject(playerid,bomb2)) { KillTimer(bomb02); CreateExplosion(X,Y,Z,2,300.0); DestroyPlayerObject(playerid,bomb2); } else if(IsValidPlayerObject(playerid,bomb3)) { KillTimer(bomb03); CreateExplosion(X,Y,Z,6,300.0); DestroyPlayerObject(playerid,bomb3); } else if(IsValidPlayerObject(playerid,bomb4)) { KillTimer(bomb04); CreateExplosion(X,Y,Z,7,300.0); DestroyPlayerObject(playerid,bomb4); } return 1; } if(strcmp(parancs, \"/hatástalanít\", true) == 0) { if(IsValidPlayerObject(playerid,bomb)) { KillTimer(bomb0); DestroyPlayerObject(playerid,bomb); } else if(IsValidPlayerObject(playerid,bomb1)) { KillTimer(bomb01); DestroyPlayerObject(playerid,bomb1); } else if(IsValidPlayerObject(playerid,bomb2)) { KillTimer(bomb02); DestroyPlayerObject(playerid,bomb2); } else if(IsValidPlayerObject(playerid,bomb3)) { KillTimer(bomb03); DestroyPlayerObject(playerid,bomb3); } else if(IsValidPlayerObject(playerid,bomb4)) { KillTimer(bomb04); DestroyPlayerObject(playerid,bomb4); } return 1; } if(strcmp(parancs, \"/afk\", true) == 0) { if(afk[playerid] == false) { SendClientMessage(playerid, KÉK, \"AFK üzemmódba léptél.\"); SetPlayerVirtualWorld(playerid, 10); TogglePlayerControllable(playerid, 0); afk[playerid] = true; } else if(afk[playerid] == true) { SendClientMessage(playerid, KÉK, \"Már nem vagy AFK.\"); SetPlayerVirtualWorld(playerid, 0); TogglePlayerControllable(playerid, 1); afk[playerid] = false; } return 1; } if(strcmp(parancs, \"/ban\", true) == 0) { if(PlayerInfo[playerid][pAdmin] > 0 || IsPlayerAdmin(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, PIROS, \"/ban [iD]\"); } player = strval(tmp); format(string,sizeof(string),\"<<< Admin: %s bannolta: %s-t >>>\",PlayerName(playerid),PlayerName(player)); SendClientMessageToAll(PIROS,string); Ban(player); } else { SendClientMessage(playerid,PIROS,\"Nem használhatod ezt a parancsot.\"); } return 1; } if(strcmp(parancs, \"/lefagyaszt\", true) == 0) { if(PlayerInfo[playerid][pAdmin] > 0 || IsPlayerAdmin(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, PIROS, \"/lefagyaszt [iD]\"); } player = strval(tmp); format(string,sizeof(string),\"<<< Admin: %s lefagyasztotta: %s-t >>>\",PlayerName(playerid),PlayerName(player)); SendClientMessageToAll(PIROS,string); TogglePlayerControllable(playerid, false); } else { SendClientMessage(playerid,PIROS,\"Nem használhatod ezt a parancsot.\"); } return 1; } if(strcmp(parancs, \"/felolvaszt\", true) == 0) { if(PlayerInfo[playerid][pAdmin] > 0 || IsPlayerAdmin(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, PIROS, \"/felolvaszt [iD]\"); } player = strval(tmp); format(string,sizeof(string),\"<<< Admin: %s felolvasztotta: %s-t >>>\",PlayerName(playerid),PlayerName(player)); SendClientMessageToAll(PIROS,string); TogglePlayerControllable(playerid, true); } else { SendClientMessage(playerid,PIROS,\"Nem használhatod ezt a parancsot.\"); } return 1; } if(strcmp(parancs, \"/kick\", true) == 0) { if(PlayerInfo[playerid][pAdmin] > 0 || IsPlayerAdmin(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, PIROS, \"/kick [iD]\"); } player = strval(tmp); format(string,sizeof(string),\"<<< Admin: %s kirúgta: %s-t >>>\",PlayerName(playerid),PlayerName(player)); SendClientMessageToAll(PIROS,string); Kick(player); } else { SendClientMessage(playerid,PIROS,\"Nem használhatod ezt a parancsot.\"); } return 1; } return 0; } public OnPlayerUpdate(playerid) { new file[64]; format(file, sizeof(file), \"/GAMER/%s.ini\", PlayerName(playerid)); #if defined DINI dini_IntSet(file,\"Registered\",PlayerInfo[playerid][pRegistered]); dini_IntSet(file,\"Admin\",PlayerInfo[playerid][pAdmin]); dini_IntSet(file,\"Level\",GetPlayerScore(playerid)); dini_IntSet(file,\"Skin\",GetPlayerSkin(playerid)); dini_IntSet(file,\"Money\", GetPlayerMoney(playerid)); #else new File: hFile = fopen(file, io_write); if (hFile) { new key[32]; format(key, 32, \"Password=%s\\n\", PlayerInfo[playerid][pPassword]);fwrite(hFile, key); format(key, 32, \"Registered=%d\\n\",PlayerInfo[playerid][pRegistered]);fwrite(hFile, key); format(key, 32, \"Admin=%d\\n\",PlayerInfo[playerid][pAdmin]);fwrite(hFile, key); format(key, 32, \"Level=%d\\n\",GetPlayerScore(playerid));fwrite(hFile, key); format(key, 32, \"Skin=%d\\n\",GetPlayerSkin(playerid));fwrite(hFile, key); format(key, 32, \"Money=%d\\n\",GetPlayerMoney(playerid));fwrite(hFile, key); fclose(hFile); } #endif new Float:fPos[3], Float:Pos[4][2], Float:fSpeed; if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && !DeActiveSpeedometer[playerid]) { GetVehicleVelocity(GetPlayerVehicleID(playerid), fPos[0], fPos[1], fPos[2]); fSpeed = floatsqroot(floatpower(fPos[0], 2) + floatpower(fPos[1], 2) + floatpower(fPos[2], 2)) * 200; new Float:alpha = 320 - fSpeed; if(alpha < 60) alpha = 60; for(new i; i < 4; i++) { TextDrawHideForPlayer(playerid, TextDrawsd[playerid]); TextDrawDestroy(TextDrawsd[playerid]); GetDotXY(548, 401, Pos[0], Pos[1], alpha, (i + 1) * ; TextDrawsd[playerid] = TextDrawCreate(Pos[0], Pos[1], \"~b~.\"); TextDrawLetterSize(TextDrawsd[playerid], 0.73, -2.60); TextDrawSetOutline(TextDrawsd[playerid], 0); TextDrawSetShadow(TextDrawsd[playerid], 1); TextDrawShowForPlayer(playerid, TextDrawsd[playerid]); } } return 1; } stock GetDotXY(Float:StartPosX, Float:StartPosY, &Float:NewX, &Float:NewY, Float:alpha, Float:dist) { NewX = StartPosX + (dist * floatsin(alpha, degrees)); NewY = StartPosY + (dist * floatcos(alpha, degrees)); } stock GetPlayerWeaponModell(playerid,modell) { new weaponid; weaponid = GetPlayerWeapon(playerid); switch(weaponid) { case 0: modell = 0; case 1: modell = 331; case 2: modell = 333; case 3: modell = 334; case 4: modell = 335; case 5: modell = 336; case 6: modell = 337; case 7: modell = 338; case 8: modell = 339; case 9: modell = 341; case 10: modell = 321; case 11: modell = 322; case 12: modell = 323; case 13: modell = 324; case 14: modell = 325; case 15: modell = 326; case 16: modell = 342; case 17: modell = 343; case 18: modell = 344; case 19: modell = 0; case 20: modell = 0; case 21: modell = 0; case 22: modell = 345; case 23: modell = 346; case 24: modell = 347; case 25: modell = 348; case 26: modell = 349; case 27: modell = 350; case 28: modell = 351; case 29: modell = 352; case 30: modell = 353; case 31: modell = 356; case 32: modell = 372; case 33: modell = 357; case 34: modell = 358; case 35: modell = 359; case 36: modell = 360; case 37: modell = 361; case 38: modell = 362; case 39: modell = 363; case 40: modell = 364; case 41: modell = 365; case 42: modell = 366; case 43: modell = 367; case 44: modell = 368; case 45: modell = 369; case 46: modell = 371; } return modell; } public OnPlayerSpawn(playerid) { SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1); SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 1); SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, 1); SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 1); SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 1); SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, 1); SetPlayerWeather(playerid, 9 ); if(gTeam[playerid] == USA) { SetPlayerColor(playerid, PIROS); SetPlayerPos(playerid, -3260.4541, -2883.8921, 0.4706); GivePlayerWeapon(playerid,23,200); GivePlayerWeapon(playerid,16,50); GivePlayerWeapon(playerid,31,200); SetPlayerWeather(playerid, 9 ); SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1); SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 1); SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, 1); SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 1); SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 1); SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, 1); } if(gTeam[playerid] == NEMETEK) { SetPlayerColor(playerid, KÉK); SetPlayerPos(playerid, -3550.7070,-2970.0442,45.6585); GivePlayerWeapon(playerid,22,200); GivePlayerWeapon(playerid,29,200); GivePlayerWeapon(playerid,16,50); SetPlayerWeather(playerid, 9 ); SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1); SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 1); SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, 1); SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 1); SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 1); SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, 1); } return 1; } public OnPlayerDeath(playerid, killerid, reason) { SetPlayerScore(killerid, GetPlayerScore(killerid) +1); SendDeathMessage(killerid, playerid, reason); return 1; } public SaveAccounts() { for(new i = 0; i < MAX_PLAYERS; i++) { new file[64]; format(file, sizeof(file), \"/GAMER/%s.ini\", PlayerName(i)); #if defined DINI dini_IntSet(file,\"Admin\",PlayerInfo[pAdmin]); dini_IntSet(file,\"Level\",GetPlayerScore(i)); dini_IntSet(file,\"Skin\",GetPlayerSkin(i)); dini_IntSet(file,\"Money\", GetPlayerMoney(i)); #else new File: hFile = fopen(file, io_write); if (hFile) { new key[32]; format(key, 32, \"Password=%s\\n\", PlayerInfo[pPassword]);fwrite(hFile, key); format(key, 32, \"Registered=%d\\n\",PlayerInfo[pRegistered]);fwrite(hFile, key); format(key, 32, \"Admin=%d\\n\",PlayerInfo[pAdmin]);fwrite(hFile, key); format(key, 32, \"Level=%d\\n\",GetPlayerScore(i));fwrite(hFile, key); format(key, 32, \"Skin=%d\\n\",GetPlayerSkin(i));fwrite(hFile, key); format(key, 32, \"Money=%d\\n\",GetPlayerMoney(i));fwrite(hFile, key); fclose(hFile); } #endif } } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { new string[128]; new file[64]; new ip[15]; GetPlayerIp(playerid,ip,sizeof(ip)); format(file, sizeof(file), \"/GAMER/%s.ini\", PlayerName(playerid)); if(dialogid == 0 && response) { switch(listitem) { case 0: { ShowPlayerDialog(playerid, 01, DIALOG_STYLE_LIST, \"<<< BombáK >>>\", \"Kicsi - $ 2000\\nKözepes - $ 4000\\nÁtlagos - $ 6000\\nNagy - $ 8000\\n Extra Nagy - $ 10000\", \"Rendben\", \"Mégsem\"); } } } if(dialogid == 01 && response) { switch(listitem) { case 0: { if(GetPlayerMoney(playerid) >= 2000) { GetPlayerPos(playerid,X,Y,Z); bomb = CreatePlayerObject(playerid, 367, X-0.5,Y,Z-0.9,0,-1,-1,300.0); GivePlayerMoney(playerid, -2000); bomb0 = SetTimerEx(\"t0\",180000,0,\"i\",playerid); SendClientMessage(playerid, ZÖLD, \"A bombád, 3 percen bellül robbanni fog!\"); SendClientMessage(playerid, ZÖLD, \"Használd a /detonáció , parancsot!\"); } else { SendClientMessage(playerid, PIROS, \"Nincs elég pénzed a bombára!\"); } } case 1: { if(GetPlayerMoney(playerid) >= 4000) { GetPlayerPos(playerid,X,Y,Z); bomb1 = CreatePlayerObject(playerid, 343, X-0.5,Y,Z-0.9,0,-1,-1,300.0); GivePlayerMoney(playerid, -4000); bomb01 = SetTimerEx(\"t1\",180000,0,\"i\",playerid); SendClientMessage(playerid, ZÖLD, \"A bombád, 3 percen bellül robbanni fog!\"); SendClientMessage(playerid, ZÖLD, \"Használd a /detonáció , parancsot!\"); } else { SendClientMessage(playerid, PIROS, \"Nincs elég pénzed a bombára!\"); } } case 2: { if(GetPlayerMoney(playerid) >= 6000) { GetPlayerPos(playerid,X,Y,Z); bomb2 = CreatePlayerObject(playerid, 1252, X-0.5,Y,Z-0.65,0,-1,-1,300.0); bomb02 = SetTimerEx(\"t2\",180000,0,\"i\",playerid); SendClientMessage(playerid, ZÖLD, \"A bombád, 3 percen bellül robbanni fog!\"); SendClientMessage(playerid, ZÖLD, \"Használd a /detonáció , parancsot!\"); } else { SendClientMessage(playerid, PIROS, \"Nincs elég pénzed a bombára!\"); } } case 3: { if(GetPlayerMoney(playerid) >= 8000) { GetPlayerPos(playerid,X,Y,Z); bomb3 = CreatePlayerObject(playerid, 1264, X-0.5,Y,Z-0.55,0,-1,-1,300.0); GivePlayerMoney(playerid, -8000); bomb03 = SetTimerEx(\"t3\",180000,0,\"i\",playerid); SendClientMessage(playerid, ZÖLD, \"A bombád, 3 percen bellül robbanni fog!\"); SendClientMessage(playerid, ZÖLD, \"If you want to explode it faster then use {FF1919}/kaboom{FFFFFF}!\"); } else { SendClientMessage(playerid, 0xFFFFFFFF, \"Nincs elég pénzed a bombára!\"); } } case 4: { if(GetPlayerMoney(playerid) >= 10000) { GetPlayerPos(playerid,X,Y,Z); bomb4 = CreatePlayerObject(playerid, 345, X-0.5,Y,Z-0.9,0,-1,-1,300.0); GivePlayerMoney(playerid, -10000); bomb04 = SetTimerEx(\"t4\",180000,0,\"i\",playerid); SendClientMessage(playerid, ZÖLD, \"A bombád, 3 percen bellül robbanni fog!\"); SendClientMessage(playerid, ZÖLD, \"Használd a /detonáció , parancsot!\"); } else { SendClientMessage(playerid, PIROS, \"Nincs elég pénzed a bombára!\"); } } } return 1; } if(response) { switch(dialogid) { #if defined DINI case DINI_REGISTER: { dini_Create(file); dini_IntSet(file, \"Password\", udb_hash(inputtext)); dini_Set(file,\"IP\",ip); dini_IntSet(file,\"Registered\",1); dini_IntSet(file,\"Admin\",0); dini_IntSet(file,\"Level\",1); dini_IntSet(file,\"Skin\",7); dini_IntSet(file,\"Money\",5000); SendClientMessage(playerid,ZÖLD,string); pLogged[playerid] = 1; SpawnPlayer(playerid); return 1; } case DINI_LOGIN: { new pw[64]; format(pw, 24, dini_Get(file, \"Password\")); if(udb_hash(inputtext) == strval(pw)) { PlayerInfo[playerid][pRegistered] = dini_Int(file,\"Registered\"); PlayerInfo[playerid][pAdmin] = dini_Int(file,\"Admin\"); SetPlayerScore(playerid, dini_Int(file, \"Level\")); SetPlayerSkin(playerid, dini_Int(file, \"Skin\")); GivePlayerMoney(playerid, dini_Int(file, \"Money\")); format(string,sizeof(string),\"Sikeres bejelentkezés!\",inputtext); SendClientMessage(playerid,ZÖLD,string); PlayerPlaySound(playerid,1057,0.0,0.0,0.0); pLogged[playerid] = 1; SpawnPlayer(playerid); } else { SendClientMessage(playerid, PIROS, \"Rossz jelszó!\"); ShowPlayerDialog(playerid, DINI_LOGIN, DIALOG_STYLE_INPUT, \"Belépés\",\"Kérlek, írd be a HELYES jelszót!\",\"Bejelentkezés\",\"Kilépés\"); } return 1; } #else case NORMAL_REGISTER: { format(string,sizeof(string),\"A jelszavad: %s\",inputtext); SendClientMessage(playerid,ZÖLD,string); Encrypt(inputtext); new File: hFile = fopen(file, io_write); if (hFile) { new key[32]; format(key, 32, \"Password=%s\\n\", inputtext);fwrite(hFile, key); format(key, 32, \"Registered=%d\\n\",PlayerInfo[playerid][pRegistered]);fwrite(hFile, key); format(key, 32, \"Admin=%d\\n\",PlayerInfo[playerid][pAdmin]);fwrite(hFile, key); format(key, 32, \"Level=%d\\n\",GetPlayerScore(playerid));fwrite(hFile, key); format(key, 32, \"Skin=%d\\n\",GetPlayerSkin(playerid));fwrite(hFile, key); format(key, 32, \"Money=%d\\n\",GetPlayerMoney(playerid));fwrite(hFile, key); fclose(hFile); } pLogged[playerid] = 1; SpawnPlayer(playerid); } case NORMAL_LOGIN: { new File:hFile = fopen(file, io_read); if(hFile) { new PassData[128]; new keytmp[256], valtmp[256]; fread(hFile, PassData, sizeof(PassData)); keytmp = ini_GetKey(PassData); if(strcmp(keytmp ,\"Password\", true) == 0) { valtmp = ini_GetValue( PassData ); strmid(PlayerInfo[playerid][pPassword], valtmp, 0, strlen(valtmp)-1, 255); } if(strcmp(PlayerInfo[playerid][pPassword],inputtext, true ) == 0 ) { new key[256], val[256]; new Data[256]; while(fread(hFile, Data, sizeof(Data))) { key = ini_GetKey( Data ); if( strcmp( key , \"Registered\" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRegistered] = strval( val ); } if( strcmp( key , \"Admin\" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdmin] = strval( val ); } if( strcmp( key , \"Level\" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLevel] = strval( val ); } if( strcmp( key , \"Skin\" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSkin] = strval( val ); } if( strcmp( key , \"Money\" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMoney] = strval( val ); } } fclose(hFile); pLogged[playerid] = 1; SendClientMessage(playerid,ZÖLD,\"Sikeres bejelentkezés!\"); SpawnPlayer(playerid); } else { SendClientMessage(playerid, PIROS, \"Rossz jelszó!\"); fclose(hFile); return 1; } if(PlayerInfo[playerid][pRegistered] == 0) { GivePlayerMoney(playerid, 0); SetPlayerScore(playerid, 0); PlayerInfo[playerid][pSkin] = 0; PlayerInfo[playerid][pRegistered] = 1; } } } #endif } } return 1; } public Encrypt(string[]) { for(new x=0; x < strlen(string); x++) { string if(string { string } } return 1; } stock ini_GetKey( line[] ) { new keyRes[256]; keyRes[0] = 0; if ( strfind( line , \"=\" , true ) == -1 ) return keyRes; strmid( keyRes , line , 0 , strfind( line , \"=\" , true ) , sizeof( keyRes) ); return keyRes; } stock ini_GetValue( line[] ) { new valRes[256]; valRes[0]=0; if ( strfind( line , \"=\" , true ) == -1 ) return valRes; strmid( valRes , line , strfind( line , \"=\" , true )+1 , strlen( line ) , sizeof( valRes ) ); return valRes; } strtok(const string[], &index) { new length = strlen(string); while ((index < length) && (string[index] <= \' \')) { index++; } new offset = index; new result[20]; while ((index < length) && (string[index] > \' \') && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = string[index]; index++; } result[index - offset] = EOS; return result; } public DropPlayerWeapons(playerid) { new DropLimit = 6; new DeleteTime = 10; new playerweapons[13][2]; new Float:FX, Float:FY, Float:FZ; GetPlayerPos(playerid, FX, FY, FZ); for(new i=0;i<13;i++){ GetPlayerWeaponData(playerid, i, playerweapons[0], playerweapons[1]); new model=GetWeaponModel(playerweapons[0]); new times=floatround(playerweapons[1]/10.0001); new string[256]; format(string, sizeof(string), \"%d\", times); times=strval(string); new Float:CX=FY+(random(3)-random(3)); new Float:CY=FY+(random(3)-random(3)); if(playerweapons[1]!=0) { if(times>DropLimit) times=DropLimit; for(new a=0;a<times;a++) { if(model!=-1) { new pickupid=CreatePickup(model, 3, X, Y, Z); SetTimerEx(\"DeletePickup\", DeleteTime*1000, false, \"d\", pickupid); } } } } return 1; } public GetWeaponModel(weaponid) { new model; switch(weaponid) { case 1: model=331; case 2: model=333; case 3: model=334; case 4: model=335; case 5: model=336; case 6: model=337; case 7: model=338; case 8: model=339; case 9: model=341; case 10: model=321; case 11: model=322; case 12: model=323; case 13: model=324; case 14: model=325; case 15: model=326; case 17: model=343; case 18: model=344; case 22: model=346; case 23: model=347; case 24: model=348; case 25: model=349; case 26: model=350; case 27: model=351; case 28: model=352; case 29: model=353; case 30: model=355; case 31: model=356; case 32: model=372; case 33: model=357; case 34: model=358; case 36: model=360; case 37: model=361; case 38: model=362; case 39: model=363; case 41: model=365; case 42: model=366; case 46: model=371; } if(model<300) return -1; return model; }
1414
« Dátum: 2012. április 25. - 21:29:14 »
Szoszi Gabor..
1415
« Dátum: 2012. április 25. - 20:49:00 »
Bazzeg, az a szemöldök, mintha valami fáraó lennél. xDDDDD
Amúgy Eger városa, papok városa....
Woow... Erre mit mondjak?
1416
« Dátum: 2012. április 25. - 20:47:13 »
Most komolyan, hol élsz?
Mert amúgy f***a a szemöldököd + a tetkód a mellcsiden. xDDDD
Köszönöm! Szekszárdon! Te?
1417
« Dátum: 2012. április 25. - 20:44:49 »
Miért is? :grrr:
1418
« Dátum: 2012. április 25. - 20:27:52 »
WTF? Miért?
1419
« Dátum: 2012. április 25. - 20:25:32 »
1420
« Dátum: 2012. április 21. - 20:01:06 »
STRCMP-re nem tudnád megírni? :angel:
1421
« Dátum: 2012. április 21. - 19:18:02 »
Szerintem jobb, ha sscanf-ot használsz, és zcmd-t, mert ezeknél jobb nincs.
CMD:asay(playerid, params[]) { new name[MAX_PLAYER_NAME], szoveg[128]; if(sscanf(params, \"s[128]\", szoveg)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /asay <szöveg>\"); GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(szoveg, sizeof(szoveg), \"Admin | %s(%d) : %s\", name, playerid, szoveg); SendClientMessageToAll(0xFF0000AA, szoveg); return 1; }
Az a baj.... hogy leadja az id-t és a nevet... de a szöveget nem! Már k*rva ideges vagyok! :tantrum: :tantrum: :tantrum: :tantrum: :tantrum: :tantrum: :tantrum:
1422
« Dátum: 2012. április 21. - 18:46:31 »
Sajna nem! :S 1 parancs miatt, nem akarok sscanf-ot használni!
1423
« Dátum: 2012. április 21. - 18:38:28 »
Hello!Írom az admin rendszer, és jött 1 error. :tantrum: if( strcmp( parancs, \"/asay\", true ) == 0 ) { new Text[128]; new AText[128]; format( Text, sizeof(Text), \"* Admin %s: %s\", PlayerName, AText); SendClientMessageToAll( PIROS , Text ); return 1; }
C:\\Documents and Settings\\XP4ever\\Asztal\\SZERVER\\gamemodes\\mod.pwn(669) : error 076: syntax error in the expression, or invalid function call
1424
« Dátum: 2012. április 21. - 17:14:02 »
2012 = \'12 És mikorra várható, nyáron mikor?
1425
« Dátum: 2012. április 21. - 13:01:28 »
Üdv! Mappoltam egy mentõs állomást. Objectek: 21 Készítõ: Én (Amf) Készítési Idõ: MAX 10 Perc Telepor: LP-ben van (fölösleges) http://imageshack.us/photo/my-images/38/83636772.png/ CreateDynamicObject(9247, -209.53018188477, 2735.9211425781, 68.490867614746, 0, 0, 90); CreateDynamicObject(1411, -217.6554107666, 2730.7175292969, 63.296756744385, 0, 0, 0); CreateDynamicObject(1411, -222.83084106445, 2730.7348632813, 63.296756744385, 0, 0, 0); CreateDynamicObject(1411, -228.00312805176, 2730.71484375, 63.296756744385, 0, 0, 0); CreateDynamicObject(1411, -230.37400817871, 2733.0930175781, 63.296756744385, 0, 0, 270); CreateDynamicObject(1411, -230.35411071777, 2738.2573242188, 63.296756744385, 0, 0, 270); CreateDynamicObject(1411, -227.98147583008, 2740.6350097656, 63.296756744385, 0, 0, 180); CreateDynamicObject(1411, -217.67680358887, 2740.6518554688, 63.296756744385, 0, 0, 179.99450683594); CreateDynamicObject(2146, -215.95631408691, 2739.2119140625, 62.173049926758, 0, 0, 0); CreateDynamicObject(2146, -217.18055725098, 2739.2172851563, 62.173049926758, 0, 0, 0); CreateDynamicObject(2146, -218.51043701172, 2739.2365722656, 62.173049926758, 0, 0, 0); CreateDynamicObject(1232, -220.01327514648, 2741.125, 64.324142456055, 0, 0, 328); CreateDynamicObject(1232, -225.68966674805, 2741.0754394531, 64.324142456055, 0, 0, 327.99487304688); CreateDynamicObject(1257, -229.61952209473, 2745.1506347656, 62.966690063477, 0, 0, 270); CreateDynamicObject(1258, -204.72222900391, 2741.7099609375, 62.349220275879, 0, 0, 180); CreateDynamicObject(1346, -217.63333129883, 2741.70703125, 63.038505554199, 0, 0, 180); CreateDynamicObject(1215, -220.42677307129, 2746.0654296875, 62.251823425293, 0, 0, 0); CreateDynamicObject(1215, -225.45223999023, 2746.0666503906, 62.251823425293, 0, 0, 0); CreateDynamicObject(1256, -211.38604736328, 2741.9284667969, 62.3469581604, 0, 0, 270); CreateDynamicObject(1361, -208.44610595703, 2742.0485839844, 62.430843353271, 0, 0, 0); CreateDynamicObject(1361, -214.20809936523, 2741.9970703125, 62.430843353271, 0, 0, 0);
Oldalak: 1 ... 93 94 [95] 96 97
|