[POMOC] Padanje server-a

Započeo PaVlOv, Mart 29, 2012, 21:33:25 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Imam problem oko padanje servera, cim neko izadje on padne.

Server log

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3d-R2, (C)2005-2011 SA-MP Team

[21:40:08]
[21:40:08] Server Plugins
[21:40:08] --------------
[21:40:08]  Loading plugin: sscanf
[21:40:08]

[21:40:08]  ===============================

[21:40:08]       sscanf plugin loaded.     

[21:40:08]    (c) 2009 Alex "Y_Less" Cole

[21:40:08]  ===============================

[21:40:08]   Loaded.
[21:40:08]  Loading plugin: streamer
[21:40:08]

*** Streamer Plugin v2.5.2 by Incognito loaded ***

[21:40:08]   Loaded.
[21:40:08]  Loaded 2 plugins.

[21:40:08]
[21:40:08] Filterscripts
[21:40:08] ---------------
[21:40:08]   Loading filterscript 'ACBS.amx'...
[21:40:08]   Unable to load filterscript 'ACBS.amx'.
[21:40:08]   Loading filterscript 'y_commands_fs.amx'...
[21:40:08] 
[21:40:08]  =======================================
[21:40:08]  |                                     |
[21:40:08]  |        YSI version 1.04.0000        |
[21:40:08]  |        By Alex "Y_Less" Cole        |
[21:40:08]  |                                     |
[21:40:08]  =======================================
[21:40:08] 
[21:40:08] ================
[21:40:08] | Master ID: 0 |
[21:40:08] ================
[21:40:08]   Loading filterscript 'Autopraonica.amx'...
[21:40:08]
-----------------------------------------------
[21:40:08] 
[21:40:08] ---=== Autopraonica Filterscript by SiEx ===---
[21:40:08] 
[21:40:08] -------------- Copyright -- 2012 --------------

[21:40:08]   Loading filterscript 'kuce.amx'...
[21:40:08] 
[21:40:08]  =======================================
[21:40:08]  |                                     |
[21:40:08]  |        YSI version 3.01.0002        |
[21:40:08]  |        By Alex "Y_Less" Cole        |
[21:40:08]  |                                     |
[21:40:08]  =======================================
[21:40:08] 
[21:40:08]
--------------------------------------
[21:40:08]  Dinamican Stan Sistem by: Maki187 (Marko_Dimitrijevic)
[21:40:08]  Dinamican Stan Sistem v0.2
[21:40:08]  Balkan Rising - www.balkan-rising.info
[21:40:08]  Alfa Games - www.alfa-gaming.info
[21:40:08]  -------------[PRIJATELJI]------------
[21:40:08]  Bestbalkandj.com - www.bestbalkandj.com
[21:40:08]  Serbian Warez - www.serbian-warez.in.rs
[21:40:08]  Balkan Undergorund - www.bu-rp.info
[21:40:08]  Egrotusi TDM - www.egrotusi-tdm.game.ba
[21:40:09] --------------------------------------

[21:40:09]   Loaded 3 filterscripts.

