SA-MP Forums Archive
How to Limit the Cars - 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: How to Limit the Cars (/showthread.php?tid=159561)



How to Limit the Cars - Hash [NL-RP] - 13.07.2010

How do i limit the cars here to Apply the text traw to all cars between 184 and 650

Attach3DTextLabelToVehicle( CarLabel, 333, 0.0, 0.0, 2.0);

The 333 Is the car ID how will i make it for all cars between 184 - 650


Re: How to Limit the Cars - Hiddos - 13.07.2010

pawn Код:
for(new c; c < (650-184); c++)
{
c += 184;
//bla
}
Might work, there's probably a better solution though.


Re: How to Limit the Cars - Hash [NL-RP] - 13.07.2010

Quote:
Originally Posted by Hiddos
Посмотреть сообщение
pawn Код:
for(new c; c < (650-184); c++)
{
c += 184;
//bla
}
Might work, there's probably a better solution though.
Where shall i put that, in tha actuall command,


Re: How to Limit the Cars - Hiddos - 13.07.2010

When you're checking for those cars :P


Re: How to Limit the Cars - Hash [NL-RP] - 13.07.2010

ok thanks