SA-MP Forums Archive
Can someone help? - 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: Can someone help? (/showthread.php?tid=188326)



Can someone help? - Franklyn - 07.11.2010

Hi. I have problem. I have GM , but in there are too many cars.. So i was thinking is there possible to remove car from gamemode if i'm in-game with command like /remove , /delete , or something.


---
Thanks.
Franklyn.


Re: Can someone help? - Alex_Valde - 07.11.2010

Yes it is. But you'll have to to like this:
pawn Код:
//Somewhere under your OnGameModeInit callback.
new car01 = AddStaticVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1);
And then in your command:
pawn Код:
DestroyVehicle(car01);
Don't know is this the best way but it's the only way I can think of right now.