SA-MP Forums Archive
AttachObjectToVehicle [REP ++] - 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)
+--- Thread: AttachObjectToVehicle [REP ++] (/showthread.php?tid=396861)



AttachObjectToVehicle [REP ++] - teomakedonija - 02.12.2012

Hi.I make command /sirena and now object is ok all it's ok and now how to make command and delete the siren ? i use AttachObjectToVehicle and now how to put command when you type /trgnisirena to remove the siren ?


Re: AttachObjectToVehicle [REP ++] - NeroX98 - 02.12.2012

Ne sum siguren ama probaj vaka

na pocetok -> new sirena;

posle tamu kaj so ti e AttachObject...
sirena = AttachObject...

i ke naprais

if(strcmp(cmdtext, "/trgnisirena", true) == 0)
{
DeleteObject(sirena);
}


Re: AttachObjectToVehicle [REP ++] - teomakedonija - 03.12.2012

u da be ne DeleteObject tuku DestroyObject


Re: AttachObjectToVehicle [REP ++] - Mr.Anonymous - 03.12.2012

This is English section. And you can remove the object just how you created it.