ich habe eben aus spaß ein script gemacht damit mann im kofferraum ein verstärker hat
new tv;
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/power", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
new engine,lights,alarm,doors,bonnet,boot,objective;
new cid = GetPlayerVehicleID(playerid);
if(GetPVarInt(playerid, "Kofferraum") == 0)
{
GetVehicleParamsEx(cid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(cid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
SetPVarInt(playerid, "Kofferraum", 1);
tv = CreateObject(1788, 0.03, -1.92, 0.20, 0.00, 0.00, 0.00);
AttachObjectToVehicle(tv,cid,0.03, -1.92, 0.20, 0.00, 0.00, 0.00);
}
else if(GetPVarInt(playerid, "Kofferraum") == 1)
{
GetVehicleParamsEx(cid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(cid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective);
SetPVarInt(playerid, "Kofferraum", 0);
DestroyObject(tv);
}
}
return 1;
}
return 0;
}
ich finde es geil
bilder:
hier noch ein Link
wie findet ihr es