[21:40:09] foreach called
[21:40:09] (LGRP!) Kuca 0 ucitana.
[21:40:09] (LGRP!) Firma 0 ucitana.
[21:40:09] (LGRP!) Firma 1 ucitana.
[21:40:09] (LGRP!) Firma 2 ucitana.
[21:40:09] (LGRP!) Firma 3 ucitana.
[21:40:09] (LGRP!) Firma 4 ucitana.
[21:40:09] (LGRP!) Firma 5 ucitana.
[21:40:09] (LGRP!) Firma 6 ucitana.
[21:40:09] (LGRP!) Firma 7 ucitana.
[21:40:09] (LGRP!) Firma 8 ucitana.
[21:40:09] (LGRP!) Firma 9 ucitana.
[21:40:09] (LGRP!) Firma 10 ucitana.
[21:40:09] (LGRP!) Firma 11 ucitana.
[21:40:09] (LGRP!) Firma 12 ucitana.
[21:40:09] (LGRP!) Firma 13 ucitana.
[21:40:09] (LGRP!) Firma 14 ucitana.
[21:40:09] (LGRP!) Firma 15 ucitana.
[21:40:09] (LGRP!) Firma 16 ucitana.
[21:40:09] (LGRP!) Firma 17 ucitana.
[21:40:09] (LGRP!) SFirma 0 ucitana.
[21:40:09] (LGRP!) SFirma 1 ucitana.
[21:40:09] (LGRP!) SFirma 2 ucitana.
[21:40:09] (LGRP!) SFirma 3 ucitana.
[21:40:09] (LGRP!) SFirma 4 ucitana.
[21:40:09] (LGRP!) SFirma 5 ucitana.
[21:40:09] (LGRP!) SFirma 6 ucitana.
[21:40:09] (LGRP!) SFirma 7 ucitana.
[21:40:09] (LGRP!) SFirma 8 ucitana.
[21:40:09] (LGRP!) SFirma 9 ucitana.
[21:40:09] (LGRP!) SFirma 10 ucitana.
[21:40:09] (LGRP!) SFirma 11 ucitana.
[21:40:09] (LGRP!) SFirma 12 ucitana.
[21:40:09] (LGRP!) SFirma 13 ucitana.
[21:40:09] (LGRP!) SFirma 14 ucitana.
[21:40:09] (LGRP!) SFirma 15 ucitana.
[21:40:09] (LGRP!) SFirma 16 ucitana.
[21:40:09] (LGRP!) SFirma 17 ucitana.
[21:40:09] (LGRP!) SFirma 18 ucitana.
[21:40:09] (LGRP!) SFirma 19 ucitana.
[21:40:09] (LGRP!) SFirma 20 ucitana.
[21:40:09] AllowAdminTeleport() : function is deprecated. Please see OnPlayerClickMap()
[21:40:09] Loading 71 pickups... Loaded successfuly !
[21:40:09] |----------------------------------|
[21:40:09] | LastGaming RolePlay | (c) 2012 |
[21:40:09] | by PaVlOv                  |
[21:40:09] |----------------------------------|
[21:40:09] Number of vehicle models: 70
[21:40:12] 
[21:40:12] 
[21:40:12] Ownership
[21:40:12] ---------------
[21:40:12] 
[21:40:12]  Prvi dio ownershipa ucitan! (Automobili)
[21:40:14]  Drugi dio ownershipa ucitan! (Motori)
[21:40:15]  Treci dio ownershipa ucitan! (Plovila)
[21:40:17]  Cetvrti dio ownershipa ucitan! (Letjelice)
[21:40:17] 
[21:40:17]  Gamemode je u potpunosti spreman za koristenje!
[21:40:17]  LifeStile RolePlay
[21:40:30] 
[21:40:30] 
[21:40:30] 
[21:40:30] 
[21:40:50] Incoming connection: 5.126.247.207:63201
[21:40:51] [join] Boki_Savanov has joined the server (0:5.126.247.207)
[21:41:02] Boki_Savanov se upravo prikljucio na LGRP RolePlay.



Server cfg
echo Executing Server Config...
lanmode 0
rcon_password
maxplayers 32
port server uklonjen!
hostname SA-MP 0.3 Server
gamemode0 CLRP 1
filterscripts ACBS y_commands_fs Autopraonica kuce
plugins sscanf streamer
announce 0
query 1
weburl www.sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
Poslednja Izmena: Mart 29, 2012, 21:41:49 POSLE PODNE od PaVlOv
-=Last Gaming=-193.192.58.216:7791

Izradjujem website, vise na pm.

Pa nepise na logu da je iko uso i izaso!!



Edit sam..
-=Last Gaming=-193.192.58.216:7791

Izradjujem website, vise na pm.

To je problem kod vecine,pitaj onog ko je napravio taj mod !

Evo server_log-o sa "crashdetect".. mozda ce vam biti lakse, ja sam isprobavo da nadjem gresku i nisam uspeo..



----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3d-R2, (C)2005-2011 SA-MP Team

[01:31:31] filterscripts = ""  (string)
[01:31:31]
[01:31:31] Server Plugins
[01:31:31] --------------
[01:31:31]  Loading plugin: sscanf
[01:31:31]

[01:31:31]  ===============================

[01:31:31]       sscanf plugin loaded.     

[01:31:31]    (c) 2009 Alex "Y_Less" Cole

[01:31:31]    0.3d-R2 500 Players "dnee"

[01:31:31]  ===============================

[01:31:31]   Loaded.
[01:31:31]  Loading plugin: streamer
[01:31:31]

*** Streamer Plugin v2.6 by Incognito loaded ***

[01:31:31]   Loaded.
[01:31:31]  Loading plugin: crashdetect
[01:31:31]   crashdetect v4.5.1 is OK.
[01:31:31]   Loaded.
[01:31:31]  Loaded 3 plugins.

[01:31:31]
[01:31:31] Filterscripts
[01:31:31] ---------------
[01:31:31]   Loaded 0 filterscripts.

