I use this, but when i enter /neon nothing happens. Tryed with police car.
pawn Код:
if(strcmp("/neon", cmdtext, true, 10) == 0)
{
new neon = CreateObject(18648, 0.0, 0.0, 0.0, 0.0, 0.0, 96.0);
new neon1 = CreateObject(18648, 0.0, 0.0, 0.0, 0.0, 0.0, 96.0);
AttachObjectToVehicle(neon, GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(neon1, GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_WHITE, "neon installed");
return 1;
}