@Jerola nö ist Verkauft
Beiträge von BurnZ|Hendrik
-
-
Soweit ich weiß kann man die nicht Verkaufen ?
-
Kommt drauf an wie viel du bietest
-
Jo Benutzer Fortschritt und Jcoins. Hab ich jetzt anders gelöst müsste jetzt richtig anzeigen
-
@The Sensei aktualisiert müsste jetzt funktionieren
-
-
Keine Ahnung woran es liegt kannst es dir ja mal selber anschauen...
-
Jo hab ich.
Jo hab so einmal alles nachgeschaut müsste alles okay sein. -
Moiinn zusammen ich habe ein Problem ich habe mir ein DayZ script heruntergeladen aber es funktioniert nicht beim Starten kommt in der Konsole "Speicherzugriffsfehler"
mal eben gesagt was drin ist:
Streamer: neueste Incognito Streamer
Mysql :R33 von BlueG
SScanf ;2.8.2 von Y_Less
FCNPC : ka
MapSanAndreas: kaHier der debug Log von Crashdetect
----------
Loaded log file: "server_log.txt".
----------SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team[00:19:22] filterscripts = "" (string)
[00:19:22]
[00:19:22] Server Plugins
[00:19:22] --------------
[00:19:22] Loading plugin: crashdetect.so
[00:19:22] CrashDetect v4.18.1 is OK.
[00:19:22] Loaded.
[00:19:22] Loading plugin: mysql_static.so
[00:19:22] >> plugin.mysql: R33 successfully loaded.
[00:19:22] Loaded.
[00:19:22] Loading plugin: streamer.so
[00:19:22]*** Streamer Plugin v2.9.3 by Incognito loaded ***
[00:19:22] Loaded.
[00:19:22] Loading plugin: sscanf.so
[00:19:22][00:19:22] ===============================
[00:19:22] sscanf plugin loaded.
[00:19:22] Version: 2.8.1
[00:19:22] (c) 2012 Alex "Y_Less" Cole
[00:19:22] ===============================
[00:19:22] Loaded.
[00:19:22] Loading plugin: MapAndreas.so
[00:19:22] Loaded.
[00:19:22] Loading plugin: FCNPC.so
[00:19:22]
[00:19:22] -------------------------------------------------
[00:19:22] FCNPC - Fully Controllable NPC v0.1 B15
[00:19:22]
[00:19:22] - Author: OrMisicL
[00:19:22] - Build: Jun 2 2015 at 09:50:10
[00:19:22] -------------------------------------------------
[00:19:22]
[00:19:22] Loading ...
[00:19:22] Loaded.
[00:19:22] Loaded 6 plugins.[00:19:22]
[00:19:22] Filterscripts
[00:19:22] ---------------
[00:19:22] Loaded 0 filterscripts.[00:19:23] [debug] Server crashed due to an unknown error
[00:19:23] [debug] Native backtrace:
[00:19:23] [debug] #0 f7432180 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[00:19:23] [debug] #1 f742a064 in _ZN11CrashDetect20PrintNativeBacktraceERSoRKN2os7ContextE () from plugins/crashdetect.so
[00:19:23] [debug] #2 f742ad64 in _ZN11CrashDetect20PrintNativeBacktraceERKN2os7ContextE () from plugins/crashdetect.so
[00:19:23] [debug] #3 f742ccdb in _ZN11CrashDetect7OnCrashERKN2os7ContextE () from plugins/crashdetect.so
[00:19:23] [debug] #4 f74314d5 in ?? () from plugins/crashdetect.so
[00:19:23] [debug] #5 f7794d50 in __kernel_rt_sigreturn () from linux-gate.so.1
[00:19:23] [debug] #6 f65278a3 in _ZN8CAddress10InitializeEv () from plugins/FCNPC.so
[00:19:23] [debug] #7 f6531f39 in _ZN7CServer10InitializeEv () from plugins/FCNPC.so
[00:19:23] [debug] #8 f6529695 in AmxLoad () from plugins/FCNPC.so
[00:19:23] [debug] #9 080d1c89 in ?? () from ./samp03svr
[00:19:23] [debug] #10 080a4f5f in ?? () from ./samp03svr
[00:19:23] [debug] #11 080ab922 in ?? () from ./samp03svr
[00:19:23] [debug] #12 080aa0fd in ?? () from ./samp03svr
[00:19:23] [debug] #13 f7474a63 in __libc_start_main () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[00:19:23] [debug] #14 0804b4e1 in ?? () from ./samp03svr
[00:19:23] [debug] Registers:
[00:19:23] [debug] EAX: 00000000 EBX: f653aff4 ECX: 00000000 EDX: 0000000f
[00:19:23] [debug] ESI: f6533c93 EDI: f6533cca EBP: ffaf4d78 ESP: ffaf4c90
[00:19:23] [debug] EIP: f65278a3 EFLAGS: 00010246
[00:19:23] [debug] Stack:
[00:19:23] [debug] ESP+00000000: f6533db3 f6533cd2 080d1920 f6527698
[00:19:23] [debug] ESP+00000020: 084443f0 f65216ec ffaf4cf8 f657b152
[00:19:23] [debug] ESP+00000040: ffaf4d78 f77ab6e0 084450d0 f6531ef0
[00:19:23] [debug] ESP+00000060: 08444fb0 085a0368 ffaf4d78 f7784574
[00:19:23] [debug] ESP+00000080: f7784644 f77841b0 f7784654 f7784290
[00:19:23] [debug] ESP+000000a0: f778469a f7784300 f77846b5 f7784330
[00:19:23] [debug] ESP+000000c0: 084450d0 0843fe08 085a0368 080d1c89
[00:19:23] [debug] ESP+000000e0: ffaf4d9c 00000002 ffaf4da8 080a4f5f
[00:19:23] [debug] ESP+00000100: 08159f68 00000000 00000400 08445dd8
[00:19:23] [debug] ESP+00000120: 085a0368 081ca500 ffaf4dc8 08445dd8
[00:19:23] [debug] ESP+00000140: 08445dd8 00000001 00000006 08159d0d
[00:19:23] [debug] ESP+00000160: f775aef0 f775ae84 ffaf4e98 f76ff036
[00:19:23] [debug] ESP+00000180: 00010100 00001e62 00000032 006d5a53
[00:19:23] [debug] ESP+000001a0: f7755000 f775ae84 f775aaa0 f76d5b9b
[00:19:23] [debug] ESP+000001c0: f7755000 f775af40 f775b0c0 f76c633d
[00:19:23] [debug] ESP+000001e0: 00000000 00000000 00000000 00000000
[00:19:23] [debug] ESP+00000200: 00000000 00000000 00000000 00000000
[00:19:23] [debug] ESP+00000220: 00000000 00000000 00000000 00000000
[00:19:23] [debug] ESP+00000240: 00000000 00000000 00000000 00000000
[00:19:23] [debug] ESP+00000260: f76043c4 f77b8000 0815065b f7604000
[00:19:23] [debug] ESP+00000280: 00000001 ffaf4fa4 ffaf4fac f77a5e9a
[00:19:23] [debug] ESP+000002a0: 080494b0 f7604000 00000000 00000000
[00:19:23] [debug] ESP+000002c0: 00000000 00000000 00000001 0804b4c0
[00:19:23] [debug] ESP+000002e0: 00000001 0804b4c0 00000000 0804b4e1
[00:19:23] [debug] ESP+00000300: 08150640 f77a6350 ffaf4f9c 0000001c
[00:19:23] [debug] ESP+00000320: ffaf5e95 ffaf5ea0 ffaf5eb0 ffaf5ed0
[00:19:23] [debug] ESP+00000340: ffaf5f52 ffaf5f63 ffaf5f6b ffaf5f76
[00:19:23] [debug] ESP+00000360: 00000000 00000020 f7794d60 00000021
[00:19:23] [debug] ESP+00000380: 00001000 00000011 00000064 00000003
[00:19:23] [debug] ESP+000003a0: 00000008 00000007 f7797000 00000008
[00:19:23] [debug] ESP+000003c0: 00000000 0000000c 00000000 0000000d
[00:19:23] [debug] ESP+000003e0: 00000000 00000019 ffaf509b 0000001f
[00:19:23] [debug] Loaded modules:
[00:19:23] [debug] 00000000 - 00187dc3 samp03svr
[00:19:23] [debug] f7794000 - f7794e98 linux-gate.so.1
[00:19:23] [debug] f777a000 - f777c81b /lib/i386-linux-gnu/i686/cmov/libdl.so.2
[00:19:23] [debug] f775e000 - f7778d2b /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
[00:19:23] [debug] f766b000 - f7764ce6 /usr/lib32/libstdc++.so.6
[00:19:23] [debug] f7625000 - f7669b43 /lib/i386-linux-gnu/i686/cmov/libm.so.6
[00:19:23] [debug] f7608000 - f76243c4 /lib/i386-linux-gnu/libgcc_s.so.1
[00:19:23] [debug] f745b000 - f761022f /lib/i386-linux-gnu/i686/cmov/libc.so.6
[00:19:23] [debug] f7797000 - f77b7d6c /lib/ld-linux.so.2
[00:19:23] [debug] f7414000 - f7456ac4 plugins/crashdetect.so
[00:19:23] [debug] f7129000 - f7414204 plugins/mysql_static.so
[00:19:23] [debug] f7788000 - f778f09f /lib/i386-linux-gnu/i686/cmov/librt.so.1
[00:19:23] [debug] f6908000 - f69133ef /lib/i386-linux-gnu/i686/cmov/libnss_files.so.2
[00:19:23] [debug] f653c000 - f6600bcf plugins/streamer.so
[00:19:23] [debug] f6919000 - f6927470 plugins/sscanf.so
[00:19:23] [debug] f7782000 - f77855d8 plugins/MapAndreas.so
[00:19:23] [debug] f6520000 - f653ac69 plugins/FCNPC.soMfG Hendrik
-
So habs doch gefunden
hab vergessen die log-core.so mit in den Ordner zu tun.
Trotzdem danke an alle
-
Gerade R41.2
MYSQL postet keine Logs
-
Hab nochmal Include und Plugin ersetzt und erneut gestartet funktioniert immer noch nicht
mfg
-
Moin,
ich hab heute mein Dini basierte Script auf MYSQL umgeschrieben
hab den Crashdetect reingepackt und bekomme diese Fehler:20:02:30] [debug] cache_get_row_count
[20:02:30] [debug] mysql_format
[20:02:30] [debug] mysql_tquery
[20:02:30] [debug] cache_is_valid
[20:02:30] [debug] cache_delete
[20:02:30] [debug] mysql_init_options
[20:02:30] [debug] mysql_set_option
[20:02:30] [debug] mysql_connect
[20:02:30] [debug] mysql_errno
[20:02:30] [debug] mysql_close
[20:02:30] [debug] mysql_pquery
[20:02:30] [debug] cache_set_active
[20:02:30] [debug] cache_get_value_name_int
[20:02:30] [debug] cache_get_value_name
[20:02:30] [debug] cache_save
[20:02:30] [debug] Run time error 19: "File or function is not found"
[20:02:30] [debug] cache_get_row_count
[20:02:30] [debug] mysql_format
[20:02:30] [debug] mysql_tquery
[20:02:30] [debug] cache_is_valid
[20:02:30] [debug] cache_delete
[20:02:30] [debug] mysql_init_options
[20:02:30] [debug] mysql_set_option
[20:02:30] [debug] mysql_connect
[20:02:30] [debug] mysql_errno
[20:02:30] [debug] mysql_close
[20:02:30] [debug] mysql_pquery
[20:02:30] [debug] cache_set_active
[20:02:30] [debug] cache_get_value_name_int
[20:02:30] [debug] cache_get_value_name
[20:02:30] [debug] cache_saveMYSQL ist von BlueG R41.2
mfg
Hendrik -
Guten Tag,
ich Verkaufe hier meine WBB 4.0 LizenzVHB 35€
Kompletter Account wird Verkauft per Paypal.
mfg Hendrik
-
Hey,
ich habe ein Problem mit meinem Sirenen Befehl, ich möchte gerne das die Sirenen beim: OnVehicleDeath,OnVehicleSpawn & OnPlayerDisconnect
gelöscht werden nun aber Funktioniert es halt nicht ich habe gerade keine Ahnung mehr und bitte euch um Hilfe.
Ich danke euch/Ihnen schon im vorraus.Sirenen Befehl
if(strcmp(cmd, "/sirene", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22 && OnDuty[playerid]==1)
{
new vid = GetPlayerVehicleID(playerid);
if((IsACopCar(vid) || IsASWATCar(vid) ||IsAArmyCar(vid)|| IsAFbiCar(vid)) && IsPlayerInAnyVehicle(playerid))
{
if(hatsirene[playerid] == 0)
{
new Float:x,Float:y,Float:z;
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 411)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.470000,0.139999,0.724999,1.439999,6.300001,67.500007);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 451)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.460000,-0.349999,0.615000,0.000000,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 560)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.599999,0.075000,0.875000,0.000000,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 421)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.420000,0.159999,0.750000,0.000000,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 470)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.689999,0.029999,1.135000,0.000000,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 402)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.420000,-0.450000,0.809997,0.000000,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 541)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.380000,0.000000,0.680000,0.000000,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 507)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.599999,0.000000,0.830000,-3.239999,-0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 433)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"),vid, 0.000000,1.350000,1.054999,0.000000,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 415)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.400000,-0.150000,0.650000,-8.100001,-2.699999,-18.899980);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 427)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.889999,0.150000,1.700000,0.000000,0.000000,0.000000);
SetPVarInt(playerid, "sirene1",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene1"), vid, 0.899999,0.150000,1.700000,0.000000,0.000000,0.000000);
SetPVarInt(playerid, "sirene2",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene2"),vid, 0.899999,-3.185001,1.700000,0.000000,0.000000,0.000000);
SetPVarInt(playerid, "sirene3",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene3"), vid, -0.899999,-3.185001,1.700000,0.000000,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 426)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"),vid, -0.539999,0.000000,0.850000,0.000000,-2.700002,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 528)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"),vid, 0.305000,0.739999,0.609999,0.000000,0.000000,-0.000001);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 428)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"),vid, 0.950000,1.069999,1.340000,0.000000,0.000000,0.000000);
SetPVarInt(playerid, "sirene1",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene1"), vid, -0.934999,1.069999,1.340000,0.000000,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 601)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"),vid, 0.529999,-2.450000,1.439999,-3.960001,-5.940001,-234.719818);
SetPVarInt(playerid, "sirene1",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene1"),vid, -0.539999,1.500000,1.540000,-3.960001,1.619993,-234.719818);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
return 1;
}
if(hatsirene[playerid] == 1)
{
if(!IsPlayerInAnyVehicle(playerid))
return SendClientMessage(playerid, COLOR_RED,"Du musst in deinem altem Auto sitzen um das zu machen!");
{
DestroyObject(GetPVarInt(playerid, "sirene"));
DestroyObject(GetPVarInt(playerid, "sirene1"));
DestroyObject(GetPVarInt(playerid, "sirene2"));
DestroyObject(GetPVarInt(playerid, "sirene3"));
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Abgebaut!");
hatsirene[playerid] = 0;
}
return 1;
}
else
{
SendClientMessage(playerid,COLOR_YELLOW,"Du gehörst nicht der Fraktion LSPD,SWAT,FBI oder Army an");
return 1;
}
}
else
{
SendClientMessage(playerid,COLOR_YELLOW,"Du sitzt in keinem Staatsauto!");
return 1;
}
}
else
{
SendClientMessage(playerid,COLOR_YELLOW,"Du gehörst keiner Staatsfraktion an oder bist nicht Duty");
}
return 1;
}
if(strcmp(cmd, "/msirene", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4 && JobDuty[playerid] == 1)
{
new vid = GetPlayerVehicleID(playerid);
if(IsAMedicCar(vid) && IsPlayerInAnyVehicle(playerid))
{
if(hatsirene[playerid] == 0)
{
new Float:x,Float:y,Float:z;
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 560)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.585000,0.000000,1.220000,0.000000,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 426)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"),vid, -0.539999,0.000000,0.850000,0.000000,-2.700002,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 428)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"),vid, 0.950000,1.069999,1.340000,0.000000,0.000000,0.000000);
SetPVarInt(playerid, "sirene1",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene1"), vid, -0.934999,1.069999,1.340000,0.000000,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 544)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene", CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.939999,2.735000,1.480000,0.000000,0.000000,0.000000);
SetPVarInt(playerid, "sirene1", CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene1"), vid, 0.944999,2.735000,1.480000,0.000000,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 561)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene", CreateObject(18646,0,0,-1000,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.449999,0.174999,0.764999,-3.239999,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
return 1;
}
if(hatsirene[playerid] == 1)
{
if(!IsPlayerInAnyVehicle(playerid))
return SendClientMessage(playerid, COLOR_RED,"Du musst in dem Auto sitzen wo du um das zu machen!");
{
DestroyObject(GetPVarInt(playerid, "sirene"));
DestroyObject(GetPVarInt(playerid, "sirene1"));
DestroyObject(GetPVarInt(playerid, "sirene2"));
DestroyObject(GetPVarInt(playerid, "sirene3"));
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Abgebaut!");
hatsirene[playerid] = 0;
}
return 1;
}
else
{
SendClientMessage(playerid,COLOR_YELLOW,"Du bist nicht in der Fraktion der Medics oder bist Offduty!");
return 1;
}
}
else
{
SendClientMessage(playerid,COLOR_YELLOW,"Du sitzt in keinem Medicauto!");
return 1;
}
}
else
{
SendClientMessage(playerid,COLOR_YELLOW,"Du bist nicht in der Fraktion der Medics oder bist Offduty!");
}
return 1;
}if(strcmp(cmd, "/sirene", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22 && OnDuty[playerid]==1)
{
new vid = GetPlayerVehicleID(playerid);
if((IsACopCar(vid) || IsASWATCar(vid) ||IsAArmyCar(vid)|| IsAFbiCar(vid)) && IsPlayerInAnyVehicle(playerid))
{
if(hatsirene[playerid] == 0)
{
new Float:x,Float:y,Float:z;
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 411)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.470000,0.139999,0.724999,1.439999,6.300001,67.500007);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 451)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.460000,-0.349999,0.615000,0.000000,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 560)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.599999,0.075000,0.875000,0.000000,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 421)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.420000,0.159999,0.750000,0.000000,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 470)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.689999,0.029999,1.135000,0.000000,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 402)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.420000,-0.450000,0.809997,0.000000,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 541)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.380000,0.000000,0.680000,0.000000,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 507)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.599999,0.000000,0.830000,-3.239999,-0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 433)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"),vid, 0.000000,1.350000,1.054999,0.000000,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 415)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.400000,-0.150000,0.650000,-8.100001,-2.699999,-18.899980);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 427)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.889999,0.150000,1.700000,0.000000,0.000000,0.000000);
SetPVarInt(playerid, "sirene1",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene1"), vid, 0.899999,0.150000,1.700000,0.000000,0.000000,0.000000);
SetPVarInt(playerid, "sirene2",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene2"),vid, 0.899999,-3.185001,1.700000,0.000000,0.000000,0.000000);
SetPVarInt(playerid, "sirene3",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene3"), vid, -0.899999,-3.185001,1.700000,0.000000,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 426)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"),vid, -0.539999,0.000000,0.850000,0.000000,-2.700002,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 528)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"),vid, 0.305000,0.739999,0.609999,0.000000,0.000000,-0.000001);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 428)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"),vid, 0.950000,1.069999,1.340000,0.000000,0.000000,0.000000);
SetPVarInt(playerid, "sirene1",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene1"), vid, -0.934999,1.069999,1.340000,0.000000,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 601)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"),vid, 0.529999,-2.450000,1.439999,-3.960001,-5.940001,-234.719818);
SetPVarInt(playerid, "sirene1",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene1"),vid, -0.539999,1.500000,1.540000,-3.960001,1.619993,-234.719818);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
return 1;
}
if(hatsirene[playerid] == 1)
{
if(!IsPlayerInAnyVehicle(playerid))
return SendClientMessage(playerid, COLOR_RED,"Du musst in deinem altem Auto sitzen um das zu machen!");
{
DestroyObject(GetPVarInt(playerid, "sirene"));
DestroyObject(GetPVarInt(playerid, "sirene1"));
DestroyObject(GetPVarInt(playerid, "sirene2"));
DestroyObject(GetPVarInt(playerid, "sirene3"));
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Abgebaut!");
hatsirene[playerid] = 0;
}
return 1;
}
else
{
SendClientMessage(playerid,COLOR_YELLOW,"Du gehörst nicht der Fraktion LSPD,SWAT,FBI oder Army an");
return 1;
}
}
else
{
SendClientMessage(playerid,COLOR_YELLOW,"Du sitzt in keinem Staatsauto!");
return 1;
}
}
else
{
SendClientMessage(playerid,COLOR_YELLOW,"Du gehörst keiner Staatsfraktion an oder bist nicht Duty");
}
return 1;
}
if(strcmp(cmd, "/msirene", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4 && JobDuty[playerid] == 1)
{
new vid = GetPlayerVehicleID(playerid);
if(IsAMedicCar(vid) && IsPlayerInAnyVehicle(playerid))
{
if(hatsirene[playerid] == 0)
{
new Float:x,Float:y,Float:z;
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 560)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.585000,0.000000,1.220000,0.000000,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 426)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"),vid, -0.539999,0.000000,0.850000,0.000000,-2.700002,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 428)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"),vid, 0.950000,1.069999,1.340000,0.000000,0.000000,0.000000);
SetPVarInt(playerid, "sirene1",CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene1"), vid, -0.934999,1.069999,1.340000,0.000000,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 544)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene", CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.939999,2.735000,1.480000,0.000000,0.000000,0.000000);
SetPVarInt(playerid, "sirene1", CreateObject(18646,x,y,z,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene1"), vid, 0.944999,2.735000,1.480000,0.000000,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 561)
{
GetPlayerPos(playerid,x,y,z);
SetPVarInt(playerid, "sirene", CreateObject(18646,0,0,-1000,0,0,0,100));
AttachObjectToVehicle(GetPVarInt(playerid, "sirene"), vid, -0.449999,0.174999,0.764999,-3.239999,0.000000,0.000000);
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Angebracht!");
hatsirene[playerid] = 1;
sirenenvehicle[GetPlayerVehicleID(playerid)] = playerid;
}
return 1;
}
if(hatsirene[playerid] == 1)
{
if(!IsPlayerInAnyVehicle(playerid))
return SendClientMessage(playerid, COLOR_RED,"Du musst in dem Auto sitzen wo du um das zu machen!");
{
DestroyObject(GetPVarInt(playerid, "sirene"));
DestroyObject(GetPVarInt(playerid, "sirene1"));
DestroyObject(GetPVarInt(playerid, "sirene2"));
DestroyObject(GetPVarInt(playerid, "sirene3"));
SendClientMessage(playerid, COLOR_GRAD1, "Sirene Abgebaut!");
hatsirene[playerid] = 0;
}
return 1;
}
else
{
SendClientMessage(playerid,COLOR_YELLOW,"Du bist nicht in der Fraktion der Medics oder bist Offduty!");
return 1;
}
}
else
{
SendClientMessage(playerid,COLOR_YELLOW,"Du sitzt in keinem Medicauto!");
return 1;
}
}
else
{
SendClientMessage(playerid,COLOR_YELLOW,"Du bist nicht in der Fraktion der Medics oder bist Offduty!");
}
return 1;
}
Function OnVehicleSpawn(vehicleid)
{
Gas[vehicleid] = GetGasMax(vehicleid);
DestroyObject(taxif[vehicleid]);
taxifan[vehicleid] =false;
DestroyObject(supsirene[vehicleid]);
DestroyObject(GetPVarInt(sirenenvehicle[vehicleid], "neon"));
DestroyObject(GetPVarInt(sirenenvehicle[vehicleid], "neon1"));
HatSchonNeon[sirenenvehicle[vehicleid]] = 0;
DestroyObject(GetPVarInt(sirenenvehicle[vehicleid], "sirene"));
DestroyObject(GetPVarInt(sirenenvehicle[vehicleid], "sirene1"));
DestroyObject(GetPVarInt(sirenenvehicle[vehicleid], "sirene2"));
DestroyObject(GetPVarInt(sirenenvehicle[vehicleid], "sirene3"));
hatsirene[sirenenvehicle[vehicleid]] = 0;
DestroyObject(GetPVarInt(sirenenvehicle[vehicleid], "gelblicht"));
DestroyObject(GetPVarInt(sirenenvehicle[vehicleid], "gelblicht1"));
gcl[sirenenvehicle[vehicleid]] = 0;
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{
for(new x = 0; x < MaxVeh; x++)
{
if(IsPlayerConnected(playerid) && Dtc_PlayerHaveCar[playerid][x])
{
if (vehicleid == PlayerCar[playerid][x][CarId])
{
SetTimerEx("CarTuning",700,0,"ii",playerid,x);
}
}
}
}
return 1;
}Function OnVehicleDeath(vehicleid,killerid)
{
DestroyObject(taxif[vehicleid]);
taxifan[vehicleid] =false;
DestroyObject(supsirene[vehicleid]);
FRAC_OnVehicleDeath(vehicleid, killerid);
DestroyObject(GetPVarInt(sirenenvehicle[vehicleid], "neon"));
DestroyObject(GetPVarInt(sirenenvehicle[vehicleid], "neon1"));
HatSchonNeon[sirenenvehicle[vehicleid]] = 0;
DestroyObject(GetPVarInt(sirenenvehicle[vehicleid], "sirene"));
DestroyObject(GetPVarInt(sirenenvehicle[vehicleid], "sirene1"));
DestroyObject(GetPVarInt(sirenenvehicle[vehicleid], "sirene2"));
DestroyObject(GetPVarInt(sirenenvehicle[vehicleid], "sirene3"));
hatsirene[sirenenvehicle[vehicleid]] = 0;
DestroyObject(GetPVarInt(sirenenvehicle[vehicleid], "gelblicht"));
DestroyObject(GetPVarInt(sirenenvehicle[vehicleid], "gelblicht1"));
gcl[sirenenvehicle[vehicleid]] = 0;
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{
for(new x = 0; x < MaxVeh; x++)
{
if(IsPlayerConnected(playerid) && Dtc_PlayerHaveCar[playerid][x])
{
if (vehicleid == PlayerCar[playerid][x][CarId])
{
DestroyVehicle(PlayerCar[playerid][x][CarId]);
PlayerCarSpawn(playerid,x);
}
}
}
}
return 1;
}
Function OnPlayerDisconnect(playerid, reason)
{
//TextDrawHideForPlayer(playerid, Respekt[playerid]);
//TextDrawDestroy(Respekt[playerid]);
//PlayerTextDrawDestroy(playerid, Respekt[playerid]);// ist auf dem desk
// if(Desktop_Timer_Started[playerid] == 1) { KillTimer(Desktop_Timer[playerid]); }
DestroyObject(GetPVarInt(playerid, "sirene"));
DestroyObject(GetPVarInt(playerid, "sirene1"));
DestroyObject(GetPVarInt(playerid, "sirene2"));
DestroyObject(GetPVarInt(playerid, "sirene3"));
hatsirene[playerid] = 0;
// ist auf dem desk ende
DestroyObject(taxif[GetPlayerVehicleID(playerid)]);
taxifan[GetPlayerVehicleID(playerid)] =false;
DestroyObject(GetPVarInt(playerid, "neon"));
DestroyObject(GetPVarInt(playerid, "neon1"));
HatSchonNeon[playerid] = 0;
DestroyObject(GetPVarInt(playerid, "gelblicht"));
DestroyObject(GetPVarInt(playerid, "gelblicht1"));