[01:31:32] foreach called
[01:31:32] (LGRP!) Kuca 0 ucitana.
[01:31:32] (LGRP!) Firma 0 ucitana.
[01:31:32] (LGRP!) Firma 1 ucitana.
[01:31:32] (LGRP!) Firma 2 ucitana.
[01:31:32] (LGRP!) Firma 3 ucitana.
[01:31:32] (LGRP!) Firma 4 ucitana.
[01:31:32] (LGRP!) Firma 5 ucitana.
[01:31:32] (LGRP!) Firma 6 ucitana.
[01:31:32] (LGRP!) Firma 7 ucitana.
[01:31:32] (LGRP!) Firma 8 ucitana.
[01:31:32] (LGRP!) Firma 9 ucitana.
[01:31:32] (LGRP!) Firma 10 ucitana.
[01:31:32] (LGRP!) Firma 11 ucitana.
[01:31:32] (LGRP!) Firma 12 ucitana.
[01:31:32] (LGRP!) Firma 13 ucitana.
[01:31:32] (LGRP!) Firma 14 ucitana.
[01:31:32] (LGRP!) Firma 15 ucitana.
[01:31:32] (LGRP!) Firma 16 ucitana.
[01:31:32] (LGRP!) Firma 17 ucitana.
[01:31:32] (LGRP!) SFirma 0 ucitana.
[01:31:32] (LGRP!) SFirma 1 ucitana.
[01:31:32] (LGRP!) SFirma 2 ucitana.
[01:31:32] (LGRP!) SFirma 3 ucitana.
[01:31:32] (LGRP!) SFirma 4 ucitana.
[01:31:32] (LGRP!) SFirma 5 ucitana.
[01:31:32] (LGRP!) SFirma 6 ucitana.
[01:31:32] (LGRP!) SFirma 7 ucitana.
[01:31:32] (LGRP!) SFirma 8 ucitana.
[01:31:32] (LGRP!) SFirma 9 ucitana.
[01:31:32] (LGRP!) SFirma 10 ucitana.
[01:31:32] (LGRP!) SFirma 11 ucitana.
[01:31:32] (LGRP!) SFirma 12 ucitana.
[01:31:32] (LGRP!) SFirma 13 ucitana.
[01:31:32] (LGRP!) SFirma 14 ucitana.
[01:31:32] (LGRP!) SFirma 15 ucitana.
[01:31:32] (LGRP!) SFirma 16 ucitana.
[01:31:32] (LGRP!) SFirma 17 ucitana.
[01:31:32] (LGRP!) SFirma 18 ucitana.
[01:31:32] (LGRP!) SFirma 19 ucitana.
[01:31:32] (LGRP!) SFirma 20 ucitana.
[01:31:32] AllowAdminTeleport() : function is deprecated. Please see OnPlayerClickMap()
[01:31:32] Loading 71 pickups... Loaded successfuly !
[01:31:32] |----------------------------------|
[01:31:32] | LastGaming RolePlay | (c) 2012 |
[01:31:32] | by PaVlOv                  |
[01:31:32] |----------------------------------|
[01:31:32] Number of vehicle models: 70
[01:31:36] 
[01:31:36] 
[01:31:36] Ownership
[01:31:36] ---------------
[01:31:36] 
[01:31:36]  Prvi dio ownershipa ucitan! (Automobili)
[01:31:36] [debug] Run time error 4: "Array index out of bounds"
[01:31:36] [debug]   Accessing element at index 20 past array upper bound 19
[01:31:36] [debug] Backtrace (most recent call first):
[01:31:36] [debug] #0  00375c94 in VehTimer () from lgrp.amx
[01:31:37]  Drugi dio ownershipa ucitan! (Motori)
[01:31:37] [debug] Run time error 4: "Array index out of bounds"
[01:31:37] [debug]   Accessing element at index 12 past array upper bound 11
[01:31:37] [debug] Backtrace (most recent call first):
[01:31:37] [debug] #0  003761ec in BikeTimer () from lgrp.amx
[01:31:39]  Treci dio ownershipa ucitan! (Plovila)
[01:31:39] [debug] Run time error 4: "Array index out of bounds"
[01:31:39] [debug]   Accessing element at index 6 past array upper bound 5
[01:31:39] [debug] Backtrace (most recent call first):
[01:31:39] [debug] #0  00376744 in BoatTimer () from lgrp.amx
[01:31:41]  Cetvrti dio ownershipa ucitan! (Letjelice)
[01:31:41] 
[01:31:41]  Gamemode je u potpunosti spreman za koristenje!
[01:31:41]  LifeStile RolePlay
[01:31:41] [debug] Run time error 4: "Array index out of bounds"
[01:31:41] [debug]   Accessing element at index 4 past array upper bound 3
[01:31:41] [debug] Backtrace (most recent call first):
[01:31:41] [debug] #0  00376d08 in PlaneTimer () from lgrp.amx
[01:32:29] Incoming connection: 5.126.247.207:54954
[01:32:30] [join] Ivan_Pavlov has joined the server (0:5.126.247.207)
[01:32:36] Ivan_Pavlov se upravo prikljucio na LGRP RolePlay.
[01:32:41] [debug] Server crashed while executing lgrp.amx
[01:32:41] [debug] Backtrace (most recent call first):
[01:32:41] [debug] #0  ???????? in native fwrite () from samp-server.exe
[01:32:41] [debug] #1  00013038 in Itter_OnPlayerDisconnect () from lgrp.amx
[01:32:41] [debug] #2  ???????? in native CallLocalFunction () from samp-server.exe
[01:32:41] [debug] #3  000019a4 in Streamer_OnPlayerDisconnect () from lgrp.amx
[01:32:41] [debug] #4  ???????? in native CallLocalFunction () from samp-server.exe
[01:32:41] [debug] #5  00001170 in OnPlayerDisconnect () from lgrp.amx



