SA-MP Forums Archive
fast 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: fast cars (/showthread.php?tid=177385)



fast cars - FireCat - 17.09.2010

is ther any cmd to random threw fast cars, like stunt cars?
it would help meh


Re: fast cars - Patrik356b - 17.09.2010

Here is one:

Код:
if(strcmp(cmdtext,"/randcar",true)==0)
{
new vModel;
new r = random(3);
if(r == 0) vModel = 415;
else if(r == 1) vModel = 411;
else vModel = 451;
new Float:pPos[3];
GetPlayerPos(playerid, pPos[0], pPos[1], pPos[2]);
CreateVehicle(vModel, pPos[0]+3, pPos[1], pPos[2], 0.0, -1, -1, -1);
return 1;
}
No, i didn't create it, i just saw it somewhere...