[Help]Machines Cola, Soda and Candy - 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: [Help]Machines Cola, Soda and Candy (
/showthread.php?tid=81215)
[Help]Machines Cola, Soda and Candy -
Stephan55 - 09.06.2009
Does anyone know any code to delete or create disease when the eat in machines Cola, Soda and Candy? I tried using destroyobject ... so that has not ...
Look the comand for my DestroyObject :
public OnObjectMoved(objectid)
{
DestroyObject(1775);
DestroyObject(1302);
DestroyObject(1776);
}
Have a problem ? Or never Work ?
Re: [Help]Machines Cola, Soda and Candy -
Correlli - 09.06.2009
Quote:
Originally Posted by Stephan55
Does anyone know any code to delete or create disease when the eat in machines Cola, Soda and Candy? I tried using destroyobject ... so that has not ...
Look the comand for my DestroyObject :
public OnObjectMoved(objectid)
{
DestroyObject(1775);
DestroyObject(1302);
DestroyObject(1776);
}
Have a problem ? Or never Work ?
|
That will destroy objects with id 1775, 1302 and 1776 when any object moves. And make sure you're not using modelid there.