Evo i OnPlayerDisconnect

public OnPlayerDisconnect(playerid, reason)
{
TextDrawHideForPlayer(playerid, Vreme);
TextDrawHideForPlayer(playerid, Datum);

TextDrawDestroy(GearInfo[playerid]);
TextDrawDestroy(Speedo[playerid]);
HideGeneral(playerid);
Loop(x, 6) TextDrawHideForPlayer(playerid, Gear[x]);

    ShiftInfo[playerid] = (ShiftInfo[playerid] == false) ? (true) : (true);
    KillTimer(ShiftTimer[playerid]);

    new dateiname[MAX_PLAYER_NAME+4];
new playername[MAX_PLAYER_NAME];
new var[128];

gActivePlayers[playerid]--;
numplayers--;
if(reason == 0)
{
    PlayerInfo[playerid][pCrashed] = 1;
    for(new slot = 0; slot != 12; slot++)
    {
        new wep, ammo;
        GetPlayerWeaponData(playerid, slot, wep, ammo);

        if(wep != 0 && ammo != 0)
        {
            if(PlayerInfo[playerid][pGun1] == 0) { PlayerInfo[playerid][pGun1] = wep; PlayerInfo[playerid][pAmmo1] = ammo; }
            else if(PlayerInfo[playerid][pGun2] == 0) { PlayerInfo[playerid][pGun2] = wep; PlayerInfo[playerid][pAmmo2] = ammo; }
            else if(PlayerInfo[playerid][pGun3] == 0) { PlayerInfo[playerid][pGun3] = wep; PlayerInfo[playerid][pAmmo3] = ammo; }
            else if(PlayerInfo[playerid][pGun4] == 0) { PlayerInfo[playerid][pGun4] = wep; PlayerInfo[playerid][pAmmo4] = ammo; }
        }
    }
}
SacuvajIgraca(playerid);
foreach (Player, i)
{
        if(TaxiAccepted[i] < 999)
        {
        if(TaxiAccepted[i] == playerid)
        {
            TaxiAccepted[i] = 999;
            GameTextForPlayer(i, "~w~Pozivaoc taxija~n~~r~Je napustio igru", 5000, 1);
            TaxiCallTime[i] = 0;
            DisablePlayerCheckpoint(i);
        }
        }
        else if(BusAccepted[i] < 999)
        {
        if(BusAccepted[i] == playerid)
        {
            BusAccepted[i] = 999;
            GameTextForPlayer(i, "~w~Pozivaoc busa~n~~r~Je napustio igru", 5000, 1);
            BusCallTime[i] = 0;
            DisablePlayerCheckpoint(i);
        }
        }
}
GetPlayerName(playerid, playername, sizeof(playername));
format(dateiname, sizeof(dateiname), "Vozila/%s.auto", playername);
new File: CarFile = fopen(dateiname, io_write);
    format(var, 256, "AH_Typ=%i\n", Carlist[playerid][Typ]); fwrite(CarFile, var);
    format(var, 256, "AH_X=%f\n", Carlist[playerid][X3]); fwrite(CarFile, var);
format(var, 256, "AH_Y=%f\n", Carlist[playerid][Y3]); fwrite(CarFile, var);
format(var, 256, "AH_Z=%f\n", Carlist[playerid][Z3]); fwrite(CarFile, var);
format(var, 256, "AH_Rot=%f\n", Carlist[playerid][Rotation]); fwrite(CarFile, var);
format(var, 256, "AH_Status=%i\n", Carlist[playerid][Status]); fwrite(CarFile, var);
format(var, 256, "AH_Lock=%i\n", Carlist[playerid][Lock]); fwrite(CarFile, var);
format(var, 256, "AH_Paintjob=%i\n", Carlist[playerid][Paintjob]); fwrite(CarFile, var);
format(var, 256, "AH_Color1=%i\n", Carlist[playerid][Color1]); fwrite(CarFile, var);
format(var, 256, "AH_Color2=%i\n", Carlist[playerid][Color2]); fwrite(CarFile, var);
format(var, 256, "AH_mod1=%i\n", Carlist[playerid][mod1]); fwrite(CarFile, var);
format(var, 256, "AH_mod2=%i\n", Carlist[playerid][mod2]); fwrite(CarFile, var);
format(var, 256, "AH_mod3=%i\n", Carlist[playerid][mod3]); fwrite(CarFile, var);
format(var, 256, "AH_mod4=%i\n", Carlist[playerid][mod4]); fwrite(CarFile, var);
format(var, 256, "AH_mod5=%i\n", Carlist[playerid][mod5]); fwrite(CarFile, var);
format(var, 256, "AH_mod6=%i\n", Carlist[playerid][mod6]); fwrite(CarFile, var);
format(var, 256, "AH_mod7=%i\n", Carlist[playerid][mod7]); fwrite(CarFile, var);
format(var, 256, "AH_mod8=%i\n", Carlist[playerid][mod8]); fwrite(CarFile, var);
format(var, 256, "AH_mod9=%i\n", Carlist[playerid][mod9]); fwrite(CarFile, var);
format(var, 256, "AH_mod10=%i\n", Carlist[playerid][mod10]); fwrite(CarFile, var);
format(var, 256, "AH_mod11=%i\n", Carlist[playerid][mod11]); fwrite(CarFile, var);
format(var, 256, "AH_mod12=%i\n", Carlist[playerid][mod12]); fwrite(CarFile, var);
format(var, 256, "AH_mod13=%i\n", Carlist[playerid][mod13]); fwrite(CarFile, var);
format(var, 256, "AH_mod14=%i\n", Carlist[playerid][mod14]); fwrite(CarFile, var);
format(var, 256, "AH_mod15=%i\n", Carlist[playerid][mod15]); fwrite(CarFile, var);
format(var, 256, "AH_mod16=%i\n", Carlist[playerid][mod16]); fwrite(CarFile, var);
format(var, 256, "AH_mod17=%i\n", Carlist[playerid][mod17]); fwrite(CarFile, var);
    fclose(CarFile);
    if(Carlist[playerid][Carid]!=-1)
{
SetVehicleParamsForAll(Carlist[playerid][Carid],0,0);
DestroyVehicle(Carlist[playerid][Carid]);
Carlist[playerid][Carid]=-1;
}

format(dateiname, sizeof(dateiname), "Motori/%s.motor", playername);
new File: BikeFile = fopen(dateiname, io_write);
    format(var, 256, "BH_bTyp=%i\n", Bikelist[playerid][bTyp]); fwrite(BikeFile, var);
    format(var, 256, "BH_X=%f\n", Bikelist[playerid][mX]); fwrite(BikeFile, var);
format(var, 256, "BH_Y=%f\n", Bikelist[playerid][mY]); fwrite(BikeFile, var);
format(var, 256, "BH_Z=%f\n", Bikelist[playerid][mZ]); fwrite(BikeFile, var);
format(var, 256, "BH_Rot=%f\n", Bikelist[playerid][mRotation]); fwrite(BikeFile, var);
format(var, 256, "BH_Status=%i\n", Bikelist[playerid][Status]); fwrite(BikeFile, var);
format(var, 256, "BH_Lock=%i\n", Bikelist[playerid][Lock]); fwrite(BikeFile, var);
format(var, 256, "BH_Paintjob=%i\n", Bikelist[playerid][Paintjob]); fwrite(BikeFile, var);
format(var, 256, "BH_Color1=%i\n", Bikelist[playerid][Color1]); fwrite(BikeFile, var);
format(var, 256, "BH_Color2=%i\n", Bikelist[playerid][Color2]); fwrite(BikeFile, var);
format(var, 256, "BH_mod1=%i\n", Bikelist[playerid][mod1]); fwrite(BikeFile, var);
format(var, 256, "BH_mod2=%i\n", Bikelist[playerid][mod2]); fwrite(BikeFile, var);
format(var, 256, "BH_mod3=%i\n", Bikelist[playerid][mod3]); fwrite(BikeFile, var);
format(var, 256, "BH_mod4=%i\n", Bikelist[playerid][mod4]); fwrite(BikeFile, var);
format(var, 256, "BH_mod5=%i\n", Bikelist[playerid][mod5]); fwrite(BikeFile, var);
format(var, 256, "BH_mod6=%i\n", Bikelist[playerid][mod6]); fwrite(BikeFile, var);
format(var, 256, "BH_mod7=%i\n", Bikelist[playerid][mod7]); fwrite(BikeFile, var);
format(var, 256, "BH_mod8=%i\n", Bikelist[playerid][mod8]); fwrite(BikeFile, var);
format(var, 256, "BH_mod9=%i\n", Bikelist[playerid][mod9]); fwrite(BikeFile, var);
format(var, 256, "BH_mod10=%i\n", Bikelist[playerid][mod10]); fwrite(BikeFile, var);
format(var, 256, "BH_mod11=%i\n", Bikelist[playerid][mod11]); fwrite(BikeFile, var);
format(var, 256, "BH_mod12=%i\n", Bikelist[playerid][mod12]); fwrite(BikeFile, var);
format(var, 256, "BH_mod13=%i\n", Bikelist[playerid][mod13]); fwrite(BikeFile, var);
format(var, 256, "BH_mod14=%i\n", Bikelist[playerid][mod14]); fwrite(BikeFile, var);
format(var, 256, "BH_mod15=%i\n", Bikelist[playerid][mod15]); fwrite(BikeFile, var);
format(var, 256, "BH_mod16=%i\n", Bikelist[playerid][mod16]); fwrite(BikeFile, var);
format(var, 256, "BH_mod17=%i\n", Bikelist[playerid][mod17]); fwrite(BikeFile, var);
    fclose(BikeFile);
    if(Bikelist[playerid][Carid]!=-1)
{
SetBikeParamsForAll(Bikelist[playerid][Carid],0,0);
DestroyVehicle(Bikelist[playerid][Carid]);
Bikelist[playerid][Carid]=-1;
}
    format(dateiname, sizeof(dateiname), "Bicikli/%s.bicikl", playername);
new File: MotoFile = fopen(dateiname, io_write);
    format(var, 256, "BH_bTyp=%i\n", Bikelist[playerid][bTyp]); fwrite(BikeFile, var);
    format(var, 256, "BH_X=%f\n", Bikelist[playerid][mX]); fwrite(BikeFile, var);
format(var, 256, "BH_Y=%f\n", Bikelist[playerid][mY]); fwrite(BikeFile, var);
format(var, 256, "BH_Z=%f\n", Bikelist[playerid][mZ]); fwrite(BikeFile, var);
format(var, 256, "BH_Rot=%f\n", Bikelist[playerid][mRotation]); fwrite(MotoFile, var);
format(var, 256, "BH_Status=%i\n", Bikelist[playerid][Status]); fwrite(MotoFile, var);
format(var, 256, "BH_Lock=%i\n", Bikelist[playerid][Lock]); fwrite(MotoFile, var);
format(var, 256, "BH_Paintjob=%i\n", Bikelist[playerid][Paintjob]); fwrite(MotoFile, var);
format(var, 256, "BH_Color1=%i\n", Bikelist[playerid][Color1]); fwrite(MotoFile, var);
format(var, 256, "BH_Color2=%i\n", Bikelist[playerid][Color2]); fwrite(MotoFile, var);
format(var, 256, "BH_mod1=%i\n", Bikelist[playerid][mod1]); fwrite(MotoFile, var);
format(var, 256, "BH_mod2=%i\n", Bikelist[playerid][mod2]); fwrite(MotoFile, var);
format(var, 256, "BH_mod3=%i\n", Bikelist[playerid][mod3]); fwrite(MotoFile, var);
    fclose(MotoFile);
    if(Bikelist[playerid][Carid]!=-1)
{
SetBikeParamsForAll(Bikelist[playerid][Carid],0,0);
DestroyVehicle(Bikelist[playerid][Carid]);
Bikelist[playerid][Carid]=-1;
}

format(dateiname, sizeof(dateiname), "Plovila/%s.pl", playername);
new File: BoatFile = fopen(dateiname, io_write);
    format(var, 256, "BrodH_BoatTyp=%i\n", Boatlist[playerid][BoatTyp]); fwrite(BoatFile, var);
    format(var, 256, "BrodH_X=%f\n", Boatlist[playerid][X3]); fwrite(BoatFile, var);
format(var, 256, "BrodH_Y=%f\n", Boatlist[playerid][Y3]); fwrite(BoatFile, var);
format(var, 256, "BrodH_Z=%f\n", Boatlist[playerid][Z3]); fwrite(BoatFile, var);
format(var, 256, "BrodH_Rot=%f\n", Boatlist[playerid][Rotation]); fwrite(BoatFile, var);
format(var, 256, "BrodH_Status=%i\n", Boatlist[playerid][Status]); fwrite(BoatFile, var);
format(var, 256, "BrodH_Lock=%i\n", Boatlist[playerid][Lock]); fwrite(BoatFile, var);
format(var, 256, "BrodH_Paintjob=%i\n", Boatlist[playerid][Paintjob]); fwrite(BoatFile, var);
format(var, 256, "BrodH_Color1=%i\n", Boatlist[playerid][Color1]); fwrite(BoatFile, var);
format(var, 256, "BrodH_Color2=%i\n", Boatlist[playerid][Color2]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod1=%i\n", Boatlist[playerid][mod1]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod2=%i\n", Boatlist[playerid][mod2]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod3=%i\n", Boatlist[playerid][mod3]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod4=%i\n", Boatlist[playerid][mod4]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod5=%i\n", Boatlist[playerid][mod5]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod6=%i\n", Boatlist[playerid][mod6]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod7=%i\n", Boatlist[playerid][mod7]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod8=%i\n", Boatlist[playerid][mod8]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod9=%i\n", Boatlist[playerid][mod9]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod10=%i\n", Boatlist[playerid][mod10]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod11=%i\n", Boatlist[playerid][mod11]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod12=%i\n", Boatlist[playerid][mod12]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod13=%i\n", Boatlist[playerid][mod13]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod14=%i\n", Boatlist[playerid][mod14]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod15=%i\n", Boatlist[playerid][mod15]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod16=%i\n", Boatlist[playerid][mod16]); fwrite(BoatFile, var);
format(var, 256, "BrodH_mod17=%i\n", Boatlist[playerid][mod17]); fwrite(BoatFile, var);
    fclose(BoatFile);
    if(Boatlist[playerid][Carid]!=-1)
{
SetBoatParamsForAll(Boatlist[playerid][Carid],0,0);
DestroyVehicle(Boatlist[playerid][Carid]);
Boatlist[playerid][Carid]=-1;
}

format(dateiname, sizeof(dateiname), "Letjelice/%s.let", playername);
new File: PlaneFile = fopen(dateiname, io_write);
    format(var, 256, "PLANE_planeTyp=%i\n", Planelist[playerid][planeTyp]); fwrite(PlaneFile, var);
    format(var, 256, "PLANE_X=%f\n", Planelist[playerid][X3]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_Y=%f\n", Planelist[playerid][Y3]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_Z=%f\n", Planelist[playerid][Z3]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_Rot=%f\n", Planelist[playerid][Rotation]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_Status=%i\n", Planelist[playerid][Status]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_Lock=%i\n", Planelist[playerid][Lock]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_Paintjob=%i\n", Planelist[playerid][Paintjob]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_Color1=%i\n", Planelist[playerid][Color1]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_Color2=%i\n", Planelist[playerid][Color2]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod1=%i\n", Planelist[playerid][mod1]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod2=%i\n", Planelist[playerid][mod2]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod3=%i\n", Planelist[playerid][mod3]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod4=%i\n", Planelist[playerid][mod4]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod5=%i\n", Planelist[playerid][mod5]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod6=%i\n", Planelist[playerid][mod6]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod7=%i\n", Planelist[playerid][mod7]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod8=%i\n", Planelist[playerid][mod8]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod9=%i\n", Planelist[playerid][mod9]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod10=%i\n", Planelist[playerid][mod10]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod11=%i\n", Planelist[playerid][mod11]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod12=%i\n", Planelist[playerid][mod12]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod13=%i\n", Planelist[playerid][mod13]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod14=%i\n", Planelist[playerid][mod14]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod15=%i\n", Planelist[playerid][mod15]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod16=%i\n", Planelist[playerid][mod16]); fwrite(PlaneFile, var);
format(var, 256, "PLANE_mod17=%i\n", Planelist[playerid][mod17]); fwrite(PlaneFile, var);
    fclose(PlaneFile);
    if(Planelist[playerid][Carid]!=-1)
{
SetPlaneParamsForAll(Planelist[playerid][Carid],0,0);
DestroyVehicle(Planelist[playerid][Carid]);
Planelist[playerid][Carid]=-1;
}

if (Spectating[playerid][0]!=-1)
    {
        SetVehicleParamsForAll(Buylist[Spectating[playerid][0]][Carid],0,0);
        Spectating[playerid][0]=-1;
}
if (bSpectating[playerid][0]!=-1)
    {
        SetBikeParamsForAll(BikeBuylist[Spectating[playerid][0]][Carid],0,0);
        bSpectating[playerid][0]=-1;
}
if (BrodSpectating[playerid][0]!=-1)
    {
        SetBoatParamsForAll(BoatBuylist[BrodSpectating[playerid][0]][Carid],0,0);
        BrodSpectating[playerid][0]=-1;
}
if (planeSpectating[playerid][0]!=-1)
    {
        SetPlaneParamsForAll(planeBuylist[planeSpectating[playerid][0]][Carid],0,0);
        planeSpectating[playerid][0]=-1;
}
VehicleSave(playerid);
MotoSave(playerid);
PlSave(playerid);
LetjeliceSave(playerid);
/*if(GettingCK[playerid] < 999)
{
    if(IsPlayerConnected(GettingCK[playerid]))
    {
        SendClientMessage(GettingCK[playerid], COLOR_YELLOW, "Your Character Kill has left the server, try again later.");
        OnCK[GettingCK[playerid]] = 999;
    }
}*/
if (GetPlayerVehicleID(playerid) == 189) SetVehicleToRespawn(189);
SacuvajIgraca(playerid);
//----------------------------------------------------------
if(TransportCost[playerid] > 0 && TransportDriver[playerid] < 999)
{
    if(IsPlayerConnected(TransportDriver[playerid]))
{
    new string[64];
    TransportMoney[TransportDriver[playerid]] += TransportCost[playerid];
    TransportTime[TransportDriver[playerid]] = 0;
    TransportCost[TransportDriver[playerid]] = 0;
    format(string, sizeof(string), "~w~Putnik je izasao~n~~g~Zarada $%d",TransportCost[playerid]);
    GameTextForPlayer(TransportDriver[playerid], string, 5000, 1);
}
}
if(GotHit[playerid] > 0)
{
    if(GetChased[playerid] < 999)
    {
        if(IsPlayerConnected(GetChased[playerid]))
        {
        SendClientMessage(GetChased[playerid], COLOR_YELLOW, "Vasa meta je izasla sa servera.");
            GoChase[GetChased[playerid]] = 999;
}
    }
}
if(PlayerPaintballing[playerid] != 0)
{
    PaintballPlayers --;
}
if(PlayerKarting[playerid] > 0 && PlayerInKart[playerid] > 0)
{
    KartingPlayers --;
}
if(PlayersChannel[playerid] < 999)
{
IRCInfo[PlayersChannel[playerid]][iPlayers] -= 1;
}
if(HireCar[playerid] != 299)
{
gLastDriver[HireCar[playerid]] = 300;
gCarLock[HireCar[playerid]] = 0;
UnLockCar(HireCar[playerid]);
if(reason != 0)
{
SetVehicleToRespawn(HireCar[playerid]);
}
}
if(GangCar[playerid] != 512)
{
gLastDriver[GangCar[playerid]] = 520;
gCarLock[GangCar[playerid]] = 0;
UnLockCar(GangCar[playerid]);
}
if (gLastCar[playerid] > 0)
{
gLastDriver[gLastCar[playerid]] = 300;
if(PlayerInfo[playerid][pPhousekey] != gLastCar[playerid]-1)
{
gCarLock[gLastCar[playerid]] = 0;
UnLockCar(gLastCar[playerid]);
}
}
if(PlayerBoxing[playerid] > 0)
{
    if(Boxer1 == playerid)
    {
        if(IsPlayerConnected(Boxer2))
        {
        PlayerBoxing[Boxer2] = 0;
        SetPlayerPos(Boxer2, 765.8433,3.2924,1000.7186);
        SetPlayerInterior(Boxer2, 5);
        PlayerInfo[Boxer2][pInt] = 5;
        GameTextForPlayer(Boxer2, "~r~Mech je prekinut", 5000, 1);
}
    }
    else if(Boxer2 == playerid)
    {
        if(IsPlayerConnected(Boxer1))
        {
        PlayerBoxing[Boxer1] = 0;
        SetPlayerPos(Boxer1, 765.8433,3.2924,1000.7186);
        SetPlayerInterior(Boxer1, 5);
        PlayerInfo[Boxer2][pInt] = 5;
        GameTextForPlayer(Boxer1, "~r~Mech je prekinut", 5000, 1);
}
    }
    InRing = 0;
      RoundStarted = 0;
Boxer1 = 255;
Boxer2 = 255;
TBoxer = 255;
}
    if(TransportDuty[playerid] == 1)
{
TaxiDrivers -= 1;
}
    else if(TransportDuty[playerid] == 2)
{
BusDrivers -= 1;
}
if(PlayerInfo[playerid][pJob] == 11)
{
    if(JobDuty[playerid] == 1) { Medics -= 1; }
}
else if(PlayerInfo[playerid][pJob] == 7)
{
    if(JobDuty[playerid] == 1) { Mechanics -= 1; }
}
else if(PlayerInfo[playerid][pJob] == 17)
{
if(JobDuty[playerid] == 1) { PizzaBoys -= 1; }
}
if (PlayerInfo[playerid][pRoadblock] != 0)
{
RemoveRoadblock(playerid);
}
BusrouteEast[playerid][0] = 0;
BusrouteWest[playerid][0] = 0;
/*TextDrawHideForPlayer(playerid,logo0);
TextDrawHideForPlayer(playerid,logo1);
TextDrawHideForPlayer(playerid,logo2);
TextDrawHideForPlayer(playerid,logo3);*/

if(playerid == CashboxOwner)
{
    new str[128], pName[MAX_PLAYER_NAME];
    GetPlayerPos(playerid, CashboxX, CashboxY, CashboxZ);
    GetPlayerName(playerid, pName, sizeof(pName));
    format(str, 128, "%s (ID: %d) je izasao sa servera i ispustio aktovku!", pName, playerid);
    SendClientMessageToAll(0xFFD700AA, str);
CashboxPickup = CreatePickup(1210, 3, CashboxX, CashboxY, CashboxZ);
CashboxOwner = INVALID_PLAYER_ID;
}
if(playerid == DrogaVlasnik)
{
    new str[128], pName[MAX_PLAYER_NAME];
    GetPlayerPos(playerid, DrogaX, DrogaY, DrogaZ);
    GetPlayerName(playerid, pName, sizeof(pName));
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 5 || PlayerInfo[i][pLeader] == 5 || PlayerInfo[i][pMember] == 6 || PlayerInfo[i][pLeader] == 6 || PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 12 || PlayerInfo[i][pMember] == 13 || PlayerInfo[i][pLeader] == 13 || PlayerInfo[i][pLeader] == 14 ||PlayerInfo[i][pMember] == 14 || PlayerInfo[i][pMember] == 15 || PlayerInfo[i][pLeader] == 15 || PlayerInfo[i][pMember] == 16 || PlayerInfo[i][pLeader] == 16)
{
    format(str, 128, "{FFFFFF}%s {FFD700}je izasao sa servera i ispustio paket droge!", pName);
    SendClientMessage(i,0xFFD700AA,  str);
    }
    }
    }
DrogaPickup = CreatePickup(1279, 3, DrogaX, DrogaY, DrogaZ);
DrogaPickupStvoren = 1;
DrogaVlasnik = INVALID_PLAYER_ID;
}
}
Poslednja Izmena: Mart 30, 2012, 01:39:35 PRE PODNE od PaVlOv
-=Last Gaming=-193.192.58.216:7791

Izradjujem website, vise na pm.