Car spawner
#4

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
Reply


Messages In This Thread
Car spawner - by heruvim - 13.12.2009, 16:47
Re: Car spawner - by LarzI - 13.12.2009, 17:08
Re: Car spawner - by heruvim - 13.12.2009, 17:20
Re: Car spawner - by LarzI - 13.12.2009, 17:28

Forum Jump:


Users browsing this thread: 1 Guest(s)