SA-MP Forums Archive
Car spawner - 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: Car spawner (/showthread.php?tid=113399)



Car spawner - heruvim - 13.12.2009

Hello to everyone who know a script a spawn cars but i want the cars do not disappear after spawn 2-3 cars or after 10sec for permanently
Please if you know a script post link here




Re: Car spawner - LarzI - 13.12.2009

Please explain better, I didn't quite catch that.
Use a translator if you're english isn't good, please.


Re: Car spawner - heruvim - 13.12.2009

Sorry Sorry..
Man i want i have a spawn car script but after i spawn 2-3 cars the cars disappear.. i want cars no disappear


Re: Car spawner - LarzI - 13.12.2009

Make your own then:

pawn Код:
if( !strcmp( cmdtext, "/spawnvehicle", true ) || !strcmp( cmdtext, "/sveh", true ))
{
  if( strlen( cmdtext ) < 14 )
    return SendClientMessage( playerid, 0xFF0000FF, "USAGE: \"/spawnvehicle <modelid>\"" );
  if( strval( cmdtext[ 14 ] ) < 400 || strval( cmdtext[ 14 ] ) > 611 )
    return SendClientMessage( playerid, 0xFF0000FF, "Invalid MODELID. Use 400-611" );
  new
    Float:x,
    Float:y,
    Float:z;
  GetPlayerPos( playerid, x, y, z );
  CreateVehicle( strval( cmdtext[ 14 ] ), x+1, y+1, z+0.5, 0, -1, -1, -1 );
  return SendClientMessage( playerid, 0x00FF00FF, "Success!" );
}
That should work