Hey Leute,ich habe ein Problem!
Die Sirene wird nicht erstellt.. hier der Befehl:
ocmd:sirene(playerid,params[])
{
if(GetPVarInt(playerid,"Fraktion")==1)
{
if(IsPlayerInVehicle(playerid,560))
{
if(hatSirene[GetPlayerVehicleID(playerid)]==0)
{
sirene[GetPlayerVehicleID(playerid)] = CreateObject(18646, 0, 0, 0, 0, 0, 0);
AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), 0-0.5, 0, 0+0.68, 0, 0, 0); //Object Model: 19419 |
SendClientMessage(playerid,gruen,"Sirene an.");
hatSirene[GetPlayerVehicleID(playerid)]=1;
}
else
{
DestroyObject(sirene[GetPlayerVehicleID(playerid)]);
SendClientMessage(playerid,gruen,"Sirene aus.");
hatSirene[GetPlayerVehicleID(playerid)]=0;
}
}
}
return 1;
}