SA-MP Forums Archive
Object to vehicle won't work! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Object to vehicle won't work! (/showthread.php?tid=206595)



Object to vehicle won't work! - ajwar - 04.01.2011

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;
}